Browse Source

修改采购上架申请参数

wms3.0_pda
lijuncheng 12 months ago
parent
commit
d7e3652cd9
  1. 28
      api/request2.js
  2. 2
      mycomponents/detail/comDetailCard.vue
  3. 1
      pages/inspect/coms/comInspectJobCard.vue
  4. 50
      pages/putaway/record/putawayRecord.vue
  5. 6
      store/modules/user.js

28
api/request2.js

@ -1352,7 +1352,7 @@ export function cancleTakeProductReceiptJob(id) {
}
/**
* 制品收货 提交
* 制品收货任务 提交
* @param {*} params
*/
export function productReceiptJobsubmit( params) {
@ -1363,6 +1363,20 @@ export function productReceiptJobsubmit( params) {
});
}
/**
* 制品收货记录 提交
* @param {*} params
*/
export function productReceiptRecordsubmit( params) {
return request({
url: baseApi + "/wms/productreceipt-record-main/create",
method: "post",
data: params,
});
}
/**
* 制品上架 任务
* status 任务状态
@ -1441,8 +1455,8 @@ export function productPutawayJobSubmit(params) {
*/
export function productPutawayRecordSubmit(params) {
return request({
url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit",
method: "put",
url: baseApi + "/wms/productputaway-record-main/create",
method: "post",
data: params,
});
}
@ -1971,13 +1985,13 @@ export function getProductPutawayRequestDetail(id) {
}
/**
* 制品上架 申请提交
* 制品上架申请 提交
* @param {*} params
*/
export function productPutawayRequestSubmit(params) {
return request({
url: baseApi + "/wms/purchasereturn-request-main/submit",
method: "put",
url: baseApi + "/wms/productputaway-request-main/create",
method: "post",
data: params,
});
}
@ -2095,7 +2109,7 @@ export function cancleTakeProductionReturnJob(id) {
*/
export function productionReturnJobSubmit( params) {
return request({
url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit?id=" + id,
url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit",
method: "put",
data: params,
});

2
mycomponents/detail/comDetailCard.vue

@ -11,7 +11,7 @@
<uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="swipeClick($event,item)"
:right-options="item.scaned?scanOptions:detailOptions">
<recommend :detail="item" :isShowToLocation="settingParam.allowModifyLocation=='TRUE'">
<recommend :detail="item" :isShowToLocation="false">
</recommend>
</uni-swipe-action-item>
</uni-swipe-action>

1
pages/inspect/coms/comInspectJobCard.vue

@ -37,7 +37,6 @@
methods: {
getInspectType(value){
console.log("返回1",getInspectType(value))
return getInspectType(value)
}

50
pages/putaway/record/putawayRecord.vue

@ -8,7 +8,7 @@
<scroll-view scroll-y="true" class="page-main-scroll">
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class="">
<record-com-detail-card :dataContent="item" :index="index" :settingParam="jobContent"
<record-com-detail-card :dataContent="item" :index="index" :settingParam="dataContent"
@removeItem="removeItem(index,item)" @updateData="updateData" @removePack="removePack">
</record-com-detail-card>
</view>
@ -98,7 +98,7 @@
id: '',
receiptJob: {},
received: false,
jobContent: {}, //
dataContent: {}, //
detailSource: [], //
locationTypeList: [],
businessTypeInfo: {},
@ -260,7 +260,7 @@
});
if (this.fromType == "requestType") {
var params = this.setParams(false)
var params = this.setRequestParams()
console.log("提交" + JSON.stringify(params))
// putawayRequestSubmit(params).then(res => {
// uni.hideLoading()
@ -311,8 +311,6 @@
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
// var subItem = {};
// Object.assign(subItem, detail)
if (queryModel) {
var info = getPackingNumberAndBatch(this.managementList, detail.itemCode,
detail.packingNumber, detail.batch);
@ -322,20 +320,46 @@
detail.toInventoryStatus = detail.inventoryStatus
detail.toLocationCode = this.toLocationCode
} else {
detail.toPackingNumber = detail.packingNumber;
detail.toContainerNumber = detail.containerNumber
detail.toBatch = detail.toBatch;
detail.toInventoryStatus = detail.inventoryStatus
detail.toLocationCode = ""
// detail.toPackingNumber = detail.packingNumber;
// detail.toContainerNumber = detail.containerNumber
// detail.toBatch = detail.toBatch;
// detail.toInventoryStatus = detail.inventoryStatus
// detail.toLocationCode = ""
}
subList.push(detail)
}
})
})
this.jobContent.subList = subList
this.jobContent.creator = creator;
return this.jobContent;
this.dataContent.subList = subList
this.dataContent.creator = creator;
return this.dataContent;
},
setRequestParams(){
var subList = []
var supplierCode=""
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
if(supplierCode==""){
supplierCode = detail.package.supplierCode
}
subList.push(detail)
}
})
})
this.dataContent.subList = subList
this.dataContent.supplierCode = supplierCode
this.dataContent.businessType = "PurchasePutaway"
this.dataContent.departmentCode= "研发部门";
this.dataContent.status= 1 ;
this.dataContent.autoCommit = "FALSE";
this.dataContent.autoAgree = "FALSE";
this.dataContent.autoExecute = "FALSE";
this.dataContent.directCreateRecord = "FALSE";
return this.dataContent;
},

6
store/modules/user.js

@ -97,9 +97,9 @@ const user = {
resolve(res)
}).catch(error => {
reject(error)
uni.showToast({
title:"用户信息获取失败"
})
// uni.showToast({
// title:"用户信息获取失败"
// })
})
})
},

Loading…
Cancel
Save