Browse Source

修改收货接口

wms3.0_pda
lijuncheng 1 year ago
parent
commit
aa0b3faf5d
  1. 28
      api/request2.js
  2. 15
      pages/customerReturn/job/returnDetail.vue
  3. 9
      pages/customerReturn/record/returnRecord.vue
  4. 1
      pages/customerReturn/request/customerReturnRequest.vue
  5. 21
      pages/deliver/job/deliverDetail.vue

28
api/request2.js

@ -1579,20 +1579,20 @@ export function getDeliverDetail(id) {
*/
export function takeDeliverJob(id) {
return request({
url: baseApi + "/wms/purchasereceipt-job-main/accept?id=" + id,
url: baseApi + "/wms/deliver-job-main/accept?id=" + id,
method: "put",
data: {},
});
}
/**
* 制品发货 放弃承接
* 制品发货任务 放弃承接
* @param {*} id
*
*/
export function cancleTakeDeliverJob(id) {
return request({
url: baseApi + "/wms/purchasereceipt-job-main/abandon?id=" + id,
url: baseApi + "/wms/deliver-job-main/abandon?id=" + id,
method: "put",
data: {},
});
@ -1604,14 +1604,16 @@ export function cancleTakeDeliverJob(id) {
* @param {*} 任务id
*
*/
export function deliverJobSubmit( params) {
return request({
url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit?id=" + id,
url: baseApi + "/wms/deliver-job-main/execute",
method: "put",
data: params,
});
}
/**
* 制品发货申请
* 任务状态
@ -1642,13 +1644,13 @@ export function getDeliverRequestDetail(id) {
}
/**
* 制品发货申请 申请提交
* 制品发货申请 提交
* @param {*} params
*/
export function deliverRequestSubmit(params) {
return request({
url: baseApi + "/wms/purchasereturn-request-main/submit",
method: "put",
url: baseApi + "/wms/deliver-request-main/create",
method: "post",
data: params,
});
}
@ -1702,20 +1704,20 @@ export function getCustomerReturnJobDetail(id) {
*/
export function takeCustomerReturnJob(id) {
return request({
url: baseApi + "/wms/purchasereceipt-job-main/accept?id=" + id,
url: baseApi + "/wms/customerreturn-job-main/accept?id=" + id,
method: "put",
data: {},
});
}
/**
* 客户退货 放弃承接
* 客户退货任务 放弃承接
* @param {*} id
*
*/
export function cancleTakeCustomerReturnJob(id) {
return request({
url: baseApi + "/wms/purchasereceipt-job-main/abandon?id=" + id,
url: baseApi + "/wms/customerreturn-job-main/abandon?id=" + id,
method: "put",
data: {},
});
@ -1728,7 +1730,7 @@ export function cancleTakeCustomerReturnJob(id) {
*/
export function customerReturnJobSubmit(params) {
return request({
url: baseApi + "/magic-api/pda/job/purchasereceipt/jobSubmit",
url: baseApi + "/wms/customerreturn-job-main/execute",
method: "put",
data: params,
});
@ -1772,8 +1774,8 @@ export function getCustomerReturnRequestDetail(id) {
*/
export function customerReturnRequestSubmit(params) {
return request({
url: baseApi + "/wms/purchasereturn-request-main/submit",
method: "put",
url: baseApi + "/wms/customerreturn-request-main/create",
method: "post",
data: params,
});
}

15
pages/customerReturn/job/returnDetail.vue

@ -100,15 +100,14 @@
this.id = option.id;
if (this.id != undefined) {
//
// if (option.status == "JOB_PENDING") {
// this.receive((callback => {
// this.received = true;
// this.getDetail();
// }));
// } else {
// this.getDetail();
// }
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
this.getDetail();
}
}
},
//

9
pages/customerReturn/record/returnRecord.vue

@ -120,10 +120,13 @@
},
onLoad(option) {
this.fromType = option.fromType
if(this.fromType=="requestType"){ updateTitle("客户退货申请")
this.showToLoaction = false; }else { updateTitle("客户退货记录")
if(this.fromType=="requestType"){
var typeCode = "CustomerreturnRequest" updateTitle("客户退货申请")
this.showToLoaction = false; }else {
var typeCode = "CustomerreturnRecord"
updateTitle("客户退货记录")
this.showToLoaction = true; }
var typeCode = "Customerreturn"
getBusinessType(typeCode, res => {
if (res.success) {
this.businessType = res.businessType;

1
pages/customerReturn/request/customerReturnRequest.vue

@ -16,6 +16,7 @@
<uni-load-more :status="loadingType" v-if="requestList.length>0" />
<request-info-popup ref='requestInfoPopup'></request-info-popup>
</view>
<requestButton @goScan='openScanDetailPopup'></requestButton>
<comMessage ref="comMessage"></comMessage>
</view>
</template>

21
pages/deliver/job/deliverDetail.vue

@ -104,18 +104,17 @@
},
onLoad(option) {
this.id = option.id;
// if (this.id != undefined) {
// //
// if (option.status == "JOB_PENDING") {
// this.receive((callback => {
// this.received = true;
// this.getDetail();
// }));
// } else {
// this.getDetail();
// }
// }
if (this.id != undefined) {
//
if (option.status == "1") {
this.receive((callback => {
this.received = true;
this.getDetail();
}));
} else {
this.getDetail();
}
}
},
//
onNavigationBarButtonTap(e) {

Loading…
Cancel
Save