From a2361cfd075e81f4726fde551e5623bce7dca469 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Tue, 25 Dec 2018 11:03:27 +0800 Subject: [PATCH 1/9] bug --- .../PurchasingCenter/PurchaseContractApproval/index.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/PurchasingCenter/PurchaseContractApproval/index.vue b/src/views/PurchasingCenter/PurchaseContractApproval/index.vue index 6a913066..70be29f5 100644 --- a/src/views/PurchasingCenter/PurchaseContractApproval/index.vue +++ b/src/views/PurchasingCenter/PurchaseContractApproval/index.vue @@ -197,6 +197,7 @@ export default { }, methods: { fetchData() { + this.person = [] initBuyer().then(response => { for (let i = 0; i < response.data.length; i++) { this.person.push({ @@ -206,6 +207,7 @@ export default { }) } }) + this.contractNum = [] initContract().then(response => { for (let i = 0; i < response.data.length; i++) { this.contractNum.push({ @@ -244,7 +246,12 @@ export default { if (response.data[0].result === '1') { this.$message.success('审批成功') this.dialogVisible3 = false + this.fetchData() // 重新初始化 + this.contractNumValue = '' + this.personValue = '' + this.supplierName = '' this.searchTable1() + this.returns = '' } else { this.$message.error('审批失败') } }) } else { From e0ca4ae6516a607f7cc955f3e1d36ebf871b0f3d Mon Sep 17 00:00:00 2001 From: chenjianan Date: Tue, 25 Dec 2018 11:16:25 +0800 Subject: [PATCH 2/9] bug --- .../PurchasingCenter/PurchaseContractSearch/index.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/PurchasingCenter/PurchaseContractSearch/index.vue b/src/views/PurchasingCenter/PurchaseContractSearch/index.vue index 8a2c820d..30dfb894 100644 --- a/src/views/PurchasingCenter/PurchaseContractSearch/index.vue +++ b/src/views/PurchasingCenter/PurchaseContractSearch/index.vue @@ -102,17 +102,22 @@ 未通过 - + + + + - + - + From f5c56f1cacc706a9fd2cba0e0a4b538e235929f5 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Tue, 25 Dec 2018 12:36:40 +0800 Subject: [PATCH 3/9] bug --- src/views/PurchasingCenter/PurchaseInvoiceDelivery/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/PurchasingCenter/PurchaseInvoiceDelivery/index.vue b/src/views/PurchasingCenter/PurchaseInvoiceDelivery/index.vue index 86a33d93..57887dd3 100644 --- a/src/views/PurchasingCenter/PurchaseInvoiceDelivery/index.vue +++ b/src/views/PurchasingCenter/PurchaseInvoiceDelivery/index.vue @@ -208,7 +208,8 @@ - + * + Date: Tue, 25 Dec 2018 16:21:24 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E5=AE=9A=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ManufacturingCenter/QuotaFormulation/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/ManufacturingCenter/QuotaFormulation/index.vue b/src/views/ManufacturingCenter/QuotaFormulation/index.vue index d0a01fde..bf943e12 100644 --- a/src/views/ManufacturingCenter/QuotaFormulation/index.vue +++ b/src/views/ManufacturingCenter/QuotaFormulation/index.vue @@ -253,7 +253,7 @@ export default { this.listLoading = true this.tableData = [] this.num0 = '' - if (this.radio === 1) { + if (this.radio === 1) { // 未编制 detailInfo(this.partNumValue).then(response => { if (response.data.length !== 0) { this.typeValue = response.data[0].零件类型名称 @@ -264,6 +264,7 @@ export default { } }).then(() => { mainTable(this.num0).then(response => { + console.log(response.data) if (response.data.length === 0) { this.listLoading = false } else { From 2154b69223bdb502e600d7cbb85acfb5f9cf2bf6 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Tue, 25 Dec 2018 16:23:24 +0800 Subject: [PATCH 5/9] picviewer --- package.json | 1 + src/main.js | 9 ++- .../PurchaseInvoiceDelivery/index.vue | 69 ++++++++----------- 3 files changed, 39 insertions(+), 40 deletions(-) diff --git a/package.json b/package.json index 02b3cafd..4bf74258 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "nprogress": "0.2.0", "qrcode": "^1.3.2", "time-formater": "^1.0.3", + "v-viewer": "^1.3.1", "vue": "2.5.17", "vue-router": "3.0.1", "vuex": "3.0.1", diff --git a/src/main.js b/src/main.js index 487c94b2..3831fa72 100644 --- a/src/main.js +++ b/src/main.js @@ -17,10 +17,17 @@ import curd from '@/utils/curd' import time from 'time-formater' import htmlToPdf from '@/vendor/htmlToPdf' - +import Viewer from 'v-viewer' +import 'viewerjs/dist/viewer.css' Vue.use(curd) Vue.use(htmlToPdf) Vue.use(ElementUI) +// 查看图片 +Vue.use(Viewer) +Viewer.setDefaults({ + Options: { 'inline': true, 'button': true, 'navbar': true, 'title': true, 'toolbar': true, 'tooltip': true, 'movable': true, 'zoomable': true, 'rotatable': true, 'scalable': true, 'transition': true, 'fullscreen': true, 'keyboard': true, 'url': 'data-source' } +}) + // 处理时间字符串格式全局过滤器 '2018/1/23 00:00:00' to '2018-01-23' Vue.filter('formatTime', function(value) { if (!value) return '' diff --git a/src/views/PurchasingCenter/PurchaseInvoiceDelivery/index.vue b/src/views/PurchasingCenter/PurchaseInvoiceDelivery/index.vue index 57887dd3..4135a530 100644 --- a/src/views/PurchasingCenter/PurchaseInvoiceDelivery/index.vue +++ b/src/views/PurchasingCenter/PurchaseInvoiceDelivery/index.vue @@ -9,17 +9,6 @@ :label="item.label" :value="item.value"/> - - - - - - - - - - - - + - + - + - - - + + +