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外协加工任务单
任务单号:{{ 任务单号 }}任务下达日期:{{ 任务下达日期 }}外协厂家:{{ 外协厂家 }}
外协员:{{ 外协员 }}电话:{{ 外协员电话 }}联系人:{{ 联系人 }}电话:{{ 联系人电话 }}
序号零件图号零件名称数量内容零件类型外协类别加工价格材料价格其他价格计划开始计划结束
费用加工费:¥{{ 加工价格合计 }}元;材料费:¥{{ 材料价格合计 }}元;其他费用:¥{{ 其他价格合计 }}元;运费¥{{ 运费 }}元;合计:¥{{ 总计 }}元;人民币大写:{{ 大写金额 }}0 - - {{ 加工价格合计 }}{{ 材料价格合计 }}{{ 其他价格合计 }}{{ 最早时间 }}{{ 最晚时间 }}
外协员:外协科长:采购二部长:制品部长:定额科统计员:定额科长:外协厂:
+ + + + 费用 + 加工费:¥{{ 加工价格合计 }}元;材料费:¥{{ 材料价格合计 }}元;其他费用:¥{{ 其他价格合计 }}元;运费¥{{ 运费 }}元;合计:¥{{ 总计 }}元;人民币大写:{{ 大写金额 }} + 0 + + + {{ 加工价格合计 }} + {{ 材料价格合计 }} + {{ 其他价格合计 }} + {{ 最早时间 }} + {{ 最晚时间 }} + + + 外协员: + 外协科长: + 采购二部长: + 制品部长: + 定额科统计员: + 定额科长: + 外协厂: + + + +
@@ -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外协加工任务单
任务单号:{{ 任务单号 }}任务下达日期:{{ 任务下达日期 }}外协厂家:{{ 外协厂家 }}
外协员:{{ 外协员 }}电话:{{ 外协员电话 }}联系人:{{ 联系人 }}电话:{{ 联系人电话 }}
序号零件图号零件名称数量内容零件类型外协类别加工价格材料价格其他价格计划开始计划结束
费用加工费:¥{{ 加工价格合计 }}元;材料费:¥{{ 材料价格合计 }}元;其他费用:¥{{ 其他价格合计 }}元;运费¥{{ 运费 }}元;合计:¥{{ 总计 }}元;人民币大写:{{ 大写金额 }}0 - - {{ 加工价格合计 }}{{ 材料价格合计 }}{{ 其他价格合计 }}{{ 最早时间 }}{{ 最晚时间 }}
外协员:外协科长:采购二部长:制品部长:定额科统计员:定额科长:外协厂:
+ + + + 费用 + 加工费:¥{{ 加工价格合计 }}元;材料费:¥{{ 材料价格合计 }}元;其他费用:¥{{ 其他价格合计 }}元;运费¥{{ 运费 }}元;合计:¥{{ 总计 }}元;人民币大写:{{ 大写金额 }} + 0 + + + {{ 加工价格合计 }} + {{ 材料价格合计 }} + {{ 其他价格合计 }} + {{ 最早时间 }} + {{ 最晚时间 }} + + + 外协员: + 外协科长: + 采购二部长: + 制品部长: + 定额科统计员: + 定额科长: + 外协厂: + + + +
@@ -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 {