diff --git a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue index 8065b3e74..9585b6cb3 100644 --- a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue +++ b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue @@ -735,17 +735,17 @@ const searchFormClick = (searchData) => { getList() // 刷新当前列表 } -const onBlur = (field, e) => { - if (field == 'reason') { - detailRef.value.formRef.formRef.formModel[field] = e.target.value - } -} - -const tableFormSelectOnBlur = (field, val, row, index) => { - if (field == 'reason') { - tableData.value[index][field] = val.target.value - } -} +// const onBlur = (field, e) => { +// if (field == 'reason') { +// detailRef.value.formRef.formRef.formModel[field] = e.target.value +// } +// } + +// const tableFormSelectOnBlur = (field, val, row, index) => { +// if (field == 'reason') { +// tableData.value[index][field] = val.target.value +// } +// } const inputNumberChange = (field, index, row, val) => { if (field == 'qty' || field == 'singlePrice') { diff --git a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts index dbb4ae1da..22a3bb06b 100644 --- a/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts +++ b/src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts @@ -300,24 +300,24 @@ export const ScrapRequestMain = useCrudSchemas( width: 150 }, }, - { - label: '出库原因', - field: 'outboundReason', - dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON, - dictClass: 'string', - table: { - width: 150 - }, - form: { - componentProps: { - filterable: true - } - }, - tableForm: { - type: 'Select', - filterable: true - } - }, + // { + // label: '出库原因', + // field: 'outboundReason', + // dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON, + // dictClass: 'string', + // table: { + // width: 150 + // }, + // form: { + // componentProps: { + // filterable: true + // } + // }, + // tableForm: { + // type: 'Select', + // filterable: true + // } + // }, { label: 'Q1通知单号', field: 'q1Number', @@ -1159,7 +1159,26 @@ export const ScrapRequestDetail = useCrudSchemas(reactive([ }, { label: '报废原因', - field: 'reason', + field: 'scrap_reason', + dictType: DICT_TYPE.SCRAPPING_REASON, + dictClass: 'string', + isForm: true, + isTable: true, + sort: 'custom', + table: { + width: 150 + }, + tableForm: { + type: 'Select', + filterable:true + }, + }, + { + label: '备注', + field: 'remark', + isForm: true, + isTable: true, + sort: 'custom', table: { width: 150 },