diff --git a/api/request2.js b/api/request2.js
index ca0798db..55516fce 100644
--- a/api/request2.js
+++ b/api/request2.js
@@ -683,7 +683,7 @@ export function purchaseReturnRequestHandle(id) {
* 采购退货申请 提交
* @param {*} params
*/
-export function purchaseReturnRequestSubmit(params) {
+export function purchaseReturnRequestCreate(params) {
return request({
url: baseApi + "/wms/purchasereturn-request-main/create",
method: "post",
diff --git a/pages.json b/pages.json
index 3e2f6fd0..df594bf3 100644
--- a/pages.json
+++ b/pages.json
@@ -111,6 +111,13 @@
"enablePullDownRefresh": false
}
},
+ {
+ "path": "pages/purchaseReturn/request/returnRequestCreate",
+ "style": {
+ "navigationBarTitleText": "采购退货申请创建",
+ "enablePullDownRefresh": true
+ }
+ },
{
"path": "pages/purchaseReturn/job/returnJob",
@@ -149,6 +156,8 @@
// }
}
},
+
+
{
"path": "pages/purchaseReceipt/job/receiptJob",
"style": {
diff --git a/pages/issue/request/issueRequestCreate.vue b/pages/issue/request/issueRequestCreate.vue
index b547a751..e222eee4 100644
--- a/pages/issue/request/issueRequestCreate.vue
+++ b/pages/issue/request/issueRequestCreate.vue
@@ -36,7 +36,7 @@
goHome,
updateTitle,
getRemoveOption,
- getISODateTime
+ getCurrDateOneMonthsTimes
} from '@/common/basic.js';
import {
@@ -150,6 +150,7 @@
setParams() {
+ this.detailSource.dueTime = getCurrDateOneMonthsTimes();
return this.detailSource
},
submit() {
diff --git a/pages/productionReturn/coms/comReturnRequestCreator.vue b/pages/productionReturn/coms/comReturnRequestCreator.vue
index f1f0bffc..07e0a008 100644
--- a/pages/productionReturn/coms/comReturnRequestCreator.vue
+++ b/pages/productionReturn/coms/comReturnRequestCreator.vue
@@ -1,88 +1,159 @@
-
-
-
-
-
-
-
-
-
-
-
- 生产线 : {{item.productionLineName}}({{item.productionLineCode}})
-
-
- 工位 : {{item.workStationName}} ({{item.workStationCode}})
-
-
- 物品代码 : {{item.itemCode}}
-
-
- 物品名称 : {{item.itemName}}
-
-
-
-
- 数量 : {{item.qty}} 单位 :
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/pages/productionReturn/coms/comReturnRequestInfo.vue b/pages/productionReturn/coms/comReturnRequestInfo.vue
index fbb64a31..a7b40d91 100644
--- a/pages/productionReturn/coms/comReturnRequestInfo.vue
+++ b/pages/productionReturn/coms/comReturnRequestInfo.vue
@@ -14,8 +14,8 @@
{{ dataContent.workStationCode }}
- 原材料库
- {{ dataContent.toLocationCode}}
+ 来源库位
+ {{ dataContent.fromLocationCode}}
diff --git a/pages/productionReturn/request/requestDetail.vue b/pages/productionReturn/request/requestDetail.vue
index 1acd47b1..262f5f83 100644
--- a/pages/productionReturn/request/requestDetail.vue
+++ b/pages/productionReturn/request/requestDetail.vue
@@ -1,5 +1,9 @@
+
@@ -33,12 +37,15 @@
import comRequestDetailCard from "@/mycomponents/detail/comRequestDetailCard.vue"
import requestDetailInfoPopup from '@/pages/productionReturn/coms/requestDetailInfoPopup.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
-
+ import comReturnRequestInfo from '@/pages/productionReturn/coms/comReturnRequestInfo.vue'
+
+
export default {
components: {
comRequestDetailCard,
requestDetailInfoPopup,
comMessage,
+ comReturnRequestInfo
},
data() {
return {
@@ -84,7 +91,10 @@
that.requestContent = res.data;
that.subList = res.data.subList;
that.detailSource = getDataSource(that.subList);
- that.detailSource[0].workshopCode = that.requestContent.workshopCode
+ that.requestContent.fromLocationCode = that.subList[0].fromLocationCode
+ that.requestContent.productionLineCode = that.subList[0].productionLineCode
+ that.requestContent.workStationCode = that.subList[0].workStationCode
+
} else {
that.showMessage('列表数据为0');
}
diff --git a/pages/productionReturn/request/returnRequestCreate.vue b/pages/productionReturn/request/returnRequestCreate.vue
index d522f378..98747514 100644
--- a/pages/productionReturn/request/returnRequestCreate.vue
+++ b/pages/productionReturn/request/returnRequestCreate.vue
@@ -5,8 +5,9 @@
-
-
+
+
+
@@ -36,6 +37,7 @@
updateTitle,
navigateBack,
getRemoveOption,
+ getCurrDateOneMonthsTimes
} from '@/common/basic.js';
import comBlankView from '@/mycomponents/common/comBlankView.vue'
@@ -44,7 +46,6 @@
import comScanReturnPack from '@/pages/productionReturn/coms/comScanReturnPack.vue'
import comMessage from '@/mycomponents/common/comMessage.vue'
import comReturnRequestCreator from '@/pages/productionReturn/coms/comReturnRequestCreator.vue'
- import comIssueRequestInfo from '@/pages/issue/coms/comIssueRequestInfo.vue'
export default {
name: '',
components: {
@@ -53,7 +54,7 @@
jobDetailPopup,
comScanReturnPack,
comMessage,
- comReturnRequestCreator
+ comReturnRequestCreator,
},
data() {
return {
@@ -95,7 +96,12 @@
if (this.detailSource.subList.length == 0) {
this.detailSource = {
workshopCode: item.workshopCode,
- businessType:this.fromType,
+ workShopName: item.workShopName,
+ productionLineCode: item.productionLineCode,
+ productionLineName: item.productionLineName,
+ workStationCode: item.workStationCode,
+ workStationName: item.workStationName, //工位
+ fromLocationCode:item.rawLocationCode,
status: "1",
totalQty: 0,
subList: []
@@ -126,6 +132,9 @@
workStationCode: item.workStationCode,
itemCode: item.itemCode,
itemName: item.itemName,
+ inventoryStatus:"OK",
+ packingNumber:"",
+ fromLocationCode:item.rawLocationCode,
qty: item.qty,
uom: item.uom
}
@@ -139,9 +148,6 @@
}
}
this.caclcQty();
- if (this.$refs.issueRequest != undefined) {
- this.$refs.issueRequest.update()
- }
},
caclcQty() {
@@ -153,14 +159,17 @@
},
setParams() {
+ //合格退料
if(this.fromType=="ReturnToStore"){
this.detailSource.isOK = true
+ this.detailSource.dueTime = getCurrDateOneMonthsTimes()
this.detailSource.subList.forEach(res => {
res.batch ="000000"
})
-
+ //隔离退料
}else if(this.fromType=="ReturnToHold"){
this.detailSource.isOK = false
+ this.detailSource.dueTime = getCurrDateOneMonthsTimes()
this.detailSource.subList.forEach(res => {
res.batch = ""
})
@@ -174,17 +183,17 @@
});
var params = this.setParams()
console.log("提交参数", JSON.stringify(params));
- productionReturnRequestCreate(params).then(res => {
- uni.hideLoading()
- if (res.data) {
- this.showCommitSuccessMessage("提交成功
生成发料申请" + res.data)
- } else {
- this.showErrorMessage("提交失败[" + res.msg + "]")
- }
- }).catch(error => {
- uni.hideLoading()
- this.showErrorMessage(error)
- })
+ // productionReturnRequestCreate(params).then(res => {
+ // uni.hideLoading()
+ // if (res.data) {
+ // this.showCommitSuccessMessage("提交成功
生成发料申请" + res.data)
+ // } else {
+ // this.showErrorMessage("提交失败[" + res.msg + "]")
+ // }
+ // }).catch(error => {
+ // uni.hideLoading()
+ // this.showErrorMessage(error)
+ // })
},
showCommitSuccessMessage(hint) {
this.$refs.comMessage.showSuccessMessage(hint, res => {
diff --git a/pages/purchaseReturn/record/returnRecord.vue b/pages/purchaseReturn/record/returnRecord.vue
index 4468b608..f520d534 100644
--- a/pages/purchaseReturn/record/returnRecord.vue
+++ b/pages/purchaseReturn/record/returnRecord.vue
@@ -40,7 +40,7 @@
+
+