Browse Source

供应商送货策略

master
zhangli 1 year ago
parent
commit
12db5383c5
  1. 6
      src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue
  2. 2
      src/views/wms/strategy/supplieDeliveryStrategy/index.vue

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

@ -181,7 +181,8 @@ const change = (e) => {
const formStrategyCode = ref('')
// form
const formData = ref({
strategyCode: formStrategyCode.value,//
id:'',
strategyCode: formStrategyCode.value,//id
code: formStrategyCode.value,//
name: '',//
description: '',//
@ -309,6 +310,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formLoading.value = true
try {
let data = await RuleApi.getRule(id)
formData.value.id = data.id
formData.value.strategyCode = data.strategyCode
formData.value.code = data.code
formData.value.name = data.name
@ -342,6 +344,7 @@ const submitForm = async () => {
formLoading.value = true
try {
let data = {
id: formData.value.id,
strategyCode: formData.value.strategyCode,//
code: formData.value.code,//
name: formData.value.name,//
@ -370,6 +373,7 @@ const submitForm = async () => {
/** 重置表单 */
const resetForm = () => {
formData.value = {
id: '',
strategyCode: formStrategyCode.value,//
code: formStrategyCode.value,//
name: '',//

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" />
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status?0:1" />
</template>
</el-table-column>
<!-- <el-table-column label="创建时间" align="center" prop="createTime" width="180" :formatter="dateFormatter" /> -->

Loading…
Cancel
Save