|
@ -10,8 +10,11 @@ |
|
|
<view class="item"> |
|
|
<view class="item"> |
|
|
<view class="label">来源库位:</view> |
|
|
<view class="label">来源库位:</view> |
|
|
<view class="value"> |
|
|
<view class="value"> |
|
|
<u-input v-model="fromLocationCode"></u-input> |
|
|
<u-input v-model="fromLocationCode" @confirm="fromLocationScanMsg" @blur="fromLocationScanMsg" |
|
|
<u-icon name="close-circle-fill" color="#acacac" size="36" @click="fromLocationCode=''" v-if="fromLocationCode"></u-icon> |
|
|
|
|
|
|
|
|
></u-input> |
|
|
|
|
|
<u-icon name="close-circle-fill" color="#acacac" size="36" @click="fromLocationCode=''" |
|
|
|
|
|
v-if="fromLocationCode"></u-icon> |
|
|
</view> |
|
|
</view> |
|
|
<view class="searchIcon"> |
|
|
<view class="searchIcon"> |
|
|
<image src="/static/search.svg" mode="" @click="fromLocationClick" /> |
|
|
<image src="/static/search.svg" mode="" @click="fromLocationClick" /> |
|
@ -20,8 +23,9 @@ |
|
|
<view class="item"> |
|
|
<view class="item"> |
|
|
<view class="label">零件:</view> |
|
|
<view class="label">零件:</view> |
|
|
<view class="value"> |
|
|
<view class="value"> |
|
|
<u-input v-model="itemCode"></u-input> |
|
|
<u-input v-model="itemCode" @confirm="itemCodeScanMsg" @blur="itemCodeScanMsg"></u-input> |
|
|
<u-icon name="close-circle-fill" color="#acacac" size="36" @click="itemCode=''" v-if="itemCode"></u-icon> |
|
|
<u-icon name="close-circle-fill" color="#acacac" size="36" @click="itemCode=''" |
|
|
|
|
|
v-if="itemCode"></u-icon> |
|
|
</view> |
|
|
</view> |
|
|
<view class="searchIcon"> |
|
|
<view class="searchIcon"> |
|
|
<image src="/static/search.svg" mode="" @click="itemCodeClick" /> |
|
|
<image src="/static/search.svg" mode="" @click="itemCodeClick" /> |
|
@ -31,7 +35,8 @@ |
|
|
<view class="label">批次:</view> |
|
|
<view class="label">批次:</view> |
|
|
<view class="value"> |
|
|
<view class="value"> |
|
|
<u-input v-model='batch'></u-input> |
|
|
<u-input v-model='batch'></u-input> |
|
|
<u-icon name="close-circle-fill" color="#acacac" size="36" @click="batch = ''" v-if="batch"></u-icon> |
|
|
<u-icon name="close-circle-fill" color="#acacac" size="36" @click="batch = ''" |
|
|
|
|
|
v-if="batch"></u-icon> |
|
|
</view> |
|
|
</view> |
|
|
<view class="searchIcon"></view> |
|
|
<view class="searchIcon"></view> |
|
|
</view> |
|
|
</view> |
|
@ -43,8 +48,9 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="uni-flex uni-row hide_border"> |
|
|
<view class="uni-flex uni-row hide_border"> |
|
|
<button class="btn_edit_big_cancle" hover-class="btn_edit_big_after" @click="showOne = false">取消</button> |
|
|
<button class="btn_edit_big_cancle" hover-class="btn_edit_big_after" |
|
|
<button class="btn_edit_big_confirm" hover-class="btn_edit_big_after" @click="confirm()">确认</button> |
|
|
@click="showOne = false">取消</button> |
|
|
|
|
|
<button class="btn_edit_big_confirm" hover-class="btn_edit_big_after" @click="clickConfirm">确认</button> |
|
|
</view> |
|
|
</view> |
|
|
</u-popup> |
|
|
</u-popup> |
|
|
|
|
|
|
|
@ -64,6 +70,10 @@ |
|
|
getLabelInfo |
|
|
getLabelInfo |
|
|
} from '../../../common/label.js'; |
|
|
} from '../../../common/label.js'; |
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
|
getBasicLocationByCode, |
|
|
|
|
|
} from '@/api/request2.js'; |
|
|
|
|
|
|
|
|
import uom from '@/mycomponents/qty/uom.vue' |
|
|
import uom from '@/mycomponents/qty/uom.vue' |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -73,7 +83,9 @@ import uom from '@/mycomponents/qty/uom.vue' |
|
|
winScanLocation, |
|
|
winScanLocation, |
|
|
uom |
|
|
uom |
|
|
}, |
|
|
}, |
|
|
emits: ["showFromLocationPopup",'itemCodeClick','confirm','getInputMsgResult','clearFromLocationCode','clickBtnClearItemCode'], |
|
|
emits: ["showFromLocationPopup", 'itemCodeClick', 'onConfirm', 'getInputMsgResult', 'clearFromLocationCode', |
|
|
|
|
|
'clickBtnClearItemCode' |
|
|
|
|
|
], |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
handleQty: 0, |
|
|
handleQty: 0, |
|
@ -92,8 +104,7 @@ import uom from '@/mycomponents/qty/uom.vue' |
|
|
default: false |
|
|
default: false |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() {}, |
|
|
}, |
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
// 打开扫描来源库位组件 |
|
|
// 打开扫描来源库位组件 |
|
|
fromLocationClick() { |
|
|
fromLocationClick() { |
|
@ -109,7 +120,7 @@ import uom from '@/mycomponents/qty/uom.vue' |
|
|
} |
|
|
} |
|
|
this.$emit("itemCodeClick"); |
|
|
this.$emit("itemCodeClick"); |
|
|
}, |
|
|
}, |
|
|
confirm(){ |
|
|
clickConfirm() { |
|
|
// this.$refs.scanLocationCode.openScanPopup() |
|
|
// this.$refs.scanLocationCode.openScanPopup() |
|
|
|
|
|
|
|
|
let obj = { |
|
|
let obj = { |
|
@ -118,7 +129,7 @@ import uom from '@/mycomponents/qty/uom.vue' |
|
|
batch: this.batch, |
|
|
batch: this.batch, |
|
|
handleQty: this.handleQty, |
|
|
handleQty: this.handleQty, |
|
|
} |
|
|
} |
|
|
this.$emit("confirm",obj); |
|
|
this.$emit("onConfirm", obj); |
|
|
// if(!obj.fromLocationCode){ |
|
|
// if(!obj.fromLocationCode){ |
|
|
// this.$refs.comMessage.showErrorMessage('请选择来源库位'); |
|
|
// this.$refs.comMessage.showErrorMessage('请选择来源库位'); |
|
|
// return; |
|
|
// return; |
|
@ -134,23 +145,29 @@ import uom from '@/mycomponents/qty/uom.vue' |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
fromLocationScanMsg() { |
|
|
fromLocationScanMsg() { |
|
|
|
|
|
setTimeout(() => { |
|
|
if (this.fromLocationCode) { |
|
|
if (this.fromLocationCode) { |
|
|
this.scanMsg = this.fromLocationCode |
|
|
this.scanMsg = this.fromLocationCode |
|
|
this.fromWitch = 'fromLocationScanMsg' |
|
|
this.fromWitch = 'fromLocationScanMsg' |
|
|
this.isFromLocationFocus = false |
|
|
this.isFromLocationFocus = false |
|
|
this.handelScanMsg() |
|
|
this.handelScanMsg() |
|
|
} |
|
|
} |
|
|
|
|
|
}, 500); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
itemCodeScanMsg() { |
|
|
itemCodeScanMsg() { |
|
|
|
|
|
setTimeout(() => { |
|
|
if (this.itemCode) { |
|
|
if (this.itemCode) { |
|
|
if (!this.fromLocationCode) { |
|
|
if (!this.fromLocationCode) { |
|
|
this.$refs.comMessage.showMessage("请先扫描来源库位") |
|
|
this.$refs.comMessage.showMessage("请先扫描来源库位") |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
this.fromWitch = 'itemCodeScanMsg' |
|
|
this.fromWitch = 'itemCodeScan' |
|
|
this.scanMsg = this.itemCode |
|
|
this.scanMsg = this.itemCode |
|
|
this.handelScanMsg() |
|
|
this.handelScanMsg() |
|
|
} |
|
|
} |
|
|
|
|
|
}, 500); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
handelScanMsg() { |
|
|
handelScanMsg() { |
|
|
//点击了回车 |
|
|
//点击了回车 |
|
@ -228,6 +245,7 @@ import uom from '@/mycomponents/qty/uom.vue' |
|
|
padding: 30rpx 20rpx; |
|
|
padding: 30rpx 20rpx; |
|
|
display: flex; |
|
|
display: flex; |
|
|
border-bottom: 1px solid rgba(230, 230, 230, 1); |
|
|
border-bottom: 1px solid rgba(230, 230, 230, 1); |
|
|
|
|
|
|
|
|
.title-txt { |
|
|
.title-txt { |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
font-weight: bold; |
|
|
font-weight: bold; |
|
@ -235,23 +253,28 @@ import uom from '@/mycomponents/qty/uom.vue' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.select { |
|
|
.select { |
|
|
display: flex; |
|
|
display: flex; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.border { |
|
|
.border { |
|
|
border: 1px solid rgba(230, 230, 230, 1) |
|
|
border: 1px solid rgba(230, 230, 230, 1) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
::v-deep .u-input__right-icon__clear { |
|
|
::v-deep .u-input__right-icon__clear { |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
justify-content: center; |
|
|
justify-content: center; |
|
|
color: #a7a7a7; |
|
|
color: #a7a7a7; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.item { |
|
|
.item { |
|
|
display: flex; |
|
|
display: flex; |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
padding: 20rpx; |
|
|
padding: 20rpx; |
|
|
border-bottom: 1px solid #dedede; |
|
|
border-bottom: 1px solid #dedede; |
|
|
|
|
|
|
|
|
.value { |
|
|
.value { |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
width: 0px; |
|
|
width: 0px; |
|
@ -262,6 +285,7 @@ import uom from '@/mycomponents/qty/uom.vue' |
|
|
font-size: 32rpx; |
|
|
font-size: 32rpx; |
|
|
padding: 0px 20rpx; |
|
|
padding: 0px 20rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.value1 { |
|
|
.value1 { |
|
|
flex: 1; |
|
|
flex: 1; |
|
|
width: 0px; |
|
|
width: 0px; |
|
@ -270,14 +294,17 @@ import uom from '@/mycomponents/qty/uom.vue' |
|
|
align-items: center; |
|
|
align-items: center; |
|
|
font-size: 32rpx; |
|
|
font-size: 32rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.searchIcon { |
|
|
.searchIcon { |
|
|
width: 40rpx; |
|
|
width: 40rpx; |
|
|
margin-left: 20rpx; |
|
|
margin-left: 20rpx; |
|
|
|
|
|
|
|
|
image { |
|
|
image { |
|
|
width: 40rpx; |
|
|
width: 40rpx; |
|
|
height: 40rpx |
|
|
height: 40rpx |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.uom { |
|
|
.uom { |
|
|
margin-left: 10rpx; |
|
|
margin-left: 10rpx; |
|
|
} |
|
|
} |
|
|