From 27b9331a9f5f86cb6d969ac0f76931b584c45085 Mon Sep 17 00:00:00 2001 From: liushuai Date: Sun, 15 Mar 2020 16:01:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CreateInquirySheet/index.vue | 23 ++++++++++++------- .../CreatePurchaseContract/index.vue | 7 +++++- .../CreatingProcurementContracts/index.vue | 12 ++++++---- 3 files changed, 29 insertions(+), 13 deletions(-) diff --git a/src/views/PurchasingCenter/CreateInquirySheet/index.vue b/src/views/PurchasingCenter/CreateInquirySheet/index.vue index 956c486c..26227c73 100644 --- a/src/views/PurchasingCenter/CreateInquirySheet/index.vue +++ b/src/views/PurchasingCenter/CreateInquirySheet/index.vue @@ -184,7 +184,7 @@ @@ -254,8 +254,10 @@
选入物料 @@ -1380,7 +1382,7 @@ export default { changeNumber(row) { changeNum(row.物料流水号, row.使用库存数, row.机床流水号, row.组件零件流水号, row.零件数量).then(response => { if (response.data[0].result === '1') { - this.$message.success('使用成功') + // this.$message.success('使用成功') this.searchTable11() } else { this.$message.success('使用失败') @@ -2253,6 +2255,7 @@ export default { } }, addInquirySheet() { // 追加物料 + this.numbers = [] const numGroup1 = [] // 空数组,放该询价单中已有的组件零件流水号 const numGroup2 = [] // 空数组,放该询价单中已有的组件零件基本件流水号 if (this.inquirySheetFlowNum === '' || this.inquirySheetFlowNum === null) { @@ -2441,11 +2444,15 @@ export default { }, tableRowClassName({ row, rowIndex }) { let color = '' - this.numbers.forEach((r, i) => { - if (rowIndex === r) { - color = 'MistyRose' - } - }) + if (this.numbers.length > 0) { + this.numbers.forEach((r, i) => { + if (rowIndex === r) { + color = 'MistyRose' + } + }) + } else { + color = '' + } return color }, tableRowClassName2({ row, rowIndex }) { diff --git a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue index e9aa50da..9e12e237 100644 --- a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue +++ b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue @@ -150,7 +150,7 @@ 预览合同 递交审核: - 递交 + 递交
@@ -180,6 +180,7 @@ export default { return { isShowN: false, loading: false, + openDeal: true, supplierValue11: '', // 供应商查询条件 supplier11: [], quickChangePrice: true, @@ -517,6 +518,7 @@ export default { }, contractChange() { // 选择合同select this.loading = true + this.openDeal = true searchContractHeader(this.contractNumValue).then(response => { this.deliveryDate = response.data[0].交货日期 this.invoiceInfo = response.data[0].开票信息 @@ -734,6 +736,7 @@ export default { ` }, async editContract() { // 选择一个询价单,整成合同明细 + this.openDeal = false const date = new Date() this.year = date.getFullYear() this.month = date.getMonth() + 1 @@ -832,6 +835,7 @@ export default { // this.contentNew = document.getElementsByClassName('editor-content')[0].innerHTML // this.$refs.tinymce.initTinymce() setTimeout(() => { + this.submitTotal() // this.$refs.tinymce.setContent(this.contentNew) }, 1000) } else { @@ -880,6 +884,7 @@ export default { doneContract(this.contractNum, this.contractName, this.deliveryDate, this.payDate, this.payMethod, this.invoiceInfo, this.otherInfo, this.actualTotal, this.id, this.supplierValue, this.单价是否含税, this.组件零件流水号组, this.组件零件基本件流水号组, this.数量组, this.单价组, this.交货期组, this.content, this.taxRate * 100, inquiryDetailNum_old, this.备注组).then(response => { if (response.data[0].result === '1') { this.$message.success('合同生成成功') + this.openDeal = true this.reload() } else { this.$message.error('生成合同失败') diff --git a/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue b/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue index 747c959d..d9ad1e0d 100644 --- a/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue +++ b/src/views/WorkshopProcurement/CreatingProcurementContracts/index.vue @@ -61,7 +61,8 @@ @@ -112,7 +113,8 @@ @@ -460,7 +462,7 @@ export default { linkGroup() { this.dialogVisible2 = true }, - filterNuber(val, index, date) { + filterNuber(val, index, date, row) { console.log(index, 6666) let value = '' + val value = value @@ -475,8 +477,9 @@ export default { } console.log(value) this.tableData4[index][date] = value + this.calculateContractSum(row) }, - filterNuber1(val, index, date) { + filterNuber1(val, index, date, row) { let value = '' + val value = value .replace(/[^\d.]/g, '') // 清除“数字”和“.”以外的字符 @@ -490,6 +493,7 @@ export default { } console.log(value) this.tableData5[index][date] = value + this.update1(row) }, submitGroup() { submitGroup(this.contractNumValue, this.form3.groupNumValue).then(response => {