zs
2025-05-15 9eaf758e97367dbc2eca2bdbdc92ab39e08be9d0
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" /> -->
@@ -197,13 +186,29 @@
            return false;
         }
         this.msg.material = '';
         debugger
          // 解析管段编码、管段名称和船号
             const parts = this.form.pipeSpecCode.split(',');
             if (parts.length < 2) {
                 this.msg.material = '码格式不正确,请检查输入';
                 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);