ljlong_2630 2 weeks ago
parent
commit
9fa7f4e66f
  1. 17
      src/views/wms/basicDataManage/strategySetting/strategy/deliverStrategy/AddForm.vue
  2. 5
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue
  3. 14
      src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.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)

14
src/views/wms/moveManage/inventorymove/inventorymoveRequestMainOKHOLD/index.vue

@ -487,13 +487,13 @@ const butttondata = (row,$index) => {
return [] return []
} }
return [ return [
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6']),hasPermi:`wms:${routeName.value}:close`}), // defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3','4','6'])}), //
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5']),hasPermi:`wms:${routeName.value}:reAdd`}), // defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4','5'])}), //
defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1']),hasPermi:`wms:${routeName.value}:submit`}), // defaultButtons.mainListSubmitBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2']),hasPermi:`wms:${routeName.value}:refused`}), // defaultButtons.mainListTurnDownBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2']),hasPermi:`wms:${routeName.value}:agree`}), // defaultButtons.mainListApproveBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3']),hasPermi:`wms:${routeName.value}:handle`}), // defaultButtons.mainListHandleBtn({hide:isShowMainButton(row,['3'])}), //
defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1']),hasPermi:`wms:${routeName.value}:update`}), // defaultButtons.mainListEditBtn({hide:isShowMainButton(row,['1'])}), //
// defaultButtons.mainListDeleteBtn({hasPermi:`wms:${routeName.value}:delete`}), // // defaultButtons.mainListDeleteBtn({hasPermi:`wms:${routeName.value}:delete`}), //
] ]
} }

Loading…
Cancel
Save