Forráskód Böngészése

添加选择产品页面

chenrui 2 éve
szülő
commit
ae9671df08

+ 7 - 59
pages/shuntBackManage/addBackOrder.vue

@@ -28,58 +28,7 @@
 		</view>
 		<view class="backOrderCon">
 			<scroll-view scroll-y class="scroll-view" v-if="recallBillList && recallBillList.length>0" >
-				<u-checkbox-group :wrap="true"  @change="checkGroupChange">
-					<view class="partList-list-box" v-for="(item,index) in recallBillList" :key="item.id">
-						<view class="product flex align_center">
-							<u-checkbox class="checkbox" v-model="item.isChecked" :name="item.id" size="40" shape="circle">
-							<view class="flex align_center flex_1">
-								<view class="pimgs">
-									<u-image :src="item.productImageUrl?item.productImageUrl:`../../static/${$config('themePath')}/def_img@2x.png`" width="128" height="128" border-radius="10"></u-image>
-								</view>
-								<view class="pinfo">
-									<view class="pname item-name">
-										<text>{{item.shelfPlaceCode}}</text>
-										{{item.productCode}}
-									</view>
-									<view class="productName u-line-2">
-										{{item.productName}}
-									</view>
-									<view class="ptxt flex align_center">
-										<view>
-											最大库容
-											<text class="pnums">{{item.maxQty}}</text>
-										</view>
-										<view>
-											/货架库存
-											<text class="pnums">{{item.qty}}</text>
-										</view>
-										<view>
-											/滞销
-											<text class="pnums">{{!item.unsalableDays || (item.unsalableDays&&item.unsalableDays) == 0 ?'--天':item.unsalableDays}}</text>
-										</view>
-									</view>
-								</view>
-							</view>
-							</u-checkbox>
-						</view>
-						<view class="ptools flex align_center justify_between">
-							<view class="ptools_l u-flex">
-								<view v-if="item.replenishBillQty && item.replenishBillQty!=0">
-									补货在途
-									<text class="pnums">{{item.replenishBillQty}}</text>
-								</view>
-								<view v-if="item.recallBillQty && item.recallBillQty!=0">
-									{{item.replenishBillQty && item.replenishBillQty!=0 ? '/':''}}调回在途
-									<text class="pnums">{{item.recallBillQty}}</text>
-								</view>
-							</view>
-							<view class="pcurnums flex align_center">
-								<text>调回数量</text>
-								<view class="u-ninput"><u-number-box color="#000" :input-height="60" bg-color="#fff" v-model="item.confirmQty" :min="1" :max="item.qty" @minus="minus" @plus="plus" @change="numberBoxChange"></u-number-box></view>
-							</view>
-						</view>
-					</view>
-				</u-checkbox-group>
+				
 			</scroll-view>
 			<u-empty :src="`/static/${$config('themePath')}/def_no_data@3x.png`" icon-size="200" :text="noDataText" img-width="120" v-else></u-empty>
 		</view>
@@ -92,16 +41,14 @@
 					<view class="middle_l">
 						已选
 						<text>{{chooseArr.length}}</text>
-						款/
-						<text>{{totalNum}}</text>
-						件
+						款
 					</view>
-					<view class="middle_r" @click="seeDetail">
+					<!-- <view class="middle_r" @click="seeDetail">
 						<text>查看明细</text>
 						<u-icon name="arrow-up" color="#999" size="28"></u-icon>
-					</view>
+					</view> -->
 				</view>
-				<view class="footerBox_r"><u-button type="primary" shape="circle"  @click="addBackOrder">新增调回单</u-button></view>
+				<view class="footerBox_r"><u-button type="primary" shape="circle"  @click="addBackOrder">确定</u-button></view>
 			</view>
 		</view>
 		<!-- 弹窗 -->
@@ -128,9 +75,10 @@
 import { reportPage } from '@/api/vinLog';
 import { controlQueryList,insert } from '@/api/shelf';
 import detailModal from './detailModal'
+import productList from './productList.vue'
 export default {
 	components: {
-		detailModal
+		productList
 	},
 	data() {
 		return {

+ 43 - 0
pages/shuntBackManage/addShuntBack.vue

@@ -0,0 +1,43 @@
+<template>
+	<view class="shuntBackList">
+		<view class="check-list">
+			<productList ref="productList" noDataText="暂无产品" @updateNums="updateNums" @allChecked="allCheckedCallback"></productList>
+		</view>
+		<view class="backOrderFooter u-flex u-row-between">
+			<view class="footerBox_m u-flex">
+				<view class="middle_l">
+					已选
+					<text>{{chooseArr.length}}</text>
+					款/
+					<text>{{totalNum}}</text>
+					件
+				</view>
+				<view class="middle_r" @click="seeDetail">
+					<text>查看明细</text>
+					<u-icon name="arrow-up" color="#999" size="28"></u-icon>
+				</view>
+			</view>
+			<view class="footerBox_r"><u-button type="primary" shape="circle"  @click="addBackOrder">新增调回单</u-button></view>
+		</view>
+	</view>
+</template>
+
+<script>
+	import productList from './productList.vue'
+	export default{
+		components: {
+			productList
+		},
+		data(){
+			return{
+				
+			}
+		},
+		methods:{
+			
+		}
+	}
+</script>
+
+<style>
+</style>