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 @@