成品入库验证

main
siontion 5 months ago
parent 350e2c0cb2
commit 0d0c420082

@ -1,5 +1,11 @@
import request from '@/config/axios'
import { useUserStore } from '../../../stores/user'
// 成品入库前完整数据验证
export const getFinishedProductCount = async (data: any) => {
return await request.post({ url: `/DistributionBoxTesting/GetFinishedProductCount?wono=`+data })
}
// 成品入库列表获取
export const getFinishedProductWarehousingPaging = async (data: any) => {
return await request.post({ url: `/DistributionBoxTesting/GetFinishedProductWarehousingPaging?user=`+useUserStore().UserName, data })

@ -69,7 +69,7 @@ const gridOptionsA: any = reactive({
// { field: 'SgEntityId', title: 'Id', width: '110px' },
// { field: 'DataUniqueIdentifier', title: '', width: '250px' },
// { field: 'ModelSpecification', title: '', width: '160px' },
{ field: 'PressureValue', title: '额定电压(kV)', width: '120px' },
{ field: 'PressureValue', title: '额定电压(V)', width: '120px' },
{ title: '操作', width: '250px', fixed: 'right', slots: { default: 'operate' } }
],
pagerConfig: {

@ -169,7 +169,7 @@
@change="fnChangeA(params)"></vxe-input>
</template>
</vxe-form-item>
<vxe-form-item title="额定电压(kV)" field="PressureValue" span="12">
<vxe-form-item title="额定电压(V)" field="PressureValue" span="12">
<template #default="params">
<vxe-input v-model="params.data.PressureValue" placeholder="请输入额定电压" clearable
@change="fnChangeA(params)"></vxe-input>

@ -62,7 +62,7 @@ const gridOptionsA: any = reactive({
{ field: 'IsQualified', title: '是否合格', width: '110px' },
{ field: 'InventoryQuantity', title: '成品入库数量', width: '110px' },
{ field: 'MeasuringUnit', title: '计量单位', width: '110px' },
{ field: 'VoltageGrade', title: '电压等级(kV)', width: '110px' },
{ field: 'VoltageGrade', title: '电压等级(V)', width: '110px' },
{ field: 'StorageTime', title: '成品入库时间', width: '110px', slots: { default: 'slotStorageTime' } },
{ field: 'DeliveryStatus', title: '发货状态', width: '110px', slots: { default: 'slotDeliveryStatus' } },
{ field: 'DeliveryTime', title: '发货时间', width: '110px', slots: { default: 'slotDeliveryTime' } },

@ -67,7 +67,7 @@
@change="fnChangeA(params)" style="width: 196px;"></vxe-input>
</template>
</vxe-form-item> -->
<vxe-form-item title="电压等级(kV)" field="VoltageGrade" span="12">
<vxe-form-item title="电压等级(V)" field="VoltageGrade" span="12">
<template #default="params">
<vxe-input v-model="params.data.VoltageGrade" type="number" placeholder="请输入电压等级" clearable
@change="fnChangeA(params)" style="width: 196px;"></vxe-input>
@ -373,6 +373,11 @@ const fnSubmitA = async () => {
VXETable.modal.alert({content:"供应商工单编号重复设置,请重新选择"})
return;
}
let finishedCount = await FinishedProductWarehousingApi.getFinishedProductCount(formDataA.value.SupplierWorkNo)
if(finishedCount!= 32){
VXETable.modal.alert({content:"当前工单数据不完整,请检查原材料/组部件检验、生产工艺及过程检验、出厂试验是否都已完整录入"})
return;
}
switch (formTypeA.value) {
case 'add':
const paramsA = {

@ -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": "",

Loading…
Cancel
Save