|
@ -215,7 +215,7 @@ |
|
|
v-else-if="item.ParamCode == 'Project'" |
|
|
v-else-if="item.ParamCode == 'Project'" |
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
:disabled="formData.priority==0&&formType=='update'" |
|
|
/> |
|
|
/> |
|
|
<el-input key="物料" style="flex:1" placeholder="请输入物料,多个物料以逗号分隔" disabled v-else-if="item.ParamCode == 'ItemCode'"v-model="item.Value" :disabled="formData.priority==0&&formType=='update'"> |
|
|
<el-input key="物料" style="flex:1" placeholder="请输入物料,多个物料以逗号分隔" v-else-if="item.ParamCode == 'ItemCode'"v-model="item.Value" :disabled="formData.priority==0&&formType=='update'" @blur="blurVerify('ItemCode')"> |
|
|
<template #suffix> |
|
|
<template #suffix> |
|
|
<el-button :disabled="formData.priority==0&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click.stop="searchItemCode"> |
|
|
<el-button :disabled="formData.priority==0&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click.stop="searchItemCode"> |
|
|
<Icon icon="ep:search" class="mr-5px" /> |
|
|
<Icon icon="ep:search" class="mr-5px" /> |
|
@ -341,7 +341,7 @@ |
|
|
:key="'生产线Operator'+cur.value" |
|
|
:key="'生产线Operator'+cur.value" |
|
|
/> |
|
|
/> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<el-input key="生产线Value" style="flex:1" placeholder="请选择生产线" v-model="item.Value" @blur="blurProductionline" |
|
|
<el-input key="生产线Value" style="flex:1" placeholder="请选择生产线" v-model="item.Value" @blur="blurVerify('Productionline')" |
|
|
:disabled="formData.priority==0&&formType=='update'"> |
|
|
:disabled="formData.priority==0&&formType=='update'"> |
|
|
<template #suffix> |
|
|
<template #suffix> |
|
|
<el-button :disabled="formData.priority==0&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click.stop="searchTransactionType"> |
|
|
<el-button :disabled="formData.priority==0&&formType=='update'" type="text" plain style="color:var(--el-button-text-color)" @click.stop="searchTransactionType"> |
|
@ -659,12 +659,7 @@ |
|
|
<script setup lang="ts"> |
|
|
<script setup lang="ts"> |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
defineOptions({ name: 'UpShelfStrategyAddForm' }) |
|
|
defineOptions({ name: 'UpShelfStrategyAddForm' }) |
|
|
import { getSupplierList } from '@/api/wms/supplier' |
|
|
|
|
|
import { getCustomerList } from '@/api/wms/customer' |
|
|
|
|
|
import { getWarehouseList } from '@/api/wms/warehouse' |
|
|
|
|
|
import { getAreaList } from '@/api/wms/areabasic' |
|
|
|
|
|
import { getLocationgroupList } from '@/api/wms/locationgroup' |
|
|
|
|
|
import { getLocationList } from '@/api/wms/location' |
|
|
|
|
|
import * as RuleApi from '@/api/wms/rule' |
|
|
import * as RuleApi from '@/api/wms/rule' |
|
|
import * as WarehouseApi from '@/api/wms/warehouse' |
|
|
import * as WarehouseApi from '@/api/wms/warehouse' |
|
|
import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data' |
|
|
import { Warehouse } from '@/views/wms/basicDataManage/factoryModeling/warehouse/warehouse.data' |
|
@ -676,6 +671,8 @@ import { Locationgroup } from '@/views/wms/basicDataManage/factoryModeling/locat |
|
|
import * as LocationApi from '@/api/wms/location' |
|
|
import * as LocationApi from '@/api/wms/location' |
|
|
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' |
|
|
import { Location } from '@/views/wms/basicDataManage/factoryModeling/location/location.data' |
|
|
import { isString } from '@/utils/is' |
|
|
import { isString } from '@/utils/is' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' |
|
|
import * as TransactiontypeApi from '@/api/wms/transactiontype' |
|
|
import * as TransactiontypeApi from '@/api/wms/transactiontype' |
|
|
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data' |
|
|
import { Productionline } from '@/views/wms/basicDataManage/factoryModeling/productionline/productionline.data' |
|
@ -981,6 +978,7 @@ const blurWarehouse = async ()=>{ |
|
|
message.alert('代码' + str + '没有找到对应数据') |
|
|
message.alert('代码' + str + '没有找到对应数据') |
|
|
} |
|
|
} |
|
|
}else{ |
|
|
}else{ |
|
|
|
|
|
message.alert('代码' + formData.value.configuration[warehouseType.value] + '没有找到对应数据') |
|
|
formData.value.configuration[warehouseType.value] = '' |
|
|
formData.value.configuration[warehouseType.value] = '' |
|
|
} |
|
|
} |
|
|
}else if(warehouseType.value == 'LocationGroupCode'){ |
|
|
}else if(warehouseType.value == 'LocationGroupCode'){ |
|
@ -1062,13 +1060,21 @@ const searchTransactionType = ()=>{ |
|
|
) |
|
|
) |
|
|
} |
|
|
} |
|
|
// 失去焦点校验 |
|
|
// 失去焦点校验 |
|
|
const blurProductionline= async ()=>{ |
|
|
const blurVerify= async (type)=>{ |
|
|
let transactionType = formData.value.condition.find(item => item['ParamCode'] == 'Productionline') |
|
|
let transactionType = formData.value.condition.find(item => item['ParamCode'] == type) |
|
|
console.log(transactionType) |
|
|
console.log(transactionType) |
|
|
if(transactionType&&transactionType.Value){ |
|
|
if (transactionType && transactionType.Value) { |
|
|
let verifyRes = await ProductionlineApi.getProductionlineByCodes({ |
|
|
let verifyRes =null |
|
|
codes:transactionType.Value |
|
|
if (type == 'ItemCode') { |
|
|
}) |
|
|
verifyRes = await ItembasicApi.getItemListByCodes({ |
|
|
|
|
|
codes:transactionType.Value |
|
|
|
|
|
}) |
|
|
|
|
|
}else if (type == 'Productionline') { |
|
|
|
|
|
verifyRes = await ProductionlineApi.getProductionlineByCodes({ |
|
|
|
|
|
codes:transactionType.Value |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
console.log('事务类型verifyRes',verifyRes) |
|
|
console.log('事务类型verifyRes',verifyRes) |
|
|
if(verifyRes&&verifyRes.length>0){ |
|
|
if(verifyRes&&verifyRes.length>0){ |
|
|
let verifyList = verifyRes.map(item=>(item['code'])) |
|
|
let verifyList = verifyRes.map(item=>(item['code'])) |
|
|