|
|
|
@ -14,11 +14,11 @@
|
|
|
|
|
<vxe-input v-model="params.data.WoNo" disabled style="width:240px;" placeholder="系统自动生成"></vxe-input>
|
|
|
|
|
</template>
|
|
|
|
|
</vxe-form-item>
|
|
|
|
|
<vxe-form-item title="生产订单编号" field="IpoNo" span="12">
|
|
|
|
|
<vxe-form-item title="采购订单编号" field="PoNo" span="12">
|
|
|
|
|
<template #default="params">
|
|
|
|
|
<!-- <div style="width: 196px;">{{ params.data.IpoNo }}</div> -->
|
|
|
|
|
<vxe-input v-if="formTypeA=='edit'" v-model="params.data.IpoNo" disabled style="width:240px;"></vxe-input>
|
|
|
|
|
<vxe-select v-else="formTypeA=='add'" v-model="params.data.IpoNo" style="width:240px;" clearable
|
|
|
|
|
<vxe-input v-if="formTypeA=='edit'" v-model="params.data.PoNo" disabled style="width:240px;"></vxe-input>
|
|
|
|
|
<vxe-select v-else="formTypeA=='add'" v-model="params.data.PoNo" style="width:240px;" clearable
|
|
|
|
|
filterable @change="fnIpoNoChange" >
|
|
|
|
|
<template v-for="(item) in ipoSimpleList">
|
|
|
|
|
<vxe-option :value="item.key" :label="item.val"></vxe-option>
|
|
|
|
@ -231,6 +231,7 @@ const formDataA: any = ref(
|
|
|
|
|
"SupplierWoId": 0,
|
|
|
|
|
"PurchaserHqCode": "SGCC",
|
|
|
|
|
"IpoNo": "",
|
|
|
|
|
"PoNo": "",
|
|
|
|
|
"SupplierCode": "1000032215",
|
|
|
|
|
"SupplierName": "长江电气集团股份有限公司",
|
|
|
|
|
"WoNo": "",
|
|
|
|
@ -301,11 +302,12 @@ const fnIpoNoChange =async (params: any) => {
|
|
|
|
|
ipoSimpleList.value.forEach(async (item: any) => {
|
|
|
|
|
if (item.key == params.value) {
|
|
|
|
|
baseEntityIds.value = await BaseEntityIDApi.GetPoUnUsedEntityID(item.pono)
|
|
|
|
|
formDataA.value.IpoNo= item.ipono
|
|
|
|
|
formDataA.value.EntityCode= ""
|
|
|
|
|
ipoEntityIds.value = []
|
|
|
|
|
baseEntityIds.value.forEach((item: any) => {
|
|
|
|
|
if (ipoEntityIds.value.indexOf(item.EntityId) == -1)
|
|
|
|
|
ipoEntityIds.value.push({ key: item.EntityId, val: item.EntityId })
|
|
|
|
|
baseEntityIds.value.forEach((record: any) => {
|
|
|
|
|
if (ipoEntityIds.value.indexOf(record.EntityId) == -1)
|
|
|
|
|
ipoEntityIds.value.push({ key: record.EntityId, val: record.EntityId })
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -490,6 +492,7 @@ const fnResetA = () => {
|
|
|
|
|
"SupplierWoId": 0,
|
|
|
|
|
"PurchaserHqCode": "SGCC",
|
|
|
|
|
"IpoNo": "",
|
|
|
|
|
"PoNo": "",
|
|
|
|
|
"SupplierCode": "1000032215",
|
|
|
|
|
"SupplierName": "长江电气集团股份有限公司",
|
|
|
|
|
"WoNo": "",
|
|
|
|
|