|
@@ -17,32 +17,49 @@
|
|
</el-row>
|
|
</el-row>
|
|
<div style="width: 100%; padding: 10px 15px 15px 15px">
|
|
<div style="width: 100%; padding: 10px 15px 15px 15px">
|
|
<el-row>
|
|
<el-row>
|
|
- <el-col :span="8" style="border-right: 1px solid #e8e8e8;">
|
|
|
|
- <div class="order-main-status">
|
|
|
|
- <span>{{ orderDetail.orderStatus | ORDER_CURRENT_STATUS_FILTER }}</span>
|
|
|
|
- </div>
|
|
|
|
- <div class="order-main-opt-btn">
|
|
|
|
- <template v-if="orderDetail.orderStatus === 'NOPAY'">
|
|
|
|
- <el-popconfirm title="确定收款吗?" @confirm="confirmOrder">
|
|
|
|
- <el-button slot="reference" size="small">确认收款</el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- <el-button size="small" @click="showDialog('price')" style="margin-left: 10px;">修改价格</el-button>
|
|
|
|
- <el-popconfirm title="确定取消订单吗?" @confirm="cancelOrder" style="margin-left: 10px;">
|
|
|
|
- <el-button slot="reference" size="small" type="danger">取消订单</el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- </template>
|
|
|
|
- <template v-if="orderDetail.orderStatus === 'DFH'">
|
|
|
|
- <el-button size="small" type="primary" @click="showDialog('send')">发货</el-button>
|
|
|
|
- <el-popconfirm title="确定取消订单吗?" @confirm="cancelOrder" style="margin-left: 10px;">
|
|
|
|
- <el-button slot="reference" size="small" type="danger">取消订单</el-button>
|
|
|
|
- </el-popconfirm>
|
|
|
|
- </template>
|
|
|
|
- <template v-if="orderDetail.orderStatus === 'YFH' || orderDetail.orderStatus === 'OVER'">
|
|
|
|
- <el-button size="small" @click="showDialog('query')">查看物流</el-button>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <el-col :span="10">
|
|
|
|
+ <div style="display: flex;">
|
|
|
|
+ <div>
|
|
|
|
+ <div class="order-main-status">
|
|
|
|
+ <span>{{ orderDetail.orderStatus | ORDER_CURRENT_STATUS_FILTER }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="order-main-opt-btn">
|
|
|
|
+ <template v-if="orderDetail.orderStatus === 'NOPAY'">
|
|
|
|
+ <el-popconfirm title="确定收款吗?" @confirm="confirmOrder">
|
|
|
|
+ <el-button slot="reference" size="small">确认收款</el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ <el-button size="small" @click="showDialog('price')" style="margin-left: 10px;">修改价格</el-button>
|
|
|
|
+ <el-popconfirm title="确定取消订单吗?" @confirm="cancelOrder" style="margin-left: 10px;">
|
|
|
|
+ <el-button slot="reference" size="small" type="danger">取消订单</el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-if="orderDetail.orderStatus === 'DFH'">
|
|
|
|
+ <el-button size="small" type="primary" @click="showDialog('send')">发货</el-button>
|
|
|
|
+ <el-popconfirm title="确定取消订单吗?" @confirm="cancelOrder" style="margin-left: 10px;">
|
|
|
|
+ <el-button slot="reference" size="small" type="danger">取消订单</el-button>
|
|
|
|
+ </el-popconfirm>
|
|
|
|
+ </template>
|
|
|
|
+ <template v-if="orderDetail.orderStatus === 'YFH' || orderDetail.orderStatus === 'OVER'">
|
|
|
|
+ <el-button size="small" @click="showDialog('query')">查看物流</el-button>
|
|
|
|
+ </template>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <el-table
|
|
|
|
+ class="specTable"
|
|
|
|
+ style="margin-left: 30px;"
|
|
|
|
+ height="120px"
|
|
|
|
+ :data="printList"
|
|
|
|
+ element-loading-text="Loading"
|
|
|
|
+ border
|
|
|
|
+ highlight-current-row
|
|
|
|
+ stripe>
|
|
|
|
+ <el-table-column align="center" label="打印人" prop="createBy" min-width="120" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="打印时间" prop="createTime" width="160"></el-table-column>
|
|
|
|
+ </el-table>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="16" style="padding-top: 10px;">
|
|
|
|
|
|
+ <el-col :span="14" style="padding-top: 10px;">
|
|
<el-steps :active="orderDetail.orderStatus != 'CLOSE' ? curOrderStatus : -1" align-center>
|
|
<el-steps :active="orderDetail.orderStatus != 'CLOSE' ? curOrderStatus : -1" align-center>
|
|
<el-step title="买家下单" :description="orderDetail.createTime"></el-step>
|
|
<el-step title="买家下单" :description="orderDetail.createTime"></el-step>
|
|
<el-step title="买家付款" :description="orderDetail.payTime ? orderDetail.payTime : ''"></el-step>
|
|
<el-step title="买家付款" :description="orderDetail.payTime ? orderDetail.payTime : ''"></el-step>
|
|
@@ -511,7 +528,7 @@ import {
|
|
confirmOrder,
|
|
confirmOrder,
|
|
getOrderDetail, goodsDeliver,
|
|
getOrderDetail, goodsDeliver,
|
|
saveRemark, orderRefund, orderCompensate, getCompensateList,
|
|
saveRemark, orderRefund, orderCompensate, getCompensateList,
|
|
- changeShow, getCodeDetail, getMaterialList, listImport, saveCode, delCode
|
|
|
|
|
|
+ changeShow, getCodeDetail, getMaterialList, listImport, saveCode, delCode, getPrintList
|
|
} from "@/api/order";
|
|
} from "@/api/order";
|
|
import { getExpress, getCompanyList } from "@/api/common";
|
|
import { getExpress, getCompanyList } from "@/api/common";
|
|
import { commonTemplateDownload } from '@/api/common.js'
|
|
import { commonTemplateDownload } from '@/api/common.js'
|
|
@@ -663,7 +680,9 @@ export default {
|
|
isEdit1: 0,
|
|
isEdit1: 0,
|
|
isEdit2: 0,
|
|
isEdit2: 0,
|
|
joinCode: JSON.parse(localStorage.getItem('greemall_user')).joinCode,
|
|
joinCode: JSON.parse(localStorage.getItem('greemall_user')).joinCode,
|
|
- orderDetailId: ''
|
|
|
|
|
|
+ orderDetailId: '',
|
|
|
|
+
|
|
|
|
+ printList: [],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -672,6 +691,7 @@ export default {
|
|
this.getStorageList();
|
|
this.getStorageList();
|
|
this.getCompanyList();
|
|
this.getCompanyList();
|
|
this.getCompensateList();
|
|
this.getCompensateList();
|
|
|
|
+ this.getPrintList();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getDetail() {
|
|
getDetail() {
|
|
@@ -680,9 +700,16 @@ export default {
|
|
this.orderDetail.workerName = this.orderDetail.workerName ? this.orderDetail.workerName : '暂无'
|
|
this.orderDetail.workerName = this.orderDetail.workerName ? this.orderDetail.workerName : '暂无'
|
|
this.orderDetail.workerPhone = this.orderDetail.workerPhone ? this.orderDetail.workerPhone : ''
|
|
this.orderDetail.workerPhone = this.orderDetail.workerPhone ? this.orderDetail.workerPhone : ''
|
|
this.evaluateDetail = res.data.orderComment;
|
|
this.evaluateDetail = res.data.orderComment;
|
|
- this.formData1.list = res.data.orderDetails
|
|
|
|
|
|
+ this.formData1.list = res.data.orderDetails
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ getPrintList() {
|
|
|
|
+ getPrintList({ orderId: this.orderId }).then(res => {
|
|
|
|
+ this.printList = res.data || [];
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+
|
|
showDialog(type) {
|
|
showDialog(type) {
|
|
this.dialogWidth = type === 'query' ? '80%' : type === 'send' ? '80%': '50%'
|
|
this.dialogWidth = type === 'query' ? '80%' : type === 'send' ? '80%': '50%'
|
|
this.remarkVisible = true
|
|
this.remarkVisible = true
|