diff --git a/src/views/Inventory/InventoryCheck/index.vue b/src/views/Inventory/InventoryCheck/index.vue index 49a8636a..760a3235 100644 --- a/src/views/Inventory/InventoryCheck/index.vue +++ b/src/views/Inventory/InventoryCheck/index.vue @@ -165,7 +165,7 @@
@@ -177,6 +177,7 @@ import request from '@/utils/request' export default { data() { return { + addMaterial_disable: false, materialName: '', materialSpec: '', materialModel: '', @@ -319,6 +320,7 @@ export default { }, // 新增物料货位数量 addMaterial() { + this.addMaterial_disable = false this.dialogVisible = true }, // 选择物料 @@ -327,6 +329,7 @@ export default { }, // 确认新增物料货位数量 submitAdd() { + this.addMaterial_disable = true const param = { url: '', method: 'post', diff --git a/src/views/Inventory/InventoryManagement/index.vue b/src/views/Inventory/InventoryManagement/index.vue index 56aa1a18..78079bc4 100644 --- a/src/views/Inventory/InventoryManagement/index.vue +++ b/src/views/Inventory/InventoryManagement/index.vue @@ -178,7 +178,7 @@ @@ -242,6 +242,7 @@ import { mapGetters } from 'vuex' export default { data() { return { + ADD_disable: false, Contactpeople: [], // 联系人 count2: 0, // 清表单验证计数器 tableData: [], @@ -372,10 +373,16 @@ export default { }, // 点击增加仓库 ADD() { - this.form = [] + this.WarehouseNumber = '' + this.WarehouseName = '' + this.WarehouseDescription = '' + this.Address = '' + this.ContactpeopleValue = '' + this.Note = '' if (this.$refs['form'] !== undefined) { this.$refs['form'].resetFields() } + this.ADD_disable = false this.dialogFormVisible = true this.temp = 1 }, @@ -383,6 +390,7 @@ export default { submit(formName) { this.$refs[formName].validate((valid) => { if (valid) { + this.ADD_disable = true if (this.temp === 1) { this.addTableData() this.form.WarehouseNumber = '' @@ -402,16 +410,9 @@ export default { // 执行增加仓库 addTableData() { addWarehouse(this.form.WarehouseNumber, this.form.WarehouseName, this.form.WarehouseDescription, this.form.Address, this.form.ContactpeopleValue, this.form.Note).then(response => { - console.log(this.form.WarehouseNumber, this.form.WarehouseName, this.form.WarehouseDescription, this.form.Address, this.form.ContactpeopleValue, this.form.Note) this.dialogFormVisible = false if (response.data[0].result === '1') { this.$message.success('添加成功') - this.form.WarehouseNumber = '' - this.form.WarehouseName = '' - this.form.WarehouseDescription = '' - this.form.Address = '' - this.form.ContactpeopleValue = '' - this.form.Note = '' } else { this.$message.error('添加失败') } @@ -432,6 +433,7 @@ export default { } this.form.Note = row.备注 this.HouseNumber = row.仓库流水号 + this.ADD_disable = false this.dialogFormVisible = true }, // 执行修改 diff --git a/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue b/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue index 835ce342..b0b9782b 100644 --- a/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue +++ b/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue @@ -301,11 +301,7 @@ @@ -318,6 +314,7 @@ export default { inject: ['reload'], data() { return { + submitGroup_disable: false, submitDisable: true, // 不点击表格中的行不让确定 AdvanceCharge: '', loading: false, @@ -463,6 +460,7 @@ export default { }, methods: { linkGroup() { + this.submitGroup_disable = false this.dialogVisible2 = true }, filterNuber(val, index, date, row) { @@ -507,6 +505,7 @@ export default { this.calculateContractSum() }, submitGroup() { + this.submitGroup_disable = true submitGroup(this.contractNumValue, this.form3.groupNumValue).then(response => { if (response.data[0].result === '1') { this.contractNumType = 1 diff --git a/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue b/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue index a449ad37..f20ad02d 100644 --- a/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue +++ b/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue @@ -268,8 +268,8 @@ @@ -391,6 +391,8 @@ export default { name: '', // 发票结算申请 data() { return { + createOrder_disable: false, + submitEdit_disable: false, disabled: false, contractType: '采购合同', invoiceNum: '', @@ -476,6 +478,7 @@ export default { this.form1.isCost = '' this.form1.remark = '' this.title1 = '创建到票结算申请单' + this.createOrder_disable = false this.dialogVisible1 = true }, searchTable1() { @@ -494,9 +497,11 @@ export default { this.total1 = response.data.total }) }, - submitAdd1() { // 提交新增 + // 提交新增 + submitAdd1() { this.$refs['form1'].validate((valid) => { if (valid) { + this.createOrder_disable = true insertInto(this.form1.invoiceNum, this.form1.money, this.form1.supplierValue, this.form1.paid, this.form1.unpaid, this.form1.tax, this.form1.isCost, this.form1.remark).then(response => { if (response.data[0].result === '1') { this.$message.success('增加成功') @@ -514,6 +519,7 @@ export default { submitEdit() { // 提交编辑 this.$refs['form1'].validate((valid) => { if (valid) { + this.submitEdit_disable = true submitEdit(this.form1.invoiceNum, this.form1.money, this.form1.paid, this.form1.unpaid, this.form1.tax, this.form1.isCost, this.form1.remark, this.form1.applyOrderNum).then(response => { if (response.data[0].result === '修改成功') { this.$message.success('编辑成功') @@ -521,7 +527,11 @@ export default { this.searchTable1() } else if (response.data[0].result === '修改失败') { this.$message.error('已提交申请,编辑失败') - } else { this.$message.error('编辑失败') } + this.submitEdit_disable = false + } else { + this.$message.error('编辑失败') + this.submitEdit_disable = false + } }) } else { return false @@ -542,6 +552,7 @@ export default { this.form1.remark = row.备注 this.form1.applyOrderNum = row.发票结算申请单流水号 this.title1 = '编辑到票结算申请单' + this.submitEdit_disable = false this.dialogVisible1 = true }, handleDelete(row) { diff --git a/src/views/WorkshopProcurement/PurchaseContractRequestFund1/index.vue b/src/views/WorkshopProcurement/PurchaseContractRequestFund1/index.vue index 553cd2a4..c21a8253 100644 --- a/src/views/WorkshopProcurement/PurchaseContractRequestFund1/index.vue +++ b/src/views/WorkshopProcurement/PurchaseContractRequestFund1/index.vue @@ -182,7 +182,7 @@ 合计: