diff --git a/public/index.html b/public/index.html index 01f0c36..e99bd01 100644 --- a/public/index.html +++ b/public/index.html @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2022-08-22 14:57:50 * @LastEditors: zhp - * @LastEditTime: 2023-07-11 10:23:31 + * @LastEditTime: 2023-07-17 10:36:32 * @Description: --> diff --git a/src/filters/incoming/index.js b/src/filters/incoming/index.js new file mode 100644 index 0000000..2ca7694 --- /dev/null +++ b/src/filters/incoming/index.js @@ -0,0 +1,29 @@ +/* + * @Date: 2020-12-29 16:49:28 + * @LastEditors: zhp + * @LastEditTime: 2023-07-17 09:36:52 + * @FilePath: \basic-admin\src\filters\DataDict\index.js + * @Description: 部分常量的数据字典定义 + */ +import i18n from "@/i18n" +const table = { + upload: { + 0: '未上传', + 1:' 已上传', + }, + VerifyType: { + 0: i18n.t('gage.insideVerify'), + 1: i18n.t('gage.outsideVerify') + }, + judgmentResult: { + 0: '未判定 ', + 1: '合格', + 2: '不合格' + }, +} + +export default function (dictTable) { + return function (val) { + return table?.[dictTable]?.[val] + } +} diff --git a/src/filters/index.js b/src/filters/index.js index e507410..3f29663 100644 --- a/src/filters/index.js +++ b/src/filters/index.js @@ -1,7 +1,7 @@ /* * @Date: 2020-12-14 09:07:03 * @LastEditors: zhp - * @LastEditTime: 2023-04-18 15:14:26 + * @LastEditTime: 2023-07-17 14:34:42 * @FilePath: \basic-admin\src\filters\index.js * @Description: 过滤器定义、多语言过滤器修改 */ @@ -146,6 +146,22 @@ export function handleLimit(string) { } } +export function handleProductType(Array) { + let arr = [] + Array.forEach(ele => { + arr.push(ele.productTypeName) + }) + return arr.join(',') +} + +export function handleProcess(Array) { + let arr = [] + Array.forEach(ele => { + arr.push(ele.processName) + }) + return arr.join(',') +} + export function getSimpleText(html) { var re1 = new RegExp('<.+?>', 'g') var msg = html.replace(re1, '') diff --git a/src/i18n/zh-CN.js b/src/i18n/zh-CN.js index c5d1e03..c6a0112 100644 --- a/src/i18n/zh-CN.js +++ b/src/i18n/zh-CN.js @@ -43,6 +43,9 @@ t.notAvailable = '不可用' t.time = '时间段' t.parameter = '台差参数' t.configuration = '配置' +t.uploadFile = '上传' +t.detail = '查看详情' + @@ -694,6 +697,9 @@ t.researchquality.stageTwoDate = '阶段2时间' t.researchquality.stageThreeDate = '阶段3时间' t.researchquality.stageFourDate = '阶段4时间' t.researchquality.approvedMemo = '审核记录' +t.researchquality.phase = '阶段' +t.researchquality.realTime = '实际完成时间' + @@ -718,6 +724,7 @@ t.customerquality.qualityAcceptanceDate = '质量接收日期' t.customerquality.confirmDeliveryDate = '确认交付日期' t.customerquality.deliveryRequiredDate = '要求交付日期' t.customerquality.status = '状态' +t.customerquality.file = '清单文件' diff --git a/src/views/modules/code/components/deliveryInspection-add.vue b/src/views/modules/code/components/deliveryInspection-add.vue index 97279a4..bdcdedc 100644 --- a/src/views/modules/code/components/deliveryInspection-add.vue +++ b/src/views/modules/code/components/deliveryInspection-add.vue @@ -1,8 +1,8 @@