Browse Source

发货策略发料策略

intex
zhang_li 1 week ago
parent
commit
96bfd5023c
  1. 17
      src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue
  2. 5
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue

17
src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue

@ -54,7 +54,7 @@
<el-row key="规则条件row" :gutter="10"> <el-row key="规则条件row" :gutter="10">
<el-col key="供应商和客户col" :span="24" v-for="(item, index) in formData.condition" :key="index"> <el-col key="供应商和客户col" :span="24" v-for="(item, index) in formData.condition" :key="index">
<!-- 选择物料类型 --> <!-- 选择物料类型 -->
<el-form-item key="物料类型formItem" label="" label-width="0" class="err-240" v-if="index == 1"> <el-form-item key="物料类型formItem" label="" label-width="0" class="err-240" v-if="index == 0">
<el-select key="物料类型" <el-select key="物料类型"
v-model="item.ParamCode" v-model="item.ParamCode"
placeholder="" placeholder=""
@ -177,7 +177,7 @@
/> />
</el-form-item> </el-form-item>
<!-- 选择供应商和客户 --> <!-- 选择供应商和客户 -->
<el-form-item key="供应商和客户formItem" label="" label-width="0" class="err-240" v-if="index == 0"> <el-form-item key="供应商和客户formItem" label="" label-width="0" class="err-240" v-if="index == 1">
<el-select key="供应商和客户" <el-select key="供应商和客户"
v-model="item.ParamCode" v-model="item.ParamCode"
placeholder="" placeholder=""
@ -523,7 +523,7 @@ const formData = ref({
// ///abc// // ///abc//
{ ParamCode: 'ItemType', Operator: 'IN', Value: '' }, { ParamCode: 'ItemType', Operator: 'IN', Value: '' },
// //
{ ParamCode: 'SupplierCode', Operator: 'IN', Value: '' }, { ParamCode: 'CustomerCode', Operator: 'IN', Value: '' },
// // // //
{ ParamCode: 'Weight', Operator: '>', Value: [] }, { ParamCode: 'Weight', Operator: '>', Value: [] },
// //
@ -691,7 +691,7 @@ const changeSupplierCustomer = (e) => {
getFormSupplierList() getFormSupplierList()
// //abc// // //abc//
const changeItemsType = () => { const changeItemsType = () => {
formData.value.condition[1].Value = '' formData.value.condition[0].Value = ''
} }
// // // //
const changeCalculation = () => { const changeCalculation = () => {
@ -994,7 +994,12 @@ const open = async (type: string, strategyCode: string, id?: number) => {
if ((item.Operator == 'IN' || item.Operator == 'NOT IN')&& Array.isArray(item.Value)) { if ((item.Operator == 'IN' || item.Operator == 'NOT IN')&& Array.isArray(item.Value)) {
item.Value = item.Value.split(',') item.Value = item.Value.split(',')
} }
if (item.ParamCode == 'ItemType'||item.ParamCode == 'AbcClass' ||item.ParamCode == 'ItemGroup' ||item.ParamCode == 'ItemStatus' || item.ParamCode == 'CustomerCode' ) {
console.log(item.Value)
item.Value = item.Value.split(',')
}
}) })
} }
if (data.configuration) { if (data.configuration) {
formData.value.configuration = JSON.parse(data.configuration) formData.value.configuration = JSON.parse(data.configuration)
@ -1115,10 +1120,10 @@ const resetForm = () => {
status: true, // status: true, //
// //
condition: [ condition: [
//
{ ParamCode: 'SupplierCode', Operator: 'IN', Value: '' },
// ///abc// // ///abc//
{ ParamCode: 'ItemType', Operator: 'IN', Value: '' }, { ParamCode: 'ItemType', Operator: 'IN', Value: '' },
//
{ ParamCode: 'CustomerCode', Operator: 'IN', Value: '' },
// /// // ///
{ ParamCode: 'Weight', Operator: '>', Value: [] }, { ParamCode: 'Weight', Operator: '>', Value: [] },
// //

5
src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue

@ -1174,6 +1174,11 @@ const open = async (type: string, strategyCode: string, id?: number) => {
console.log(item.Value) console.log(item.Value)
item.Value = item.Value.split(',') item.Value = item.Value.split(',')
} }
if (item.ParamCode == 'ItemType'||item.ParamCode == 'AbcClass' ||item.ParamCode == 'ItemGroup' ||item.ParamCode == 'ItemStatus') {
console.log(item.Value)
item.Value = item.Value.split(',')
}
}) })
} }
console.log(formData.value.condition) console.log(formData.value.condition)

Loading…
Cancel
Save