柜体附件|工单

main
mhsnet 7 months ago
parent 3d9b5e311f
commit 491d2f572a

@ -28,3 +28,11 @@ export const getBaseCompositionList = async () => {
return res.Data 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> -->
<vxe-form-item title="供应商工单编号" field="SupplierWorkNo" span="12"> <vxe-form-item title="供应商工单编号" field="SupplierWorkNo" span="12">
<template #default="params"> <template #default="params">
<vxe-input v-model="params.data.SupplierWorkNo" placeholder="请输入供应商工单编号" clearable <vxe-select v-model="params.data.SupplierWorkNo" clearable filterable>
@change="fnChangeA(params)"></vxe-input> <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> </template>
</vxe-form-item> </vxe-form-item>
<!-- <vxe-form-item title="国网侧供应商编码" field="SupplierCode" span="12"> <!-- <vxe-form-item title="国网侧供应商编码" field="SupplierCode" span="12">
@ -280,6 +285,7 @@ const dictStore = useDictStore()
const { dictProcessType } = storeToRefs(dictStore) const { dictProcessType } = storeToRefs(dictStore)
const dictBaseSupplierList: any = ref([]) const dictBaseSupplierList: any = ref([])
const dictBaseCompositionList: any = ref([]) const dictBaseCompositionList: any = ref([])
const dictEipSupplierWoSimpList: any = ref([])
// [success] // [success]
const emit = defineEmits(['success']) const emit = defineEmits(['success'])
// //
@ -413,6 +419,7 @@ const open = async (type: string, row?: any) => {
formType.value = type formType.value = type
dictBaseSupplierList.value = await comApi.getBaseSupplierList() dictBaseSupplierList.value = await comApi.getBaseSupplierList()
dictBaseCompositionList.value = await comApi.getBaseCompositionList() dictBaseCompositionList.value = await comApi.getBaseCompositionList()
dictEipSupplierWoSimpList.value = await comApi.getEipSupplierWoSimpList()
await fnResetA() await fnResetA()
switch (type) { switch (type) {
case 'add': 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.PutCenterTime = dayjs().format("YYYY-MM-DD HH:mm:ss")
rowInfoB.Data.Sended = 0 rowInfoB.Data.Sended = 0
formDataA.value = rowInfoB.Data 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() formDataA.value.SerialNo = await comApi.getSystemSerialNo()
break; break;
case 'delete': case 'delete':
@ -567,6 +588,7 @@ const fnSubmitA = async () => {
data: formDataA.value data: formDataA.value
} }
await BoxMateQualityApi.saveBoxMateQuality(paramsC) await BoxMateQualityApi.saveBoxMateQuality(paramsC)
await fnSubmitB()
VXETable.modal.message({ content: '复制成功', status: 'success' }) VXETable.modal.message({ content: '复制成功', status: 'success' })
break; break;
} }

Loading…
Cancel
Save