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('') const formStrategyCode = ref('')
// form // form
const formData = ref({ const formData = ref({
strategyCode: formStrategyCode.value,// id:'',
strategyCode: formStrategyCode.value,//id
code: formStrategyCode.value,// code: formStrategyCode.value,//
name: '',// name: '',//
description: '',// description: '',//
@ -309,6 +310,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formLoading.value = true formLoading.value = true
try { try {
let data = await RuleApi.getRule(id) let data = await RuleApi.getRule(id)
formData.value.id = data.id
formData.value.strategyCode = data.strategyCode formData.value.strategyCode = data.strategyCode
formData.value.code = data.code formData.value.code = data.code
formData.value.name = data.name formData.value.name = data.name
@ -342,6 +344,7 @@ const submitForm = async () => {
formLoading.value = true formLoading.value = true
try { try {
let data = { let data = {
id: formData.value.id,
strategyCode: formData.value.strategyCode,// strategyCode: formData.value.strategyCode,//
code: formData.value.code,// code: formData.value.code,//
name: formData.value.name,// name: formData.value.name,//
@ -370,6 +373,7 @@ const submitForm = async () => {
/** 重置表单 */ /** 重置表单 */
const resetForm = () => { const resetForm = () => {
formData.value = { formData.value = {
id: '',
strategyCode: formStrategyCode.value,// strategyCode: formStrategyCode.value,//
code: formStrategyCode.value,// code: formStrategyCode.value,//
name: '',// 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="priority" />
<el-table-column align="center" label="状态" prop="status"> <el-table-column align="center" label="状态" prop="status">
<template #default="scope"> <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> </template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="创建时间" align="center" prop="createTime" width="180" :formatter="dateFormatter" /> --> <!-- <el-table-column label="创建时间" align="center" prop="createTime" width="180" :formatter="dateFormatter" /> -->

Loading…
Cancel
Save