Эх сурвалжийг харах

报损成功页、库存变化

jf 5 жил өмнө
parent
commit
b3e4b452b4

+ 1 - 1
ghsApp/src/admin/billing/affirm.vue

@@ -322,7 +322,7 @@ export default {
 									wastage({product:JSON.stringify(product)}).then((res) => {
 										self.resetSelectInfoByType(self.pageType);
 										const {data: { id, orderSn },} = res;
-										let url = `/admin/billing/result?orderId=${id}&orderSn=${orderSn}`;
+										let url = `/admin/billing/result?title=报损成功&orderId=${id}&orderSn=${orderSn}`;
 										uni.redirectTo({url: url,success: (result) => { },fail: () => { },complete: () => { },
 										});
 									});

+ 4 - 4
ghsApp/src/admin/billing/result.vue

@@ -1,11 +1,11 @@
 <template>
-	<appResult>
+	<appResult :title="option.title">
 <!--		<button class="admin-button-com blue big" @click="gotoOrderDetails">发货详情</button>-->
-		<button class="admin-button-com blue big" @click="gotoOrderSend">发货</button>
+		<button v-if="option.title!='报损成功'" class="admin-button-com blue big" @click="gotoOrderSend">发货</button>
 
 <!--		<button class="admin-button-com big" @click="gotoOrderPrint">打印单据</button>-->
-		<button class="admin-button-com big" @click="gotoOrderDetails">订单详情</button>
-		<button class="admin-button-com big" @click="gotoOrderList">订单列表</button>
+		<button v-if="option.title!='报损成功'" class="admin-button-com big" @click="gotoOrderDetails">订单详情</button>
+		<button v-if="option.title!='报损成功'" class="admin-button-com big" @click="gotoOrderList">订单列表</button>
 		<button class="admin-button-com big" @click="gotoPlace">继续开单</button>
 	</appResult>
 </template>

+ 1 - 0
ghsApp/src/mixins/product.js

@@ -176,6 +176,7 @@ export default {
 					params = { ...params, ...extendInfo };
 				}
 				const { data } = await getProductDataApi(params);
+				this.filterProductInfo = '';
 				data.forEach(element => {
 					element.child &&
 						element.child.forEach(child => {