diff --git a/src/utils/request.js b/src/utils/request.js index 15f19c7e..39a2860d 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -18,7 +18,7 @@ export const uploadPerson = `http://123.56.95.229:8010/submit/uploadPerson.ashx` export const uploadOP = `http://123.56.95.229:8010/submit/uploadOP.ashx` export const url = `http://123.56.95.229:8010/submit/MESCommonBase.ashx` // 采购件入库、离线件入库 export const ExcelDownLoad = 'http://123.56.95.229:8010/submit/MESDownloadExcel.ashx' // 导出excel -export const ExcelWaiGou = 'http://192.168.0.106:8045/submit/excel.ashx' // 导出excel +export const ExcelWaiGou = 'http://123.56.95.229:8010/submit/excel.ashx' // 导出excel // 技术中心程序发布时要更改下面所有的IP到0段 export const ServerIP = `http://123.56.95.229:8010/webpage/file/` export const uploadFileMachine = `http://123.56.95.229:8010/submit/uploadFileMachine.ashx` // 机床总图 发布时改成0.231 diff --git a/src/views/Outsourcing/OutsourcingPaymentPlanManagement/index.vue b/src/views/Outsourcing/OutsourcingPaymentPlanManagement/index.vue index 350a671f..4bbb7906 100644 --- a/src/views/Outsourcing/OutsourcingPaymentPlanManagement/index.vue +++ b/src/views/Outsourcing/OutsourcingPaymentPlanManagement/index.vue @@ -13,24 +13,24 @@ {{ scope.row.外协厂家名称 }} - + - + - + - + @@ -49,20 +49,20 @@ 开票明细: - 新增 + 新增 - + - + - + @@ -83,15 +83,15 @@ 付款明细: - 新增 + 新增 - + - + @@ -111,15 +111,15 @@ - - + + - + @@ -143,10 +143,10 @@ - - + + - + @@ -196,6 +196,7 @@ export default { pageSize3: 50, // 每页显示条数 pageCurrent3: 1, // 后台获取页 param1: 0, + title1: '', dialogFormVisible1: false, form1: { 发票号: '', @@ -203,6 +204,7 @@ export default { 开票金额: '' }, param2: 0, + title2: '', dialogFormVisible2: false, form2: { 付款金额: '', @@ -285,8 +287,12 @@ export default { }, // 点击增加 handleAdd1(formName) { + if (this.$refs[formName] !== undefined) { + this.$refs[formName].resetFields() + } if (this.外协厂家流水号) { this.param1 = 1 + this.title1 = '新增发票' this.form1.发票号 = '' this.form1.开票时间 = '' this.form1.开票金额 = '' @@ -311,16 +317,16 @@ export default { this.dialogFormVisible1 = false }, // 编辑打开 - ChangeOpen1(index, row, formName) { + ChangeOpen1(row, formName) { + if (this.$refs[formName] !== undefined) { + this.$refs[formName].resetFields() + } this.param1 = 0 - this.form1.外协厂家 = row.外协厂家流水号 + this.title1 = '编辑发票' this.form1.发票号 = row.发票号 - this.form1.开户行 = row.开户行 this.form1.开票时间 = row.开票时间 this.form1.开票金额 = row.开票金额 - this.form1.接收人 = row.接收人 - this.form1.接收时间 = row.接收时间 - this.form1.备注 = row.备注 + this.form1.外协厂家 = row.外协厂家 this.dialogFormVisible1 = true }, // 编辑确定 @@ -389,7 +395,11 @@ export default { }, handleAdd2(formName) { if (this.外协厂家流水号) { + if (this.$refs[formName] !== undefined) { + this.$refs[formName].resetFields() + } this.param2 = 1 + this.title2 = '新增付款' this.form2.付款时间 = '' this.form2.付款金额 = '' this.dialogFormVisible2 = true