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 = {}
setV[formField] = val[0][searchField]
if (formField == 'modelShow') {
setV['modelShow'] = val.map(item=>item.model).join(',')
if (formField == 'model') {
setV['model'] = val.map(item=>item.model).join(',')
}
if (formField == 'supplierCode') {
@ -182,7 +182,7 @@ const submitForm = async (formType, submitData) => {
if (data.masterId) {
data.id = data.masterId
}
data.model =data.modelShow[0]
// data.model =data.modelShow[0]
// data.model =data.modelShow.join(',')
data.yearAndMonth =data.yearAndMonthShow.join(',')
data.subList = tableData.value //
@ -327,23 +327,25 @@ const openForm = async (type: string, row?: any) => {
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
if (item.field == 'modelShow') {
if (item.field == 'model') {
item.componentProps.disabled = true
item.componentProps.isSearchList = false
}
if (item.field == 'yearAndMonthShow') {
item.componentProps.disabled = true
}
})
row.yearAndMonthShow =row.yearAndMonth.split(',')
row.modelShow =row.model.split(',')
// row.modelShow =row.model.split(',')
} else {
ModelDeliTime.allSchemas.formSchema.forEach((item) => {
if (item.field == 'supplierCode') {
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
if (item.field == 'modelShow') {
if (item.field == 'model') {
item.componentProps.disabled = false
item.componentProps.isSearchList = true
}
if (item.field == 'yearAndMonthShow') {
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: '受入号',
field: 'modelShow',
field: 'model',
sort: 'custom',
isSearch: true,
isTable: false,
isDetail: false,
isTable: true,
isDetail: true,
// form: {
// component: 'Select',
// componentProps: {
@ -156,14 +156,14 @@ export const ModelDeliTime = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '受入号',
field: 'model',
sort: 'custom',
isTable: true,
isDetail: true,
isForm: false,
},
// {
// label: '受入号',
// field: 'model',
// sort: 'custom',
// isTable: true,
// isDetail: true,
// isForm: false,
// },
{
label: '年月',
field: 'yearAndMonthShow',

Loading…
Cancel
Save