运费模板修改
parent
c9c6b1d690
commit
ff85c3f68f
|
@ -1,7 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search">
|
<div class="search">
|
||||||
<Row>
|
|
||||||
<Col>
|
|
||||||
<Card>
|
<Card>
|
||||||
<Row>
|
<Row>
|
||||||
<Button @click="refresh">刷新</Button>
|
<Button @click="refresh">刷新</Button>
|
||||||
|
@ -26,7 +24,7 @@
|
||||||
</span>
|
</span>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr v-if="item.pricingMethod!=='FREE'">
|
||||||
<td class="w10 bdl"></td>
|
<td class="w10 bdl"></td>
|
||||||
<td class="cell-area tl">运送到</td>
|
<td class="cell-area tl">运送到</td>
|
||||||
<td class="w150">首件(重)
|
<td class="w150">首件(重)
|
||||||
|
@ -38,8 +36,8 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="w150 bdr">运费</td>
|
<td class="w150 bdr">运费</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<template v-if="item.pricingMethod!=='FREE'">
|
||||||
<tr v-for="(children,index) in item.freightTemplateChildList">
|
<tr v-for="(children,index) in item.freightTemplateChildList" :key="index">
|
||||||
<td class="bdl"></td>
|
<td class="bdl"></td>
|
||||||
<td class="cell-area tl" style="width: 60%">{{children.area}}</td>
|
<td class="cell-area tl" style="width: 60%">{{children.area}}</td>
|
||||||
<td>
|
<td>
|
||||||
|
@ -55,6 +53,8 @@
|
||||||
<span class="yuan">¥</span><span class="integer">{{children.continuedPrice | unitPrice}}</span>
|
<span class="yuan">¥</span><span class="integer">{{children.continuedPrice | unitPrice}}</span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
</template>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
@ -151,8 +151,6 @@
|
||||||
</TabPane>
|
</TabPane>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</Card>
|
</Card>
|
||||||
</Col>
|
|
||||||
</Row>
|
|
||||||
<multiple-region ref="region" @selected="handleSelect" @closed="handleClose">
|
<multiple-region ref="region" @selected="handleSelect" @closed="handleClose">
|
||||||
|
|
||||||
</multiple-region>
|
</multiple-region>
|
||||||
|
@ -313,7 +311,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;
|
if (this.form.pricingMethod != 'FREE') {
|
||||||
//校验运费模板详细信息
|
//校验运费模板详细信息
|
||||||
for (let i = 0; i < this.form.freightTemplateChildList.length; i++) {
|
for (let i = 0; i < this.form.freightTemplateChildList.length; i++) {
|
||||||
if (
|
if (
|
||||||
|
@ -343,7 +341,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) => {
|
||||||
|
|
Loading…
Reference in New Issue