| | |
| | | <EasyPicker :visible.sync="ctVisible" :list="ContainerType" labelField="value" valueField="code" |
| | | @select="getTypeVal" /> |
| | | |
| | | <scan-input-form-item v-show="Boolean(containerInfo.containerNo)" class="forma-item" label="物料二维码" v-model="form.materialNo" :msg="msg.material" |
| | | <scan-input-form-item class="forma-item" label="物料二维码" v-model="form.materialNo" :msg="msg.material" |
| | | :msg-type="msgType.material" @search="onSearchMaterial" @clear="onClearMaterial" /> |
| | | |
| | | <!-- <scan-input-form-item v-show="Boolean(containerInfo.containerNo)" placeholder="请选择" :clearable="false" :hasScan="false" :hasSearch="false" |
| | |
| | | this.blocks = [{ |
| | | workShopName: '分拣', |
| | | wmsPdaPowerOutput:[ |
| | | // {icon:'icon-worker',code:'bind',name:'组盘',color:'#1e90ff'}, |
| | | {icon:'icon-worker',code:'bind',name:'组盘',color:'#1e90ff'}, |
| | | {icon:'icon-worker',code:'pick',name:'分拣',color:'#1e90ff'}, |
| | | // {icon:'icon-worker',code:'bindInForLocation',name:'分拣',color:'#1e90ff'}, |
| | | // {icon:'icon-worker',code:'bindWXJ',name:'分拣',color:'#1e90ff'}, |
| | | {icon:'icon-worker',code:'bindInForLocation',name:'组盘2',color:'#1e90ff'}, |
| | | {icon:'icon-worker',code:'bindWXJ',name:'组盘3',color:'#1e90ff'}, |
| | | ] |
| | | }, |
| | | { |
| | |
| | | :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" /> --> |
| | |
| | | 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); |