|
|
@@ -3,7 +3,8 @@
|
|
|
|
|
|
<button class="admin-button-com big blue" @click="goDetail()">查看详情</button>
|
|
|
<button class="admin-button-com big blue" @click="goOn()">继续拆散</button>
|
|
|
- <button class="admin-button-com big" @click="goList">拆散记录</button>
|
|
|
+ <button class="admin-button-com big" @click="goList">拆散记录</button>
|
|
|
+ <button class="admin-button-com big" @click="printPart">打印</button>
|
|
|
<button class="admin-button-com big" @click="goBackHome">返回</button>
|
|
|
|
|
|
<!-- #ifdef MP-WEIXIN -->
|
|
|
@@ -17,6 +18,7 @@
|
|
|
<script>
|
|
|
import appResult from "@/components/app-result"
|
|
|
import { CURRENT_ENV } from "@/config"
|
|
|
+import { printPartOrder } from "@/api/part";
|
|
|
export default {
|
|
|
name: "result",
|
|
|
components: {
|
|
|
@@ -26,12 +28,14 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
title:'拆散成功',
|
|
|
- currentEnv:'production'
|
|
|
+ currentEnv:'production',
|
|
|
+ orderSn:''
|
|
|
};
|
|
|
},
|
|
|
onLoad() {
|
|
|
//当前环境
|
|
|
this.currentEnv = CURRENT_ENV
|
|
|
+ this.orderSn = this.option.orderSn
|
|
|
},
|
|
|
methods: {
|
|
|
init() {
|
|
|
@@ -51,6 +55,15 @@ export default {
|
|
|
},
|
|
|
goBackHome() {
|
|
|
uni.navigateBack({ delta: 1 });
|
|
|
+ },
|
|
|
+ printPart(){
|
|
|
+ printPartOrder({orderSn:this.orderSn}).then(res=>{
|
|
|
+ if(res.data.hasNoPrint == 1){
|
|
|
+ this.$util.confirmModal({content:'请先设置打印机'},() => {
|
|
|
+ this.$util.pageTo({url: "/admin/shop/print"})
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
};
|