|
@ -28,7 +28,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="title padding" style="display: flex;"> |
|
|
<view class="title padding" style="display: flex;"> |
|
|
<text style=" flex-shrink: 0;">箱码:</text> |
|
|
<text style=" flex-shrink: 0;">物料:</text> |
|
|
<view class="" style="width: 100% ;"> |
|
|
<view class="" style="width: 100% ;"> |
|
|
{{itemCode}} |
|
|
{{itemCode}} |
|
|
</view> |
|
|
</view> |
|
@ -46,10 +46,13 @@ |
|
|
<text>数量 : </text> |
|
|
<text>数量 : </text> |
|
|
<view class="uni-flex uni-row uni-center" |
|
|
<view class="uni-flex uni-row uni-center" |
|
|
style="align-items: center;margin-left: 20rpx;"> |
|
|
style="align-items: center;margin-left: 20rpx;"> |
|
|
<uni-number-box :value="counQty" @change="change" style='margin-left: 10rpx;' |
|
|
<input style="text-align: center;" class="qty_input" v-model="counQty" type="number" |
|
|
:focus="numberFocus" @blur='numberFocus = false'> |
|
|
@confirm="confirm()" :focus="numberFocus" @input="checkNum" :maxlength="maxlength" /> |
|
|
</uni-number-box> |
|
|
|
|
|
<uom :uom="uom"></uom> |
|
|
<uom :uom="uom"></uom> |
|
|
|
|
|
<view class="" v-if="stdPackInfo!=undefined" style="display: flex;flex-direction: row;margin-left: 10rpx;"> |
|
|
|
|
|
(<stdPackQty :dataContent="stdPackInfo"></stdPackQty>) |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -63,7 +66,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</uni-popup> |
|
|
</uni-popup> |
|
|
<win-scan-item ref="scanPopup" title='物料代码' @getScanCode='getScanCode'> |
|
|
<win-scan-item ref="scanPopup" title='物料代码' @getScanResult='getScanCode'> |
|
|
</win-scan-item> |
|
|
</win-scan-item> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
</view> |
|
|
</view> |
|
@ -82,6 +85,7 @@ |
|
|
checkDirectoryItemExist |
|
|
checkDirectoryItemExist |
|
|
} from '@/common/directory.js'; |
|
|
} from '@/common/directory.js'; |
|
|
import uom from '@/mycomponents/qty/uom.vue' |
|
|
import uom from '@/mycomponents/qty/uom.vue' |
|
|
|
|
|
import stdPackQty from '@/mycomponents/qty/stdPackQty.vue' |
|
|
import balanceStatus from '@/mycomponents/status/balanceStatus.vue' |
|
|
import balanceStatus from '@/mycomponents/status/balanceStatus.vue' |
|
|
import comMessage from '@/mycomponents/common/comMessage.vue' |
|
|
import comMessage from '@/mycomponents/common/comMessage.vue' |
|
|
import winScanItem from '@/mycomponents/scan/winScanItem.vue' |
|
|
import winScanItem from '@/mycomponents/scan/winScanItem.vue' |
|
@ -90,6 +94,7 @@ |
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
uom, |
|
|
uom, |
|
|
|
|
|
stdPackQty, |
|
|
balanceStatus, |
|
|
balanceStatus, |
|
|
comMessage, |
|
|
comMessage, |
|
|
winScanItem |
|
|
winScanItem |
|
@ -120,6 +125,8 @@ |
|
|
show: false, |
|
|
show: false, |
|
|
isModifiedPosition: true, |
|
|
isModifiedPosition: true, |
|
|
positionList: [], |
|
|
positionList: [], |
|
|
|
|
|
maxlength:10, |
|
|
|
|
|
stdPackInfo:undefined, |
|
|
list: [{ |
|
|
list: [{ |
|
|
value: 1, |
|
|
value: 1, |
|
|
label: '车间1', |
|
|
label: '车间1', |
|
@ -193,6 +200,21 @@ |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
checkNum(e) { |
|
|
|
|
|
let value = e.detail.value; |
|
|
|
|
|
let dot = value.indexOf('.'); //包含小数点 |
|
|
|
|
|
let reg = /^[0-9]+$/; //正整数 |
|
|
|
|
|
if (dot > -1) { |
|
|
|
|
|
this.maxlength = dot + 7; //长度是小数点后两位 |
|
|
|
|
|
if (value.length > dot + 7) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if (reg.test(value)) { //如果是正整数不包含小数点 |
|
|
|
|
|
this.maxlength = 10; |
|
|
|
|
|
} |
|
|
|
|
|
this.change(value) |
|
|
|
|
|
}, |
|
|
openRequestPopup(editPosition) { |
|
|
openRequestPopup(editPosition) { |
|
|
if (this.positionList.length == 0) { |
|
|
if (this.positionList.length == 0) { |
|
|
getWorkShopLineStation().then(res => { |
|
|
getWorkShopLineStation().then(res => { |
|
@ -352,13 +374,14 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
getScanCode(code) { |
|
|
getScanCode(code, scanResult) { |
|
|
if (code == "") { |
|
|
if (code == "") { |
|
|
this.showErrorMessage('物料号不能为空') |
|
|
this.showErrorMessage('物料号不能为空') |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
this.itemCode = ""; |
|
|
this.itemCode = ""; |
|
|
this.checkItemCode(code) |
|
|
this.checkItemCode(code) |
|
|
|
|
|
this.stdPackInfo = scanResult.package; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|