From 9a6fb46e240495759d8f257eb619abcbbe189c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Tue, 11 Jul 2023 08:47:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/zh-CN.js | 8 + src/mixins/basic-search.js | 4 +- .../modules/basic/components/control-add.vue | 12 +- .../basic/components/failureTypeSearch.vue | 4 +- .../modules/basic/components/product-add.vue | 5 +- src/views/modules/basic/qmsCustomerType.vue | 2 +- src/views/modules/basic/qmsProduct.vue | 5 - src/views/modules/basic/qmsProductType.vue | 4 +- src/views/modules/basic/qmsTeam.vue | 72 ++++---- .../components/InspectionPosition-add.vue | 40 ++-- .../quality/components/disposalMethod-add.vue | 39 ++-- .../modules/quality/components/lowHigh.vue | 41 +++++ .../quality/components/samplingPlan-add.vue | 87 ++++++--- .../quality/components/samplingPlanSearch.vue | 171 ++++++++++++++++++ .../components/transferRecords-add.vue | 6 +- .../components/transferSchemeSearch.vue | 6 +- .../modules/quality/qmsCustomSampling.vue | 12 +- src/views/modules/quality/qmsSamplingPlan.vue | 106 ++++++----- .../modules/quality/qmsTransferRecords.vue | 15 +- .../modules/quality/qmsTransferScheme.vue | 11 +- 20 files changed, 456 insertions(+), 194 deletions(-) create mode 100644 src/views/modules/quality/components/lowHigh.vue create mode 100644 src/views/modules/quality/components/samplingPlanSearch.vue diff --git a/src/i18n/zh-CN.js b/src/i18n/zh-CN.js index 69f1807..b15bdd7 100644 --- a/src/i18n/zh-CN.js +++ b/src/i18n/zh-CN.js @@ -354,6 +354,14 @@ t.quality.productName = '检验产品' t.quality.transferTime = '转移时间' t.quality.inspectionType = '检验类型' t.quality.measuringTools = '量具' +t.quality.sampleRangeLow = '取样范围低' +t.quality.sampleRangeHigh = '取样范围高' +t.quality.inspectionLevel = '检验水平' +t.quality.sampleSizeCode = '样本量字码' +t.quality.sampleSize = '样本量' + + + diff --git a/src/mixins/basic-search.js b/src/mixins/basic-search.js index 4ea93b8..8cde398 100644 --- a/src/mixins/basic-search.js +++ b/src/mixins/basic-search.js @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2022-08-24 11:19:43 * @LastEditors: zhp - * @LastEditTime: 2023-02-24 16:16:54 + * @LastEditTime: 2023-07-10 14:35:06 * @Description: */ export default { @@ -72,7 +72,7 @@ export default { }); }, handleSearchReset() { - this.$refs.addOrUpdate.formClear(); + this.$refs.searchOrUpdate.formClear(); }, cancel(id) { this.$refs["popover-" + id].showPopper = false; diff --git a/src/views/modules/basic/components/control-add.vue b/src/views/modules/basic/components/control-add.vue index 50d2482..37f542e 100644 --- a/src/views/modules/basic/components/control-add.vue +++ b/src/views/modules/basic/components/control-add.vue @@ -1,7 +1,7 @@ @@ -13,8 +13,8 @@ - - + + @@ -38,6 +38,9 @@ + + + @@ -71,7 +74,8 @@ export default { incomingInspection: null, outInspection: null, processInspection: null, - specification:null + specifications: null, + remark:null }, }; }, diff --git a/src/views/modules/basic/components/failureTypeSearch.vue b/src/views/modules/basic/components/failureTypeSearch.vue index 2113ead..75376e7 100644 --- a/src/views/modules/basic/components/failureTypeSearch.vue +++ b/src/views/modules/basic/components/failureTypeSearch.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2023-01-04 10:29:40 * @LastEditors: zhp - * @LastEditTime: 2023-02-16 15:46:10 + * @LastEditTime: 2023-07-10 15:41:53 * @Description: --> @@ -163,8 +163,8 @@ export default { }, { type: "button", - btnName: "导出", - name: i18n.t('export'), + btnName: i18n.t('export'), + name: 'export', color: "primary", // plain: true, }, @@ -256,37 +256,36 @@ export default { // console.log(11111); // this.conditionSearchSubmit(); }, - exportHandle() { - this.$http.get(this.urlOptions.exportURL, { responseType: 'blob' }, { - ...this.dataForm - }).then((res) => { - console.log(res) - // if (res !== 0) { - // return this.$message.error(res.msg) - // } - let fileName = '' - const contentDisposition = res.headers['content-disposition'] - if (contentDisposition) { - const temp = res.headers['content-disposition'] - .split(';')[1] - .split('=')[1] - // 对文件名乱码转义--【Node.js】使用iconv-lite解决中文乱码 - fileName = decodeURI(temp) - console.log(temp) - } - const blob = new Blob([res.data]) - const reader = new FileReader() - reader.readAsDataURL(blob) - reader.onload = (e) => { - const a = document.createElement('a') - a.download = fileName - a.href = e.target.result - document.body.appendChild(a) - a.click() - document.body.removeChild(a) - } - }).catch(() => { }) - }, + // exportHandle() { + // console.log(1111) + // this.$http.get(this.urlOptions.exportURL, { responseType: 'blob' }).then((res) => { + // console.log(res) + // // if (res !== 0) { + // // return this.$message.error(res.msg) + // // } + // let fileName = '' + // const contentDisposition = res.headers['content-disposition'] + // if (contentDisposition) { + // const temp = res.headers['content-disposition'] + // .split(';')[1] + // .split('=')[1] + // // 对文件名乱码转义--【Node.js】使用iconv-lite解决中文乱码 + // fileName = decodeURI(temp) + // console.log(temp) + // } + // const blob = new Blob([res.data]) + // const reader = new FileReader() + // reader.readAsDataURL(blob) + // reader.onload = (e) => { + // const a = document.createElement('a') + // a.download = fileName + // a.href = e.target.result + // document.body.appendChild(a) + // a.click() + // document.body.removeChild(a) + // } + // }).catch(() => { }) + // }, handleClick(val) { console.log(val); if (val.type === "delete") { @@ -368,7 +367,7 @@ export default { this.getDataList(); break; case "export": - this.exportHandle(); + this.exportHandle() break; case "add": this.addOrEditTitle = "新增"; @@ -390,7 +389,6 @@ export default { // this.$refs.palletTable1.setCurrent("palletTable", -1); // break; default: - console.log(val); } }, }, diff --git a/src/views/modules/quality/components/InspectionPosition-add.vue b/src/views/modules/quality/components/InspectionPosition-add.vue index f7324eb..eeeee53 100644 --- a/src/views/modules/quality/components/InspectionPosition-add.vue +++ b/src/views/modules/quality/components/InspectionPosition-add.vue @@ -1,12 +1,13 @@