style: 🐛 修改几个console警告问题
parent
b6c16e7048
commit
841d48e2a7
|
@ -1,81 +1,45 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="logistics">
|
<div class="logistics">
|
||||||
<Card>
|
<Card>
|
||||||
<Table
|
<Table :loading="loading" border :columns="columns" :data="data" ref="table"></Table>
|
||||||
:loading="loading"
|
|
||||||
border
|
|
||||||
:columns="columns"
|
|
||||||
:data="data"
|
|
||||||
ref="table"
|
|
||||||
></Table>
|
|
||||||
</Card>
|
</Card>
|
||||||
<Modal v-model="openModal" :title="openModalTitle" @on-ok="submit" @on-cancel="cancelModal">
|
<Modal v-model="openModal" :title="openModalTitle" @on-ok="submit" @on-cancel="cancelModal">
|
||||||
<h3 style="color: #ff3c2a; margin-bottom: 10px">是否需要电子面单</h3>
|
<h3 style="color: #ff3c2a; margin-bottom: 10px">是否需要电子面单</h3>
|
||||||
<RadioGroup
|
|
||||||
v-model="faceSheetForm.faceSheetFlag"
|
<ButtonGroup style="margin-bottom: 10px;">
|
||||||
style="margin-bottom: 20px"
|
<Button :type="faceSheetForm.faceSheetFlag ? 'primary' : 'default'"
|
||||||
@on-change="getfaceSheetFlag($event)"
|
@click="faceSheetForm.faceSheetFlag = true">需要</Button>
|
||||||
>
|
<Button :type="!faceSheetForm.faceSheetFlag ? 'primary' : 'default'"
|
||||||
<Radio :label="true">
|
@click="faceSheetForm.faceSheetFlag = false">不需要</Button>
|
||||||
<span>需要</span>
|
</ButtonGroup>
|
||||||
</Radio>
|
<Card v-if="openText" class="modalStyle">
|
||||||
<Radio :label="false">
|
|
||||||
<span>不需要</span>
|
|
||||||
</Radio>
|
|
||||||
</RadioGroup>
|
|
||||||
<Card v-if="onpenText" class="modalStyle">
|
|
||||||
<h3 style="color: #ff3c2a; margin-bottom: 10px">请输入详细信息</h3>
|
<h3 style="color: #ff3c2a; margin-bottom: 10px">请输入详细信息</h3>
|
||||||
<Form ref="formValidate" :label-width="150" label-position="right" :model="faceSheetForm" :rules="ruleValidate">
|
<Form ref="formValidate" :label-width="150" label-position="right" :model="faceSheetForm" :rules="ruleValidate">
|
||||||
<FormItem label="customerName" prop="customerName">
|
<FormItem label="customerName" prop="customerName">
|
||||||
<Input
|
<Input v-model="faceSheetForm.customerName" type="text" class="faceSheetInput"></Input>
|
||||||
v-model="faceSheetForm.customerName"
|
</FormItem>
|
||||||
type="text"
|
|
||||||
class="faceSheetInput"
|
|
||||||
></Input
|
|
||||||
></FormItem>
|
|
||||||
<FormItem label="customerPwd" prop="customerPwd">
|
<FormItem label="customerPwd" prop="customerPwd">
|
||||||
<Input
|
<Input v-model="faceSheetForm.customerPwd" type="text" class="faceSheetInput"></Input>
|
||||||
v-model="faceSheetForm.customerPwd"
|
|
||||||
type="text"
|
|
||||||
class="faceSheetInput"
|
|
||||||
></Input>
|
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="monthCode" prop="monthCode">
|
<FormItem label="monthCode" prop="monthCode">
|
||||||
<Input
|
<Input v-model="faceSheetForm.monthCode" type="text" class="faceSheetInput"></Input>
|
||||||
v-model="faceSheetForm.monthCode"
|
</FormItem>
|
||||||
type="text"
|
|
||||||
class="faceSheetInput"
|
|
||||||
></Input
|
|
||||||
></FormItem>
|
|
||||||
<FormItem label="sendSite" prop="sendSite">
|
<FormItem label="sendSite" prop="sendSite">
|
||||||
<Input
|
<Input v-model="faceSheetForm.sendSite" type="text" class="faceSheetInput"></Input>
|
||||||
v-model="faceSheetForm.sendSite"
|
</FormItem>
|
||||||
type="text"
|
|
||||||
class="faceSheetInput"
|
|
||||||
></Input
|
|
||||||
></FormItem>
|
|
||||||
<FormItem label="sendStaff" prop="sendStaff">
|
<FormItem label="sendStaff" prop="sendStaff">
|
||||||
<Input
|
<Input v-model="faceSheetForm.sendStaff" type="text" class="faceSheetInput"></Input>
|
||||||
v-model="faceSheetForm.sendStaff"
|
</FormItem>
|
||||||
type="text"
|
|
||||||
class="faceSheetInput"
|
|
||||||
></Input
|
|
||||||
></FormItem>
|
|
||||||
<FormItem label="支付方式" prop="payType">
|
<FormItem label="支付方式" prop="payType">
|
||||||
<Select
|
<Select v-model="faceSheetForm.payType" class="faceSheetInput">
|
||||||
v-model="faceSheetForm.payType"
|
|
||||||
class="faceSheetInput">
|
|
||||||
<Option value="1">现付</Option>
|
<Option value="1">现付</Option>
|
||||||
<Option value="2">到付</Option>
|
<Option value="2">到付</Option>
|
||||||
<Option value="3">月结</Option>
|
<Option value="3">月结</Option>
|
||||||
<Option value="4">第三方支付(仅SF支持)</Option>
|
<Option value="4">第三方支付(仅SF支持)</Option>
|
||||||
</Select
|
</Select>
|
||||||
></FormItem>
|
</FormItem>
|
||||||
<FormItem label="快递类型" prop="expType">
|
<FormItem label="快递类型" prop="expType">
|
||||||
<Input
|
<Input v-model="faceSheetForm.expType" type="text" class="faceSheetInput" />
|
||||||
v-model="faceSheetForm.expType"
|
|
||||||
type="text"
|
|
||||||
class="faceSheetInput"/>
|
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<div style="width:100%;text-align:center;">
|
<div style="width:100%;text-align:center;">
|
||||||
<a style="padding-right: 20px" @click="frontDownload('use')">使用说明</a>
|
<a style="padding-right: 20px" @click="frontDownload('use')">使用说明</a>
|
||||||
|
@ -83,7 +47,7 @@
|
||||||
</div>
|
</div>
|
||||||
</Form>
|
</Form>
|
||||||
</Card>
|
</Card>
|
||||||
<br/>
|
<br />
|
||||||
</Modal>
|
</Modal>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -140,9 +104,9 @@ export default {
|
||||||
sortable: true,
|
sortable: true,
|
||||||
render: (h, params) => {
|
render: (h, params) => {
|
||||||
if (!params.row.selected) {
|
if (!params.row.selected) {
|
||||||
return h("div", [h("tag", {props: {color: "volcano"}}, "关闭")]);
|
return h("div", [h("tag", { props: { color: "volcano" } }, "关闭")]);
|
||||||
} else {
|
} else {
|
||||||
return h("div", [h("tag", {props: {color: "green"}}, "开启")]);
|
return h("div", [h("tag", { props: { color: "green" } }, "开启")]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -215,19 +179,25 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
data: [], // 表单数据
|
data: [], // 表单数据
|
||||||
onpenText: false,
|
openText: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
'faceSheetForm.faceSheetFlag'(val) {
|
||||||
|
this.openText = val ? true : false
|
||||||
|
console.log(this.openText )
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//获取状态
|
//获取状态
|
||||||
getfaceSheetFlag(e) {
|
getfaceSheetFlag(e) {
|
||||||
|
console.log(e);
|
||||||
if (e === true) {
|
if (e === true) {
|
||||||
|
console.log("打开");
|
||||||
this.onpenText = true;
|
this.openText = true;
|
||||||
} else {
|
} else {
|
||||||
|
console.log("关闭");
|
||||||
this.onpenText = false;
|
this.openText = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 初始化数据
|
// 初始化数据
|
||||||
|
@ -245,7 +215,7 @@ export default {
|
||||||
});
|
});
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
},
|
},
|
||||||
cancelModal(){
|
cancelModal() {
|
||||||
this.faceSheetFlag = false;
|
this.faceSheetFlag = false;
|
||||||
this.faceSheetForm.faceSheetFlag = false;
|
this.faceSheetForm.faceSheetFlag = false;
|
||||||
},
|
},
|
||||||
|
@ -255,9 +225,9 @@ export default {
|
||||||
this.openModal = true;
|
this.openModal = true;
|
||||||
this.searchForm.faceSheetFlag = "false"; //开弹框 等于v
|
this.searchForm.faceSheetFlag = "false"; //开弹框 等于v
|
||||||
if (this.searchForm.faceSheetFlag == "true") {
|
if (this.searchForm.faceSheetFlag == "true") {
|
||||||
this.onpenText = true;
|
this.openText = true;
|
||||||
} else {
|
} else {
|
||||||
this.onpenText = false;
|
this.openText = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//修改
|
//修改
|
||||||
|
@ -270,10 +240,10 @@ export default {
|
||||||
// this.searchForm = res.result.recordes;
|
// this.searchForm = res.result.recordes;
|
||||||
this.faceSheetForm.faceSheetFlag = res.result.faceSheetFlag; //开弹框 等于v
|
this.faceSheetForm.faceSheetFlag = res.result.faceSheetFlag; //开弹框 等于v
|
||||||
if (this.faceSheetForm.faceSheetFlag === true) {
|
if (this.faceSheetForm.faceSheetFlag === true) {
|
||||||
this.onpenText = true;
|
this.openText = true;
|
||||||
} else {
|
} else {
|
||||||
this.faceSheetForm.faceSheetFlag = false
|
this.faceSheetForm.faceSheetFlag = false
|
||||||
this.onpenText = false;
|
this.openText = false;
|
||||||
}
|
}
|
||||||
this.faceSheetForm.customerName = res.result.customerName;
|
this.faceSheetForm.customerName = res.result.customerName;
|
||||||
this.faceSheetForm.customerPwd = res.result.customerPwd;
|
this.faceSheetForm.customerPwd = res.result.customerPwd;
|
||||||
|
@ -303,7 +273,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
submit() {
|
submit() {
|
||||||
if ( !this.row.selected) {
|
if (!this.row.selected) {
|
||||||
API_Shop.logisticsChecked(
|
API_Shop.logisticsChecked(
|
||||||
this.row.logisticsId,
|
this.row.logisticsId,
|
||||||
this.faceSheetForm
|
this.faceSheetForm
|
||||||
|
@ -349,7 +319,7 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.faceSheetInput{
|
.faceSheetInput {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -272,8 +272,6 @@ import liliMap from "@/views/my-components/map/index";
|
||||||
import regionMap from "@/views/lili-components/region";
|
import regionMap from "@/views/lili-components/region";
|
||||||
import * as RegExp from "@/libs/RegExp.js";
|
import * as RegExp from "@/libs/RegExp.js";
|
||||||
import Cookies from "js-cookie";
|
import Cookies from "js-cookie";
|
||||||
import {editDeliverAddress, getDeliverAddress} from "../../api/shops";
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "shopSetting",
|
name: "shopSetting",
|
||||||
components: {
|
components: {
|
||||||
|
@ -298,7 +296,7 @@ export default {
|
||||||
},
|
},
|
||||||
//库存预警form
|
//库存预警form
|
||||||
stockWarningForm: {
|
stockWarningForm: {
|
||||||
stockWarning: "", // 库存预警数量
|
stockWarning: 0, // 库存预警数量
|
||||||
},
|
},
|
||||||
//im form
|
//im form
|
||||||
udeskForm: {
|
udeskForm: {
|
||||||
|
@ -458,7 +456,7 @@ export default {
|
||||||
Cookies.set("userInfoSeller", JSON.stringify(res.result));
|
Cookies.set("userInfoSeller", JSON.stringify(res.result));
|
||||||
//库存预警数赋值
|
//库存预警数赋值
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.stockWarningForm.stockWarning = res.result.stockWarning + "";
|
this.stockWarningForm.stockWarning = res.result.stockWarning;
|
||||||
});
|
});
|
||||||
if (res.result.merchantEuid) {
|
if (res.result.merchantEuid) {
|
||||||
//赋予坐席id
|
//赋予坐席id
|
||||||
|
@ -479,7 +477,6 @@ export default {
|
||||||
API_Shop.getDeliverAddress().then(res=>{
|
API_Shop.getDeliverAddress().then(res=>{
|
||||||
if(res.success){
|
if(res.success){
|
||||||
if(res.result!= '' && res.result != null){
|
if(res.result!= '' && res.result != null){
|
||||||
console.log(89898999998)
|
|
||||||
this.addressGoods = res.result;
|
this.addressGoods = res.result;
|
||||||
this.regionGoods = res.result.salesConsignorAddressPath;
|
this.regionGoods = res.result.salesConsignorAddressPath;
|
||||||
this.regionIdS = res.result.salesConsignorAddressId;
|
this.regionIdS = res.result.salesConsignorAddressId;
|
||||||
|
|
Loading…
Reference in New Issue