shish 2 лет назад
Родитель
Сommit
7ef184a335
2 измененных файлов с 15 добавлено и 2 удалено
  1. 4 0
      ghsApp/src/api/purchase/index.js
  2. 11 2
      ghsApp/src/pagesPurchase/info.vue

+ 4 - 0
ghsApp/src/api/purchase/index.js

@@ -1,5 +1,9 @@
 import https from "@/plugins/luch-request_0.0.7/request";
 
+export const assignSeat = data => {
+	return https.get("/purchase-order/assign-seat", data);
+};
+
 export const batchConfirm = data => {
 	return https.post("/purchase/batch-confirm", data);
 };

+ 11 - 2
ghsApp/src/pagesPurchase/info.vue

@@ -13,7 +13,9 @@
 					<i @click="callUp(detailInfo.supplierMobile)" class="iconfont icondianhua1" ></i>
 				</view>
 			</view>
-			<view class="title"> 单据信息 </view>
+			<view class="title"> 
+				<text @click="assignOrder()">单据信息</text>
+			</view>
 			<view class="bills-info_box content-box">
 				<view class="order-info_box">
 					<view>订单日期:</view>
@@ -249,7 +251,7 @@
 	</view>
 </template>
 <script>
-import { getPurchaseDetailApi,updateRemark,printAll,printItem,confirmPutIn,cancelPutIn,printBill } from "@/api/purchase";
+import { getPurchaseDetailApi,updateRemark,printAll,printItem,confirmPutIn,cancelPutIn,printBill,assignSeat } from "@/api/purchase";
 import productMins from "@/mixins/product";
 import TuiListCell from "@/components/plugin/list-cell";
 import ModalModule from "@/components/plugin/modal"
@@ -285,6 +287,13 @@ export default {
 		})
 	},
 	methods: {
+		assignOrder(){
+			assignSeat({id:this.detailInfo.id}).then(res=>{
+				if(res.code == 1){
+
+				}
+			})
+		},
 		printBillFn(info){
 			if(this.wcPrintNum > 1){
 				let arr = ['请选择','机器1']