From 3e473e90358abbf82e7a60b6ed58ca2df02d4ce4 Mon Sep 17 00:00:00 2001
From: liuying <1427574514@qq.com>
Date: 周二, 10 12月 2024 13:33:09 +0800
Subject: [PATCH] pda页面

---
 LA24030_LuLiPackageLine_Pda/pages/artificial/artificial.vue | 1055 ++++++++++++++-------------------------------------------
 1 files changed, 269 insertions(+), 786 deletions(-)

diff --git a/LA24030_LuLiPackageLine_Pda/pages/artificial/artificial.vue b/LA24030_LuLiPackageLine_Pda/pages/artificial/artificial.vue
index 4f70ce6..d238c28 100644
--- a/LA24030_LuLiPackageLine_Pda/pages/artificial/artificial.vue
+++ b/LA24030_LuLiPackageLine_Pda/pages/artificial/artificial.vue
@@ -1,799 +1,282 @@
 <template>
-	<view style="padding-bottom:150px" class="boxTip">
-		<cu-custom bgColor="bg-white" :isBack="true">
-			<block slot="backText">
-			</block>
-			<block slot="content">缁勭洏</block>
-		</cu-custom>
-		<!-- <view class="flex justify-end align-center padding_right30rpx padding_top12rpx">
-			<text class="fontSize12rpx"> 鎿嶄綔浜猴細{{operator}} </text>
-		</view> -->
-		<u-form labelPosition="left" label-width="180rpx" :model="warehouse" ref="warehouseRef">
+  <view class="overflow" style="padding-bottom: 150rpx">
+    <cu-custom bgColor="bg-white" :isBack="true">
+      <block slot="backText"> </block>
+      <block slot="content">鏉夸欢鏌ョ湅</block>
+    </cu-custom>
+    <u-form
+      labelPosition="left"
+      label-width="180rpx"
+      :model="warehouse"
+      ref="warehouseRef"
+    >
+      <!-- <u-row
+        class="border_bottom margin_top10rpx padding_left25rpx"
+        style="background-color: #fff"
+      >
+        <u-col span="12">
+          <u-form-item
+            label="鍖呰鍙�:"
+            prop="packageCode"
+            required
+            class="uFormItem"
+          >
+            <u-input
+              v-model.trim="warehouse.packageCode"
+              @confirm="getContainerData(1)"
+              placeholder="璇峰綍鍏ユ垨鎵爜"
+              class="width"
+              :focus="curFoucus"
+            >
+            </u-input>
+          </u-form-item>
+        </u-col>
+      </u-row> -->
+      <u-row
+        class="border_bottom margin_top10rpx padding_left25rpx"
+        style="background-color: #fff"
+      >
+        <u-col span="12">
+          <u-form-item label="閮ㄤ欢鏉$爜:" class="uFormItem">
+            <u-input
+              v-model="warehouse.upi"
+              ref="materialRef"
+              placeholder="璇锋壂鐮佸綍鍏�"
+              @focus="warehouse.upi = ''"
+              @confirm="getContainerData"
+              style="font-weight: bolder; margin-left: 15rpx"
+              class="width padding_left25rpx"
+            >
+            </u-input>
+          </u-form-item>
+        </u-col>
+      </u-row>
+    </u-form>
+    <!-- 鍒楄〃 -->
+    <view class="margin_top10rpx">
+      <u-swipe-action
+        :show="item.show"
+        :index="eindex"
+        v-for="(item, eindex) in singlist"
+        :key="eindex"
+        :options="options"
+        @click="longpress"
+        @open="open"
+        @close="close"
+        class="margin_bottom10rpx"
+      >
+        <view class="item u-border-bottom">
+          <!-- 姝ゅ眰wrap鍦ㄦ涓哄繀鍐欑殑锛屽惁鍒欏彲鑳戒細鍑虹幇鏍囬瀹氫綅閿欒 -->
+          <view class="title-wrap">
+            <view
+              :class="item.checked ? 'bg_item' : ''"
+              class="fontSize32rpx width margin_auto background_fff padding10 relative box_sizing transition"
+            >
+              <!-- 閮ㄤ欢鍚嶇О upi銆佹潗鏂欍�佸昂瀵革紝浣嶇疆銆佹澘浠剁姸鎬� -->
+              <u-row>
+                <u-col span="12" class="flex align-center">
+                  <!-- <u-checkbox v-model="item.checked" size="50rpx"></u-checkbox> -->
+                  <view
+                    class="flex justify-center align-center"
+                    style="
+                      background-color: #f18202;
+                      color: #fff;
+                      border-radius: 50vh;
+                      width: 40rpx;
+                      height: 40rpx;
+                    "
+                  >
+                    {{ eindex + 1 }}
+                  </view>
+                  <text class="color_f18202 padding_left10rpx">
+                    {{ item.upi }}
+                  </text>
+                </u-col>
+              </u-row>
+              <u-row>
+                <u-col span="8">
+                  <text class="color_80 padding_left25rpx">
+                    閮ㄤ欢鍚嶇О锛� {{ item.detailName }}
+                  </text>
+                </u-col>
+                <u-col span="4">
+                  <text class="color_80"> 浣嶇疆锛歿{ item.location }} </text>
+                </u-col>
+              </u-row>
+              <u-row>
+                <u-col span="8">
+                  <text class="color_80 padding_left25rpx">
+                    鏉愭枡锛歿{ item.info18 }}
+                  </text>
+                </u-col>
+                <u-col span="4">
+                  <text class="color_80"> 灏哄锛歿{ item.info16 }} </text>
+                </u-col>
+              </u-row>
+              <u-row>
+                <u-col span="8">
+                  <text class="color_80 padding_left25rpx">
+                    鏉夸欢鐘舵�侊細{{ getEnumName(item.upiStatus) }}
+                  </text>
+                </u-col>
+                <u-col span="4">
+                  <text class="color_80"> 娆″簭锛歿{ item.shelf }} </text>
+                </u-col>
+              </u-row>
+            </view>
+          </view>
+        </view>
+      </u-swipe-action>
+    </view>
+    <modal-code :rescode="rescode" :resmessage="resmessage" ref="resmodal" />
 
-			<u-row class="border_bottom margin_top10rpx padding_left25rpx" style="background-color: #fff;">
-				<u-col span="12">
-					<u-form-item label="瀹瑰櫒缂栧彿:" prop="containerCode" required class="uFormItem">
-						<u-input :focus="curFoucus" v-model.trim="warehouse.containerCode" @confirm="getMaterialDetails(1)"
-							placeholder="璇锋壂鐮佸綍鍏�" :disabled="kwbhAllowed" style="font-weight: bolder;margin-left: 15rpx;"
-							class="width padding_left25rpx">
-						</u-input>
-					</u-form-item>
-				</u-col>
-			</u-row>
-
-			<u-row v-if="warehouse.containerCode" class="border_bottom margin_top10rpx padding_left25rpx"
-				style="background-color: #fff;">
-				<u-col span="12">
-					<u-form-item label="鐗╂枡璺熻釜鐮�:" class="uFormItem">
-						<u-input v-model="warehouse.snCode" ref="materialRef" placeholder="璇锋壂鐮佸綍鍏�"
-							@focus="warehouse.snCode = ''" @confirm="getMaterialDetails"
-							style="font-weight: bolder;margin-left: 15rpx;" class="width padding_left25rpx">
-						</u-input>
-					</u-form-item>
-				</u-col>
-			</u-row>
-			<u-row class="border_bottom margin_top10rpx  background_fff padding_left25rpx">
-				<u-col span="12">
-					<u-form-item label="鐩爣搴撳尯:" prop="tray" class="uFormItem">
-						<input v-model="warehouse.areaCode" type="select" placeholder="璇烽�夋嫨鐩爣搴撳尯" @focus="containerFocus"
-							class="width"></input>
-						<u-action-sheet :list="wolist" v-model="modalshow" @click="confirmXl"></u-action-sheet>
-						<!-- <u-select v-model="modalshow" :list="wolist" @confirm="confirm" value-name="id" label-name="name"></u-select> -->
-					</u-form-item>
-				</u-col>
-			</u-row>
-			<u-row class="border_bottom margin_top10rpx padding_left25rpx" style="background-color: #fff;">
-				<u-col span="10">
-					<u-form-item label="鐩爣搴撲綅:" class="uFormItem">
-						<u-input v-model="warehouse.placeCode" placeholder="璇锋壂鐮佸綍鍏�"
-							style="font-weight: bolder;margin-left: 15rpx;" class="width padding_left25rpx">
-						</u-input>
-					</u-form-item>
-				</u-col>
-				<u-col span="2" @tap="containerFocus2">
-					<span class="fontSize15rpx">鎺ㄨ崘</span>
-					<u-icon name="arrow-right" size="14" class="fontSize15rpx"></u-icon>
-				</u-col>
-
-				<view class="boxList" v-show="modalshow2" @click="modalshow2 = false" @touchmove.stop>
-					<view class="innerWrap">
-						<ul v-for="(item, eindex) in containerList" :key="eindex">
-							<li @click="confirm2(eindex)"> {{ item.text }}</li>
-						</ul>
-					</view>
-				</view>
-
-			</u-row>
-		</u-form>
-		<modal-code :rescode='rescode' :resmessage='resmessage' ref="resmodal" />
-		<view style="margin-bottom: 200rpx;" class="margin_top10rpx">
-			<view v-for="(item, eindex) in singlist" :key="eindex" class="margin_bottom10rpx">
-				<u-swipe-action :show="item.show" :index="eindex" @click="longpress" @open="open" @close='close'
-					:options="options" style="width: 100vw;">
-					<view class="fontSize32rpx background_fff padding10" :class="item.enAbled == 0 ? 'bg_item' : ''">
-						<u-row>
-							<u-col span="12" class="flex">
-								<text class="flex justify-center align-center circkle06">{{ eindex + 1 }}</text>
-								<text class="color_f18202 padding_left10rpx">
-									{{ item.materialCode }}-{{ item.materialName }}
-								</text>
-								<!-- <u-icon name="plus-circle" v-if="item.enAbled!=1"></u-icon> -->
-							</u-col>
-						</u-row>
-						<u-row>
-							<u-col span="12">
-								<text class="color_80 padding_left25rpx">
-									璐ㄦ鐘舵�侊細{{ item.qcStatusName }}
-								</text>
-							</u-col>
-						</u-row>
-						<u-row>
-							<u-col span="12">
-								<view class="color_80 padding_left25rpx">
-									<text style="display: inline-block">鎵规锛歿{ item.batch }}</text>
-								</view>
-							</u-col>
-						</u-row>
-						<u-row>
-							<u-col span="12">
-								<text class="color_80 padding_left25rpx">
-									璺熻釜鐮侊細{{ item.snCode }}
-								</text>
-							</u-col>
-						</u-row>
-						<u-row>
-							<u-col span="8">
-								<text class="color_80 padding_left25rpx">
-
-								</text>
-							</u-col>
-							<u-col span="4">
-								<text class="color_f18202 ">
-									鏁伴噺锛歿{ item.quantity }}
-								</text>
-							</u-col>
-						</u-row>
-						<!-- <u-row>
-							<u-col span="7">
-							</u-col>
-							<u-col span="5" class="flex">
-								<view class="color_80">
-									鏁伴噺锛�
-								</view>
-								<input :class="item.enAbled ? '' : 'border_bottom_f18202 inputGray'"
-									class="text-left color_f18202 fontSize32rpx inputGray2" v-model="item.quantity"
-									type="number" :disabled="item.enAbled == 1" @blur="changeNum(item)" @click="clicki(item)"
-									placeholder="0" />
-							</u-col>
-						</u-row> -->
-					</view>
-				</u-swipe-action>
-			</view>
-		</view>
-		<button-modal :issueShow='true' issueTitle="閲嶇疆" subTitle='缁勭洏' restTiltle='缁勭洏涓婃灦' @reset='goWarhouse' @submit='submit'
-			@issue="reset" />
-
-	</view>
+    <button-modal
+      :subShow="true"
+      garmenTitle="閲嶇疆"
+      @submit="rest"
+      @reset="rest"
+    />
+  </view>
 </template>
 <script>
-import ButtonModal from '../../components/buttonModal.vue'
-import ModalCode from '../../components/ModalCode.vue'
+import ButtonModal from "../../components/buttonModal.vue";
+import ModalCode from "../../components/ModalCode.vue";
 import {
-	getOrderNo,
-	addGroupDisk,
-	onlyUpdateDutyCycle,
-	getareaTypesList,
-	getContainDetail,
-	getContainerRecord,
-	getBhbMaterialList,
-	PdaBindListForSNCode,
-	getRecommendList
-} from '../../api/putIn/artificial.js'
-import {
-	getDate
-} from '../../utils/dateTime.js'
-import {
-	getAttrValue
-} from '../../utils/tool.js'
-import {
-	bindputawayConfirm
-} from '../../api/putaway/putaway.js'
-
+  getBhbMaterialList,
+  getenumDataList,
+} from "../../api/putIn/artificial.js";
 export default {
-	data() {
-		return {
-			containerList: [],
-			curFoucus: true,
-			rescode: 0,
-			resmessage: "",
-			putCode: '', //瀹瑰櫒浜岀淮鐮�
-			detailshow: false,
-			operator: '',
-			focu: false, //娓呯┖鎸夐挳闅愭樉
-			focuM: false, //鐗╂枡闅愭樉鎸夐挳
-			Datetime: getDate(),
-			singlist: [], //鐗╂枡璇︽儏
-			wolist: [],
-			options: [
-				// {
-				// 	text: '璇︽儏',
-				// 	style: {
-				// 		backgroundColor: '#fc9f35'
-				// 	}
-				// }
-				{
-					text: '鍒犻櫎',
-					style: {
-						backgroundColor: '#fc4b4b'
-					}
-				}
-			],
-			materlist: {},
-			warehouse: {
-				containerCode: '',
-				materialCode: '',
-				storehouseCode: "",
-				snCode: "",
-				// gridNumber: 1,
-				// useNumber: 0,
-				// exitNumber: 0,
-				// dutyCycle:1
-			},
-			modalshow: false,
-			modalshow2: false,
-			gridable: true,
-			gridFocus: false,
-			detailable: false,
-			detailableZb: false,
-			batchNo: '', //鎵爜鍒扮殑褰撳墠鐗╂枡鐨勬壒娆�
-			warehouseRules: {
-				containerCode: [{
-					required: true,
-					message: '瀹瑰櫒缂栧彿涓嶈兘涓虹┖',
-					trigger: 'blur'
-				}],
-				materialCode: [{
-					required: true,
-					message: '鐗╂枡缂栧彿涓嶈兘涓虹┖',
-					trigger: 'blur'
-				}]
-			},
-			orderType: 1,
-			warhouseTph: '',
-			timerPrint: null,
-			kwbhAllowed: false, //鏄惁绂佺敤搴撲綅缂栧彿
-			arrD: [],
-			statusTp: {
-				'tpStatus': ''
-			}
-		};
-	},
-	components: {
-		ButtonModal,
-		ModalCode
-	},
-	onLoad(option) {
-		if (option.orderType) {
-			this.orderType = option.orderType
-		}
-	},
-	onReady() {
-		this.$refs.warehouseRef.setRules(this.warehouseRules)
-	},
-	mounted() {
-		this.operator = JSON.parse(uni.getStorageSync('userInfo')).name
-		this.getVehicleType()
-	},
-	computed: {
-		containerCode() {
-			return this.warehouse.containerCode
-		}
-	},
-	watch: {
-		containerCode(val) {
-			if (!val) {
-				this.detailable = false;
-				this.detailableZb = false;
-				this.warehouse.exitNumber = 0
-			}
-		},
-		singlist(val) {
-			this.warehouse.exitNumber = val.length
-		}
-	},
-	methods: {
-		//瀹瑰櫒绫诲瀷鑱氱劍浜嬩欢
-		containerFocus() {
-			uni.hideKeyboard()
-			this.modalshow = true
-		},
-		gridBtnClick() {
-			this.gridable = !this.gridable
-			if (!this.gridable) {
-				this.$nextTick(() => {
-					this.gridFocus = true;
-				})
-			} else {
-				this.$nextTick(() => {
-					this.gridFocus = false;
-				})
-			}
-		},
-		//瀹瑰櫒缂栧彿鐐瑰嚮
-		containerClick() {
-			uni.scanCode({
-				scanType: ['barCode', 'qrCode'],
-				autoDecodeCharset: true,
-				success: (res) => {
-					this.warehouse.containerCode = res.result
-					this.containerBlur()
-				},
-				fail: (err) => {
-					this.rescode = 400
-					this.resmessage = `鎵弿澶辫触${err}`
-					this.$refs.resmodal.show = true
-				}
-			})
-		},
-		//瀹瑰櫒澶辩劍浜嬩欢
-		containerBlur() {
-			Promise.all([this.getContainerRecord(), this.getContainerData()])
-		},
-		//鑾峰彇褰撳墠瀹瑰櫒涓嬬粍鐩樿褰�
-		getContainerRecord() {
-			this.kwbhAllowed = false
-			//姣忔鏌ヨ缃┖鏉愭枡鍒楄〃
-			this.singlist = [];
-			if (this.warehouse.containerCode == '') {
-				return
-			}
-			getContainerRecord({
-				containerCode: this.warehouse.containerCode
-			}).then(res => {
-				if (res.code == 200) {
-					this.kwbhAllowed = true
-					if (Array.isArray(res.data) && res.data.length > 0) {
-						if (res.data[0].orderNo) {
-							this.putCode = res.data[0].orderNo;
-						}
-						this.warehouse.dutyCycle = res.data[0].dutyCycle; //搴撳瓨鍗犳瘮 銆怑ditby shaocx,2023-05-22銆�
-						const recordArr = res.data.reduce((curr, item) => {
-							curr.push({
-								code: item.materialCode,
-								batchNo: item.batchNo,
-								quantityNow: item.quantity,
-								quantity: item.quantity,
-								materialName: item.materialName,
-								materialTypeName: item.materialTypeName,
-								specificationModel: item.specificationModel,
-								id: '',
-								unionCode: item.unionCode,
-								replaceMaterialCode: item.replaceMaterialCode,
-								stockFlagStatus: item.stockFlagStatus,
-								show: false,
-								enAbled: 1 //鎺у埗鏁伴噺鏄惁鍙互杈撳叆
-							})
-							return curr
-						}, [])
-						this.singlist.push(...recordArr)
-					}
-				} else {
-					this.kwbhAllowed = false
-				}
+  data() {
+    return {
+      operator: "",
+      warehouse: {
+        packageCode: "",
+        upi: "",
+      },
+      singlist: [], //璇︽儏鍒楄〃
+      ordersId: 0, //褰撳墠瀹瑰櫒缁戝畾鐨勪笂鏋跺崟
+      rescode: 0,
+      resmessage: "",
+      options: [
+        {
+          text: "鎵撳嵃",
+          style: {
+            backgroundColor: "#fc9f35",
+          },
+        },
+      ],
+      detailshow: false,
+      materlist: {},
+      curFoucus: true,
+      timer: null,
+      timerSm: null,
+      detailableZb: false,
+      detailable: false,
+      gridFocus: false,
+      gridable: true,
+      kwbhAllowed: false,
+      enumList: [],
+    };
+  },
+  components: {
+    ButtonModal,
+    ModalCode,
+  },
+  created() {
+    getenumDataList({
+      EnumName: "UpiStatusEnum",
+    }).then((res) => {
+      this.enumList = res.result || [];
+    });
+  },
+  onLoad() {
+    this.operator = JSON.parse(uni.getStorageSync("userInfo")).name;
+  },
+  mounted() {},
 
-			})
+  methods: {
+    getEnumName(value) {
+      const name = this.enumList.find((item) => item.value === value);
+      return name ? name.name : "";
+    },
+    // 濡傛灉鎵撳紑涓�涓殑鏃跺�欙紝涓嶉渶瑕佸叧闂叾浠栵紝鍒欐棤闇�瀹炵幇鏈柟娉�
+    open(index) {
+      // 鍏堝皢姝e湪琚搷浣滅殑swipeAction鏍囪涓烘墦寮�鐘舵�侊紝鍚﹀垯鐢变簬props鐨勭壒鎬ч檺鍒讹紝
+      // 鍘熸湰涓�'false'锛屽啀娆¤缃负'false'浼氭棤鏁�
+      this.singlist[index].show = true;
+      this.singlist.map((val, idx) => {
+        if (index != idx) this.singlist[idx].show = false;
+      });
+    },
+    close(index) {
+      this.singlist[index].show = false;
+    },
+    //鐗╂枡璇︽儏
+    longpress(index, eindex) {
+      this.materlist = this.singlist[index];
+      this.detailshow = true;
+    },
 
-		},
-		//鑾峰彇瀹瑰櫒鐨勪俊鎭�
-		getContainerData() {
-			getContainDetail(this.warehouse.containerCode).then(res => {
-				const result = res.data.rows;
-				if (Array.isArray(result) && result.length == 1) {
-					// 铏氭嫙3涓兘涓嶆樉绀猴紱鏂欑锛氭樉绀烘爡鏍硷紱閽㈡墭锛氫笉鏄剧ず绌洪棿鍗犳瘮
-					if (res.data.rows[0].isVirtual == 0) { //瀹炵墿
-						if (res.data.rows[0].wareContainerType == '299120688255045' || res.data.rows[0]
-							.wareContainerType == '293486279884869') { // 閽㈠埗瀹瑰櫒 濉戞枡瀹瑰櫒 -鏄剧ず鍗犳瘮
-							this.detailableZb = true;
-							this.detailable = false;
-						} else { //鏂欑 - 鏄剧ず鏍呮牸鏁�
-							this.detailableZb = false;
-							this.detailable = true;
-						}
-					} else {
-						this.detailable = false;
-						this.detailableZb = false;
-					}
-					this.warehouse.gridNumber = res.data.rows[0].gridNumber;
-					this.warehouse.useNumber = res.data.rows[0].useNumber;
-				} else {
-					uni.showToast({
-						title: '搴撲綅涓嶅瓨鍦�',
-						icon: 'none',
-						duration: 2000
-					});
-					this.kwbhAllowed = false
-				}
+    rest() {
+      this.warehouse.upi = "";
+      this.singlist = [];
+    },
 
-			})
-		},
-		
-	
-		//鐗╂枡缂栫爜鐐瑰嚮
-		materialClick() {
-			uni.scanCode({
-				scanType: ['barCode', 'qrCode'],
-				autoDecodeCharset: true,
-				success: (res) => {
-					this.warehouse.materialCode = getAttrValue(res.result, 'PARTSNUMBER')
-					this.batchNo = getAttrValue(res.result, 'LOTNO')
-					this.getMaterialDetails()
-				},
-				fail: (err) => {
-					this.rescode = 400
-					this.resmessage = `鎵弿澶辫触${err}`
-					this.$refs.resmodal.show = true
-				}
-			})
-		},
-		//鐗╂枡鏌ヨ
-		getMaterialDetails(pram) {
-			if (!this.warehouse.containerCode) {
-				uni.showToast({
-					title: '瀹瑰櫒缂栧彿涓嶈兘涓虹┖',
-					icon: 'none',
-					duration: 2000
-				})
-				return
-			}
-			//鎵鍣ㄧ紪鍙� 鍔犺浇鎵�鏈夌墿鏂�
-			if (pram == 1) {
-				this.singlist = [];
-				getBhbMaterialList({
-					'containerCode': this.warehouse.containerCode,
-					'SNCode': this.warehouse.snCode
-				}).then((res) => {
-					if (res.code == 200) {
-						if (res.result == null) {
-							this.rescode = 400
-							this.resmessage = '鏌ユ棤鏁版嵁'
-							this.$refs.resmodal.show = true
-							return
-						} else {
-							if (res.result.length == 0) {
-								console.log("绌烘墭")
-								this.singlist = [];
-								return
-							} else {
-								console.log("鏈夋枡")
-								res.result.forEach((item, index) => {
-									item.notDelete = 1 //宸茬粍鐩樼殑鐗╂枡 涓嶈鍒犻櫎 瑕佸幓瑙g粦椤甸潰瑙g粦
-								})
-								this.singlist = res.result;
-							}
-						}
-					} else {
-						this.resmessage = res.message
-						this.rescode = res.code
-						this.$refs.resmodal.show = true
+    //鑾峰彇瀹瑰櫒鐨勪俊鎭�
+    getContainerData(param) {
+      if (!this.warehouse.upi) {
+        uni.showToast({
+          title: "璇锋壂閮ㄤ欢鏉$爜",
+          icon: "none",
+          duration: 2000,
+        });
+        return;
+      }
+      getBhbMaterialList({
+        packageCode: this.warehouse.packageCode,
+        upi: this.warehouse.upi,
+      }).then((res) => {
+        const result = res.result;
+        if (Array.isArray(result) && result.length == 0) {
+          uni.showToast({
+            title: "鏁版嵁涓嶅瓨鍦�",
+            icon: "none",
+            duration: 2000,
+          });
+          return;
+        }
+        this.singlist = res.result;
+      });
+    },
 
-					}
-				})
-
-			} else {
-
-				//鐗╂枡鏌ヨ
-				PdaBindListForSNCode({
-					'containerCode': this.warehouse.containerCode,
-					'SNCode': this.warehouse.snCode
-				}).then((res) => {
-					if (res.code == 200) {
-						if (res.result == null || !res.result.stockQuanOutput) {
-							this.rescode = 400
-							this.resmessage = '鏌ユ棤鏁版嵁'
-							this.$refs.resmodal.show = true
-							return
-						} else {
-							// 鏍规嵁id 鍒ゆ柇鐗╂枡鏄惁瀛樺湪
-							var item = res.result.stockQuanOutput;
-							//debugger
-							let index = this.singlist.findIndex(v => v.snCode == item.snCode);
-							if (index == -1) {
-								if (!res.result.validateResult && res.result.validateFailReason) {
-									uni.showModal({
-										title: '鎻愮ず',
-										content: res.result.validateFailReason,
-										showCancel: true,
-										cancelColor: '#333333',
-										success: (res => {
-											if (res.confirm) {
-												this.singlist.unshift({
-													...item
-												})
-											} else if (res.cancel) {
-
-											}
-										})
-									});
-								} else {
-									this.singlist.unshift({
-										...item
-									})
-								}
-							}
-						}
-					} else {
-						this.resmessage = res.message
-						this.rescode = res.code
-						this.$refs.resmodal.show = true
-					}
-				})
-
-			}
-
-		},
-		//鍒犻櫎璇︽儏
-		longpress(index, eindex) {
-			uni.showModal({
-				title: '鎻愮ず',
-				content: '鏄惁纭鍒犻櫎锛�',
-				showCancel: true,
-				cancelColor: '#333333',
-				success: (res => {
-					if (res.confirm) {
-						this.singlist[index].cardNum = true
-						if (eindex == 0) { //鍒犻櫎
-							if(this.singlist[index].notDelete==1){
-								uni.showToast({
-									title: '宸茬粍鐩樼殑鐗╂枡 涓嶈鍒犻櫎 瑕佸幓瑙g粦椤甸潰瑙g粦',
-									icon: 'none',
-									duration: 2000
-								});
-								return
-							}
-							this.singlist.splice(index, 1)
-						} else {
-							this.materlist = this.singlist[index]
-							this.detailshow = true
-						}
-					} else if (res.cancel) {
-
-					}
-				})
-			});
-		},
-		//缂栬緫鐘舵�佹牱寮�
-		dc(e) {
-			e.cardNum = true
-			this.$forceUpdate()
-		},
-		//鍗$墖閫変腑
-		clicki(e) {
-			e.cardNum = true
-			this.$forceUpdate()
-		},
-		// 濡傛灉鎵撳紑涓�涓殑鏃跺�欙紝涓嶉渶瑕佸叧闂叾浠栵紝鍒欐棤闇�瀹炵幇鏈柟娉�
-		open(index) {
-			// 鍏堝皢姝e湪琚搷浣滅殑swipeAction鏍囪涓烘墦寮�鐘舵�侊紝鍚﹀垯鐢变簬props鐨勭壒鎬ч檺鍒讹紝
-			// 鍘熸湰涓�'false'锛屽啀娆¤缃负'false'浼氭棤鏁�
-			this.singlist[index].cardNum = true;
-			this.$forceUpdate()
-			this.singlist[index].show = true;
-			this.singlist.map((val, idx) => {
-				if (index != idx) this.singlist[idx].show = false;
-			})
-		},
-		close(index) {
-			this.singlist[index].show = false;
-			this.singlist[index].cardNum = false;
-			this.$forceUpdate()
-		},
-		//鏀瑰彉缁勭洏鏁伴噺
-		changeNum(val) {
-			val.cardNum = false
-			if (!val.quantity) {
-				uni.showModal({
-					title: '鎻愮ず',
-					content: '缁勭洏鏁伴噺涓嶈兘涓虹┖',
-					showCancel: false
-				})
-			}
-			if (val.quantity < 0) {
-				uni.showModal({
-					title: '鎻愮ず',
-					content: '缁勭洏鏁伴噺蹇呴』澶т簬0',
-					showCancel: false
-				})
-			}
-
-		},
-		//鍏ㄩ儴鍙栨秷
-		reset() {
-			this.singlist = [];
-			this.warehouse.containerCode = ''
-			this.warehouse.snCode = ''
-			this.warehouse.areaCode = ''
-			this.warehouse.placeCode = ''
-			this.$refs.warehouseRef.resetFields();
-			this.$forceUpdate()
-			this.kwbhAllowed = false
-		},
-		//閲嶇疆椤甸潰淇℃伅
-		rest() {
-			this.reset()
-		},
-		//纭
-		submit() {
-			this.$refs.warehouseRef.setRules(this.warehouseRules)
-			this.$refs.warehouseRef.validate(valid => {
-				if (valid) {
-
-					let arrN1 = this.singlist.findIndex((v) => v.quantity == '' || v.quantity <= 0)
-					if (arrN1 > -1) {
-						uni.showToast({
-							title: '鐗╂枡鏁伴噺闇�瑕佸ぇ浜�0',
-							icon: 'none',
-							duration: 2000
-						});
-						return
-					}
-
-					//鐗╂枡璇︽儏
-					let matatilDetails = this.singlist;
-
-					let arrSub = matatilDetails.filter((v) => v.enAbled != 1)
-					//璇锋眰鍙傛暟
-					/// 鏍囪 
-					/// 1锛氱墿鏂欑粍鐩�
-					/// 2锛氬鍣ㄧ粍鐩� 
-					/// 3锛氱墿鏂欒В缁�
-					/// 4锛氬鍣ㄨВ缁�
-					let params = {
-						Flag: 1,
-						ContainerCode: this.warehouse.containerCode,
-						orderDetails: arrSub
-					}
-					uni.showModal({
-						title: '鎻愮ず',
-						content: '鏄惁纭缁勭洏锛�',
-						showCancel: true,
-						cancelColor: '#333333',
-						success: (res => {
-							if (res.confirm) {
-								addGroupDisk(params).then(res => {
-									this.warhouseTph = this.warehouse.containerCode;
-									this.rescode = res.code;
-									this.resmessage = res.message || '缁勭洏鎴愬姛锛�';
-									this.$refs.resmodal.show = true;
-									this.rest();
-								})
-							} else if (res.cancel) {
-
-							}
-						})
-					});
-				}
-			})
-		},
-		
-		// 绉熺洏涓婃灦
-		goWarhouse() {
-			//鐗╂枡璇︽儏
-			let matatilDetails = this.singlist;
-
-			let arrSub = matatilDetails.filter((v) => v.enAbled != 1)
-
-			bindputawayConfirm({
-				flag:1, //
-				"ActionType": 3004, //缁勭洏涓婃灦
-				"ContainerCode": this.warehouse.containerCode,
-				"StorehouseCode": this.warehouse.storehouseCode,
-				"areaCode": this.warehouse.areaCode || '',
-				"placeCode": this.warehouse.placeCode || '',
-				"orderDetails": arrSub
-			}).then(res => {
-				this.rescode = res.code;
-				this.resmessage = res.message || '缁勭洏涓婃灦鎴愬姛锛�';
-				this.$refs.resmodal.show = true;
-				this.reset();
-			})
-			// if(this.warehouse.areaCode==''&&this.warehouse.placeCode){
-			// 	uni.showToast({
-			// 		title: '璇峰~鍐欑洰鏍囧簱鍖烘垨鐩爣搴撲綅锛�',
-			// 		icon: 'none',
-			// 		duration: 2000
-			// 	})
-			// 	return;
-			// }
-			// if (this.warhouseTph == '') {
-			// 	uni.showToast({
-			// 		title: '缁勭洏鎴愬姛鍚庯紝鍙叆搴擄紒',
-			// 		icon: 'none',
-			// 		duration: 2000
-			// 	})
-			// 	return
-			// }
-			// uni.navigateTo({
-			// 	url: '/pages/putIn/three/three?type=鍏ュ簱鍗�&containerCode=' + this.warhouseTph
-			// })
-		},
-		getVehicleType() {
-			getareaTypesList().then((res) => {
-				// if (res.data.rows.length == 0) {
-				// 	this.rescode = 400
-				// 	this.resmessage = '鏆傛棤鏁版嵁'
-				// 	this.$refs.resmodal.show = true
-				// 	return
-				// }
-				var arr = res.result.items;
-				arr.map(item => {
-					item.text = item.areaCode;
-					return item;
-				})
-				this.wolist = arr
-			})
-		},
-		confirmXl(index) {
-			this.warehouse.areaCode = this.wolist[index].areaCode;
-			// this.warehouse.ContainerTypeCode =  this.wolist[index].id;
-		},
-		filterMark(stockFlagStatus) {
-			let str = ''
-			let arr4 = this.arrD.filter(v => v.value == stockFlagStatus)
-			if (arr4.length > 0) {
-				str = arr4[0].title
-			}
-			return str
-		},
-		//------鑾峰彇鎺ㄨ崘
-		containerFocus2() {
-			// //debugger
-			if (!this.warehouse.areaCode) {
-				uni.showToast({
-					title: '璇烽�夋嫨鐩爣搴撳尯锛�',
-					icon: 'none',
-					duration: 2000
-				});
-				return
-			}
-			getRecommendList({
-				'containerCode': this.warehouse.containerCode,
-				'areaCode': this.warehouse.areaCode
-			}).then(res => {
-				this.modalshow2 = true;
-
-				this.containerList = res.result.reduce((curr, item) => {
-					curr.push({
-						text: item.placeCode,
-					})
-					return curr;
-				}, [])
-			})
-		},
-		//------鑾峰彇鎺ㄨ崘绫诲瀷閫夋嫨
-		confirm2(index) {
-			this.warehouse.placeCode = this.containerList[index].text;
-		},
-	}
-}
+    //鍏ㄩ儴鍙栨秷
+    back() {
+      this.ordersId = 0;
+      this.singlist = [];
+      this.$refs.warehouseRef.resetFields();
+      this.warehouse.packageCode = "";
+    },
+  },
+};
 </script>
-<style lang="scss" scoped>
+<style lang="scss">
+.content {
+  height: 500rpx;
+  overflow-y: scroll;
+  width: 100%;
+  padding: 15rpx;
+  box-sizing: border-box;
+
+  .content-item {
+    padding: 15rpx;
+    background-color: #fff;
+    margin-bottom: 15rpx;
+    border-radius: 8rpx;
+    font-size: 32rpx;
+  }
+}
+
 .bg_item {
-	background: #FFEBCD !important;
+  background: #ffebcd !important;
 }
-
-.inputGray2 {
-	line-height: 30px;
-	border-top: 10rpx solid transparent;
-}
-
-.inputGray {
-	border-top: 0rpx solid transparent;
-
-}
-
-
-
-.boxList {
-	transition: all ease 2s;
-	position: fixed;
-	bottom: 0;
-	left: 0;
-	top: 0;
-	right: 0;
-	width: 100%;
-	height: 100%;
-	z-index: 999;
-	background: rgba(0, 0, 0, 0.6);
-
-	.innerWrap {
-		max-height: 50%;
-		overflow-y: auto;
-		background: white;
-		position: absolute;
-		bottom: 0;
-		left: 0;
-		width: 100%;
-
-		ul {
-			padding: 0;
-			margin: 0;
-
-			li {
-				padding: 0;
-				margin: 0;
-				border-bottom: 1px solid #e4e7ed;
-				list-style-type: none;
-				display: flex;
-				flex-direction: row;
-				line-height: 1;
-				justify-content: center;
-				align-items: center;
-				font-size: 13px;
-				padding: 14px 0;
-				flex-direction: column;
-			}
-		}
-	}
-
-}
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.3