|
@@ -157,10 +157,11 @@
|
|
|
</template>
|
|
</template>
|
|
|
</i-table>
|
|
</i-table>
|
|
|
</FormItem>
|
|
</FormItem>
|
|
|
- <FormItem label="寄件金额计算:" v-if="selectData.length">
|
|
|
|
|
- <Button @click="watchPrice">立即计算</Button>
|
|
|
|
|
- </FormItem>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <FormItem label="寄件金额计算:">
|
|
|
|
|
+ <span class="red">{{ sendPrice }}</span>
|
|
|
|
|
+ <a class="ml10" @click="watchPrice">立即计算</a>
|
|
|
|
|
+ </FormItem>
|
|
|
</Form>
|
|
</Form>
|
|
|
<div slot="footer">
|
|
<div slot="footer">
|
|
|
<Button @click="cancel">取消</Button>
|
|
<Button @click="cancel">取消</Button>
|
|
@@ -197,11 +198,6 @@ export default {
|
|
|
pay_type: String,
|
|
pay_type: String,
|
|
|
virtual_type: Number,
|
|
virtual_type: Number,
|
|
|
},
|
|
},
|
|
|
- watch: {
|
|
|
|
|
- orderId(val) {
|
|
|
|
|
- if (this.virtual_type == 3) this.formItem.type = '3';
|
|
|
|
|
- },
|
|
|
|
|
- },
|
|
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
orderStatus: 0,
|
|
orderStatus: 0,
|
|
@@ -291,6 +287,7 @@ export default {
|
|
|
],
|
|
],
|
|
|
selectData: [],
|
|
selectData: [],
|
|
|
serviceTypeList: [],
|
|
serviceTypeList: [],
|
|
|
|
|
+ sendPrice: 0,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
@@ -298,6 +295,9 @@ export default {
|
|
|
if (newVal) {
|
|
if (newVal) {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ virtual_type(val) {
|
|
|
|
|
+ if (this.virtual_type == 3) this.formItem.type = '3';
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
this.kuaidiComsList(1);
|
|
this.kuaidiComsList(1);
|
|
@@ -322,9 +322,14 @@ export default {
|
|
|
cart_num: v.num || v.surplus_num,
|
|
cart_num: v.num || v.surplus_num,
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
- orderPrice(data).then((res) => {
|
|
|
|
|
- console.log(res);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ orderPrice(data)
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ console.log(res);
|
|
|
|
|
+ this.sendPrice = res.data.price;
|
|
|
|
|
+ })
|
|
|
|
|
+ .catch((err) => {
|
|
|
|
|
+ this.$Message.error(err.msg);
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
selectOne(data) {
|
|
selectOne(data) {
|
|
|
this.selectData = data;
|
|
this.selectData = data;
|
|
@@ -343,6 +348,9 @@ export default {
|
|
|
this.manyFormValidate.push(res.data[key]);
|
|
this.manyFormValidate.push(res.data[key]);
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.formItem.cart_ids = [];
|
|
|
|
|
+ this.selectData = [];
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
changeRadio(o) {
|
|
changeRadio(o) {
|