shish hace 4 años
padre
commit
5d3a091515

+ 1 - 1
ghsApp/src/pagesStorehouse/stockWarn/detailed.vue

@@ -97,7 +97,7 @@ export default {
 					color: "info"
 				},
 				{
-					name: "名",
+					name: "名",
 					dataIndex: "relateName",
 					color: "info"
 				},

+ 20 - 86
hdApp/src/pagesStorehouse/stockWarn/detailed.vue

@@ -1,21 +1,6 @@
 <template>
+<view class="app-content">
 	<view class="ex-page">
-		<view class="top-bar" v-if="false">
-<!--			<SelectList :list="selectListData" @search="searchSelectEvent" />-->
-
-				<DorpdownSelect class="bar"
-					:menuObj="menuTimeObj"
-					:typeTime="true"
-					:selectItemId.sync="selectTimeId"
-					:typeSelect="1" top="0upx"
-					@selectSussess="selectSussess" />
-
-			<DorpdownSelect class="bar"
-				:menuObj.sync="menuObj"
-				:selectItemId.sync="shopId"
-				top="0"
-				@selectSussess="selectShopSussess" />
-		</view>
 		<scroll-view scroll-y scroll-with-animation class="main-view">
 			<view class="space-view ex-table">
 				<block v-if="!$util.isEmpty(list.data)">
@@ -28,22 +13,13 @@
 						<t-tr v-for="(item, index) in list.data" :key="index">
 							<t-td v-for="(column, colIndex) in columns" :key="colIndex" :align="column.align" :color="column.color">
 								<view v-if="column.custom == 'change'">
-									<!-- {{ `${item.smallNumOrder}/${item.bigNumOrder}` }} -->
-									{{ `${item.bigNumOrder}/${item.smallNumOrder}` }}
+									{{ `${parseFloat(item.itemNum)}` }}
 								</view>
 								<view v-else-if="column.custom == 'stock'">
-									<!-- {{ `${item.smallNumStock}/${item.bigNumStock}` }} -->
-									{{ `${item.bigNumStock}/${item.smallNumStock}` }}
+									{{ `${parseFloat(item.newStock)}` }}
 								</view>
 								<view v-else-if="column.custom == 'time'">
-									<view class="icon-info">
-										<view class="info-name">
-											{{ item.addTime }}
-										</view>
-										<!-- <view class="info-type">
-										{{ item.addTime }}
-									</view> -->
-									</view>
+									<view class="icon-info"><view class="info-name">{{ item.addTime.substr(5,11) }}</view></view>
 								</view>
 								<view v-else>
 									{{ item[column.dataIndex] || "" }}
@@ -57,31 +33,19 @@
 				</block>
 			</view>
 		</scroll-view>
-
-		<!--		时间段选择-->
-		<rangeDatePick
-			:show="isShow"
-			start="2000-01-01"
-			end="2200-12-01"
-			:value="customizationTime"
-			@change="timeChange"
-			@cancel="timeCancel"
-			themeColor="#4C83D6" fields="day"></rangeDatePick>
 	</view>
+</view>
 </template>
 <script>
 const Month = (new Date().getMonth()+1)<10?'0'+(new Date().getMonth()+1):new Date().getMonth()+1
 const time = `${new Date().getFullYear()}-${Month}-${new Date().getDate()}`;
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
-
 import SelectList from "@/components/plugin/selectList";
 import { getStockDetailApi } from "@/api/storehouse/stock";
 import { list,selectShop } from "@/mixins";
-import DorpdownSelect from "@/components/module/dorpdownSelect";
-import rangeDatePick from '@/components/pyh-rdtpicker/pyh-rdtpicker.vue';
 import {mapActions, mapGetters} from "vuex";
 export default {
-	components: { SelectList, AppWrapperEmpty,DorpdownSelect,rangeDatePick },
+	components: { SelectList, AppWrapperEmpty},
 	mixins: [list,selectShop],
 	computed: {		...mapGetters(["getDictionariesInfo","getLoginInfo"])	},
 	data() {
@@ -131,6 +95,11 @@ export default {
 					dataIndex: "typeName",
 					color: "info"
 				},
+				{
+					name: "名称",
+					dataIndex: "relateName",
+					color: "info"
+				},
 				{
 					name: "变动",
 					custom: "change",
@@ -169,21 +138,16 @@ export default {
 	},
 	onLoad(e) {
 		this.itemId = e.id;
-		this.params.itemId = e.id;
-
+		this.params.id = e.id;
 		let dateDefaultOption = [];
 		let list = this.getDictionariesInfo.dateDefaultOption;
-		for (let i=0;i<list.length;i++){
-			dateDefaultOption.push({name:list[i].name,id:list[i].value})
+		if(!this.$util.isEmpty(list)){
+			for (let i=0;i<list.length;i++){
+				dateDefaultOption.push({name:list[i].name,id:list[i].value})
+			}
+			this.menuTimeObj = {title:'今天',titleChild:'时间',list: dateDefaultOption}
 		}
-		this.menuTimeObj = {title:'时间',titleChild:'时间',list: dateDefaultOption};
-
 		this.shopId = this.getLoginInfo.shopId;
-		console.log(' this.selectShopId',this.shopId)
-		console.log(' this.getLoginInfo.shopId',this.getLoginInfo.shopId)
-		// console.log('userShopAll',this.setUserShopAll())
-
-		this.init();
 	},
 	onReachBottom() {
 		if (!this.list.finished) {
@@ -196,36 +160,6 @@ export default {
 	},
 	methods: {
 		...mapActions(['setUserShopAll']),
-		// 选择分店
-		selectShopSussess(val){
-			this.params.shopId = val.selectItem.id;
-			this.init();
-		},
-		//选择时间
-		selectSussess(val) {
-			this.params.selectTime = this.selectTimeId;
-			if(val.select=='自定义'){
-				this.selectTime();
-			}else{
-				this.init();
-			}
-
-		},
-		//选择时间-自定义时间
-		selectTime(){
-			this.customizationTime = [time,time],
-				this.isShow = true;
-		},
-		//选择自定义时间确定
-		timeChange(e){
-			this.isShow = false;
-			this.params.startTime = e[0]
-			this.params.endTime = e[1]
-			this.init();
-		},
-		//选择自定义时间取消
-		timeCancel(e){this.isShow = false;},
-
 		async init() {
 			this._list();
 		},
@@ -254,7 +188,7 @@ export default {
 			height: 100%;
 			text-align: center;
 			&:nth-child(1){
-				border-right: 1px solid #eeeeec;
+				border-right: 1upx solid #eeeeec;
 			}
 		}
 	}
@@ -304,7 +238,7 @@ export default {
 		width: 100%;
 		height: 100upx;
 
-		box-shadow: 0upx -1px 6upx 0upx rgba(4, 0, 0, 0.06);
+		box-shadow: 0upx -1upx 6upx 0upx rgba(4, 0, 0, 0.06);
 		.info-view {
 			font-size: 26upx;
 		}
@@ -316,4 +250,4 @@ export default {
 		}
 	}
 }
-</style>
+</style>