Browse Source

增加原因字段

master_hella_20240701
zhaoxuebing 9 months ago
parent
commit
19c1632084
  1. 15
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/unplannedissueJobMain.data.ts
  2. 15
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/unplannedissueRecordMain.data.ts
  3. 14
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue
  4. 13
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts

15
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/unplannedissueJobMain.data.ts

@ -1,5 +1,6 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import { TableColumn } from '@/types/table'
/** /**
* @returns {Array} * @returns {Array}
@ -669,11 +670,21 @@ export const UnplannedissueJobDetail = useCrudSchemas(reactive<CrudSchema[]>([
field: 'reason', field: 'reason',
dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON, dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON,
dictClass: 'string', dictClass: 'string',
isTable: true, formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
sort: 'custom', return cellValue
},
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
filterable: true
}
},
tableForm: {
type: 'Select',
filterable: true
}
}, },
{ {
label: '货主代码', label: '货主代码',

15
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRecordMain/unplannedissueRecordMain.data.ts

@ -1,5 +1,6 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter,dateFormatter2 } from '@/utils/formatTime' import { dateFormatter,dateFormatter2 } from '@/utils/formatTime'
import { TableColumn } from '@/types/table'
/** /**
* @returns {Array} * @returns {Array}
@ -443,11 +444,21 @@ export const UnplannedissueRecordDetail = useCrudSchemas(reactive<CrudSchema[]>(
field: 'reason', field: 'reason',
dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON, dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON,
dictClass: 'string', dictClass: 'string',
isTable: true, formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
sort: 'custom', return cellValue
},
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
filterable: true
}
},
tableForm: {
type: 'Select',
filterable: true
}
}, },
{ {
label: '货主代码', label: '货主代码',

14
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/index.vue

@ -54,6 +54,7 @@
@handleDeleteTable="handleDeleteTable" @handleDeleteTable="handleDeleteTable"
@searchTableSuccess="searchTableSuccess" @searchTableSuccess="searchTableSuccess"
@submitForm="submitForm" @submitForm="submitForm"
@tableFormSelectOnBlur="tableFormSelectOnBlur"
/> />
<!-- 详情 --> <!-- 详情 -->
@ -70,6 +71,7 @@
:Echo="Echo" :Echo="Echo"
@searchTableSuccessDetail="searchTableSuccessDetail" @searchTableSuccessDetail="searchTableSuccessDetail"
:detailValidate="detailValidate" :detailValidate="detailValidate"
@onBlur="onBlur"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -400,6 +402,18 @@ const submitForm = async (formType, data) => {
} }
} }
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 detailValidate = (data) => { const detailValidate = (data) => {
let tag = false; let tag = false;

13
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueRequestMain/unplannedissueRequestMain.data.ts

@ -515,13 +515,20 @@ export const UnplannedissueRequestDetail = useCrudSchemas(reactive<CrudSchema[]>
field: 'reason', field: 'reason',
dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON, dictType: DICT_TYPE.UNPLANNED_ISSUE_REASON,
dictClass: 'string', dictClass: 'string',
isTable: true, formatter: (_: Recordable, __: TableColumn, cellValue: number) => {
sort: 'custom', return cellValue
},
table: { table: {
width: 150 width: 150
}, },
form: {
componentProps: {
filterable: true
}
},
tableForm: { tableForm: {
type: 'Select' type: 'Select',
filterable: true
} }
}, },
{ {

Loading…
Cancel
Save