Browse Source

HL-5466报废原因

hella_online_20240821
zhaoxuebing 3 months ago
parent
commit
7c4fcb16fd
  1. 1
      src/utils/dict.ts
  2. 12
      src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts
  3. 15
      src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

1
src/utils/dict.ts

@ -401,4 +401,5 @@ export enum DICT_TYPE {
PUBLISHE_STATUS = 'publishe_status', // 采购收货任务状态 PUBLISHE_STATUS = 'publishe_status', // 采购收货任务状态
PUBLISHE_STATUS_FIRST_INSPECTION = 'publishe_status_first_inspection', // 首件检验记录发布状态 PUBLISHE_STATUS_FIRST_INSPECTION = 'publishe_status_first_inspection', // 首件检验记录发布状态
RETURN_REASON_TYPE = 'return_reason_type', // 采购退货原因类型 RETURN_REASON_TYPE = 'return_reason_type', // 采购退货原因类型
SCRAPPING_REASON = 'scrapping_reason', //制品子件报废原因
} }

12
src/views/wms/productionManage/productscrap/productscrapRecordMain/productscrapRecordMain.data.ts

@ -116,6 +116,18 @@ export const ProductscrapRecordMain = useCrudSchemas(
width: 150 width: 150
} }
}, },
{
label: '报废原因',
field: 'scrappingReason',
dictType: DICT_TYPE.SCRAPPING_REASON,
dictClass: 'string',
isForm: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '任务单号', label: '任务单号',
field: 'jobNumber', field: 'jobNumber',

15
src/views/wms/productionManage/productscrap/productscrapRequestMain/productscrapRequestMain.data.ts

@ -310,6 +310,18 @@ export const ProductscrapRequestMain = useCrudSchemas(
} }
} }
}, },
{
label: '报废原因',
field: 'scrappingReason',
dictType: DICT_TYPE.SCRAPPING_REASON,
dictClass: 'string',
isForm: true,
isTable: true,
sort: 'custom',
table: {
width: 150
},
},
{ {
label: '从仓库代码', label: '从仓库代码',
field: 'fromWarehouseCode', field: 'fromWarehouseCode',
@ -644,6 +656,9 @@ export const ProductscrapRequestMainRules = reactive({
remark: [ remark: [
{ max: 50, message: '不得超过50个字符', trigger: 'blur' } { max: 50, message: '不得超过50个字符', trigger: 'blur' }
], ],
scrappingReason: [
{ required: true, message: '请输入报废原因', trigger: 'blur' }
],
}) })
/** /**

Loading…
Cancel
Save