From c94a5d21d1aa9735f2a0744e76203384aca8500c Mon Sep 17 00:00:00 2001 From: Vergil <974548713@qq.com> Date: Wed, 8 Apr 2020 16:00:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CreatingPurchasingMaterials/index.vue | 7 ++ .../NewArrivalList/index.vue | 17 ++++- .../OfflineProcurement/index.vue | 69 ++++++++++--------- .../OutsourcingMaterialsInvoice/index.vue | 21 ++++-- .../RequestOutsourcingMaterials/index.vue | 10 ++- 5 files changed, 82 insertions(+), 42 deletions(-) diff --git a/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue b/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue index ff243032..30cc59c4 100644 --- a/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue +++ b/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue @@ -349,12 +349,14 @@ + + + + + + + + + + + + + @@ -275,6 +276,7 @@ export default { name: '', // 项目总价查询 data() { return { + addPurchaseOrder_disable: false, check1: 0, purchasingOrder: '', supplierName: '', @@ -512,18 +514,23 @@ export default { this.form2.计划名称 = '' this.form2.supplierNameValue = '' this.title2 = '创建外购备料计划' + this.addPurchaseOrder_disable = false this.dialogVisible2 = true }, submitAddPurchaseOrder() { // 新建采购单 this.$refs['form2'].validate((valid) => { if (valid) { + this.addPurchaseOrder_disable = true this.supplierName = this.form2.supplierNameValue addPurchaseOrder(this.form2.计划名称, this.form2.supplierNameValue).then(response => { if (response.data[0].result === '1') { this.$message.success('新建离线外购备料成功') this.searchTable() this.dialogVisible2 = false - } else { this.$message.error('新建离线外购备料失败') } + } else { + this.addPurchaseOrder_disable = false + this.$message.error('新建离线外购备料失败') + } }) } else { return false diff --git a/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue b/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue index 6fa6794e..eed1ae5d 100644 --- a/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue +++ b/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue @@ -223,7 +223,7 @@ @@ -277,7 +277,7 @@ 合计: - 货票关联 + 货票关联 @@ -290,6 +290,8 @@ export default { name: '', // 发票交接单 data() { return { + addTable1_disable: false, + aboutArrival_disable: false, dateRange: '', pickerOptions: { shortcuts: [{ @@ -476,13 +478,13 @@ export default { this.$refs['form1'].resetFields() } this.tableData4 = [] - this.dialogVisible1 = true - console.log(this.supplierNames) this.form1.supplierNameValue = '' this.form1.Number = '' this.form1.invoiceTime = '' this.form1.money = '' this.form1.remark = '' + this.addTable1_disable = false + this.dialogVisible1 = true }, submitAdd1(formName) { this.$refs[formName].validate((valid) => { @@ -490,6 +492,7 @@ export default { if (this.arrest.length === 0) { this.$message.warning('请勾选需要关联的到货单') } else { + this.addTable1_disable = true this.到货单流水号组 = [] this.arrest.map(v => { this.到货单流水号组.push(v.到货单流水号) @@ -500,6 +503,7 @@ export default { this.dialogVisible1 = false this.searchTable1() } else { + this.addTable1_disable = false this.$message.error('增加失败') } }) @@ -565,8 +569,9 @@ export default { aboutArrival(row) { this.Name = row.供应商 this.发票流水号 = row.发票流水号 - this.dialogVisible = true this.searchTable4() + this.aboutArrival_disable = false + this.dialogVisible = true }, handleSelectionChange(val) { this.SUM = 0 @@ -581,6 +586,7 @@ export default { if (this.arrest.length === 0) { this.$message.warning('请勾选需要关联的到货单') } else { + this.aboutArrival_disable = true this.到货单流水号组 = [] this.arrest.map(v => { this.到货单流水号组.push(v.到货单流水号) @@ -592,7 +598,10 @@ export default { searchInvoiceDetail(this.发票流水号).then(response => { this.gridData = response.data }) - } else { this.$message.error('关联失败') } + } else { + this.aboutArrival_disable = false + this.$message.error('关联失败') + } }) } }, diff --git a/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue b/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue index 3865c6db..54768562 100644 --- a/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue +++ b/src/views/WorkshopProcurement/RequestOutsourcingMaterials/index.vue @@ -184,19 +184,21 @@ 合计: - 提交请款审批 + 提交请款审批 -