|
|
@@ -54,12 +54,13 @@
|
|
|
<template >
|
|
|
<div style="display: flex">
|
|
|
<div v-for="res in scope.row.buttonList" >
|
|
|
- <el-button v-if="res.type=='item'&&res.show==1&&res.disable==0" size="small">该花材</el-button>
|
|
|
- <el-button v-if="res.type=='item'&&res.show==1&&res.disable==1" size="small" disabled>该花材</el-button>
|
|
|
+ <el-button v-if="res.type=='item'&&res.show==1&&res.disable==0" size="small">改花材</el-button>
|
|
|
+ <el-button v-if="res.type=='item'&&res.show==1&&res.disable==1" size="small" disabled>改花材</el-button>
|
|
|
|
|
|
- <el-button v-if="res.type=='send'&&res.show==1&&res.disable==0" @click="shipDrawFn(scope.row)" size="mini" type="primary" plain >发货</el-button>
|
|
|
- <el-button v-if="res.type=='send'&&res.show==1&&res.disable==1" disabled size="mini" type="primary" plain >发货</el-button>
|
|
|
+ <el-button v-if="res.type=='send'&&res.show==1&&res.disable==0" @click="shipDrawFn(scope.row)" size="mini" type="primary" plain >发货</el-button>
|
|
|
+ <el-button v-if="res.type=='send'&&res.show==1&&res.disable==1" disabled size="mini" plain>发货</el-button>
|
|
|
|
|
|
+<<<<<<< HEAD
|
|
|
<el-popover v-if="res.type=='selfGet'&&res.show==1&&res.disable==0" style="margin-left:14px;" placement="top" width="160" :ref="'popover-'+scope.row.id">
|
|
|
<p>确认已自取?</p>
|
|
|
<div style="text-align: right; margin: 0">
|
|
|
@@ -69,38 +70,24 @@
|
|
|
<el-button slot="reference" size="mini" type="primary" plain>自取</el-button>
|
|
|
</el-popover>
|
|
|
<el-button v-if="res.type=='selfGet'&&res.show==1&&res.disable==1" style="margin-left:14px;" size="small" disabled>自取</el-button>
|
|
|
+=======
|
|
|
+ <el-popover v-if="res.type=='selfGet'&&res.show==1&&res.disable==0" style="margin-left:14px;" placement="top" width="160" :ref="'popover-' + scope.row.id">
|
|
|
+ <p>确认已自取?</p>
|
|
|
+ <div style="text-align: right; margin: 0">
|
|
|
+ <el-button size="mini" type="text" @click="selfGetCancel(scope.row.id)">取消</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="noSendShipFn(scope.row)">确定</el-button>
|
|
|
+ </div>
|
|
|
+ <el-button slot="reference" size="mini" type="primary" plain>自取</el-button>
|
|
|
+ </el-popover>
|
|
|
+
|
|
|
+ <el-button v-if="res.type=='selfGet'&&res.show==1&&res.disable==1" style="margin-left:14px;" size="small" disabled>自取</el-button>
|
|
|
+>>>>>>> c152898eff6c05dd8e94bfbce1875015c3e46726
|
|
|
|
|
|
- <el-button v-if="res.type=='print'&&res.show==1&&res.disable==0" @click="printOrder(scope.row)" size="mini" type="primary" plain style="margin-left:14px;">打印</el-button>
|
|
|
- <el-button v-if="res.type=='print'&&res.show==1&&res.disable==1" disabled size="mini" type="primary" plain style="margin-left:14px;">打印</el-button>
|
|
|
+ <el-button v-if="res.type=='print'&&res.show==1&&res.disable==0" @click="printOrder(scope.row)" size="mini" type="primary" plain style="margin-left:14px;">打印</el-button>
|
|
|
+ <el-button v-if="res.type=='print'&&res.show==1&&res.disable==1" disabled size="mini" plain style="margin-left:14px;">打印</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
-<!-- <template v-if="scope.row.status == 1">-->
|
|
|
-<!-- <el-button size="small" disabled>打印</el-button>-->
|
|
|
-<!-- <el-button size="small" disabled>自取</el-button>-->
|
|
|
-<!-- <el-button size="small" disabled>发货</el-button>-->
|
|
|
-<!-- </template>-->
|
|
|
-<!-- <template v-else-if="['4', '5', '6'].indexOf(scope.row.status) != -1"></template>-->
|
|
|
-<!-- <template v-else>-->
|
|
|
-<!-- <template v-if="scope.row.currentFlow == 1">-->
|
|
|
-<!-- <el-popover placement="top" width="160" :ref="'popover-' + scope.row.id">-->
|
|
|
-<!-- <p>确认已自取?</p>-->
|
|
|
-<!-- <div style="text-align: right; margin: 0">-->
|
|
|
-<!-- <el-button size="mini" type="text" @click="selfGetCancel(scope.row.id)">取消</el-button>-->
|
|
|
-<!-- <el-button type="primary" size="mini" @click="noSendShipFn(scope.row)">确定</el-button>-->
|
|
|
-<!-- </div>-->
|
|
|
-<!-- <el-button slot="reference" size="mini" type="primary" plain>自取</el-button>-->
|
|
|
-<!-- </el-popover>-->
|
|
|
-<!-- <el-button @click="shipDrawFn(scope.row)" size="mini" type="primary" plain style="margin-left:14px;">发货</el-button>-->
|
|
|
-<!-- <el-button @click="printOrder(scope.row)" size="mini" type="primary" plain style="margin-left:14px;">打印</el-button>-->
|
|
|
-<!-- </template>-->
|
|
|
-<!-- <template v-else>-->
|
|
|
-<!-- <el-button size="mini" type="primary" plain @click="shipDrawFn(scope.row)">发货</el-button>-->
|
|
|
-<!-- <el-button @click="printOrder(scope.row)" size="mini" type="primary" plain style="margin-left:14px;">打印</el-button>-->
|
|
|
-<!-- </template>-->
|
|
|
-
|
|
|
-<!-- </template>-->
|
|
|
</template>
|
|
|
</x-crud>
|
|
|
<!-- 用户详情 -->
|
|
|
@@ -112,9 +99,9 @@
|
|
|
|
|
|
<table border="0" width="780" style="border:solid 1px #fff;border-collapse:collapse">
|
|
|
<tr>
|
|
|
- <td style="padding: 10px;width: 260px;">客户:{{orderMsg.customName}}</td>
|
|
|
- <td style="padding: 10px;width: 260px;">单号:{{orderMsg.orderSn}}</td>
|
|
|
- <td style="padding: 10px;width: 260px;">日期:{{orderMsg.deadline}}</td>
|
|
|
+ <td style="padding: 10px;width: 260px;">客户:{{orderInfo.customName}}</td>
|
|
|
+ <td style="padding: 10px;width: 260px;">单号:{{orderInfo.orderSn}}</td>
|
|
|
+ <td style="padding: 10px;width: 260px;">日期:{{orderInfo.deadline}}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
<table border="1" width="780" style="border:solid 1px black;border-collapse:collapse">
|
|
|
@@ -127,7 +114,7 @@
|
|
|
<td style="padding: 10px;width: 100px;text-align: center;">金额</td>
|
|
|
<td style="padding: 10px;width: 100px;text-align: center;">备注</td>
|
|
|
</tr>
|
|
|
- <tr v-for="(res,i) in orderMsg.product">
|
|
|
+ <tr v-for="(res,i) in orderInfo.product">
|
|
|
<td style="padding: 10px;width: 100px;text-align: center;">{{ i+1 }}</td>
|
|
|
<td style="padding: 10px;width: 100px;text-align: center;">{{ res.name }}</td>
|
|
|
<td style="padding: 10px;width: 100px;text-align: center;">扎/支</td>
|
|
|
@@ -138,19 +125,19 @@
|
|
|
<td style="padding: 10px;width: 100px;text-align: center;"></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td style="padding: 10px;width: 100px;" colspan="2">合计:{{orderMsg.actPrice}}</td>
|
|
|
- <td style="padding: 10px;width: 100px;" colspan="2">实收:{{orderMsg.debt==0?orderMsg.actPrice:'0.00'}}</td>
|
|
|
- <td style="padding: 10px;width: 100px;" colspan="2">欠款:{{orderMsg.debt==1?orderMsg.actPrice:'0.00'}}</td>
|
|
|
+ <td style="padding: 10px;width: 100px;" colspan="2">合计:{{orderInfo.actPrice}}</td>
|
|
|
+ <td style="padding: 10px;width: 100px;" colspan="2">实收:{{orderInfo.debt==0?orderInfo.actPrice:'0.00'}}</td>
|
|
|
+ <td style="padding: 10px;width: 100px;" colspan="2">欠款:{{orderInfo.debt==1?orderInfo.actPrice:'0.00'}}</td>
|
|
|
<td style="padding: 10px;width: 100px;"></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td style="padding: 10px;width: 100px;">其他说明:</td>
|
|
|
- <td style="padding: 10px;width: 100px;" colspan="6">{{orderMsg.remark}}</td>
|
|
|
+ <td style="padding: 10px;width: 100px;" colspan="6">{{orderInfo.remark}}</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
<table border="0" width="780" style="border:solid 1px #fff;border-collapse:collapse">
|
|
|
<tr >
|
|
|
- <td style="padding: 10px;width: 260px;">开单:{{orderMsg.shopAdminName}}</td>
|
|
|
+ <td style="padding: 10px;width: 260px;">开单:{{orderInfo.shopAdminName}}</td>
|
|
|
<td style="padding: 10px;width: 260px;">配送:</td>
|
|
|
<td style="padding: 10px;width: 260px;">打印时间:{{todays(1)}}</td>
|
|
|
</tr>
|
|
|
@@ -201,7 +188,7 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
optionData: {},
|
|
|
- orderMsg:'',
|
|
|
+ orderInfo:'',
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -231,7 +218,7 @@ export default {
|
|
|
},
|
|
|
printOrder(e){
|
|
|
this.$service.order.info({ id: e.id }).then(res => {
|
|
|
- this.orderMsg = res;
|
|
|
+ this.orderInfo = res;
|
|
|
this.$nextTick(() => {
|
|
|
let LODOP = getLodop();
|
|
|
|
|
|
@@ -393,12 +380,12 @@ export default {
|
|
|
])
|
|
|
.on('refresh', async (params, { next }) => {
|
|
|
// 继续执行刷新
|
|
|
- let asset = await next(params);
|
|
|
- this.tabsData[0].val = asset.allNum;
|
|
|
- this.tabsData[1].val = asset.unPayNum;
|
|
|
- this.tabsData[2].val = asset.unSendNum;
|
|
|
- this.tabsData[3].val = asset.sendingNum;
|
|
|
- this.tabsData[4].val = asset.finishNum;
|
|
|
+ let res = await next(params);
|
|
|
+ this.tabsData[0].val = res.shop.totalOrder;
|
|
|
+ this.tabsData[1].val = res.shop.unPayOrder;
|
|
|
+ this.tabsData[2].val = res.shop.unSendOrder;
|
|
|
+ this.tabsData[3].val = res.shop.sendingOrder;
|
|
|
+ this.tabsData[4].val = res.shop.finishOrder;
|
|
|
})
|
|
|
.done();
|
|
|
app.refresh({ status: this.tabIndex });
|