diff --git a/.env.development b/.env.development
index a216fad1..9acfffb3 100644
--- a/.env.development
+++ b/.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
# 租户配置
diff --git a/src/pages/fg/coms/comNoReceiptPopup.vue b/src/pages/fg/coms/comNoReceiptPopup.vue
index ca20e37e..39266aa1 100644
--- a/src/pages/fg/coms/comNoReceiptPopup.vue
+++ b/src/pages/fg/coms/comNoReceiptPopup.vue
@@ -158,7 +158,7 @@
showProductLineSelect: false,
productLineList: [],
productionLineName: "请选择生产线",
- productionLineCode: "",
+ productLineCode: "",
batch: "",
packUnitName: "请选择包装规格",
packUnit: "",
@@ -194,7 +194,7 @@
openRequestPopup() {
this.initData();
this.planDate = getCurrDate()
- this.batch = getBatch8()
+ this.batch =this.planDate.replace('-','')
this.$refs.popup.open('bottom')
},
initData() {
@@ -208,7 +208,7 @@
this.showProductLineSelect = false
this.productLineList = []
this.productionLineName = "请选择生产线"
- this.productionLineCode = ""
+ this.productLineCode = ""
this.batch = ""
this.packUnitName = "请选择包装规格"
this.packUnit = "",
@@ -271,7 +271,7 @@
callback() {
let item = {
productionLineName: "",
- productionLineCode: this.productLineCode, //生产线
+ productionLine: this.productLineCode, //生产线
itemCode: this.itemCode,
itemName: this.itemName,
uom: this.getUomInfo(this.uom),
@@ -303,9 +303,9 @@
confirmSelectLine(data) {
this.productionLineName = data[0].label + "—" + data[1].label
- this.productionLineCode = data[0].value
+ this.productLineCode = data[0].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)
this.fgLocationCode = fgLocation[0].fgLocationCode;
this.workshop = parent[0].workshop;
@@ -365,7 +365,7 @@
},
showSelectItemCode() {
- if (!this.productionLineCode) {
+ if (!this.productLineCode) {
this.showErrorMessage('请先选择生产线');
return;
}
@@ -373,7 +373,7 @@
title: "加载中",
mask: true
})
- getBomVersionByProductionline(this.productionLineCode).then(res => {
+ getBomVersionByProductionline(this.productLineCode).then(res => {
uni.hideLoading()
if (res.data && res.data.length > 0) {
this.itemCodeList = res.data
diff --git a/src/pages/fg/coms/comReceiptPopup.vue b/src/pages/fg/coms/comReceiptPopup.vue
index 56c3b655..a4c6a1f2 100644
--- a/src/pages/fg/coms/comReceiptPopup.vue
+++ b/src/pages/fg/coms/comReceiptPopup.vue
@@ -402,7 +402,10 @@
// this.showItemCodeSelect = true
if (this.itemCodeList.length == 1) {
- this.itemCode = this.itemCodeList[0].itemCode;
+
+ this.confirmSelectItem([this.itemCodeList[0]])
+
+ // this.itemCode = this.itemCodeList[0].itemCode;
} else {
this.showItemCodeSelect = true;
}
diff --git a/src/pages/fg/receiptByPlan.vue b/src/pages/fg/receiptByPlan.vue
index acc8513a..cdae74ea 100644
--- a/src/pages/fg/receiptByPlan.vue
+++ b/src/pages/fg/receiptByPlan.vue
@@ -6,10 +6,11 @@
+