shish 4 лет назад
Родитель
Сommit
584157a75e
1 измененных файлов с 10 добавлено и 32 удалено
  1. 10 32
      ghsApp/src/pagesStorehouse/allot/putDetails.vue

+ 10 - 32
ghsApp/src/pagesStorehouse/allot/putDetails.vue

@@ -17,15 +17,9 @@
 				</view>
 				<view class="info-cell">
 					<view class="cell-label"> 状态</view>
-					<view
-						:class="[
-							'cell-value',
-							{ warning: putData.status == PUT_STATUS.CONFIRM },
-							{ success: putData.status == PUT_STATUS.DONE }
-						]"
-					>
-						{{ getItemStatusName(putData.status) || "" }}</view
-					>
+					<view :class="[ 'cell-value', { warning: putData.status == PUT_STATUS.CONFIRM }, { success: putData.status == PUT_STATUS.DONE } ]" >
+						{{ getItemStatusName(putData.status) || "" }}
+					</view >
 				</view>
 				<view class="info-cell">
 					<view class="cell-label"> 备注</view>
@@ -43,12 +37,7 @@
 							</t-th>
 						</t-tr>
 						<t-tr v-for="(item, index) in putData.itemInfo" :key="index">
-							<t-td
-								v-for="(column, colIndex) in columns"
-								:key="colIndex"
-								:align="column.align"
-								:color="column.color"
-							>
+							<t-td v-for="(column, colIndex) in columns" :key="colIndex" :align="column.align" :color="column.color" >
 								<view v-if="column.custom == 'icon'" class="list-icon">
 									<image class="icon-image" :src="item.itemCover" alt="商品图" />
 									<view class="icon-info">
@@ -78,22 +67,15 @@
 					</t-table>
 				</block>
 				<block v-else>
-					<AppWrapperEmpty
-						title="暂无数据"
-						:is-empty="$util.isEmpty(putData.itemInfo)"
-					/>
+					<AppWrapperEmpty title="暂无数据" :is-empty="$util.isEmpty(putData.itemInfo)" />
 				</block>
 			</view>
 		</view>
 		<view class="bar-view">
 			<view class="info-view"> 入库数量:{{ sumCount }} </view>
 			<view class="btn-view" v-if="putData.status == PUT_STATUS.CONFIRM">
-				<button class="admin-button-com middle" @click="cancelPutEvent">
-					取消入库
-				</button>
-				<button class="admin-button-com middle" @click="confirmPutEvent">
-					确认入库
-				</button>
+				<button class="admin-button-com middle" @click="cancelPutEvent"> 取消入库 </button>
+				<button class="admin-button-com middle" @click="confirmPutEvent"> 确认入库 </button>
 			</view>
 		</view>
 	</view>
@@ -184,13 +166,9 @@ export default {
 			})
 		},
 		async putEvent() {
-			try {
-				await confirmOrderApi(this.orderSn);
-				await this.initData();
-				wx.showToast({
-					title: "入库成功"
-				});
-			} catch (error) {}
+			await confirmOrderApi(this.orderSn);
+			await this.initData();
+			wx.showToast({ title: "入库成功" })
 		},
 		cancelPutEvent(){
 			let that = this;