shish 9 kuukautta sitten
vanhempi
commit
69aed070ce
1 muutettua tiedostoa jossa 14 lisäystä ja 0 poistoa
  1. 14 0
      hdApp/src/admin/billing/result.vue

+ 14 - 0
hdApp/src/admin/billing/result.vue

@@ -2,6 +2,9 @@
   <view class="app-content">
     <appResult>
 		<button class="admin-button-com blue big" @click="gotoDetail">订单详情</button>
+
+		<button class="admin-button-com blue big" @click="sendWork" v-if="orderInfo.hasWork!=1">通知制作</button>
+
 		<button class="admin-button-com big" @click="gotoPlace">返回</button>
     </appResult>
   </view>
@@ -9,6 +12,7 @@
 <script>
 import appResult from "@/components/app-result";
 import { getDetB} from "@/api/order";
+import { needWork } from "@/api/work"
 export default {
 	name: "result",
 	components: {
@@ -23,6 +27,16 @@ export default {
 		}
 	},
 	methods: {
+		sendWork(){
+			let that = this
+			that.$util.confirmModal({content:'确认通知制作?'},() => {
+				needWork({id:this.orderInfo.id}).then(res=>{
+					if(res.code == 1){
+						that.$msg(res.msg)
+					}
+				})
+			})
+		},
 		init(){
 			let orderId = this.option.orderId?this.option.orderId:0
 			getDetB({id: orderId}).then(res => {