Browse Source

成品发货申请 成品发货任务 客户退货申请 客户退货任务

hella_vue3
zhang_li 7 months ago
parent
commit
9b0818564b
  1. 47
      src/api/request2.js
  2. 16
      src/pages/customerReturn/coms/comReturnJobCard.vue
  3. 11
      src/pages/customerReturn/coms/comReturnRequestCard.vue
  4. 4
      src/pages/customerReturn/job/returnJob.vue
  5. 14
      src/pages/customerReturn/request/customerReturnRequest.vue
  6. 28
      src/pages/deliver/coms/comDeliverJobCard.vue
  7. 8
      src/pages/deliver/coms/comDeliverRequestCard.vue
  8. 4
      src/pages/deliver/job/deliverJob.vue
  9. 14
      src/pages/deliver/request/deliverRequest.vue

47
src/api/request2.js

@ -2148,7 +2148,13 @@ export function getStockUpJobList(params) {
data: params,
});
}
// export function getStockUpJobList(params) {
// return request({
// url: baseApi + "/wms/stockup-main-detail/senior",
// method: "post",
// data: params,
// });
// }
/**
* 直接备货 获取任务明细
* @param {*} id 任务id
@ -2290,14 +2296,20 @@ export function productDismantleRecordSubmit(params) {
* 获取日期任务列表
* @param {*}
*/
// export function getDeliverJobList(params) {
// return request({
// url: baseApi + "/wms/deliver-job-main/senior",
// method: "post",
// data: params,
// });
// }
export function getDeliverJobList(params) {
return request({
url: baseApi + "/wms/deliver-job-main/senior",
url: baseApi + "/wms/deliver-job-detail/senior",
method: "post",
data: params,
});
}
/**
* 制品发货 获取任务明细
* @param {*} id 任务id
@ -2361,14 +2373,20 @@ export function deliverJobSubmit(params) {
* 获取日期任务列表
* @param {*}
*/
// export function getDeliverRequestList(params) {
// return request({
// url: baseApi + "/wms/deliver-request-main/senior",
// method: "post",
// data: params,
// });
// }
export function getDeliverRequestList(params) {
return request({
url: baseApi + "/wms/deliver-request-main/senior",
url: baseApi + "/wms/deliver-request-detail/senior",
method: "post",
data: params,
});
}
/**
* 制品发货申请 获取任务明细
* @param {*} id 任务id
@ -2575,9 +2593,16 @@ export function productRecycleRecordSubmit(params) {
* 获取日期任务列表
* @param {*}
*/
// export function getCustomerReturnJobList(params) {
// return request({
// url: baseApi + "/wms/customerreturn-job-main/senior",
// method: "post",
// data: params,
// });
// }
export function getCustomerReturnJobList(params) {
return request({
url: baseApi + "/wms/customerreturn-job-main/senior",
url: baseApi + "/wms/customerreturn-job-detail/senior",
method: "post",
data: params,
});
@ -2644,15 +2669,21 @@ export function customerReturnJobSubmit(params) {
* 获取日期任务列表
* @param {*}
*/
// export function getCustomerReturnRequestList(params) {
// return request({
// url: baseApi + "/wms/customerreturn-request-main/senior",
// method: "post",
// data: params,
// });
// }
export function getCustomerReturnRequestList(params) {
return request({
url: baseApi + "/wms/customerreturn-request-main/senior",
url: baseApi + "/wms/customerreturn-request-detail/senior",
method: "post",
data: params,
});
}
/**
* 客户退货申请 任务明细
* @param {*} id 任务id

16
src/pages/customerReturn/coms/comReturnJobCard.vue

@ -1,26 +1,16 @@
<template>
<job-com-main-card :dataContent="dataContent">
<view class="task_item">
<view class="task_text">
<view class="">
申请单号 : {{dataContent.requestNumber}}
</view>
</view>
<view class="task_text">
<view class="">
客户代码 : {{dataContent.customerCode}}
</view>
</view>
</view>
<jobComMainDetailCard :dataContent="dataContent"></jobComMainDetailCard>
</job-com-main-card>
</template>
<script>
import jobComMainCard from '@/mycomponents/job/jobComMainCard.vue'
import jobComMainDetailCard from '@/mycomponents/job/jobComMainDetailCard.vue'
export default {
components: {
jobComMainCard,
jobComMainDetailCard
},
data() {
return {};

11
src/pages/customerReturn/coms/comReturnRequestCard.vue

@ -1,21 +1,16 @@
<template>
<request-com-main-card :dataContent="dataContent">
<view class="task_item">
<!-- <view class="task_text">
申请单号 : {{dataContent.requestNumber}}
</view> -->
<view class="task_text">
客户代码 : {{dataContent.customerCode}}
</view>
</view>
<jobComMainDetailCard :dataContent="dataContent"></jobComMainDetailCard>
</request-com-main-card>
</template>
<script>
import requestComMainCard from '@/mycomponents/request/requestComMainCard.vue'
import jobComMainDetailCard from '@/mycomponents/job/jobComMainDetailCard.vue'
export default {
components: {
requestComMainCard,
jobComMainDetailCard
},
data() {
return {};

4
src/pages/customerReturn/job/returnJob.vue

@ -175,7 +175,7 @@
openJobDetail(item) {
uni.navigateTo({
url: './returnDetail?id=' + item.id + '&status=' + item.status
url: './returnDetail?id=' + item.masterId + '&status=' + item.status
});
},
@ -194,7 +194,7 @@
this.$refs.comMessage.showQuestionMessage("确定要放弃当前任务?",
res => {
if (res) {
this.cancleJob(dataContent.id);
this.cancleJob(dataContent.masterId);
}
});
}

14
src/pages/customerReturn/request/customerReturnRequest.vue

@ -124,7 +124,7 @@
},
openRequestDetail(item) {
uni.navigateTo({
url: './customerReturnRequestDetail?id=' + item.id
url: './customerReturnRequestDetail?id=' + item.masterId
});
},
@ -211,27 +211,27 @@
this.openRequestInfoPopup(dataContent);
} else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?", res => {
this.customerReturnRequestHandle(dataContent.id)
this.customerReturnRequestHandle(dataContent.masterId)
})
} else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?", res => {
this.customerReturnRequestApprove(dataContent.id)
this.customerReturnRequestApprove(dataContent.masterId)
})
} else if (text == "审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?", res => {
this.customerReturnRequestApproveAgree(dataContent.id)
this.customerReturnRequestApproveAgree(dataContent.masterId)
})
} else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?", res => {
this.customerReturnRequestApproveRefused(dataContent.id)
this.customerReturnRequestApproveRefused(dataContent.masterId)
})
} else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?", res => {
this.customerReturnRequestClose(dataContent.id)
this.customerReturnRequestClose(dataContent.masterId)
})
} else if (text == "重新添加") {
this.showQuestionMessage("确定要重新添加当前申请吗?", res => {
this.customerReturnRequestAddAgain(dataContent.id)
this.customerReturnRequestAddAgain(dataContent.masterId)
})
}
},

28
src/pages/deliver/coms/comDeliverJobCard.vue

@ -1,38 +1,16 @@
<template>
<job-com-main-card :dataContent="dataContent">
<view class="task_item">
<!-- <view class="task_text">
<view class="">
申请单号 : {{dataContent.requestNumber}}
</view>
</view> -->
<view class="task_text">
<view class="">
发货计划单号 : {{dataContent.deliverPlanNumber}}
</view>
</view>
<view class="task_text">
<view class="">
发货类型 : {{dataContent.deliverType}}
</view>
</view>
<view class="task_text">
<view class="">
客户代码 : {{dataContent.customerCode}}
</view>
</view>
</view>
<jobComMainDetailCard :dataContent="dataContent"></jobComMainDetailCard>
</job-com-main-card>
</template>
<script>
import jobComMainCard from '@/mycomponents/job/jobComMainCard.vue'
import jobComMainDetailCard from '@/mycomponents/job/jobComMainDetailCard.vue'
export default {
components: {
jobComMainCard,
jobComMainDetailCard
},
data() {
return {};

8
src/pages/deliver/coms/comDeliverRequestCard.vue

@ -1,18 +1,16 @@
<template>
<request-com-main-card :dataContent="dataContent">
<view class="task_item">
<view class="task_text">
客户代码 : {{dataContent.customerCode}}
</view>
</view>
<jobComMainDetailCard :dataContent="dataContent"></jobComMainDetailCard>
</request-com-main-card>
</template>
<script>
import requestComMainCard from '@/mycomponents/request/requestComMainCard.vue'
import jobComMainDetailCard from '@/mycomponents/job/jobComMainDetailCard.vue'
export default {
components: {
requestComMainCard,
jobComMainDetailCard
},
data() {
return {};

4
src/pages/deliver/job/deliverJob.vue

@ -176,7 +176,7 @@
openJobDetail(item) {
uni.navigateTo({
url: './deliverDetail?id=' + item.id + '&status=' + item.status
url: './deliverDetail?id=' + item.masterId + '&status=' + item.status
});
},
@ -195,7 +195,7 @@
this.$refs.comMessage.showQuestionMessage("确定要放弃当前任务?",
res => {
if (res) {
this.cancleJob(dataContent.id);
this.cancleJob(dataContent.masterId);
}
});
}

14
src/pages/deliver/request/deliverRequest.vue

@ -125,7 +125,7 @@
},
openRequestDetail(item) {
uni.navigateTo({
url: './deliverRequestDetail?id=' + item.id
url: './deliverRequestDetail?id=' + item.masterId
});
},
getList(type) {
@ -209,27 +209,27 @@
this.openRequestInfoPopup(dataContent);
} else if (text == "处理") {
this.showQuestionMessage("确定要处理当前申请吗?",res=>{
this.deliverRequestHandle(dataContent.id)
this.deliverRequestHandle(dataContent.masterId)
})
} else if (text == "提交审批") {
this.showQuestionMessage("确定要审批当前申请吗?",res=>{
this.deliverRequestApprove(dataContent.id)
this.deliverRequestApprove(dataContent.masterId)
})
} else if (text=="审批通过") {
this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{
this.deliverRequestApproveAgree(dataContent.id)
this.deliverRequestApproveAgree(dataContent.masterId)
})
} else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{
this.deliverRequestApproveRefused(dataContent.id)
this.deliverRequestApproveRefused(dataContent.masterId)
})
} else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{
this.deliverRequestClose(dataContent.id)
this.deliverRequestClose(dataContent.masterId)
})
}else if(text == "重新添加"){
this.showQuestionMessage("确定要重新添加当前申请吗?",res=>{
this.deliverRequestAddAgain(dataContent.id)
this.deliverRequestAddAgain(dataContent.masterId)
})
}
},

Loading…
Cancel
Save