运费模版
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7125486063
commit
4ec91760a1
|
@ -20,6 +20,19 @@
|
|||
v-model="searchForm.name"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="marketList.length > 0" label="摊铺">
|
||||
<el-select
|
||||
v-model="searchForm.linkId"
|
||||
placeholder="请选择活动区域"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in marketList"
|
||||
:key="item.marketId"
|
||||
:label="item.marketName"
|
||||
:value="item.marketId"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-button type="primary" @click="$refs.oTable.reload()"
|
||||
>搜索</el-button
|
||||
>
|
||||
|
@ -49,19 +62,24 @@ export default {
|
|||
dataList: [],
|
||||
searchForm: {
|
||||
name: "",
|
||||
linkId: "",
|
||||
},
|
||||
shopId: "",
|
||||
marketList: "",
|
||||
};
|
||||
},
|
||||
created() {
|
||||
if (JSON.parse(sessionStorage.getItem("userInfo")).markets.length > 0) {
|
||||
this.shopId = true;
|
||||
this.formInline.marketId = JSON.parse(
|
||||
this.searchForm.linkId = JSON.parse(
|
||||
sessionStorage.getItem("userInfo")
|
||||
).markets[0].marketId;
|
||||
this.marketList = JSON.parse(sessionStorage.getItem("userInfo")).markets;
|
||||
console.log(this.marketList);
|
||||
} else if (JSON.parse(sessionStorage.getItem("userInfo")).shopId) {
|
||||
this.searchForm.linkId = JSON.parse(
|
||||
sessionStorage.getItem("userInfo")
|
||||
).shopId;
|
||||
this.shopId = true;
|
||||
} else {
|
||||
this.shopId = false;
|
||||
|
@ -87,7 +105,7 @@ export default {
|
|||
});
|
||||
},
|
||||
addFareTemplate() {
|
||||
this.$refs.addTemplate.toggle().add();
|
||||
this.$refs.addTemplate.toggle().add(this.searchForm.linkId);
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
|
@ -100,7 +118,6 @@ export default {
|
|||
this.$api.mer_admin.getShippingTemplateInfo(row.id).then((res) => {
|
||||
console.log(res);
|
||||
console.log("row.tableData", row.tableData);
|
||||
|
||||
if (!row.tableData) {
|
||||
if (res.data.data.shippingTemplatesRegionResultList) {
|
||||
this.$set(
|
||||
|
|
|
@ -57,6 +57,7 @@ export default {
|
|||
},
|
||||
fileList: [], //回显图片
|
||||
place: "", //场地
|
||||
linkId: "",
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
|
@ -141,10 +142,11 @@ export default {
|
|||
this.modalData = _data;
|
||||
};
|
||||
return {
|
||||
add: () => {
|
||||
add: (id) => {
|
||||
this.$nextTick(() => {
|
||||
this.modalData = cloneDeep(BASE_DATA);
|
||||
});
|
||||
this.linkId = id;
|
||||
this.isAdd = true;
|
||||
this.modalConfig.title = "添加运费模板";
|
||||
},
|
||||
|
@ -832,10 +834,7 @@ export default {
|
|||
if (this.isAdd) {
|
||||
this.$api.mer_admin
|
||||
.addShippingTemplate({
|
||||
linkId: JSON.parse(sessionStorage.getItem("userInfo")).shopId
|
||||
? JSON.parse(sessionStorage.getItem("userInfo")).shopId
|
||||
: JSON.parse(sessionStorage.getItem("userInfo")).markets[0]
|
||||
.marketId,
|
||||
linkId: this.linkId,
|
||||
defaults: 0, //默认值,待确认
|
||||
sort: 0, //默认值,待确认
|
||||
type: 2, //默认值,待确认
|
||||
|
@ -894,10 +893,7 @@ export default {
|
|||
this.$api.mer_admin
|
||||
.updateShippingTemplate({
|
||||
id: this.modalData.id,
|
||||
linkId: JSON.parse(sessionStorage.getItem("userInfo")).shopId
|
||||
? JSON.parse(sessionStorage.getItem("userInfo")).shopId
|
||||
: JSON.parse(sessionStorage.getItem("userInfo")).markets[0]
|
||||
.marketId,
|
||||
linkId: this.linkId,
|
||||
defaults: 0, //默认值,待确认
|
||||
sort: 0, //默认值,待确认
|
||||
type: 2, //默认值,待确认
|
||||
|
|
Loading…
Reference in New Issue