Browse Source

策略

master
zhangli 1 year ago
parent
commit
81cb2288fc
  1. 4
      src/views/wms/strategy/downShelfStrategy/AddForm.vue
  2. 2
      src/views/wms/strategy/downShelfStrategy/index.vue
  3. 4
      src/views/wms/strategy/purchaseReceiptStrategy/AddForm.vue
  4. 2
      src/views/wms/strategy/purchaseReceiptStrategy/index.vue
  5. 4
      src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue
  6. 2
      src/views/wms/strategy/supplieDeliveryStrategy/index.vue
  7. 4
      src/views/wms/strategy/upShelfStrategy/AddForm.vue
  8. 2
      src/views/wms/strategy/upShelfStrategy/index.vue

4
src/views/wms/strategy/downShelfStrategy/AddForm.vue

@ -445,7 +445,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.name = data.name
formData.value.description = data.description
formData.value.priority = data.priority
formData.value.status = data.status == 1 ? true : false
formData.value.status = data.status == 0 ? true : false
if (data.condition) {
formData.value.condition = JSON.parse(data.condition)
}
@ -491,7 +491,7 @@ const submitForm = async () => {
name: formData.value.name,//
description: formData.value.description,//
priority: formData.value.priority,//
status: formData.value.status ? 1 : 0,//
status: formData.value.status ? 0 : 1,//
//
condition: JSON.stringify(formData.value.condition),
configuration: JSON.stringify(formData.value.configuration)

2
src/views/wms/strategy/downShelfStrategy/index.vue

@ -12,7 +12,7 @@
<el-table-column align="center" label="优先级" prop="priority" />
<el-table-column align="center" label="状态" prop="status">
<template #default="scope">
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status ? 0 : 1" />
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
</template>
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">

4
src/views/wms/strategy/purchaseReceiptStrategy/AddForm.vue

@ -243,7 +243,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.name = data.name
formData.value.description = data.description
formData.value.priority = data.priority
formData.value.status = data.status == 1 ? true : false
formData.value.status = data.status == 0 ? true : false
if (data.condition) {
formData.value.condition = JSON.parse(data.condition)
}
@ -277,7 +277,7 @@ const submitForm = async () => {
name: formData.value.name,//
description: formData.value.description,//
priority: formData.value.priority,//
status: formData.value.status ? 1 : 0,//
status: formData.value.status ? 0 : 1,//
//
condition: JSON.stringify(formData.value.condition),
configuration: JSON.stringify(formData.value.configuration)

2
src/views/wms/strategy/purchaseReceiptStrategy/index.vue

@ -12,7 +12,7 @@
<el-table-column align="center" label="优先级" prop="priority" />
<el-table-column align="center" label="状态" prop="status">
<template #default="scope">
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status ? 0 : 1" />
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
</template>
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">

4
src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue

@ -302,7 +302,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.name = data.name
formData.value.description = data.description
formData.value.priority = data.priority
formData.value.status = data.status == 1 ? true : false
formData.value.status = data.status == 0 ? true : false
if (data.condition) {
formData.value.condition = JSON.parse(data.condition)
}
@ -336,7 +336,7 @@ const submitForm = async () => {
name: formData.value.name,//
description: formData.value.description,//
priority: formData.value.priority,//
status: formData.value.status ? 1 : 0,//
status: formData.value.status ? 0 : 1,//
//
condition: JSON.stringify(formData.value.condition),
configuration: JSON.stringify(formData.value.configuration)

2
src/views/wms/strategy/supplieDeliveryStrategy/index.vue

@ -12,7 +12,7 @@
<el-table-column align="center" label="优先级" prop="priority" />
<el-table-column align="center" label="状态" prop="status">
<template #default="scope">
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status?0:1" />
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
</template>
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">

4
src/views/wms/strategy/upShelfStrategy/AddForm.vue

@ -366,7 +366,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formData.value.name = data.name
formData.value.description = data.description
formData.value.priority = data.priority
formData.value.status = data.status == 1 ? true : false
formData.value.status = data.status == 0 ? true : false
if (data.condition) {
formData.value.condition = JSON.parse(data.condition)
}
@ -413,7 +413,7 @@ const submitForm = async () => {
name: formData.value.name,//
description: formData.value.description,//
priority: formData.value.priority,//
status: formData.value.status ? 1 : 0,//
status: formData.value.status ? 0 : 1,//
//
condition: JSON.stringify(formData.value.condition),
configuration: JSON.stringify(formData.value.configuration)

2
src/views/wms/strategy/upShelfStrategy/index.vue

@ -12,7 +12,7 @@
<el-table-column align="center" label="优先级" prop="priority" />
<el-table-column align="center" label="状态" prop="status">
<template #default="scope">
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status ? 0 : 1" />
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
</template>
</el-table-column>
<el-table-column align="center" label="操作" fixed="right" width="240">

Loading…
Cancel
Save