diff --git a/fe/PDA/api/index.js b/fe/PDA/api/index.js
index 1331ec3dd..442597131 100644
--- a/fe/PDA/api/index.js
+++ b/fe/PDA/api/index.js
@@ -831,6 +831,43 @@ export const getReturnJobList = (params) => request(
data: params
});
+//上架后退货申请提交
+export const purchaseReturnRequestSubmit = (params) => request(
+ devUrl + "/api/pda/store/purchase-return-request", {
+ method: 'post',
+ data: params
+ });
+
+//上架后退货申请列表
+export const getReturnRequestList = (params) => request(
+ devUrl + "/api/wms/store/purchase-return-request/list", {
+ method: 'post',
+ data: params
+ });
+
+//上架后退货申请列表详情
+export const getReturnRequestDetail= (id) => request(
+ devUrl + "/api/wms/store/purchase-return-request/"+id, {
+ method: 'get',
+ data: {}
+ });
+//上架后退货申请同意
+export const purchaseReturnRequestAgree= (id) => request(
+ devUrl + "/api/wms/store/purchase-return-request/agree/"+id, {
+ method: 'post',
+ data: {}
+ });
+
+//上架后退货申请驳回
+export const purchaseReturnRequestReject= (id) => request(
+ devUrl + "/api/wms/store/purchase-return-request/refuse/"+id, {
+ method: 'post',
+ data: {}
+ });
+
+
+
+
//根据Number 获取盘点任务列表
export const getReturnJobByNumber = (number) => request(
devUrl + "/api/pda/job/purchase-return/by-number/" + number, {
diff --git a/fe/PDA/common/basic.js b/fe/PDA/common/basic.js
index cb5ac25af..8d8b5d725 100644
--- a/fe/PDA/common/basic.js
+++ b/fe/PDA/common/basic.js
@@ -28,6 +28,38 @@ export function getInspectTypeStyle(val) {
else if (val == 4) return 'pick'
else return 'other'
}
+
+//审批状态
+export function getRequestStatusDesc(val) {
+ if (val == 1) return '新增'
+ else if (val == 2) return '待审批'
+ else if (val == 3) return '已驳回'
+ else if (val == 4) return '待执行'
+ else if (val == 5) return '执行中'
+ else if (val == 6) return '已完成'
+ else if (val == 7) return '已取消'
+ else if (val == 8) return '中止'
+ else if (val == 9) return '部分完成'
+ else return '其他'
+}
+
+//审批状态样式
+export function getRequestStatusStyle(val) {
+ if (val == 1) return 'request_add'
+ else if (val == 2) return 'request_approve'
+ else if (val == 3) return 'request_return'
+ else if (val == 4) return 'request_wait'
+ else if (val == 5) return 'request_doing'
+ else if (val == 6) return 'request_complete'
+ else if (val == 7) return 'request_cancle'
+ else if (val == 8) return 'request_stop'
+ else if (val == 9) return 'request_part'
+ else return 'other'
+}
+
+
+
+
//open pending completed close
export function getInspectTypeDesc(val) {
if (val == 0) return '未知'
@@ -329,4 +361,15 @@ export function vibrate() {
}
})
+}
+
+export function navigateBack(backIndex) {
+ let canNavBack = getCurrentPages()
+ if (canNavBack && canNavBack.length - 1 > backIndex) {
+ uni.navigateBack({
+ delta: backIndex
+ })
+ } else {
+ history.back();
+ }
}
\ No newline at end of file
diff --git a/fe/PDA/common/pdabasic.css b/fe/PDA/common/pdabasic.css
index 7aa21b6f7..067d2f617 100644
--- a/fe/PDA/common/pdabasic.css
+++ b/fe/PDA/common/pdabasic.css
@@ -695,3 +695,41 @@ export function getItemTypeStyle(val) {
/deep/ .uni-input-input {
font-size: 18px;
}
+.request_add{
+ background-color: #45B5F3;
+ color: #FFFFFF;
+}
+
+.request_approve{
+ background-color: #E49826;
+ color: #FFFFFF;
+}
+.request_return{
+ background-color: #C90000;
+ color: #FFFFFF;
+}
+.request_wait{
+ background-color: #F4CD00;
+ color: #FFFFFF;
+}
+.request_doing{
+ background-color: #5A7CF3;
+ color: #FFFFFF;
+}
+.request_complete{
+ background-color: #31BB99;
+ color: #FFFFFF;
+}
+.request_cancle{
+ background-color: #DADADA;
+ color: #FFFFFF;
+}
+.request_stop{
+ background-color: #870505;
+ color: #FFFFFF;
+}
+.request_part{
+ background-color: #21DF4B;
+ color: #FFFFFF;
+}
+
diff --git a/fe/PDA/mycomponents/comRequest/comRequestDetail.vue b/fe/PDA/mycomponents/comRequest/comRequestDetail.vue
new file mode 100644
index 000000000..616a4309e
--- /dev/null
+++ b/fe/PDA/mycomponents/comRequest/comRequestDetail.vue
@@ -0,0 +1,41 @@
+
+
+
+
+
+ 订单号 : {{dataContent.asnNumber}}
+
+
+ 供应商代码 : {{dataContent.supplierCode}}
+
+
+
+
+
+
+
diff --git a/fe/PDA/mycomponents/comRequest/comRequestTopInfo.vue b/fe/PDA/mycomponents/comRequest/comRequestTopInfo.vue
new file mode 100644
index 000000000..00c0d99b6
--- /dev/null
+++ b/fe/PDA/mycomponents/comRequest/comRequestTopInfo.vue
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+ {{requestContent.requestStatus | requestStatusColor}}
+
+ {{requestContent.number}}
+
+
+
+
+
+
+
+
diff --git a/fe/PDA/mycomponents/return/comReturn.vue b/fe/PDA/mycomponents/return/comReturn.vue
index 9a9d86afd..f9fff93b5 100644
--- a/fe/PDA/mycomponents/return/comReturn.vue
+++ b/fe/PDA/mycomponents/return/comReturn.vue
@@ -1,7 +1,10 @@
-
+
+
+
+
@@ -24,6 +27,9 @@
{{returnItem.creationTime===null?'无':returnItem.creationTime| formatDate}}
+
+ {{returnItem.worker}}
+
@@ -36,17 +42,29 @@
dateFormat
} from '@/common/basic.js';
import comJobTopInfo from '@/mycomponents/comjob/comJobTopInfo.vue'
+ import comRequestTopInfo from '@/mycomponents/comRequest/comRequestTopInfo.vue'
+
export default {
name: "comReturn",
components: {
- comJobTopInfo
+ comJobTopInfo,
+ comRequestTopInfo
},
data() {
return {
};
},
- props: ['returnItem'],
+ props: {
+ returnItem: {
+ type: Object,
+ value: null
+ },
+ isRequest:{
+ type:Boolean,
+ value:false
+ }
+ },
filters: {
statusStyle: function(val) {
return getJobStatuStyle(val);
diff --git a/fe/PDA/pages.js b/fe/PDA/pages.js
index 8aa307e29..6664b21bb 100644
--- a/fe/PDA/pages.js
+++ b/fe/PDA/pages.js
@@ -127,6 +127,7 @@ module.exports = () => ({
"enablePullDownRefresh": true
}
},
+
{
"path": "pages/return/purchaseReturn_detail",
"style": {
@@ -134,6 +135,30 @@ module.exports = () => ({
"enablePullDownRefresh": true
}
},
+ {
+ "path": "pages/return/purchaseReturnRequest",
+ "style": {
+ "navigationBarTitleText": "上架后退货申请",
+ "enablePullDownRefresh": true
+ }
+ },
+
+ {
+ "path": "pages/return/purchaseReturnRequestApprove",
+ "style": {
+ "navigationBarTitleText": "上架后退货申请审批",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/return/purchaseReturnRequestApprove_detail",
+ "style": {
+ "navigationBarTitleText": "上架后退货申请审批详情",
+ "enablePullDownRefresh": true
+ }
+ },
+
+
{
"path": "pages/inventory/scrap",
"style": {
diff --git a/fe/PDA/pages.json b/fe/PDA/pages.json
index 5bf900a7f..8a6706e6c 100644
--- a/fe/PDA/pages.json
+++ b/fe/PDA/pages.json
@@ -143,6 +143,28 @@
"enablePullDownRefresh": true
}
},
+ {
+ "path": "pages/return/purchaseReturnRequest",
+ "style": {
+ "navigationBarTitleText": "上架后退货申请",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/return/purchaseReturnRequestApprove",
+ "style": {
+ "navigationBarTitleText": "上架后退货申请审批",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/return/purchaseReturnRequestApprove_detail",
+ "style": {
+ "navigationBarTitleText": "上架后退货申请审批详情",
+ "enablePullDownRefresh": true
+ }
+ },
+
{
"path": "pages/inventory/scrap",
"style": {
diff --git a/fe/PDA/pages/return/purchaseReturnRequest.vue b/fe/PDA/pages/return/purchaseReturnRequest.vue
new file mode 100644
index 000000000..b7428a33f
--- /dev/null
+++ b/fe/PDA/pages/return/purchaseReturnRequest.vue
@@ -0,0 +1,216 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/fe/PDA/pages/return/purchaseReturnRequestApprove.vue b/fe/PDA/pages/return/purchaseReturnRequestApprove.vue
new file mode 100644
index 000000000..8cb04a5bf
--- /dev/null
+++ b/fe/PDA/pages/return/purchaseReturnRequestApprove.vue
@@ -0,0 +1,200 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/fe/PDA/pages/return/purchaseReturnRequestApprove_detail.vue b/fe/PDA/pages/return/purchaseReturnRequestApprove_detail.vue
new file mode 100644
index 000000000..b46055666
--- /dev/null
+++ b/fe/PDA/pages/return/purchaseReturnRequestApprove_detail.vue
@@ -0,0 +1,189 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item1.title}}
+ {{item1.content}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file