Authored by lzhy

一件代发

... ... @@ -22,7 +22,7 @@
<Row>
<i-col span="24">
物流公司:
<template v-for="(item, index)in logisticsList">
<template v-for="(item, index) in logisticsList">
<span v-if="item.id == orderInfo.expressId" :key="index">{{ item.companyName }}</span>
</template>
</i-col>
... ...
... ... @@ -6,7 +6,7 @@
<layout-filter ref="filter">
<Row>
<filter-item label="快递公司">
<Select v-model.trim="expressId" clearable>
<Select v-model.trim="orderInfo.expressId" clearable>
<Option v-for="option in logisticsList" :key="option.id" :value="option.id">
{{ option.companyName }}
</Option>
... ... @@ -15,7 +15,7 @@
</Row>
<Row>
<filter-item label="快递单号">
<Input v-model.trim="expressNumber" />
<Input v-model.trim="orderInfo.expressNumber" />
</filter-item>
</Row>
<filter-item>
... ... @@ -68,19 +68,8 @@ export default {
showExpressLoading: false,
showDeliverLoading: false,
showNoExpressLoading: false,
newOrderInfo: [],
expressId: 0,
expressNumber: '',
};
},
watch: {
orderInfo: {
handler(newValue) {
this.expressId = newValue.expressId;
this.expressNumber = newValue.expressNumber;
},
},
},
created() {
this.LogisticsService = new LogisticsService();
this.OrderService = new OrderService();
... ... @@ -100,8 +89,8 @@ export default {
this.showExpressLoading = true;
this.OrderService.confirmExpress({
orderCode: +this.orderCode,
expressId: +this.expressId,
expressNumber: this.expressNumber,
expressId: +this.orderInfo.expressId,
expressNumber: this.orderInfo.expressNumber,
}).then(ret => {
this.showExpressLoading = false;
if (ret.code === 200) {
... ... @@ -117,8 +106,8 @@ export default {
this.showDeliverLoading = true;
this.LogisticsService.proxyOutStorage({
orderCode: +this.orderCode,
expressId: +this.expressId,
expressNumber: this.expressNumber,
expressId: +this.orderInfo.expressId,
expressNumber: this.orderInfo.expressNumber,
}).then(ret => {
if (ret.code === 200) {
this.$Message.info(ret.message);
... ...