柜体附件|工单

main
mhsnet 7 months ago
parent 3d9b5e311f
commit 491d2f572a

@ -28,3 +28,11 @@ export const getBaseCompositionList = async () => {
return res.Data
})
}
// 获取材质列表
export const getEipSupplierWoSimpList = async () => {
return await request
.post({ url: `/DistributionBoxTesting/GetEipSupplierWoSimpList`, data: { filter: {} } })
.then((res) => {
return res
})
}

@ -26,8 +26,13 @@
</vxe-form-item> -->
<vxe-form-item title="供应商工单编号" field="SupplierWorkNo" span="12">
<template #default="params">
<vxe-input v-model="params.data.SupplierWorkNo" placeholder="请输入供应商工单编号" clearable
@change="fnChangeA(params)"></vxe-input>
<vxe-select v-model="params.data.SupplierWorkNo" clearable filterable>
<template v-for="item in dictEipSupplierWoSimpList">
<vxe-option :value="item.WoNo" :label="item.WoNo"></vxe-option>
</template>
</vxe-select>
<!-- <vxe-input v-model="params.data.SupplierWorkNo" placeholder="请输入供应商工单编号" clearable
@change="fnChangeA(params)"></vxe-input> -->
</template>
</vxe-form-item>
<!-- <vxe-form-item title="国网侧供应商编码" field="SupplierCode" span="12">
@ -280,6 +285,7 @@ const dictStore = useDictStore()
const { dictProcessType } = storeToRefs(dictStore)
const dictBaseSupplierList: any = ref([])
const dictBaseCompositionList: any = ref([])
const dictEipSupplierWoSimpList: any = ref([])
// [success]
const emit = defineEmits(['success'])
//
@ -413,6 +419,7 @@ const open = async (type: string, row?: any) => {
formType.value = type
dictBaseSupplierList.value = await comApi.getBaseSupplierList()
dictBaseCompositionList.value = await comApi.getBaseCompositionList()
dictEipSupplierWoSimpList.value = await comApi.getEipSupplierWoSimpList()
await fnResetA()
switch (type) {
case 'add':
@ -466,6 +473,20 @@ const open = async (type: string, row?: any) => {
rowInfoB.Data.PutCenterTime = dayjs().format("YYYY-MM-DD HH:mm:ss")
rowInfoB.Data.Sended = 0
formDataA.value = rowInfoB.Data
//
const queryFileParamsA2: any = {
"filter": {
"field": 'SerialNo',
"operator": "Eq",
"value": formDataA.value.SerialNo
}
}
const dataFileRes2 = await FileUploadApi.getPagingFileList(queryFileParamsA2)
if (dataFileRes2.Code == 0 && dataFileRes2.List) {
if (dataFileRes2.List.length > 0) {
formDataB.value = dataFileRes2.List[0]
}
}
formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break;
case 'delete':
@ -567,6 +588,7 @@ const fnSubmitA = async () => {
data: formDataA.value
}
await BoxMateQualityApi.saveBoxMateQuality(paramsC)
await fnSubmitB()
VXETable.modal.message({ content: '复制成功', status: 'success' })
break;
}

Loading…
Cancel
Save