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