Browse Source

HL-6187报废出库,09/27会议讨论决定,详见备注

hella_online_20241017
王宇飞 4 months ago
parent
commit
c961427a25
  1. 22
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue
  2. 57
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts

22
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

@ -735,17 +735,17 @@ const searchFormClick = (searchData) => {
getList() // getList() //
} }
const onBlur = (field, e) => { // const onBlur = (field, e) => {
if (field == 'reason') { // if (field == 'reason') {
detailRef.value.formRef.formRef.formModel[field] = e.target.value // detailRef.value.formRef.formRef.formModel[field] = e.target.value
} // }
} // }
const tableFormSelectOnBlur = (field, val, row, index) => { // const tableFormSelectOnBlur = (field, val, row, index) => {
if (field == 'reason') { // if (field == 'reason') {
tableData.value[index][field] = val.target.value // tableData.value[index][field] = val.target.value
} // }
} // }
const inputNumberChange = (field, index, row, val) => { const inputNumberChange = (field, index, row, val) => {
if (field == 'qty' || field == 'singlePrice') { if (field == 'qty' || field == 'singlePrice') {

57
src/views/wms/inventoryjobManage/scrap/scrapRequestMain/scrapRequestMain.data.ts

@ -300,24 +300,24 @@ export const ScrapRequestMain = useCrudSchemas(
width: 150 width: 150
}, },
}, },
{ // {
label: '出库原因', // label: '出库原因',
field: 'outboundReason', // field: 'outboundReason',
dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON, // dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON,
dictClass: 'string', // dictClass: 'string',
table: { // table: {
width: 150 // width: 150
}, // },
form: { // form: {
componentProps: { // componentProps: {
filterable: true // filterable: true
} // }
}, // },
tableForm: { // tableForm: {
type: 'Select', // type: 'Select',
filterable: true // filterable: true
} // }
}, // },
{ {
label: 'Q1通知单号', label: 'Q1通知单号',
field: 'q1Number', field: 'q1Number',
@ -1159,7 +1159,26 @@ export const ScrapRequestDetail = useCrudSchemas(reactive<CrudSchema[]>([
}, },
{ {
label: '报废原因', 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: { table: {
width: 150 width: 150
}, },

Loading…
Cancel
Save