Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-uniapp into master_hella

# Conflicts:
#	src/pages/fg/receiptNoPlan.vue
hella_online_20240829
niexiting 3 months ago
parent
commit
2eb864f2fc
  1. 2
      .env.development
  2. 16
      src/pages/fg/coms/comNoReceiptPopup.vue
  3. 5
      src/pages/fg/coms/comReceiptPopup.vue
  4. 15
      src/pages/fg/receiptByPlan.vue
  5. 30
      src/pages/fg/receiptNoPlan.vue

2
.env.development

@ -1,4 +1,4 @@
VITE_BASE_URL=http://172.21.32.14:81/api/admin-api VITE_BASE_URL=http://192.168.0.128:12080/admin-api
VITE_BASE_URL_IMAGE=http://172.21.32.14:81/admin-api VITE_BASE_URL_IMAGE=http://172.21.32.14:81/admin-api
# 租户配置 # 租户配置

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

@ -158,7 +158,7 @@
showProductLineSelect: false, showProductLineSelect: false,
productLineList: [], productLineList: [],
productionLineName: "请选择生产线", productionLineName: "请选择生产线",
productionLineCode: "", productLineCode: "",
batch: "", batch: "",
packUnitName: "请选择包装规格", packUnitName: "请选择包装规格",
packUnit: "", packUnit: "",
@ -194,7 +194,7 @@
openRequestPopup() { openRequestPopup() {
this.initData(); this.initData();
this.planDate = getCurrDate() this.planDate = getCurrDate()
this.batch = getBatch8() this.batch =this.planDate.replace('-','')
this.$refs.popup.open('bottom') this.$refs.popup.open('bottom')
}, },
initData() { initData() {
@ -208,7 +208,7 @@
this.showProductLineSelect = false this.showProductLineSelect = false
this.productLineList = [] this.productLineList = []
this.productionLineName = "请选择生产线" this.productionLineName = "请选择生产线"
this.productionLineCode = "" this.productLineCode = ""
this.batch = "" this.batch = ""
this.packUnitName = "请选择包装规格" this.packUnitName = "请选择包装规格"
this.packUnit = "", this.packUnit = "",
@ -271,7 +271,7 @@
callback() { callback() {
let item = { let item = {
productionLineName: "", productionLineName: "",
productionLineCode: this.productLineCode, //线 productionLine: this.productLineCode, //线
itemCode: this.itemCode, itemCode: this.itemCode,
itemName: this.itemName, itemName: this.itemName,
uom: this.getUomInfo(this.uom), uom: this.getUomInfo(this.uom),
@ -303,9 +303,9 @@
confirmSelectLine(data) { confirmSelectLine(data) {
this.productionLineName = data[0].label + "—" + data[1].label this.productionLineName = data[0].label + "—" + data[1].label
this.productionLineCode = data[0].value this.productLineCode = data[0].value
this.workStationCode = data[1].value this.workStationCode = data[1].value
var parent = this.productLineList.filter(res => res.value == this.productionLineCode) var parent = this.productLineList.filter(res => res.value == this.productLineCode)
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.workshop = parent[0].workshop;
@ -365,7 +365,7 @@
}, },
showSelectItemCode() { showSelectItemCode() {
if (!this.productionLineCode) { if (!this.productLineCode) {
this.showErrorMessage('请先选择生产线'); this.showErrorMessage('请先选择生产线');
return; return;
} }
@ -373,7 +373,7 @@
title: "加载中", title: "加载中",
mask: true mask: true
}) })
getBomVersionByProductionline(this.productionLineCode).then(res => { getBomVersionByProductionline(this.productLineCode).then(res => {
uni.hideLoading() uni.hideLoading()
if (res.data && res.data.length > 0) { if (res.data && res.data.length > 0) {
this.itemCodeList = res.data this.itemCodeList = res.data

5
src/pages/fg/coms/comReceiptPopup.vue

@ -402,7 +402,10 @@
// this.showItemCodeSelect = true // this.showItemCodeSelect = true
if (this.itemCodeList.length == 1) { if (this.itemCodeList.length == 1) {
this.itemCode = this.itemCodeList[0].itemCode;
this.confirmSelectItem([this.itemCodeList[0]])
// this.itemCode = this.itemCodeList[0].itemCode;
} else { } else {
this.showItemCodeSelect = true; this.showItemCodeSelect = true;
} }

15
src/pages/fg/receiptByPlan.vue

@ -6,10 +6,11 @@
<com-blank-view @goScan='openFg' v-if="!dataContent"></com-blank-view> <com-blank-view @goScan='openFg' v-if="!dataContent"></com-blank-view>
</view> </view>
<view class="" v-if="dataContent"> <view class="" v-if="dataContent">
<view class="page-header">
<view class="header-view" >
<view class="" style="font-size: 35rpx;padding: 10rpx; padding-left: 15rpx;"> <view class="" style="font-size: 35rpx;padding: 10rpx; padding-left: 15rpx;">
生产计划{{dataContent.planNumber}} 生产计划{{dataContent.planNumber}}
</view> </view>
<view class='split_line'></view>
<view class="cell_box uni-flex uni-row"> <view class="cell_box uni-flex uni-row">
<view class="cell_info"> <view class="cell_info">
@ -31,13 +32,12 @@
<view>{{dataContent.noGoodQty}}{{dataContent.uom}}</view> <view>{{dataContent.noGoodQty}}{{dataContent.uom}}</view>
</view> </view>
</view> </view>
<view class='split_line'></view> </view></view>
<view class="" style="padding: 10rpx; margin-left: 10rpx;">
<view class="" style="padding-top: 10rpx; padding-bottom: 10rpx; margin-left: 10rpx;">
<item :dataContent="dataContent"></item> <item :dataContent="dataContent"></item>
</view> </view>
<view class='split_line'></view> <view class='split_line'></view>
<view class="uni-flex uni-row space-between" style="align-items: center"> <view class="uni-flex uni-row space-between" style="align-items: center;padding: 0 10rpx;">
<view style="word-break: break-all;"> <view style="word-break: break-all;">
<batch :batch="dataContent.batch"></batch> <batch :batch="dataContent.batch"></batch>
<view class="card_view "> <view class="card_view ">
@ -442,7 +442,7 @@
showCommitSuccessMessage(hint, pointData) { showCommitSuccessMessage(hint, pointData) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
if (pointData.length > 0) { if (pointData.length > 0) {
uni.navigateTo({ uni.redirectTo({
url: `/pages/point/index?points=${JSON.stringify(pointData)}` url: `/pages/point/index?points=${JSON.stringify(pointData)}`
}); });
} }
@ -480,14 +480,11 @@
.header { .header {
position: fixed; position: fixed;
/* #ifdef H5 */ /* #ifdef H5 */
top: 88rpx;
/* #endif */ /* #endif */
left: 0; left: 0;
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
z-index: 10; z-index: 10;
padding: 10rpx;
/* 确保头部在内容之上 */
} }
.page-footer { .page-footer {

30
src/pages/fg/receiptNoPlan.vue

@ -140,10 +140,12 @@
}, },
onShow() {}, onShow() {},
onLoad() { onLoad() {
this.options = getRemoveOption() this.options = getRemoveOption()
this.openFg(); this.openFg();
}, },
onReachBottom() { onReachBottom() {
console.log("onReachBottom") console.log("onReachBottom")
// //
@ -190,7 +192,7 @@
workStationCode: result.workStationCode, workStationCode: result.workStationCode,
fgLocationCode: result.fgLocationCode, fgLocationCode: result.fgLocationCode,
subList: [], subList: [],
productionLine: result.productionLineCode, productionLine: result.productionLine,
bomVersion: result.bomVersion, bomVersion: result.bomVersion,
workshop: result.workshop, workshop: result.workshop,
team: "", team: "",
@ -247,7 +249,6 @@
}, },
async commit() { async commit() {
try { try {
uni.showLoading({ uni.showLoading({
title: "提交中...", title: "提交中...",
@ -259,7 +260,6 @@
let list = [] let list = []
var planData = await planReceiptSubmit(params) var planData = await planReceiptSubmit(params)
if (planData.data) { if (planData.data) {
planData.data.forEach(item => { planData.data.forEach(item => {
list.push({ list.push({
itemCode: item.itemCode, // itemCode: item.itemCode, //
@ -302,27 +302,6 @@
pageNo: 1, pageNo: 1,
pageSize: 100, pageSize: 100,
} }
var planeInfo = await getPlanByNumber(queryParams);
if (planeInfo.data && planeInfo.data.list.length > 0) {
if (planeInfo.data.list[0].goodQty >= planeInfo.data.list[0].planQty) {
this.clear();
} else {
this.dataContent.planNumber = planeInfo.data.list[0].number;
this.dataContent.handleQty = 0;
this.dataContent.planQty = planeInfo.data.list[0].planQty
this.dataContent.goodQty = planeInfo.data.list[0].goodQty
this.dataContent.noGoodQty = calc.sub(planeInfo.data.list[0].planQty, planeInfo.data.list[
0].goodQty),
this.dataContent.subList = []
this.showList = [];
this.allList = []
this.index = 1
}
} else {
throw new Error("未查找到单据信息")
}
uni.hideLoading() uni.hideLoading()
this.showCommitSuccessMessage("提交成功<br>生成装配收货记录<br>" + list[0].requestNumber, list) this.showCommitSuccessMessage("提交成功<br>生成装配收货记录<br>" + list[0].requestNumber, list)
@ -331,7 +310,6 @@
var hint = error.message ? error.message : error var hint = error.message ? error.message : error
this.showErrorMessage(hint) this.showErrorMessage(hint)
} }
}, },
setParams() { setParams() {
@ -431,7 +409,7 @@
showCommitSuccessMessage(hint, pointData) { showCommitSuccessMessage(hint, pointData) {
this.$refs.comMessage.showSuccessMessage(hint, res => { this.$refs.comMessage.showSuccessMessage(hint, res => {
if (pointData.length > 0) { if (pointData.length > 0) {
uni.navigateTo({ uni.redirectTo({
url: `/pages/point/index?points=${JSON.stringify(pointData)}` url: `/pages/point/index?points=${JSON.stringify(pointData)}`
}); });
} }

Loading…
Cancel
Save