feat: 流程类型筛选改从后端字典接口加载(保留静态兜底)
This commit is contained in:
@@ -75,7 +75,10 @@
|
||||
v-model:value="form.bankCard"
|
||||
/>
|
||||
</a-form-item>
|
||||
<a-form-item label="申请状态 (10待审核 20审核通过 30驳回 40已打款)" name="applyStatus">
|
||||
<a-form-item
|
||||
label="申请状态 (10待审核 20审核通过 30驳回 40已打款)"
|
||||
name="applyStatus"
|
||||
>
|
||||
<a-input
|
||||
allow-clear
|
||||
placeholder="请输入申请状态 (10待审核 20审核通过 30驳回 40已打款)"
|
||||
@@ -118,7 +121,10 @@
|
||||
import { ref, reactive, watch } from 'vue';
|
||||
import { Form, message } from 'ant-design-vue';
|
||||
import { assignObject, uuid } from 'ele-admin-pro';
|
||||
import { addDealerWithdraw, updateDealerWithdraw } from '@/api/shop/dealerWithdraw';
|
||||
import {
|
||||
addDealerWithdraw,
|
||||
updateDealerWithdraw
|
||||
} from '@/api/shop/dealerWithdraw';
|
||||
import { DealerWithdraw } from '@/api/shop/dealerWithdraw/model';
|
||||
import { useThemeStore } from '@/store/modules/theme';
|
||||
import { storeToRefs } from 'pinia';
|
||||
@@ -223,7 +229,9 @@
|
||||
const formData = {
|
||||
...form
|
||||
};
|
||||
const saveOrUpdate = isUpdate.value ? updateDealerWithdraw : addDealerWithdraw;
|
||||
const saveOrUpdate = isUpdate.value
|
||||
? updateDealerWithdraw
|
||||
: addDealerWithdraw;
|
||||
saveOrUpdate(formData)
|
||||
.then((msg) => {
|
||||
loading.value = false;
|
||||
@@ -246,12 +254,12 @@
|
||||
images.value = [];
|
||||
if (props.data) {
|
||||
assignObject(form, props.data);
|
||||
if(props.data.image){
|
||||
if (props.data.image) {
|
||||
images.value.push({
|
||||
uid: uuid(),
|
||||
url: props.data.image,
|
||||
status: 'done'
|
||||
})
|
||||
});
|
||||
}
|
||||
isUpdate.value = true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user