diff --git a/src/utils/request.js b/src/utils/request.js
index 1668f767..69fb2138 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -19,7 +19,7 @@ const service = axios.create({
// baseURL: `http://192.168.1.149:8411/submit/MESCommonBase.ashx`,
// baseURL: `http://192.168.1.149:8411/submit/MESCommonBase.ashx`,
// baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`,
- baseURL: `http://localhost:8411/submit/MESCommonBase.ashx`,
+ baseURL: `http://192.168.1.212:8411/submit/MESCommonBase.ashx`,
// baseURL: `http://localhost:8077/submit/MESCommonBase.ashx`,
// baseURL: `http://192.168.0.112:8411/submit/MESCommonBase.ashx`,
timeout: 1500000 // 请求超时时间
diff --git a/src/views/Outsourcing/OutsourcingTaskExecution/index.vue b/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
index 0f945655..830522fa 100644
--- a/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
+++ b/src/views/Outsourcing/OutsourcingTaskExecution/index.vue
@@ -329,75 +329,77 @@
计算价格
确定价格
成交
- 导出外协加工任务单
+ 导出外协加工任务单
-
-
-
- | GAOJING |
- 外协加工任务单 |
-
-
- | 任务单号: |
- {{ 任务单号 }} |
- 任务下达日期: |
- {{ 任务下达日期 }} |
- 外协厂家: |
- {{ 外协厂家 }} |
-
-
- | 外协员: |
- {{ 外协员 }} |
- 电话: |
- {{ 外协员电话 }} |
- 联系人: |
- {{ 联系人 }} |
- 电话: |
- {{ 联系人电话 }} |
-
-
- | 序号 |
- 零件图号 |
- 零件名称 |
- 数量 |
- 内容 |
- 零件类型 |
- 外协类别 |
- 加工价格 |
- 材料价格 |
- 其他价格 |
- 计划开始 |
- 计划结束 |
-
+
+
+
+
+ | GAOJING |
+ 外协加工任务单 |
+
+
+ | 任务单号: |
+ {{ 任务单号 }} |
+ 任务下达日期: |
+ {{ 任务下达日期 }} |
+ 外协厂家: |
+ {{ 外协厂家 }} |
+
+
+ | 外协员: |
+ {{ 外协员 }} |
+ 电话: |
+ {{ 外协员电话 }} |
+ 联系人: |
+ {{ 联系人 }} |
+ 电话: |
+ {{ 联系人电话 }} |
+
+
+ | 序号 |
+ 零件图号 |
+ 零件名称 |
+ 数量 |
+ 内容 |
+ 零件类型 |
+ 外协类别 |
+ 加工价格 |
+ 材料价格 |
+ 其他价格 |
+ 计划开始 |
+ 计划结束 |
+
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -457,6 +459,7 @@ import { getExplorer, method5, Cleanup } from '@/vendor/exportExcel'
import { convertCurrency } from '@/vendor/int2Chinese'
import { mapGetters } from 'vuex'
import elInput from 'element-ui/packages/input'
+import $ from 'jquery'
export default {
components: {
@@ -574,6 +577,20 @@ export default {
this.getList()
},
methods: {
+ exportTable() {
+ if (this.List3.length === 0) {
+ this.$message.warning('暂无数据')
+ } else {
+ const htmlNode = $('#RWD').html()
+ const body = $('body')
+ body.children().hide()
+ const printNode = $(htmlNode)
+ body.append(printNode)
+ window.print()
+ body.children().not('script').show()
+ printNode.remove()
+ }
+ },
fetchData() {
this.loading2 = true
var day3 = new Date(this.time)
diff --git a/src/views/Outsourcing/OutsourcingTaskQuery/index.vue b/src/views/Outsourcing/OutsourcingTaskQuery/index.vue
index 5f348334..b63cd08f 100644
--- a/src/views/Outsourcing/OutsourcingTaskQuery/index.vue
+++ b/src/views/Outsourcing/OutsourcingTaskQuery/index.vue
@@ -15,7 +15,7 @@
size="small"
placeholder="选择日期"/>
查询
- 导出外协加工任务单
+ 导出外协加工任务单
@@ -77,70 +77,72 @@
-
-
-
- | GAOJING |
- 外协加工任务单 |
-
-
- | 任务单号: |
- {{ 任务单号 }} |
- 任务下达日期: |
- {{ 任务下达日期 }} |
- 外协厂家: |
- {{ 外协厂家 }} |
-
-
- | 外协员: |
- {{ 外协员 }} |
- 电话: |
- {{ 外协员电话 }} |
- 联系人: |
- {{ 联系人 }} |
- 电话: |
- {{ 联系人电话 }} |
-
-
- | 序号 |
- 零件图号 |
- 零件名称 |
- 数量 |
- 内容 |
- 零件类型 |
- 外协类别 |
- 加工价格 |
- 材料价格 |
- 其他价格 |
- 计划开始 |
- 计划结束 |
-
+
+
+
+
+ | GAOJING |
+ 外协加工任务单 |
+
+
+ | 任务单号: |
+ {{ 任务单号 }} |
+ 任务下达日期: |
+ {{ 任务下达日期 }} |
+ 外协厂家: |
+ {{ 外协厂家 }} |
+
+
+ | 外协员: |
+ {{ 外协员 }} |
+ 电话: |
+ {{ 外协员电话 }} |
+ 联系人: |
+ {{ 联系人 }} |
+ 电话: |
+ {{ 联系人电话 }} |
+
+
+ | 序号 |
+ 零件图号 |
+ 零件名称 |
+ 数量 |
+ 内容 |
+ 零件类型 |
+ 外协类别 |
+ 加工价格 |
+ 材料价格 |
+ 其他价格 |
+ 计划开始 |
+ 计划结束 |
+
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -169,6 +171,7 @@ import { getExplorer, method5, Cleanup } from '@/vendor/exportExcel'
import { convertCurrency } from '@/vendor/int2Chinese'
import { mapGetters } from 'vuex'
import elInput from 'element-ui/packages/input'
+import $ from 'jquery'
export default {
components: {
@@ -288,6 +291,20 @@ export default {
this.getList()
},
methods: {
+ exportTable() {
+ if (this.List3.length === 0) {
+ this.$message.warning('暂无数据')
+ } else {
+ const htmlNode = $('#RWD').html()
+ const body = $('body')
+ body.children().hide()
+ const printNode = $(htmlNode)
+ body.append(printNode)
+ window.print()
+ body.children().not('script').show()
+ printNode.remove()
+ }
+ },
shouhuo(row) {
this.$confirm('此操作将不可更改, 是否继续?', '提示', {
confirmButtonText: '确定',
@@ -460,7 +477,7 @@ export default {
}
this.总计 = this.加工价格合计 + this.材料价格合计 + this.其他价格合计 + this.运费
this.大写金额 = convertCurrency(this.总计)
- // cjn end
+ // RWD end
if (response.data.length === 0) {
this.loading = false
}
@@ -762,7 +779,7 @@ export default {
if (response.data.length === 0) {
this.loading = false
}
- // cjn end
+ // RWD end
if (response.data.length === 0) {
this.loading = false
}
@@ -886,7 +903,7 @@ export default {
}
this.总计 = this.加工价格合计 + this.材料价格合计 + this.其他价格合计 + this.运费
this.大写金额 = convertCurrency(this.总计)
- // cjn end
+ // RWD end
if (response.data.length === 0) {
this.loading = false
}
@@ -1279,7 +1296,7 @@ export default {
this.$message.warning('请选择订单')
}
},
- downLoadCjn(tableid) {
+ downLoadRWD(tableid) {
if (this.List3.length === 0) {
this.$message.warning('暂无数据')
} else {