diff --git a/src/api/request2.js b/src/api/request2.js
index f7a5d80d..8efbcaaf 100644
--- a/src/api/request2.js
+++ b/src/api/request2.js
@@ -2728,4 +2728,10 @@ export function getSpareitemcode(params) {
//获取物料变更信息
export function getProductreceiptDetailbByPackingNumber(packingNumber ) {
return http.get("/wms/productreceipt-detailb/getProductreceiptDetailbByPackingNumber?packingNumber="+packingNumber)
+}
+/**
+ * 物料变更
+ */
+export function fgChangeCommit(data) {
+ return http.post("/wms/relegate-request-main/bind",data)
}
\ No newline at end of file
diff --git a/src/mycomponents/print/print.vue b/src/mycomponents/print/print.vue
index be1cdfa9..7170373c 100644
--- a/src/mycomponents/print/print.vue
+++ b/src/mycomponents/print/print.vue
@@ -93,10 +93,13 @@ export default {
await getPrintList()
.then((res) => {
this.printList = res.data
+ this.showPrintSelect = true
uni.hideLoading()
})
- .catch((error) => {})
- this.showPrintSelect = true
+ .catch((error) => {
+ uni.hideLoading()
+ this.showErrorMessage(error)
+ })
},
confirmSelectPrint(e) {
console.log(e)
@@ -113,9 +116,12 @@ export default {
.then((res) => {
this.templateList = res.data
uni.hideLoading()
+ this.showTemplateSelect = true
+ })
+ .catch((error) => {
+ uni.hideLoading()
+ this.showErrorMessage(error)
})
- .catch((error) => {})
- this.showTemplateSelect = true
},
confirmSelectTemplate(e) {
this.templateCode = e[0].value
diff --git a/src/mycomponents/scan/winScanPackage.vue b/src/mycomponents/scan/winScanPackage.vue
index 68d6c661..b1e635e0 100644
--- a/src/mycomponents/scan/winScanPackage.vue
+++ b/src/mycomponents/scan/winScanPackage.vue
@@ -134,7 +134,7 @@ const getBalance = (result, callback) => {
}
getBalanceByFilter(params)
.then((res) => {
- if (res.length == 0) {
+ if (res.data.list.length == 0) {
showErrorMessage('未查找到该包装的库存余额', (res) => {
packGetFocus()
})
@@ -161,6 +161,12 @@ const losefocus = () => {
const showMessage = (message) => {
comMessageRef.value.showMessage(message)
}
+const showErrorMessage = (message) => {
+ comMessageRef.value.showErrorMessage(message, (res) => {
+ if (res) {
+ }
+ })
+}
// 传递给父类
const emit = defineEmits(['getResult'])
diff --git a/src/pages/fg/coms/comReceiptPopup.vue b/src/pages/fg/coms/comReceiptPopup.vue
index 3adae306..36c22ef3 100644
--- a/src/pages/fg/coms/comReceiptPopup.vue
+++ b/src/pages/fg/coms/comReceiptPopup.vue
@@ -44,7 +44,7 @@
{{ planQty }}({{ getUomInfo(uom) }})
-
+
@@ -78,8 +78,6 @@
-
-
@@ -157,9 +155,11 @@ export default {
openRequestPopup() {
this.initData()
this.planDate = getCurrDate()
- this.batch = getBatch8()
+ // this.batch = getBatch8()
+ this.batch = this.planDate.replace('-', '')
this.$refs.popup.open('bottom')
},
+
initData() {
this.itemCode = '请选择物料信息'
this.uom = ''
@@ -190,6 +190,7 @@ export default {
closeRequestPopup() {
this.$refs.popup.close()
},
+
itemCodeLoseFocus() {
this.itemCodeFocus = false
},
@@ -261,9 +262,12 @@ export default {
const parent = this.productLineList.filter((res) => res.value == this.productionLineCode)
const fgLocation = parent[0].children.filter((children) => children.value == this.workStationCode)
this.fgLocationCode = fgLocation[0].fgLocationCode
- this.clearItemCode()
- this.clearPackUnit()
+ // this.clearItemCode()
+ // this.clearPackUnit()
+ this.showProductLineSelect = false
+ this.showSelectItemCode()
},
+
clearItemCode() {
this.planDate = getCurrDate()
this.itemCode = '请选择物料信息'
@@ -271,10 +275,14 @@ export default {
this.planQty = 0
this.goodQty = 0
this.planNumber = ''
+ this.packUnit = ''
+ this.packQty = 0
},
confirmSelectDate(data) {
this.planDate = data[0].label
+ this.batch = this.planDate.replace('-', '')
+ this.afterSelectPlanData()
},
showSelectDate() {
@@ -313,6 +321,27 @@ export default {
this.showProductLineSelect = true
}
},
+
+ afterSelectPlanData() {
+ this.itemCode = '请选择物料信息'
+ this.packUnit = ''
+ this.packQty = 0
+ this.planQty = 0
+ this.itemCode = '请选择物料信息'
+ this.uom = ''
+ this.packUnitName = '请选择包装规格'
+ this.packUnit = ''
+ this.packQtyHint = ''
+
+ // this.packUnitList = []
+ this.itemCodeList = []
+ this.showSelectItemCode()
+ },
+
+ showItemList() {
+ this.showItemCodeSelect = true
+ },
+
showSelectItemCode() {
if (!this.planDate) {
this.showErrorMessage('请先选择计划日期')
@@ -336,8 +365,14 @@ export default {
})
this.itemCodeList = res.data
this.showItemCodeSelect = true
+
+ if (this.itemCodeList.length == 1) {
+ this.itemCode = this.itemCodeList[0].itemCode
+ } else {
+ this.showItemCodeSelect = true
+ }
} else {
- this.showErrorMessage('未查找到物料信息')
+ this.showErrorMessage(`未查找到该生产线在【${this.planDate}】日期的生产计划`)
}
})
.catch((error) => {
@@ -345,6 +380,7 @@ export default {
this.showErrorMessage(error)
})
},
+
confirmSelectItem(data) {
const productionPlan = data[0].value
this.itemCode = productionPlan.itemCode
@@ -422,6 +458,7 @@ export default {
this.packQtyHint = `${pack[0].packQty}(${this.getUomInfo(pack[0].uom)})`
this.packQty = pack[0].packQty
},
+
getUomInfo(uom) {
const item = getUomInfo(uom)
if (item == '') {
diff --git a/src/pages/fg/fgChange.vue b/src/pages/fg/fgChange.vue
index de509f5f..539cf9f9 100644
--- a/src/pages/fg/fgChange.vue
+++ b/src/pages/fg/fgChange.vue
@@ -71,7 +71,7 @@
+ text-align: center;
+ background: #e0e0e0;
+ }
+
\ No newline at end of file
diff --git a/src/pages/productReceipt/job/ccProductReceiptDetail.vue b/src/pages/productReceipt/job/ccProductReceiptDetail.vue
index 3cf6771e..0cd84a48 100644
--- a/src/pages/productReceipt/job/ccProductReceiptDetail.vue
+++ b/src/pages/productReceipt/job/ccProductReceiptDetail.vue
@@ -14,9 +14,9 @@
生产线
-
- {{jobContent.subList[0].productionLineCode}}
-
+
+ {{jobContent.subList[0].productionLineCode}}
+
班组
diff --git a/src/pages/productReceipt/job/productReceiptDetail.vue b/src/pages/productReceipt/job/productReceiptDetail.vue
index cb0ae3ec..4b42399d 100644
--- a/src/pages/productReceipt/job/productReceiptDetail.vue
+++ b/src/pages/productReceipt/job/productReceiptDetail.vue
@@ -19,7 +19,7 @@
生产线
- {{ jobContent.subList[0].productionLineCode }}
+ {{ productionLineCode }}
@@ -99,6 +99,7 @@ const managementList = ref([])
const jobStatus = ref('')
const jobToLocationCode = ref('')
const status = ref('')
+const productionLineCode = ref('')
const scanMessage = ref('')
const scanPopup = ref()
const comScanLocation = ref()
@@ -176,6 +177,8 @@ const getDetail = () => {
subList.value = res.data.subList
jobStatus.value = res.data.status
jobToLocationCode.value = subList.value[0].toLocationCode
+ productionLineCode.value = jobContent.value.subList[0].productionLineCode
+
if (jobContent.value.allowModifyLocation == 'FALSE') {
toLocationCode.value = subList.value[0].toLocationCode
}
diff --git a/src/pages/productionReceipt/coms/comProductionRecord.vue b/src/pages/productionReceipt/coms/comProductionRecord.vue
index 87feb1ed..9daaf902 100644
--- a/src/pages/productionReceipt/coms/comProductionRecord.vue
+++ b/src/pages/productionReceipt/coms/comProductionRecord.vue
@@ -24,7 +24,7 @@
-->
swipeClick(event, detail)">
-
+