diff --git a/src/views/qms/basicDataManage/inspectionPlan/addForm.vue b/src/views/qms/basicDataManage/inspectionPlan/addForm.vue index 1d59048e2..2523ea79f 100644 --- a/src/views/qms/basicDataManage/inspectionPlan/addForm.vue +++ b/src/views/qms/basicDataManage/inspectionPlan/addForm.vue @@ -1,4 +1,5 @@ + -./inspectionPlan.data \ No newline at end of file + \ No newline at end of file diff --git a/src/views/qms/basicDataManage/inspectionPlan/inspectionPlan.data.ts b/src/views/qms/basicDataManage/inspectionPlan/inspectionPlan.data.ts index 62e6c9f7c..ae54b1875 100644 --- a/src/views/qms/basicDataManage/inspectionPlan/inspectionPlan.data.ts +++ b/src/views/qms/basicDataManage/inspectionPlan/inspectionPlan.data.ts @@ -68,7 +68,7 @@ export const InspectionTemplateRules = reactive({ { required: true, message: '请输入选择集编码', trigger: 'blur' } ], }) -export const InspectionTemplateMain = useCrudSchemas(reactive([ +export const InspectionPlanMain = useCrudSchemas(reactive([ { label: '编码', field: 'code', @@ -81,207 +81,68 @@ export const InspectionTemplateMain = useCrudSchemas(reactive([ } }, { - label: '描述', - field: 'description', + label: '物料编码', + field: 'itemCode', sort: 'custom', },{ label: '版本', field: 'version', sort: 'custom', - }, - { - label: '操作', - field: 'action', - isForm: false, - table: { - width: 150, - fixed: 'right' - } - } -])) -export const InspectionTemplateProcess = useCrudSchemas(reactive([ - { - label: '编码', - field: 'code', - sort: 'custom', - form:{ - componentProps:{ - disabled:true, - placeholder:'系统自动获取' - } - } - }, - { - label: '描述', - field: 'description', - sort: 'custom', - isForm:false - },{ - label: '检验方案模板编码', - field: 'inspectionCode', - sort: 'custom', - },{ - label: '顺序号', - field: 'sequenceCode', - },{ - label: '检验特性编码', - field: 'inspectionCharCode', - sort: 'custom', - } -])) -export const InspectionTemplateFeatures= useCrudSchemas(reactive([ - { - label: '编码', - field: 'code', - sort: 'custom', - form:{ - componentProps:{ - disabled:true, - placeholder:'系统自动获取' - } - } - }, - { - label: '描述', - field: 'describe', - sort: 'custom', - },{ - label: '检验方法编码', - field: 'inspectionMethodCode', - sort: 'custom', },{ - label: '采样过程编码', - field: 'dynamicUpdateCode', + label: '检验类型编码', + field: 'testTypeCode', sort: 'custom', },{ - label: '动态修改规则编码', - field: 'inspectionMethod', - sort: 'custom', - },{ - label: '是否允许修改特征值', - field: 'isCanUpdate', - sort: 'custom', - - form:{ - component:'Select', - api: () => [{ - value:0, - label:'是' - },{ - value:1, - label:'否' - }], - componentProps:{ - optionsAlias: { - labelField: 'label', - valueField: 'value' - } - } - } - },{ - label: '是否破坏性检验', - field: 'isDestructionInspection', + label: '检验模板编码', + field: 'programmeTemplateCode', sort: 'custom', - form:{ - component:'Select', - api: () => [{ - value:0, - label:'是' - },{ - value:1, - label:'否' - }], - componentProps:{ - optionsAlias: { - labelField: 'label', - valueField: 'value' - } - } - } },{ - label: '结果录入方式', - field: 'resultEntryMethod', + label: '拆分规则', + field: 'splitRule', sort: 'custom', - dictType: DICT_TYPE.INSPECTION_CHARACTERISTICS_RESULT_ENTRY, - dictClass: 'string', + dictType: DICT_TYPE.SPLIT_RULES, + dictClass: 'string', // 默认都是字符串类型其他暂不考虑 table: { width: 150 - }, + }, },{ - label: '特征类型', - field: 'featureType', + label: 'aql', + field: 'aql', sort: 'custom', - dictType: DICT_TYPE.INSPECTION_CHARACTERISTICS_FEATURE_TYPE, + dictType: DICT_TYPE.BASIC_AQL, dictClass: 'string', table: { width: 150 - }, - },{ - label: '是否设定上限', - field: 'quantifyIsCapping', - sort: 'custom', - form:{ - component:'Select', - api: () => [{ - value:0, - label:'是' - },{ - value:1, - label:'否' - }], - componentProps:{ - optionsAlias: { - labelField: 'label', - valueField: 'value' - } - } } },{ - label: '是否设定下限', - field: 'quantifyIsLowlimit', - sort: 'custom', - form:{ - component:'Select', - api: () => [{ - value:0, - label:'是' - },{ - value:1, - label:'否' - }], - componentProps:{ - optionsAlias: { - labelField: 'label', - valueField: 'value' - } - } - } - },{ - label: '目标值', - field: 'quantifyTarget', - sort: 'custom', - },{ - label: '上限值', - field: 'quantifyCapping', - sort: 'custom', - },{ - label: '下限值', - field: 'quantifyLowlimit', + label: '检验水平', + field: 'inspectionLevel', sort: 'custom', + dictType: DICT_TYPE.INSPECTION_LEVEL, + dictClass: 'string', + table: { + width: 150 + }, },{ - label: '计量单位', - field: 'quantifyUom', + label: '生效时间', + field: 'effectiveDate', sort: 'custom', },{ - label: '小数位', - field: 'quantifyDecimal', + label: '失效时间', + field: 'expirationDate', sort: 'custom', },{ - label: '选择集编码', - field: 'quantifyQuantifyCode', + label: '是否可用', + field: 'available', sort: 'custom', - form:{ - component:'Select' + }, + { + label: '操作', + field: 'action', + isForm: false, + table: { + width: 150, + fixed: 'right' } } -])) \ No newline at end of file +])) diff --git a/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue b/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue index c12a9fa81..7209b0225 100644 --- a/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue +++ b/src/views/qms/basicDataManage/inspectionTemplate/addForm.vue @@ -8,8 +8,8 @@ >
- - + + @@ -226,17 +226,7 @@ label="是否允许修改特征值" prop="inspectionCharacteristicsBaseVO.isCanUpdate" > - - - + @@ -286,18 +276,7 @@ > - + @@ -316,18 +295,7 @@ v-if="item.inspectionCharacteristicsBaseVO.featureType == 0" > - + @@ -346,18 +314,7 @@ v-if="item.inspectionCharacteristicsBaseVO.featureType == 0" > - + @@ -516,16 +473,7 @@ const data = ref({ version: '', process: [] }) -const isYesList = [ - { - value: true, - label: '是' - }, - { - value: false, - label: '否' - } -] + const dialogVisibleName = ref(false) const nameForm = ref({ name: ''