Browse Source

YT-2288受入号便次时间配置,受入号显示不全

intex_online20250327
张立 1 week ago
parent
commit
c0185a3ce7
  1. 14
      src/views/wms/basicDataManage/supplierManage/modelDeliTime/index.vue
  2. 22
      src/views/wms/basicDataManage/supplierManage/modelDeliTime/modelDeliTime.data.ts

14
src/views/wms/basicDataManage/supplierManage/modelDeliTime/index.vue

@ -148,8 +148,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
} }
const setV = {} const setV = {}
setV[formField] = val[0][searchField] setV[formField] = val[0][searchField]
if (formField == 'modelShow') { if (formField == 'model') {
setV['modelShow'] = val.map(item=>item.model).join(',') setV['model'] = val.map(item=>item.model).join(',')
} }
if (formField == 'supplierCode') { if (formField == 'supplierCode') {
@ -182,7 +182,7 @@ const submitForm = async (formType, submitData) => {
if (data.masterId) { if (data.masterId) {
data.id = data.masterId data.id = data.masterId
} }
data.model =data.modelShow[0] // data.model =data.modelShow[0]
// data.model =data.modelShow.join(',') // data.model =data.modelShow.join(',')
data.yearAndMonth =data.yearAndMonthShow.join(',') data.yearAndMonth =data.yearAndMonthShow.join(',')
data.subList = tableData.value // data.subList = tableData.value //
@ -327,23 +327,25 @@ const openForm = async (type: string, row?: any) => {
item.componentProps.isSearchList = false item.componentProps.isSearchList = false
item.componentProps.disabled = true item.componentProps.disabled = true
} }
if (item.field == 'modelShow') { if (item.field == 'model') {
item.componentProps.disabled = true item.componentProps.disabled = true
item.componentProps.isSearchList = false
} }
if (item.field == 'yearAndMonthShow') { if (item.field == 'yearAndMonthShow') {
item.componentProps.disabled = true item.componentProps.disabled = true
} }
}) })
row.yearAndMonthShow =row.yearAndMonth.split(',') row.yearAndMonthShow =row.yearAndMonth.split(',')
row.modelShow =row.model.split(',') // row.modelShow =row.model.split(',')
} else { } else {
ModelDeliTime.allSchemas.formSchema.forEach((item) => { ModelDeliTime.allSchemas.formSchema.forEach((item) => {
if (item.field == 'supplierCode') { if (item.field == 'supplierCode') {
item.componentProps.isSearchList = true item.componentProps.isSearchList = true
item.componentProps.disabled = false item.componentProps.disabled = false
} }
if (item.field == 'modelShow') { if (item.field == 'model') {
item.componentProps.disabled = false item.componentProps.disabled = false
item.componentProps.isSearchList = true
} }
if (item.field == 'yearAndMonthShow') { if (item.field == 'yearAndMonthShow') {
item.componentProps.disabled = false item.componentProps.disabled = false

22
src/views/wms/basicDataManage/supplierManage/modelDeliTime/modelDeliTime.data.ts

@ -106,11 +106,11 @@ export const ModelDeliTime = useCrudSchemas(reactive<CrudSchema[]>([
// }, // },
{ {
label: '受入号', label: '受入号',
field: 'modelShow', field: 'model',
sort: 'custom', sort: 'custom',
isSearch: true, isSearch: true,
isTable: false, isTable: true,
isDetail: false, isDetail: true,
// form: { // form: {
// component: 'Select', // component: 'Select',
// componentProps: { // componentProps: {
@ -156,14 +156,14 @@ export const ModelDeliTime = useCrudSchemas(reactive<CrudSchema[]>([
} }
} }
}, },
{ // {
label: '受入号', // label: '受入号',
field: 'model', // field: 'model',
sort: 'custom', // sort: 'custom',
isTable: true, // isTable: true,
isDetail: true, // isDetail: true,
isForm: false, // isForm: false,
}, // },
{ {
label: '年月', label: '年月',
field: 'yearAndMonthShow', field: 'yearAndMonthShow',

Loading…
Cancel
Save