shish vor 3 Jahren
Ursprung
Commit
5602498f40

+ 1 - 2
ghsApp/src/pagesStorehouse/allot/addExDetails.vue

@@ -83,7 +83,7 @@
         <modal-module :show="isAddModel" @cancel="addItemModelHidden" @click="confirmAddItemModel" :title="customData.name" color="#333" :size="32" padding="30rpx 30rpx" >
           <template slot="customContent">
             <view class="select-cmd_bx" v-if="customData">
-              <view class="kc"><text class="unit_price">库存 {{ parseFloat(customData.stock) }}</text><text class="unit_price"></view>
+              <view class="kc"><text class="unit_price">库存 {{ parseFloat(customData.stock) }}</text></view>
 
               <view class="num_bx">
                 <!-- #ifdef APP-PLUS -->
@@ -95,7 +95,6 @@
                 <input style="width: 430upx" v-model="customData.bigCount" v-if="globalUnitType == 0" :focus="isAddInputFocus" type="number" />
                 <text style="font-size:35upx;font-weight:bold;color:#666666;" v-if="globalUnitType == 0">扎</text>
                 <!-- #endif -->
-
               </view>
 
             </view>

+ 17 - 47
ghsApp/src/pagesStorehouse/allot/exDetails.vue

@@ -32,33 +32,33 @@
 				<block v-if="!$util.isEmpty(outData.itemInfo)">
 					<t-table :headerBackgroundColor="'#F0F2F6'">
 						<t-tr header>
-							<t-th v-for="(item, index) in columns" :key="index" :align="item.align">
-								{{ item.name }}
-							</t-th>
+							<t-th><view style="width:280upx;">名称</view></t-th>
+							<t-th>出库前剩余</t-th>
+							<t-th>出库数</t-th>
+							<t-th>成本</t-th>
 						</t-tr>
 						<t-tr v-for="(item, index) in outData.itemInfo" :key="index">
-							<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" @click.stop="pageTo({url:'/admin/item/detail',query:{id: item.productId}})">
-									<view class="icon-info">
-										<view class="info-name">
-											{{ item.itemName }}
-										</view>
-									</view>
+							<t-td>
+								<view style="width:280upx;text-align:center;color:#333333;font-size:28upx;font-weight:bold;" @click.stop="pageTo({url:'/admin/item/detail',query:{id: item.productId}})">
+									{{ item.itemName }}
 								</view>
-								<view v-else-if="column.custom == 'stock'">
+							</t-td>
+							<t-td>
+								<view style="color:#333333;font-size:28upx;">
 									<text v-if="Number(item.bigNumStock)>0"> {{ item.bigNumStock }}扎</text>
 									<text v-if="Number(item.smallNumStock)>0">{{ item.smallNumStock }}支</text>
 								</view>
-								<view v-else-if="column.custom == 'put'">
+							</t-td>
+							<t-td>
+								<view style="color:#333333;font-size:28upx;">
 									<text v-if="Number(item.bigNum)>0"> {{ item.bigNum }}扎</text>
 									<text v-if="Number(item.smallNum)>0">{{ item.smallNum }}支</text>
 								</view>
-								<view v-else-if="column.custom == 'itemPrice'">
+							</t-td>
+							<t-td>
+								<view style="color:#333333;font-size:28upx;">
 									<text> ¥{{ item.itemPrice?parseFloat(item.itemPrice):0 }}</text>
 								</view>
-								<view v-else>
-									{{ item[column.dataIndex] || "" }}
-								</view>
 							</t-td>
 						</t-tr>
 					</t-table>
@@ -90,13 +90,7 @@ export default {
 		return {
 			OUT_STATUS,
 			orderSn: "",
-			outData: {},
-			columns: [
-				{ name: "名称", custom: "icon" },
-				{ name: "库存", custom: "stock", width: 120, align: "center" },
-				{ name: "出库数", custom: "put", width: 120, align: "center" },
-				{ name: "成本", custom: "itemPrice", width: 120, align: "center" }
-			]
+			outData: {}
 		};
 	},
 	onLoad(options) {
@@ -219,30 +213,6 @@ export default {
 				}
 			}
 		}
-		.ex-table {
-			/deep/.list-icon {
-				display: flex;
-				.icon-image {
-					width: 80upx;
-					height: 80upx;
-					margin-right: 20upx;
-				}
-				.icon-info {
-					display: flex;
-					flex-direction: column;
-					justify-content: space-around;
-					.info-name {
-						font-size: 28upx;
-						font-weight: bold;
-						color: #333333;
-					}
-					.info-type {
-						font-size: 24upx;
-						color: #666666;
-					}
-				}
-			}
-		}
 	}
 	.bar-view {
 		display: flex;