diff --git a/src/views/PurchasingCenter/BacklogGoodsAnalysis/index.vue b/src/views/PurchasingCenter/BacklogGoodsAnalysis/index.vue
index 38533a46..a3496ec8 100644
--- a/src/views/PurchasingCenter/BacklogGoodsAnalysis/index.vue
+++ b/src/views/PurchasingCenter/BacklogGoodsAnalysis/index.vue
@@ -133,10 +133,10 @@
转为滞货数量:
-
+
@@ -149,6 +149,7 @@ export default {
name: 'BacklogGoodsAnalysis',
data() {
return {
+ turnToBacklogGoods_diaable: false,
materialName: '',
materialSpec: '',
materialModel: '',
@@ -200,13 +201,15 @@ export default {
},
turnToBacklogGoods(row) {
this.number = 0
- this.dialogFormVisible = true
+ this.turnToBacklogGoods_diaable = false
this.maxNumber = row.可转滞货数量
this.materialNum = row.物料流水号
this.materialLocalNum = row.物料与货位对照流水号
this.localNum = row.货位流水号
+ this.dialogFormVisible = true
},
submitTurn() {
+ this.turnToBacklogGoods_diaable = true
submitTurn(this.materialNum, this.number, this.materialLocalNum, this.localNum).then(response => {
if (response.data[0].result === '1') {
this.searchTable1()
diff --git a/src/views/PurchasingCenter/CreateInquirySheet/index.vue b/src/views/PurchasingCenter/CreateInquirySheet/index.vue
index 54b7be4b..374b5f59 100644
--- a/src/views/PurchasingCenter/CreateInquirySheet/index.vue
+++ b/src/views/PurchasingCenter/CreateInquirySheet/index.vue
@@ -80,7 +80,7 @@
- 调整采购任务
+ 调整采购任务
取消
{
if (response.data[0].result === '1') {
this.$message.success('调整成功')
this.searchTable11()
+ this.tiaozheng1_disable = false
} else {
this.$message.warning('调整失败')
}
@@ -1989,6 +1994,7 @@ export default {
submitCreateInquirySheet() { // 提交创建询价单
this.$refs['form2'].validate((valid) => {
if (valid) {
+ this.createInquirySheet_disable = true
const numGroup1 = [] // 空数组,放现有的询价单号
searchCreateInquirySheet2().then(response => { // 先查询判断是否存在
for (let i = 0; i < response.data.length; i++) {
@@ -1996,6 +2002,7 @@ export default {
}
}).then(() => {
if (numGroup1.indexOf(this.form2.inquirySheetNum) !== -1) {
+ this.createInquirySheet_disable = false
this.$message.error('该询价单号已存在')
} else {
createInquirySheet(this.form2.inquirySheetNum, this.id, this.form2.supplierValue, '').then(response => {
@@ -2006,6 +2013,7 @@ export default {
this.supplierValue = ''
this.dialogVisible2 = false
this.searchTable2()
+ this.createInquirySheet_disable = false
} else { this.$message.error('操作失败') }
})
}
@@ -2019,6 +2027,7 @@ export default {
submitCreateInquirySheet1() { // 提交创建询价单
this.$refs['form2'].validate((valid) => {
if (valid) {
+ this.createInquirySheet_disable = true
createInquirySheet(this.form2.inquirySheetNum, this.id, this.form2.supplierNameValue, '').then(response => {
if (!(response.data)) {
this.$message.success('创建成功')
@@ -2029,7 +2038,11 @@ export default {
this.dialogVisible2 = false
this.inquirySheetNum = this.form2.inquirySheetNum
this.searchTable2(this.inquirySheetNum)
- } else { this.$message.error('操作失败!该询价单已存在,请重新输入') }
+ this.createInquirySheet_disable = false
+ } else {
+ this.$message.error('操作失败!该询价单已存在,请重新输入')
+ this.createInquirySheet_disable = false
+ }
})
}
})
@@ -2084,6 +2097,7 @@ export default {
submitEditInquirySheet() { // 提交编辑询价单
this.$refs['form2'].validate((valid) => {
if (valid) {
+ this.createInquirySheet_disable = true
const numGroup1 = [] // 空数组,放现有的询价单号
const numGroup2 = [] // 空数组,放现有的询价单流水号
searchCreateInquirySheet2().then(response => { // 先查询判断是否存在
@@ -2094,6 +2108,7 @@ export default {
}).then(() => {
if (numGroup1.indexOf(this.form2.inquirySheetNum) !== -1 && numGroup1.indexOf(this.form2.inquirySheetNum) !== numGroup2.indexOf(parseInt(this.form2.inquirySheetNumValue))) {
this.$message.error('该询价单号已存在')
+ this.createInquirySheet_disable = false
} else {
editInquirySheet(this.form2.inquirySheetNumValue, this.form2.inquirySheetNum, this.form2.supplierNameValue).then(response => {
if (response.data[0].result === '1') {
@@ -2103,7 +2118,11 @@ export default {
this.supplierValue = ''
this.dialogVisible2 = false
this.searchTable2()
- } else { this.$message.error('修改失败') }
+ this.createInquirySheet_disable = false
+ } else {
+ this.$message.error('修改失败')
+ this.createInquirySheet_disable = false
+ }
})
}
})
diff --git a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
index 5f557e88..8269b12a 100644
--- a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
+++ b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
@@ -178,6 +178,7 @@ export default {
inject: ['reload'],
data() {
return {
+ generateContract_disabed: true,
isShowN: false,
loading: false,
openDeal: true,
@@ -856,6 +857,7 @@ export default {
// this.content = `自定义`
// },
generateContract() { // 生成采购合同
+ this.generateContract_disabed = true
for (let i = 0; i < this.tableData1.length; i++) {
if (this.tableData1[i].含税单价 === '') {
console.log(this.tableData1[i].含税单价, '含税单价')
@@ -863,6 +865,7 @@ export default {
}
}
if (this.count === this.tableData1.length) {
+ this.generateContract_disabed = false
this.$message.error('该合同未绑定物料信息')
} else {
this.content = this.contentNew.replace(/ /g, '')
@@ -899,8 +902,10 @@ export default {
this.$message.success('合同生成成功')
this.openDeal = true
this.reload()
+ this.generateContract_disabed = false
} else {
this.$message.error('生成合同失败')
+ this.generateContract_disabed = false
}
})
}).catch(() => {
@@ -908,11 +913,14 @@ export default {
type: 'info',
message: '已取消操作'
})
+ this.generateContract_disabed = false
})
} else {
+ this.generateContract_disabed = false
this.$message.warning('请先选择模板进行预览')
}
} else {
+ this.generateContract_disabed = false
this.$message.warning('请先选择合同进行编辑')
}
}
diff --git a/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue b/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue
index 825f1d35..8127b322 100644
--- a/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue
+++ b/src/views/PurchasingCenter/InvoiceSettlementApplication/index.vue
@@ -278,8 +278,8 @@
@@ -400,6 +400,7 @@ export default {
name: '', // 发票结算申请
data() {
return {
+ submitAdd1_disable: false,
dateRange: '',
pickerOptions: {
shortcuts: [{
@@ -518,6 +519,7 @@ export default {
this.form1.isCost = ''
this.form1.remark = ''
this.title1 = '到票结算申请'
+ this.submitAdd1_disable = false
this.dialogVisible1 = true
},
searchTable1() {
@@ -542,6 +544,7 @@ export default {
submitAdd1() { // 提交新增
this.$refs['form1'].validate((valid) => {
if (valid) {
+ this.submitAdd1_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('增加成功')
diff --git a/src/views/PurchasingCenter/OfflineContract/index.vue b/src/views/PurchasingCenter/OfflineContract/index.vue
index bff4e020..afffe14a 100644
--- a/src/views/PurchasingCenter/OfflineContract/index.vue
+++ b/src/views/PurchasingCenter/OfflineContract/index.vue
@@ -26,7 +26,7 @@
start-placeholder="开始日期"
end-placeholder="结束日期"/>
查询
- 调整采购任务
+ 调整采购任务