|
@@ -53,7 +53,7 @@
|
|
|
<!-- 打单 -->
|
|
<!-- 打单 -->
|
|
|
<template v-if="item.actionName == '打单'">
|
|
<template v-if="item.actionName == '打单'">
|
|
|
<div v-if="$util.isEmpty(item.receive) && index == 0">
|
|
<div v-if="$util.isEmpty(item.receive) && index == 0">
|
|
|
- <el-button type="primary" @click="printOrderFn(index)"
|
|
|
|
|
|
|
+ <el-button type="primary" @click="hasDeliver"
|
|
|
>有配送单</el-button
|
|
>有配送单</el-button
|
|
|
>
|
|
>
|
|
|
<el-button type="primary" @click="fillFormFn">填单</el-button>
|
|
<el-button type="primary" @click="fillFormFn">填单</el-button>
|
|
@@ -66,9 +66,8 @@
|
|
|
/>
|
|
/>
|
|
|
<span v-else>无配送信息</span>
|
|
<span v-else>无配送信息</span>
|
|
|
<div style="margin-top: 10px" v-if="!$util.isEmpty(item.receive)">
|
|
<div style="margin-top: 10px" v-if="!$util.isEmpty(item.receive)">
|
|
|
- <el-button size="mini" @click="printOrderFn(index)">{{
|
|
|
|
|
- index == 0 ? '打印' : '重打'
|
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
|
+ <el-button size="mini" v-if="orderData.printStatus == 0" @click="printOrderFn">打印</el-button>
|
|
|
|
|
+ <el-button size="mini" v-else @click="rePrintOrderFn">重打</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -76,20 +75,20 @@
|
|
|
<template v-if="item.actionName == '发货'">
|
|
<template v-if="item.actionName == '发货'">
|
|
|
<div v-if="item.finishTime == 0">
|
|
<div v-if="item.finishTime == 0">
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-<el-popover
|
|
|
|
|
- placement="top"
|
|
|
|
|
- width="160"
|
|
|
|
|
- v-model="sendMySelfConfirm">
|
|
|
|
|
- <p>确认已送达?</p>
|
|
|
|
|
- <div style="text-align: right; margin: 0">
|
|
|
|
|
- <el-button size="mini" type="text" @click="sendMySelfConfirm = false">取消</el-button>
|
|
|
|
|
- <el-button type="primary" size="mini" @click="sendMySelfFn">确定</el-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- <el-button type="primary" size="small" slot="reference">自己送</el-button>
|
|
|
|
|
-</el-popover>
|
|
|
|
|
|
|
+ <el-popover
|
|
|
|
|
+ placement="top"
|
|
|
|
|
+ width="160"
|
|
|
|
|
+ v-model="sendMySelfConfirm">
|
|
|
|
|
+ <p>确认已送达?</p>
|
|
|
|
|
+ <div style="text-align: right; margin: 0">
|
|
|
|
|
+ <el-button size="mini" type="text" @click="sendMySelfConfirm = false">取消</el-button>
|
|
|
|
|
+ <el-button type="primary" size="mini" @click="sendMySelfFn">确定</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <el-button type="primary" size="small" slot="reference">自己送</el-button>
|
|
|
|
|
+ </el-popover>
|
|
|
|
|
|
|
|
<el-button type="primary" size="small" @click="sendShipFn" style="margin-left:15px;">代送</el-button>
|
|
<el-button type="primary" size="small" @click="sendShipFn" style="margin-left:15px;">代送</el-button>
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
<div v-else>
|
|
<div v-else>
|
|
|
<template v-if="!$util.isEmpty(item.sendInfo)">
|
|
<template v-if="!$util.isEmpty(item.sendInfo)">
|
|
@@ -305,7 +304,7 @@
|
|
|
label-width="100px"
|
|
label-width="100px"
|
|
|
class="demo-form"
|
|
class="demo-form"
|
|
|
>
|
|
>
|
|
|
- <template v-if="shipForm.sendType == 3">
|
|
|
|
|
|
|
+ <template>
|
|
|
<el-form-item label="送花时间" prop="sendTime">
|
|
<el-form-item label="送花时间" prop="sendTime">
|
|
|
<el-time-select
|
|
<el-time-select
|
|
|
v-model="shipForm.sendTime"
|
|
v-model="shipForm.sendTime"
|
|
@@ -638,20 +637,25 @@ export default {
|
|
|
this.showShipManage = false;
|
|
this.showShipManage = false;
|
|
|
},
|
|
},
|
|
|
// =========================
|
|
// =========================
|
|
|
- // 打单
|
|
|
|
|
- async printOrderFn(index) {
|
|
|
|
|
- if (index == '0') {
|
|
|
|
|
- await this.$service.single.printOrder({ id: this.orderData.id, option: 1 });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- //this.$message.success('打单成功!');
|
|
|
|
|
|
|
+ //有配送单
|
|
|
|
|
+ hasDeliver(){
|
|
|
|
|
+ this.$service.single.printOrder({ id: this.orderData.id, option: 1 }).then(res =>{
|
|
|
|
|
+ this.getDet();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+ //打单
|
|
|
|
|
+ async printOrderFn() {
|
|
|
|
|
+ await this.$service.single.printOrder({ id: this.orderData.id, option: 2 });
|
|
|
this.getDet();
|
|
this.getDet();
|
|
|
-
|
|
|
|
|
- this.$service.order.deliver({ id: this.orderData.id }).then(res => {
|
|
|
|
|
|
|
+ this.$service.order.getDeliverDetail({ id: this.orderData.id }).then(res => {
|
|
|
this.deliver.data = res;
|
|
this.deliver.data = res;
|
|
|
- //this.printOrder();
|
|
|
|
|
|
|
+ this.printOrder();
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ //重打
|
|
|
|
|
+ rePrintOrderFn(){
|
|
|
|
|
+ this.printOrder();
|
|
|
|
|
+ },
|
|
|
// 填单
|
|
// 填单
|
|
|
fillFormFn() {
|
|
fillFormFn() {
|
|
|
this.orderDialog = true;
|
|
this.orderDialog = true;
|
|
@@ -663,6 +667,9 @@ export default {
|
|
|
this.$service.single
|
|
this.$service.single
|
|
|
.orderDeliver({ id: this.orderData.id, option: 1, ...this.shipForm })
|
|
.orderDeliver({ id: this.orderData.id, option: 1, ...this.shipForm })
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
|
|
+
|
|
|
|
|
+ this.$message.success('已确认!');
|
|
|
|
|
+
|
|
|
this.getDet();
|
|
this.getDet();
|
|
|
// this.shipDialog = false;
|
|
// this.shipDialog = false;
|
|
|
this.resetForm();
|
|
this.resetForm();
|
|
@@ -683,6 +690,9 @@ export default {
|
|
|
this.$service.single
|
|
this.$service.single
|
|
|
.orderDeliver({ id: this.orderData.id, option: 1, ...this.shipForm })
|
|
.orderDeliver({ id: this.orderData.id, option: 1, ...this.shipForm })
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
|
|
+
|
|
|
|
|
+ this.$message.success('已提交!');
|
|
|
|
|
+
|
|
|
this.getDet();
|
|
this.getDet();
|
|
|
// this.shipDialog = false;
|
|
// this.shipDialog = false;
|
|
|
this.resetForm();
|
|
this.resetForm();
|