Browse Source

HL-5886 策略

hella_online_20240913
yufei_wang 2 months ago
parent
commit
639ab5417e
  1. 3
      src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue
  2. 14
      src/views/wms/basicDataManage/strategySetting/strategy/downShelfStrategy/AddForm.vue

3
src/views/wms/basicDataManage/strategySetting/strategy/batchStrategy/AddForm.vue

@ -440,6 +440,9 @@ const open = async (type: string, strategyCode: string, id?: number) => {
}
if (data.configuration) {
formData.value.configuration = JSON.parse(data.configuration)
if(!formData.value.configuration.ManagementPrecision){
formData.value.configuration.ManagementPrecision = []
}
}
//
if (formData.value.condition[0].ParamCode == 'SupplierCode') {

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

@ -1150,17 +1150,17 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.description = data.description
formData.value.priority = data.priority
formData.value.status = data.status == 0 ? true : false
if (formData.value.priority == 0) {
Butttondata.value = [
defaultButtons.formSaveBtn({ disabled: true }), //
defaultButtons.formCloseBtn(null) //
]
} else {
// if (formData.value.priority == 0) {
// Butttondata.value = [
// defaultButtons.formSaveBtn({ disabled: true }), //
// defaultButtons.formCloseBtn(null) //
// ]
// } else {
Butttondata.value = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
}
// }
if (data.condition) {
formData.value.condition = JSON.parse(data.condition)
formData.value.condition.forEach((item, index) => {

Loading…
Cancel
Save