From 51441c716afe303d6d8f1aba76406a4fd39b084a Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周五, 16 5月 2025 15:44:09 +0800
Subject: [PATCH] 222
---
PipeLineLems.PDA/pages/pick/index.vue | 43 ++++++++++++++++++++++++-------------------
1 files changed, 24 insertions(+), 19 deletions(-)
diff --git a/PipeLineLems.PDA/pages/pick/index.vue b/PipeLineLems.PDA/pages/pick/index.vue
index 2b890a1..176918c 100644
--- a/PipeLineLems.PDA/pages/pick/index.vue
+++ b/PipeLineLems.PDA/pages/pick/index.vue
@@ -20,17 +20,6 @@
:msg-type="msgType.material"
@search="onSearchMaterial"
@clear="onClearMaterial"
-
- />
- <scan-input-form-item
- placeholder="璇烽�夋嫨"
- :clearable="false"
- :hasScan="false"
- :hasSearch="false"
- @click.native="visible = true"
- class="forma-item"
- label="閫夋嫨搴撳彛"
- v-model="form.site"
/>
<EasyPicker :visible.sync="visible" :list="placeList.filter(item=>item.placeNo!='ZDCR')" labelField="placeNo" valueField="placeNo" @select="getSiteVal"/>
<!-- <EasyPicker :visible.sync="visible" :list="placeList" labelField="placeNo" valueField="placeNo" @select="getSiteVal" /> -->
@@ -40,8 +29,8 @@
<template v-slot:footer>
<view class="bottom-btns-row">
<template>
- <div class="btn-frame"><u-button type="primary" text="缁� 鎵�" @click="onSubmit"></u-button></div>
- <div class="btn-frame"><u-button type="primary" text="鍒嗘嫞鍏ュ簱" @click="addInBound"></u-button></div>
+ <div class="btn-frame"><u-button type="primary" text="纭� 璁� 鍒� 鎷�" @click="onSubmit"></u-button></div>
+ <!-- <div class="btn-frame"><u-button type="primary" text="鍒嗘嫞鍏ュ簱" @click="addInBound"></u-button></div> -->
</template>
</view>
</template>
@@ -197,13 +186,29 @@
return false;
}
this.msg.material = '';
+ debugger
+ // 瑙f瀽绠℃缂栫爜銆佺娈靛悕绉板拰鑸瑰彿
+ const parts = this.form.pipeSpecCode.split(',');
+ if (parts.length < 2) {
+ this.msg.material = '鐮佹牸寮忎笉姝g‘锛岃妫�鏌ヨ緭鍏�';
+ return false;
+ }
+ const pipeCode = parts[0];
+ const pipeName = parts.length > 1? parts[1] : '';
+ const shipNo = parts.length > 2? parts[2] : '';
+
try {
- let { result } = await getContainerInfo({ ContainerNo: this.form.pipeSpecCode });
- if (result.containerNo == this.form.containterCode) {
- return this.$modal('褰撳墠绌烘墭涓庢墭鐩橀噸澶�');
- }
- var isExit = this.contaninerData.some((item) => item.containerNo == result.containerNo);
- isExit ? '' : this.contaninerData.push(result);
+ // let { result } = await getContainerInfo({ ContainerNo: this.form.pipeSpecCode });
+ // if (result.containerNo == this.form.containterCode) {
+ // return this.$modal('褰撳墠绌烘墭涓庢墭鐩橀噸澶�');
+ // }
+ // var isExit = this.materialList.some((item) => item.materialNo == pipeCode);
+ // if(isExit){
+ // return this.$modal('褰撳墠绠℃缂栫爜'+pipeCode+'宸茬粡鍦ㄦ墭鐩�'+this.form.containerNo+'涓�');
+ // }
+ // 鏇存柊鎻愮ず淇℃伅
+ this.msg.material = `绠℃缂栫爜:${pipeCode},绠℃鍚嶇О:${pipeName},鑸瑰彿:${shipNo}`;
+ this.form.pipeSpecCode=pipeCode;
} catch (e) {
//TODO handle the exception
console.log(e);
--
Gitblit v1.9.3