|
|
@ -27,21 +27,22 @@ |
|
|
|
</image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class='split_line'></view> |
|
|
|
<!-- <view class='split_line'></view> |
|
|
|
<view class="title " style="display: flex; align-items: center;padding: 10rpx;"> |
|
|
|
<text style=" flex-shrink: 0;width: 25%;">计划日期:</text> |
|
|
|
<view class="customerBorder" @click="showSelectDate"> |
|
|
|
{{planDate}} |
|
|
|
</view> |
|
|
|
<u-select v-model="showDateSelect" mode="mutil-column-auto" :list="planDateList" |
|
|
|
@confirm="confirmSelectDate"></u-select> |
|
|
|
@confirm="confirmSelectDate"></u-select> |
|
|
|
|
|
|
|
<view class=""> |
|
|
|
<image src="/static/icons/down.svg" mode="" |
|
|
|
style=" width: 40rpx;height: 40rpx;margin-left: 20rpx;" @click="showSelectDate"> |
|
|
|
style=" width: 40rpx;height: 40rpx;margin-left: 20rpx;" @click="showSelectDate"> |
|
|
|
</image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
--> |
|
|
|
<view class='split_line'></view> |
|
|
|
<view class="title " style="display: flex;align-items: center;padding: 10rpx;"> |
|
|
|
<text style=" flex-shrink: 0; width: 25%;">物料代码:</text> |
|
|
@ -158,7 +159,6 @@ export default { |
|
|
|
showProductLineSelect: false, |
|
|
|
productLineList: [], |
|
|
|
productionLineName: "请选择生产线", |
|
|
|
productLineCode: "", |
|
|
|
batch: "", |
|
|
|
packUnitName: "请选择包装规格", |
|
|
|
packUnit: "", |
|
|
@ -176,7 +176,6 @@ export default { |
|
|
|
rawLocationCode: "", |
|
|
|
workshop: "", |
|
|
|
bomVersion: "", |
|
|
|
uom: "" |
|
|
|
} |
|
|
|
}, |
|
|
|
props: { |
|
|
@ -194,7 +193,7 @@ export default { |
|
|
|
openRequestPopup() { |
|
|
|
this.initData(); |
|
|
|
this.planDate = getCurrDate() |
|
|
|
this.batch = this.planDate.replace('-', '') |
|
|
|
this.batch = this.planDate.replace('-', '').replace('-', '') |
|
|
|
this.$refs.popup.open('bottom') |
|
|
|
}, |
|
|
|
initData() { |
|
|
@ -322,11 +321,12 @@ export default { |
|
|
|
this.planQty = 0; |
|
|
|
this.goodQty = 0 |
|
|
|
this.planNumber = "" |
|
|
|
this.bomVersion = "" |
|
|
|
}, |
|
|
|
|
|
|
|
confirmSelectDate(data) { |
|
|
|
this.planDate = data[0].label |
|
|
|
this.batch = this.planDate.replace('-', ''); |
|
|
|
this.batch = this.planDate.replace('-', '').replace('-', ''); |
|
|
|
}, |
|
|
|
|
|
|
|
showSelectDate() { |
|
|
@ -463,6 +463,7 @@ export default { |
|
|
|
let pack = this.packUnitList.filter(r => r.packUnit == this.packUnit); |
|
|
|
this.packQtyHint = pack[0].packQty + "(" + this |
|
|
|
.getUomInfo(pack[0].uom) + ")"; |
|
|
|
this.uom = this.getUomInfo(pack[0].uom); |
|
|
|
this.packQty = pack[0].packQty |
|
|
|
}, |
|
|
|
getUomInfo(uom) { |
|
|
|