|
@@ -11,7 +11,7 @@
|
|
|
分享给<text style="font-weight:bold;margin-left:12upx;">{{customName}}</text>
|
|
分享给<text style="font-weight:bold;margin-left:12upx;">{{customName}}</text>
|
|
|
</button>
|
|
</button>
|
|
|
<!-- #endif -->
|
|
<!-- #endif -->
|
|
|
-
|
|
|
|
|
|
|
+ <button v-if="option.title != '报损成功'" class="admin-button-com big" @click="printOrder()">打印(无价格)</button>
|
|
|
<button v-if="option.title != '报损成功'" class="admin-button-com big" @click="gotoOrderDetail">订单详情</button>
|
|
<button v-if="option.title != '报损成功'" class="admin-button-com big" @click="gotoOrderDetail">订单详情</button>
|
|
|
<button class="admin-button-com big" @click="goBackHome">返回首页</button>
|
|
<button class="admin-button-com big" @click="goBackHome">返回首页</button>
|
|
|
</appResult>
|
|
</appResult>
|
|
@@ -19,7 +19,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import { mapGetters } from "vuex"
|
|
import { mapGetters } from "vuex"
|
|
|
import appResult from "@/components/app-result"
|
|
import appResult from "@/components/app-result"
|
|
|
-import { getDetail} from "@/api/order/index"
|
|
|
|
|
|
|
+import { getDetail,cloudPrintOrder} from "@/api/order/index"
|
|
|
import { getWeixinId } from "@/api/invite/index"
|
|
import { getWeixinId } from "@/api/invite/index"
|
|
|
import { IMGHOST } from '@/config'
|
|
import { IMGHOST } from '@/config'
|
|
|
export default {
|
|
export default {
|
|
@@ -102,6 +102,12 @@ export default {
|
|
|
gotoOrderDetail() {
|
|
gotoOrderDetail() {
|
|
|
this.$util.pageTo({url: "/pagesOrder/detail",type:2,query: { id: this.option.orderId }})
|
|
this.$util.pageTo({url: "/pagesOrder/detail",type:2,query: { id: this.option.orderId }})
|
|
|
},
|
|
},
|
|
|
|
|
+ printOrder(){
|
|
|
|
|
+ uni.showLoading({title:"打印中..."})
|
|
|
|
|
+ cloudPrintOrder({id:this.detailInfo.id,noPrice:1}).then((res) => {
|
|
|
|
|
+ uni.hideLoading()
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
gotoPlace() {
|
|
gotoPlace() {
|
|
|
uni.navigateBack({ delta: 1 });
|
|
uni.navigateBack({ delta: 1 });
|
|
|
},
|
|
},
|