提交促销以己部分页面商家端功能迁移,接口对接

This commit is contained in:
Yer11214
2024-10-05 14:33:37 +08:00
parent c03778676c
commit 9e630bb2ba
16 changed files with 958 additions and 263 deletions

View File

@@ -54,13 +54,13 @@
</i-switch>
</FormItem>
<FormItem label="禁用状态" prop="disabled">
<!-- <FormItem label="禁用状态" prop="disabled">
<i-switch true-value="OPEN" false-value="CLOSE" v-model="form.disabled" size="large">
<span slot="open">开启</span>
<span slot="close">禁用</span>
</i-switch>
</FormItem>
</FormItem> -->
</Form>
<div slot="footer">
<Button type="text" @click="modalVisible = false">取消</Button>
@@ -99,7 +99,7 @@
form: {
// 添加或编辑表单对象初始化数据
name: "",
disabled:"CLOSE"
disabled:"OPEN"
},
// 表单验证规则
formValidate: {
@@ -125,12 +125,7 @@
minWidth: 120,
sortable: false,
},
{
title: "状态",
key: "disabled",
width: 150,
slot: "disableSlot",
},
{
title: "创建时间",
key: "createTime",
@@ -246,7 +241,7 @@
if (this.modalTitle == "添加") {
// 添加 避免编辑后传入id等数据 记得删除
delete this.form.id;
this.form.disabled = 'OPEN'
addLogistics(this.form).then((res) => {
this.submitLoading = false;
@@ -257,6 +252,7 @@
}
});
} else {
this.form.disabled = 'OPEN'
// 编辑
updateLogistics(this.id, this.form).then((res) => {
this.submitLoading = false;
@@ -292,7 +288,8 @@
this.form.disabled = v.disabled
// this.form.disabled = v.disabled
this.form.disabled = 'OPEN'
},
// 删除物流公司
remove(v) {