配送模板修改

master
mabo 2021-05-25 18:37:29 +08:00
parent 7729031efa
commit 978db4e624
4 changed files with 39 additions and 38 deletions

View File

@ -65,9 +65,17 @@
<FormItem label="详细地址" prop="salesConsigneeDetail"> <FormItem label="详细地址" prop="salesConsigneeDetail">
<Input v-model="shopForm.salesConsigneeDetail" clearable style="width: 350px" /> <Input v-model="shopForm.salesConsigneeDetail" clearable style="width: 350px" />
</FormItem> </FormItem>
<Divider orientation="left">腾讯云智服</Divider>
<FormItem label="唯一标识" prop="salesConsigneeDetail">
<Input v-model="shopForm.yzfSign" clearable style="width: 350px" />
</FormItem>
<FormItem label="小程序唯一标识" prop="salesConsigneeDetail">
<Input v-model="shopForm.yzfMpSign" clearable style="width: 350px" />
</FormItem>
<Spin fix v-if="loading"></Spin> <Spin fix v-if="loading"></Spin>
</div> </div>
</TabPane> </TabPane>
<!-- 入驻信息 -->
<TabPane label="入驻信息" class="tab" name="sms"> <TabPane label="入驻信息" class="tab" name="sms">
<!-- 遮罩层 --> <!-- 遮罩层 -->
<div v-if="isRead" class="mask"></div> <div v-if="isRead" class="mask"></div>

View File

@ -31,7 +31,7 @@
<DropdownItem name="uppers">批量上架</DropdownItem> <DropdownItem name="uppers">批量上架</DropdownItem>
<DropdownItem name="lowers">批量下架</DropdownItem> <DropdownItem name="lowers">批量下架</DropdownItem>
<DropdownItem name="deleteAll">批量删除</DropdownItem> <DropdownItem name="deleteAll">批量删除</DropdownItem>
<DropdownItem name="batchShipTemplate">批量设置运费模板</DropdownItem> <!-- <DropdownItem name="batchShipTemplate">批量设置运费模板</DropdownItem> -->
</DropdownMenu> </DropdownMenu>
</Dropdown> </Dropdown>
</Row> </Row>

View File

@ -522,7 +522,7 @@
<span slot="append">kg</span> <span slot="append">kg</span>
</Input> </Input>
</FormItem> </FormItem>
<FormItem class="form-item-view-el" label="运费" prop="skuList"> <!-- <FormItem class="form-item-view-el" label="运费" prop="skuList">
<RadioGroup type="button" button-style="solid" <RadioGroup type="button" button-style="solid"
@on-change="logisticsTemplateChange" @on-change="logisticsTemplateChange"
v-model="baseInfoForm.freightPayer" v-model="baseInfoForm.freightPayer"
@ -534,7 +534,7 @@
<span>使用物流规则</span> <span>使用物流规则</span>
</Radio> </Radio>
</RadioGroup> </RadioGroup>
</FormItem> </FormItem> -->
<FormItem <FormItem
class="form-item-view-el" class="form-item-view-el"
label="物流模板" label="物流模板"
@ -699,7 +699,7 @@ export default {
this.baseInfoForm = { this.baseInfoForm = {
salesModel: "RETAIL", salesModel: "RETAIL",
goodsParamsList: [], goodsParamsList: [],
freightPayer: "STORE", // freightPayer: "STORE",
weight: "", weight: "",
goodsGalleryFiles: [], goodsGalleryFiles: [],
release: "true", release: "true",
@ -844,7 +844,7 @@ export default {
/** 商品参数列表 */ /** 商品参数列表 */
goodsParamsList: [], goodsParamsList: [],
/** 运费承担者 */ /** 运费承担者 */
freightPayer: "STORE", // freightPayer: "STORE",
/** 商品重量 */ /** 商品重量 */
weight: "", weight: "",
/** 商品相册列表 */ /** 商品相册列表 */
@ -1007,7 +1007,7 @@ export default {
this.baseInfoForm = { this.baseInfoForm = {
salesModel: "RETAIL", salesModel: "RETAIL",
goodsParamsList: [], goodsParamsList: [],
freightPayer: "STORE", // freightPayer: "STORE",
weight: "", weight: "",
goodsGalleryFiles: [], goodsGalleryFiles: [],
release: "true", release: "true",
@ -1235,14 +1235,14 @@ export default {
...response.result, ...response.result,
}; };
console.warn(this.baseInfoForm); console.warn(this.baseInfoForm);
if (this.baseInfoForm.freightPayer === "BUYER") { // if (this.baseInfoForm.freightPayer === "BUYER") {
API_Shop.getShipTemplate().then((res) => { // API_Shop.getShipTemplate().then((res) => {
if (res.success) { // if (res.success) {
this.logisticsTemplate = res.result; // this.logisticsTemplate = res.result;
} // }
}); // });
this.logisticsTemplateShow = true; // this.logisticsTemplateShow = true;
} // }
this.baseInfoForm.release = "true"; this.baseInfoForm.release = "true";
this.baseInfoForm.recommend = this.baseInfoForm.recommend this.baseInfoForm.recommend = this.baseInfoForm.recommend
? "true" ? "true"
@ -1840,9 +1840,9 @@ export default {
return; return;
} }
// 0 // 0
if (this.baseInfoForm.freightPayer !== "BUYER") { // if (this.baseInfoForm.freightPayer !== "BUYER") {
this.baseInfoForm.templateId = 0; // this.baseInfoForm.templateId = 0;
} // }
this.baseInfoForm.skuList = this.skuTableData.map((sku) => { this.baseInfoForm.skuList = this.skuTableData.map((sku) => {
delete sku._index; delete sku._index;

View File

@ -69,9 +69,10 @@
<RadioGroup type="button" button-style="solid" v-model="form.pricingMethod"> <RadioGroup type="button" button-style="solid" v-model="form.pricingMethod">
<Radio label="WEIGHT">按重量</Radio> <Radio label="WEIGHT">按重量</Radio>
<Radio label="NUM">按件数</Radio> <Radio label="NUM">按件数</Radio>
<Radio label="FREE">包邮</Radio>
</RadioGroup> </RadioGroup>
</FormItem> </FormItem>
<FormItem label="详细设置"> <FormItem label="详细设置" v-if="form.pricingMethod !== 'FREE'">
<div class="ncsu-trans-type" data-delivery="TRANSTYPE"> <div class="ncsu-trans-type" data-delivery="TRANSTYPE">
<div class="entity"> <div class="entity">
<div class="tbl-except"> <div class="tbl-except">
@ -101,17 +102,17 @@
<Input class="text w40" type="text" v-model="item.firstCompany" maxlength="3" clearable /> <Input class="text w40" type="text" v-model="item.firstCompany" maxlength="3" clearable />
</td> </td>
<td> <td>
<Input class="text w60" type="text" v-model="item.firstPrice" maxlength="6" clearable /><em class="add-on"> <Input class="text w60" type="text" v-model="item.firstPrice" maxlength="6" clearable >
<span slot="append"></span>
</em> </Input>
</td> </td>
<td> <td>
<Input class="text w40" type="text" v-model="item.continuedCompany" maxlength="6" clearable /> <Input class="text w40" type="text" v-model="item.continuedCompany" maxlength="6" clearable />
</td> </td>
<td> <td>
<Input class="text w60" type="text" v-model="item.continuedPrice" maxlength="6" clearable /><em class="add-on"> <Input class="text w60" type="text" v-model="item.continuedPrice" maxlength="6" clearable>
<span slot="append"></span>
</em> </Input>
</td> </td>
<td class="nscs-table-handle"> <td class="nscs-table-handle">
<Button @click="editRegion(item,index)" type="info" size="small" style="margin-bottom: 5px">修改 <Button @click="editRegion(item,index)" type="info" size="small" style="margin-bottom: 5px">修改
@ -141,7 +142,7 @@
</div> </div>
</FormItem> </FormItem>
<Form-item> <Form-item>
<Button @click="addShipTemplateChildren(index)" :loading="submitLoading" icon="ios-create-outline" >为指定城市设置运费模板 <Button @click="addShipTemplateChildren(index)" v-if="form.pricingMethod !== 'FREE'" icon="ios-create-outline" >为指定城市设置运费模板
</Button> </Button>
<Button @click="handleSubmit" :loading="submitLoading" type="primary" style="margin-right:5px">保存 <Button @click="handleSubmit" :loading="submitLoading" type="primary" style="margin-right:5px">保存
</Button> </Button>
@ -312,6 +313,7 @@ export default {
const regNumber = /^\+?[1-9][0-9]*$/; const regNumber = /^\+?[1-9][0-9]*$/;
const regMoney = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; const regMoney = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/;
if (valid) { if (valid) {
debugger;
// //
for (let i = 0; i < this.form.freightTemplateChildList.length; i++) { for (let i = 0; i < this.form.freightTemplateChildList.length; i++) {
if ( if (
@ -341,6 +343,8 @@ export default {
return; return;
} }
} }
console.log(1111);
if (this.operation == "ADD") { if (this.operation == "ADD") {
API_Shop.addShipTemplate(this.form, headers).then((res) => { API_Shop.addShipTemplate(this.form, headers).then((res) => {
if (res.success) { if (res.success) {
@ -541,7 +545,8 @@ textarea {
} }
.w60 { .w60 {
width: 80px !important; width: 100px !important;
margin: 0 auto;
} }
Input[type="text"], Input[type="text"],
@ -555,18 +560,6 @@ Input.password {
outline: 0 none; outline: 0 none;
} }
.add-on {
line-height: 28px;
background-color: #f6f7fb;
vertical-align: top;
display: inline-block;
text-align: center;
width: 30px;
height: 30px;
border: solid #e6e9ee;
border-width: 1px 1px 1px 0;
}
ncsc-default-table { ncsc-default-table {
line-height: 20px; line-height: 20px;
width: 100%; width: 100%;