Browse Source

修改报废出库中的q1 q2 q3通知单属性 HL-5263

hella_online_20240819
parent
commit
aa93376b22
  1. 29
      src/views/wms/inventoryjobManage/scrap/scrapJobMain/scrapJobMain.data.ts
  2. 27
      src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts
  3. 69
      src/views/wms/inventoryjobManage/scrap/scrapRequestMain/index.vue

29
src/views/wms/inventoryjobManage/scrap/scrapJobMain/scrapJobMain.data.ts

@ -26,6 +26,33 @@ export const ScrapJobMain = useCrudSchemas(
}, },
isSearch: true isSearch: true
}, },
{
label: 'Q1通知单号',
field: 'q1Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
{
label: 'Q2通知单号',
field: 'q2Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
{
label: 'Q3通知单号',
field: 'q3Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
{ {
label: '状态', label: '状态',
field: 'status', field: 'status',
@ -465,7 +492,7 @@ export const ScrapJobMain = useCrudSchemas(
type: 'daterange', type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')] defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
} }
}, }
}, },
{ {
label: '创建者', label: '创建者',

27
src/views/wms/inventoryjobManage/scrap/scrapRecordMain/scrapRecordMain.data.ts

@ -35,6 +35,33 @@ export const ScrapRecordMain = useCrudSchemas(
}, },
isSearch: true isSearch: true
}, },
{
label: 'Q1通知单号',
field: 'q1Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
{
label: 'Q2通知单号',
field: 'q2Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
{
label: 'Q3通知单号',
field: 'q3Number',
sort: 'custom',
table: {
width: 180
},
isSearch: false
},
{ {
label: '申请时间', label: '申请时间',
field: 'requestTime', field: 'requestTime',

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

@ -483,14 +483,69 @@ const handleHandle = async (id: number) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const openForm = async (type: string, row?: number) => { const openForm = async (type: string, row?: any) => {
ScrapRequestMain.allSchemas.formSchema.forEach((item) => { if (type == 'create') {
if (item.field == 'q1Number' || item.field == 'q2Number' || item.field == 'q3Number') { ScrapRequestMain.allSchemas.formSchema.forEach((item) => {
item.componentProps.enterSearch = true if (item.field == 'q1Number' || item.field == 'q2Number' || item.field == 'q3Number') {
item.componentProps.isSearchList = true item.componentProps.enterSearch = true
item.componentProps.disabled = false item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
})
} else {
if (row.q1Number) {
ScrapRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'q1Number') {
item.componentProps.enterSearch = true
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
if (item.field == 'q2Number' || item.field == 'q3Number') {
item.componentProps.enterSearch = false
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
})
} }
}) if (row.q2Number) {
ScrapRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'q2Number') {
item.componentProps.enterSearch = true
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
if (item.field == 'q1Number' || item.field == 'q3Number') {
item.componentProps.enterSearch = false
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
})
}
if (row.q3Number) {
ScrapRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'q3Number') {
item.componentProps.enterSearch = true
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
if (item.field == 'q1Number' || item.field == 'q2Number') {
item.componentProps.enterSearch = false
item.componentProps.isSearchList = false
item.componentProps.disabled = true
}
})
}
if (!row.q3Number && !row.q2Number && !row.q1Number) {
ScrapRequestMain.allSchemas.formSchema.forEach((item) => {
if (item.field == 'q1Number' || item.field == 'q2Number' || item.field == 'q3Number') {
item.componentProps.enterSearch = true
item.componentProps.isSearchList = true
item.componentProps.disabled = false
}
})
}
}
tableData.value = [] // tableData.value = [] //
formRef.value.open(type, row) formRef.value.open(type, row)
} }

Loading…
Cancel
Save