Browse Source

修改无计划完工

hella_online_20240829
niexiting 3 months ago
parent
commit
290e97ccdb
  1. 16
      src/api/request2.js
  2. 58
      src/pages/fg/coms/comNoReceiptPopup.vue
  3. 20
      src/pages/fg/receiptNoPlan.vue

16
src/api/request2.js

@ -568,6 +568,22 @@ export function getProductionlineItem(params) {
}); });
} }
/**
* 查询生产线物料关系
* @param {*} productionLineCode 生产线code
*
*/
export function getBomVersionByProductionline(productionline) {
return request({
url: baseApi + "/wms/productionlineitem/getBomVersionByProductionline?productionline=" + productionline,
method: "get",
data: {},
});
}
/** /**
* 通过物料查询包装规格 * 通过物料查询包装规格
* @param {*} itemCode * @param {*} itemCode

58
src/pages/fg/coms/comNoReceiptPopup.vue

@ -13,14 +13,13 @@
<view class='split_line'></view> <view class='split_line'></view>
<view class="uni-flex uni-column" style="background-color: white; "> <view class="uni-flex uni-column" style="background-color: white; ">
<view class="uni-flex uni-column"> <view class="uni-flex uni-column">
<view class="title " style="display: flex; align-items: center;padding: 10rpx;"> <view class="title " style="display: flex; align-items: center;padding: 10rpx;">
<text style=" flex-shrink: 0;width: 25%;">生产线</text> <text style=" flex-shrink: 0;width: 25%;">生产线</text>
<view class="customerBorder" @click="showSelectLine"> <view class="customerBorder" @click="showSelectLine">
{{productionLineName}} {{productionLineName}}
</view> </view>
<u-select v-model="showProductLineSelect" mode="mutil-column-auto" title="请选择生产线和工位" <u-select v-model="showProductLineSelect" mode="mutil-column-auto"
:list="productLineList" @confirm="confirmSelectLine"></u-select> :list="productLineList" @confirm="confirmSelectLine" title="生产线-工位"></u-select>
<view class=""> <view class="">
<image src="/static/icons/down.svg" mode="" <image src="/static/icons/down.svg" mode=""
@ -49,8 +48,11 @@
<view class="customerBorder"> <view class="customerBorder">
{{itemCode}} {{itemCode}}
</view> </view>
<u-select v-model="showItemCodeSelect" mode="single-column" :list="itemCodeList" <view v-if="bomVersion" class="">
@confirm="confirmSelectItem"></u-select> Bom版本{{bomVersion}}
</view>
<u-select v-model="showItemCodeSelect" mode="mutil-column-auto" :list="itemCodeList"
@confirm="confirmSelectItem" title="物料代码-Bom版本"></u-select>
<view class=""> <view class="">
<image src="/static/icons/down.svg" mode="" <image src="/static/icons/down.svg" mode=""
style=" width: 40rpx;height: 40rpx;margin-left: 20rpx;" style=" width: 40rpx;height: 40rpx;margin-left: 20rpx;"
@ -113,7 +115,7 @@
getPlaneInfoByproductLine, getPlaneInfoByproductLine,
getPackUnitByItemCode, getPackUnitByItemCode,
getProductionlineAndWorkStation, getProductionlineAndWorkStation,
getProductionlineItem getBomVersionByProductionline
} from '@/api/request2.js'; } from '@/api/request2.js';
import { import {
getPackUnitName, getPackUnitName,
@ -145,7 +147,8 @@
}, },
data() { data() {
return { return {
itemCode: '请选择物料信息', itemCode: '',
itemName: '请选择物料信息',
uom: "", uom: "",
qty: null, qty: null,
planQty: 0, planQty: 0,
@ -170,7 +173,10 @@
showDateSelect: false, showDateSelect: false,
planDateList: [], planDateList: [],
fgLocationCode: "", fgLocationCode: "",
rawLocationCode: "" rawLocationCode: "",
workshop: "",
bomVersion: "",
uom:""
} }
}, },
props: { props: {
@ -217,6 +223,7 @@
this.planDateList = [] this.planDateList = []
this.fgLocationCode = "" this.fgLocationCode = ""
this.rawLocationCode = "" this.rawLocationCode = ""
this.workshop=""
}, },
@ -264,7 +271,7 @@
callback() { callback() {
let item = { let item = {
productionLineName: "", productionLineName: "",
productionLineCode: "", //线 productionLineCode: this.productLineCode, //线
itemCode: this.itemCode, itemCode: this.itemCode,
itemName: this.itemName, itemName: this.itemName,
uom: this.getUomInfo(this.uom), uom: this.getUomInfo(this.uom),
@ -278,7 +285,8 @@
planNumber: "", planNumber: "",
workStationCode: this.workStationCode, workStationCode: this.workStationCode,
fgLocationCode: this.fgLocationCode, fgLocationCode: this.fgLocationCode,
rawLocationCode: this.rawLocationCode rawLocationCode: this.rawLocationCode,
workshop:this.workshop
}; };
this.closeRequestPopup(); this.closeRequestPopup();
this.$emit("confirm", item); this.$emit("confirm", item);
@ -300,6 +308,8 @@
var parent = this.productLineList.filter(res => res.value == this.productionLineCode) var parent = this.productLineList.filter(res => res.value == this.productionLineCode)
var fgLocation = parent[0].children.filter(children => children.value == this.workStationCode) var fgLocation = parent[0].children.filter(children => children.value == this.workStationCode)
this.fgLocationCode = fgLocation[0].fgLocationCode; this.fgLocationCode = fgLocation[0].fgLocationCode;
this.workshop = parent[0].workshop;
this.clearItemCode() this.clearItemCode()
this.clearPackUnit() this.clearPackUnit()
@ -363,20 +373,10 @@
title: "加载中", title: "加载中",
mask: true mask: true
}) })
let param = { getBomVersionByProductionline(this.productionLineCode).then(res => {
pageSize: 20,
pageNo: 1,
productionLineCode: this.productionLineCode
};
getProductionlineItem(param).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data.list && res.data.list.length > 0) { if (res.data && res.data.length > 0) {
res.data.list.forEach(item => { this.itemCodeList = res.data
item.label = item.itemCode
item.value = item
})
this.itemCodeList = res.data.list
this.showItemCodeSelect = true this.showItemCodeSelect = true
} else { } else {
this.showErrorMessage('未查找到物料信息'); this.showErrorMessage('未查找到物料信息');
@ -387,9 +387,10 @@
}) })
}, },
confirmSelectItem(data) { confirmSelectItem(data) {
let itemInfo = data[0].value; this.itemCode = data[0].label;
this.itemCode = itemInfo.itemCode; this.bomVersion = data[1].value;
this.uom = itemInfo.uom this.uom=data[0].uom;
// this.uom = itemInfo.uom
// //
this.clearPackUnit(); this.clearPackUnit();
@ -470,11 +471,6 @@
return item.label return item.label
} }
}, },
} }
} }
</script> </script>

20
src/pages/fg/receiptNoPlan.vue

@ -9,7 +9,7 @@
<view class="cell_box uni-flex uni-row"> <view class="cell_box uni-flex uni-row">
<view class="cell_info"> <view class="cell_info">
<view class="text_lightblue">完工库位</view> <view class="text_lightblue">完工库位</view>
<view style="font-size: 30rpx; margin-top: 13rpx;" >{{dataContent.fgLocationCode}} <view style="font-size: 30rpx; margin-top: 13rpx;">{{dataContent.fgLocationCode}}
</view> </view>
</view> </view>
@ -35,7 +35,7 @@
<view style="word-break: break-all; font-size: 35rpx; font-weight: bold;"> <view style="word-break: break-all; font-size: 35rpx; font-weight: bold;">
<text v-if="dataContent.handleQty>0" style="color: #FFA500;">{{dataContent.handleQty}}/</text> <text v-if="dataContent.handleQty>0" style="color: #FFA500;">{{dataContent.handleQty}}/</text>
<!-- {{dataContent.packQtyHint}} --> <!-- {{dataContent.packQtyHint}} -->
<text class="text_recommend" >{{dataContent.packQtyHint}}</text> <text class="text_recommend">{{dataContent.packQtyHint}}</text>
</view> </view>
</view> </view>
</view> </view>
@ -47,7 +47,7 @@
<uni-swipe-action> <uni-swipe-action>
<uni-swipe-action-item :right-options="options" @click="swipeClick($event,item,index)"> <uni-swipe-action-item :right-options="options" @click="swipeClick($event,item,index)">
<view class="uni-flex uni-row " <view class="uni-flex uni-row "
style="margin-left: 30rpx; margin-top: 10rpx; margin-bottom: 10rpx;" > style="margin-left: 30rpx; margin-top: 10rpx; margin-bottom: 10rpx;">
<light :lightCode='item.content'></light> <light :lightCode='item.content'></light>
<!-- <view class="auto-wrap" style="font-size: 35rpx;font-weight: bold; width: 100%;"> <!-- <view class="auto-wrap" style="font-size: 35rpx;font-weight: bold; width: 100%;">
<text style="font-size: 30rpx;color: #B66463;">唯一码 </text> <text style="font-size: 30rpx;color: #B66463;">唯一码 </text>
@ -124,7 +124,8 @@
pack, pack,
winScanButton, winScanButton,
winScanFgLabel, winScanFgLabel,
comFgCard,light comFgCard,
light
}, },
data() { data() {
return { return {
@ -187,8 +188,13 @@
batch: result.batch, batch: result.batch,
packUnit: result.packUnit, packUnit: result.packUnit,
workStationCode: result.workStationCode, workStationCode: result.workStationCode,
fgLocationCode:result.fgLocationCode, fgLocationCode: result.fgLocationCode,
subList: [] subList: [],
productionLine: result.productionLineCode,
bomVersion: result.bomVersion,
workshop: result.workshop,
team: "",
shift: ""
} }
}, },
@ -318,7 +324,7 @@
throw new Error("未查找到单据信息") throw new Error("未查找到单据信息")
} }
uni.hideLoading() uni.hideLoading()
this.showCommitSuccessMessage("提交成功<br>生成装配收货记录<br>"+list[0].requestNumber, list) this.showCommitSuccessMessage("提交成功<br>生成装配收货记录<br>" + list[0].requestNumber, list)
} catch (error) { } catch (error) {
uni.hideLoading() uni.hideLoading()

Loading…
Cancel
Save