mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-19 09:25:53 +08:00
优化部分操作流程,修改售后显示问题,优化计量单位 商品规格添加重复问题
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
>
|
||||
<!-- 页面展示 -->
|
||||
<template slot="disableSlot" slot-scope="{row}">
|
||||
<i-switch size="large" :value="row.switch" @on-change="changeSwitch(row)">
|
||||
<i-switch size="large" :true-value="true" :false-value="false" :value="row.switch" @on-change="changeSwitch(row)">
|
||||
<span slot="open">开启</span>
|
||||
<span slot="close">禁用</span>
|
||||
</i-switch>
|
||||
@@ -48,18 +48,19 @@
|
||||
<Input v-model="form.code" clearable style="width: 100%"/>
|
||||
</FormItem>
|
||||
<FormItem label="支持电子面单">
|
||||
<i-switch v-model="form.standBy" size="large">
|
||||
<span slot="OPEN">开</span>
|
||||
<span slot="CLOSE">关</span>
|
||||
<i-switch v-model="form.standBy" size="large">
|
||||
<span slot="open">开</span>
|
||||
<span slot="close">关</span>
|
||||
</i-switch>
|
||||
</FormItem>
|
||||
<FormItem label="电子面单表单">
|
||||
<Input v-model="form.formItems" clearable style="width: 100%"/>
|
||||
</FormItem>
|
||||
<FormItem label="禁用状态" prop="disabled">
|
||||
<i-switch v-model="form.disabled" size="large">
|
||||
<span slot="OPEN">开启</span>
|
||||
<span slot="CLOSE">禁用</span>
|
||||
|
||||
<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>
|
||||
</Form>
|
||||
@@ -100,7 +101,7 @@
|
||||
form: {
|
||||
// 添加或编辑表单对象初始化数据
|
||||
name: "",
|
||||
disabled:"OPEN"
|
||||
disabled:"CLOSE"
|
||||
},
|
||||
// 表单验证规则
|
||||
formValidate: {
|
||||
@@ -213,9 +214,11 @@
|
||||
if (res.success) {
|
||||
const data = res.result.records;
|
||||
data.forEach(e => {
|
||||
e.switch = e.disabled === 'OPEN' ? true : false
|
||||
e.switch = e.disabled === 'OPEN' ? true : false;
|
||||
e.standBy = e.standBy == 'null' || !e.standBy ? false : true;
|
||||
});
|
||||
this.data = data;
|
||||
console.log(data)
|
||||
this.total = res.result.total;
|
||||
}
|
||||
});
|
||||
@@ -241,14 +244,12 @@
|
||||
this.$refs.form.validate((valid) => {
|
||||
if (valid) {
|
||||
this.submitLoading = true;
|
||||
this.form.disabled = this.form.disabled == true ? "OPEN" : "CLOSE"
|
||||
|
||||
if (this.modalTitle == "添加") {
|
||||
// 添加 避免编辑后传入id等数据 记得删除
|
||||
delete this.form.id;
|
||||
|
||||
this.form.disabled
|
||||
? (this.form.disabled = "OPEN")
|
||||
: (this.form.disabled = "CLOSE");
|
||||
|
||||
addLogistics(this.form).then((res) => {
|
||||
this.submitLoading = false;
|
||||
if (res.success) {
|
||||
@@ -287,12 +288,13 @@
|
||||
|
||||
this.form.name = v.name;
|
||||
this.form.code = v.code;
|
||||
console.log(v)
|
||||
this.form.standBy = v.standBy;
|
||||
this.form.formItems = v.formItems;
|
||||
this.form.disabled = v.disabled;
|
||||
this.form.disabled == "OPEN"
|
||||
? (this.form.disabled = true)
|
||||
: (this.form.disabled = false);
|
||||
|
||||
|
||||
|
||||
this.form.disabled = v.disabled
|
||||
},
|
||||
// 删除物流公司
|
||||
remove(v) {
|
||||
|
||||
Reference in New Issue
Block a user