From 41195e5f11adf1116973819f54e7fa640a9e2839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B7=BB=E7=A0=96-JAVA=5CAdministrator?= <591141169@qq.com> Date: Thu, 15 Aug 2024 21:26:01 +0800 Subject: [PATCH] =?UTF-8?q?Q3=E9=80=9A=E7=9F=A5=E5=8D=95=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionQ3/index.vue | 4 +- .../qms/inspectionQ3/inspectionQ3.data.ts | 156 ++---------------- 2 files changed, 20 insertions(+), 140 deletions(-) diff --git a/src/views/qms/inspectionQ3/index.vue b/src/views/qms/inspectionQ3/index.vue index f84c2ead1..015febed4 100644 --- a/src/views/qms/inspectionQ3/index.vue +++ b/src/views/qms/inspectionQ3/index.vue @@ -340,10 +340,10 @@ const buttonTableClick = async (val, row) => { openForm('update', row) } else if (val == 'delete') { // 删除 - handleDelete(row.id) + handleDelete(row.masterId) } else if (val == 'finish') { // 完成 - handleFinish(row.id) + handleFinish(row.masterId) } } diff --git a/src/views/qms/inspectionQ3/inspectionQ3.data.ts b/src/views/qms/inspectionQ3/inspectionQ3.data.ts index c1c8003f6..325e55fb3 100644 --- a/src/views/qms/inspectionQ3/inspectionQ3.data.ts +++ b/src/views/qms/inspectionQ3/inspectionQ3.data.ts @@ -157,130 +157,6 @@ export const InspectionQ3Main = useCrudSchemas( } } }, - { - label: '物料代码', - field: 'itemCode', - sort: 'custom', - isSearch: true, - isForm: false - }, - { - label: '数量', - field: 'qty', - sort: 'custom', - isSearch: false, - isForm: false - }, - { - label: '计量单位', - field: 'uom', - sort: 'custom', - isSearch: false, - isForm: false - }, - { - label: '单价', - field: 'price', - sort: 'custom', - isSearch: false, - isForm: false - }, - { - label: '金额', - field: 'amount', - sort: 'custom', - isTable: true, - isForm: false, - isSearch: false, - table: { - width: 150 - }, - form: { - component: 'InputNumber', - componentProps: { - min: 0, - precision: 2 - } - } - }, - { - label: '成本中心代码', - field: 'costCode', - sort: 'custom', - isSearch: false, - isTable: true, - isForm: false, - form: { - // labelMessage: '信息提示说明!!!', - componentProps: { - enterSearch: true, - isSearchList: true, // 开启查询弹窗 - searchListPlaceholder: '请选择成本中心', // 输入框占位文本 - searchField: 'costcentreCode', // 查询弹窗赋值字段 - searchTitle: '成本中心信息', // 查询弹窗标题 - searchAllSchemas: QadCostcentre.allSchemas, // 查询弹窗所需类 - searchPage: QadCostcentreApi.getQadCostcentrePage, // 查询弹窗所需分页方法 - searchCondition: [ - { - key: 'available', - value: 'TRUE', - isMainValue: false - } - ], - verificationParams: [ - { - key: 'costcentreCode', - action: '==', - value: '', - isMainValue: false, - isSearch: true, - isFormModel: true - } - ] // 失去焦点校验参数 - } - } - }, - - { - label: '缺陷编码', - field: 'defectCode', - sort: 'custom', - dictType: DICT_TYPE.QMS_Q3_CODE, - dictClass: 'string', - isSearch: false, - isForm: false, - isTable: true, - table: { - width: 180 - }, - tableForm: { - type: 'Select' - } - }, - { - label: '缺陷位置', - field: 'defectLocation', - sort: 'custom', - isSearch: false, - isForm: false - }, - { - label: '缺陷类型', - field: 'defectType', - sort: 'custom', - isSearch: false, - isForm: false, - form: { - component: 'Select' - } - }, - { - label: '问题原因', - field: 'problemReason', - sort: 'custom', - isSearch: false, - isForm: false - }, { label: '描述', field: 'desc', @@ -391,7 +267,7 @@ export const InspectionQ3Detail = useCrudSchemas( label: '物料号', field: 'itemCode', sort: 'custom', - isTable: false, + isTable: true, isDetail: true, isSearch: false, table: { @@ -460,7 +336,7 @@ export const InspectionQ3Detail = useCrudSchemas( field: 'qty', sort: 'custom', isSearch: false, - isTable: false, + isTable: true, tableForm: { type: 'InputNumber', @@ -475,7 +351,7 @@ export const InspectionQ3Detail = useCrudSchemas( dictType: DICT_TYPE.UOM, dictClass: 'string', isSearch: false, - isTable: false, + isTable: true, tableForm: { type: 'Select', disabled: true @@ -490,7 +366,7 @@ export const InspectionQ3Detail = useCrudSchemas( label: '单价', field: 'price', sort: 'custom', - isTable: false, + isTable: true, isSearch: false, tableForm: { disabled: true @@ -506,7 +382,7 @@ export const InspectionQ3Detail = useCrudSchemas( field: 'amount', sort: 'custom', isSearch: false, - isTable: false, + isTable: true, isForm: false, tableForm: { disabled: true @@ -522,7 +398,7 @@ export const InspectionQ3Detail = useCrudSchemas( field: 'costCode', sort: 'custom', isSearch: false, - isTable: false, + isTable: true, isForm: true, tableForm: { isInpuFocusShow: true, @@ -557,7 +433,7 @@ export const InspectionQ3Detail = useCrudSchemas( dictType: DICT_TYPE.QMS_Q3_CODE, dictClass: 'string', isSearch: true, - isTable: false, + isTable: true, tableForm: { type: 'Select' } @@ -568,7 +444,7 @@ export const InspectionQ3Detail = useCrudSchemas( sort: 'custom', dictClass: 'string', isSearch: false, - isTable: false, + isTable: true, form: { component: 'Select', componentProps: { @@ -591,7 +467,7 @@ export const InspectionQ3Detail = useCrudSchemas( field: 'defectType', sort: 'custom', isSearch: false, - isTable: false, + isTable: true, form: { component: 'Select' } @@ -602,7 +478,7 @@ export const InspectionQ3Detail = useCrudSchemas( hiddenInMain: true, sort: 'custom', isSearch: false, - isTable: false, + isTable: true, form: { component: 'Select' } @@ -625,8 +501,12 @@ export const InspectionQ3Detail = useCrudSchemas( //表单校验 export const InspectionQ3DetailRules = reactive({ itemCode: [{ required: true, message: '请选择物料代码', trigger: 'change' }], - packingNumber: [{ required: true, message: '请输入包装号', trigger: 'blur' }], - batch: [{ required: true, message: '请输入批次', trigger: 'blur' }], - inventoryStatus: [{ required: true, message: '请选择库存状态', trigger: 'change' }], - toLocationCode: [{ required: true, message: '请输入到库位代码', trigger: 'blur' }] + qty: [{ required: true, message: '请输入数量', trigger: 'change' }], + price: [{ required: true, message: '请选择单价', trigger: 'change' }], + amount: [{ required: true, message: '请选择金额', trigger: 'change' }], + costCode: [{ required: true, message: '请选择成本中心编码', trigger: 'change' }], + defectLocation: [{ required: true, message: '请选择缺陷位置', trigger: 'change' }], + defectType: [{ required: true, message: '请选择缺陷类型', trigger: 'change' }], + problemReason: [{ required: true, message: '请选择问题原因', trigger: 'change' }], + defectCode: [{ required: true, message: '请选择缺陷编码', trigger: 'change' }] })