niexiting 12 months ago
parent
commit
acba535f39
  1. 124
      api/request2.js
  2. 8
      common/array.js
  3. 4
      common/basic.js
  4. 6
      mycomponents/request/requestListCommonInfo.vue
  5. 2
      pages/count/job/countJob.vue
  6. 4
      pages/customerReturn/job/returnDetail.vue
  7. 2
      pages/inventoryMove/coms/comInventoryDetailCard.vue
  8. 132
      pages/issue/request/issueRequest.vue
  9. 3
      pages/purchaseReturn/job/returnJob.vue
  10. 137
      pages/purchaseReturn/request/returnRequest.vue
  11. 1
      pages/purchaseReturn/request/returnRequestDetail.vue
  12. 1
      pages/putaway/job/putawayDetail.vue

124
api/request2.js

@ -618,6 +618,67 @@ export function getPurchaseReturnRequestDetail(id) {
}); });
} }
/**
* 采购退货申请 关闭任务
* @param {*} params
*/
export function purchaseReturnRequestClose(id) {
return request({
url: baseApi + "/wms/purchasereturn-request-main/close?id="+id,
method: "put",
data: {},
});
}
/**
* 采购退货申请 提交审批
* @param {*} params
*/
export function purchaseReturnRequestSubmitApprove(id) {
return request({
url: baseApi + "/wms/purchasereturn-request-main/submit?id="+id,
method: "put",
data: {},
});
}
/**
* 采购退货申请 提交审批通过
* @param {*} params
*/
export function purchaseReturnRequestSubmitApproveAgree(id) {
return request({
url: baseApi + "/wms/purchasereturn-request-main/agree?id="+id,
method: "put",
data: {},
});
}
/**
* 采购退货申请 审批驳回
* @param {*} params
*/
export function purchaseReturnRequestSubmitApproveRefused(id) {
return request({
url: baseApi + "/wms/purchasereturn-request-main/refused?id="+id,
method: "put",
data: {},
});
}
/**
* 采购退货申请 处理
* @param {*} params
*/
export function purchaseReturnRequestHandle(id) {
return request({
url: baseApi + "/wms/purchasereturn-request-main/handle?id="+id,
method: "put",
data: {},
});
}
/** /**
* 采购退货申请 提交 * 采购退货申请 提交
* @param {*} params * @param {*} params
@ -630,6 +691,8 @@ export function purchaseReturnRequestSubmit(params) {
}); });
} }
/** /**
* 采购退货 记录提交 * 采购退货 记录提交
* @param {*} params * @param {*} params
@ -2059,6 +2122,67 @@ export function issueRequestSubmit(params) {
}); });
} }
/**
* 发料申请 处理
* @param {*} params
*/
export function issueRequestHandle(id) {
return request({
url: baseApi + "/wms/issue-request-main/handle?id="+id,
method: "put",
data: {},
});
}
/**
* 发料申请 提交审批
* @param {*} params
*/
export function issueRequestSubmitApprove(id) {
return request({
url: baseApi + "/wms/issue-request-main/submit?id="+id,
method: "put",
data: {},
});
}
/**
* 发料申请 审批通过
* @param {*} params
*/
export function issueRequestSubmitApproveAgree(id) {
return request({
url: baseApi + "/wms/issue-request-main/agree?id="+id,
method: "put",
data: {},
});
}
/**
* 发料申请 审批驳回
* @param {*} params
*/
export function issueRequestSubmitApproveRefused(id) {
return request({
url: baseApi + "/wms/issue-request-main/refused?id="+id,
method: "put",
data: {},
});
}
/**
* 发料申请 申请关闭
* @param {*} params
*/
export function issueRequestClose(id) {
return request({
url: baseApi + "/wms/issue-request-main/close?id="+id,
method: "put",
data: {},
});
}
/** /**
* 发料记录 提交 * 发料记录 提交
* @param {*} params * @param {*} params

8
common/array.js

@ -7,10 +7,16 @@ export function getDetailAndApproveOption() {
} }
}, },
{ {
text: '审批', text: '提交\n审批',
style: { style: {
backgroundColor: '#00CC33' backgroundColor: '#00CC33'
} }
},
{
text: '关闭',
style: {
backgroundColor: '#ff0000'
}
} }
]; ];
return option_detail; return option_detail;

4
common/basic.js

@ -875,3 +875,7 @@ export function updateTitle(title) {
title: title title: title
}) })
} }
export function clearTirmAndWrap(content) {
return content.replace(/<\/?.+?\/?>|\r|\n|\s*/g,'')
}

6
mycomponents/request/requestListCommonInfo.vue

@ -50,11 +50,11 @@
type:"dateTime" type:"dateTime"
},{ },{
title: '最后更新时间', title: '最后更新时间',
content: this.dataContent.lastModificationTime, content: this.dataContent.updateTime,
type:"dateTime" type:"dateTime"
},{ },{
title: '最后更新者Id', title: '最后更新者用户名',
content: this.dataContent.lastModiferName content: this.dataContent.updater
}, },
{ {
title: '并发乐观锁', title: '并发乐观锁',

2
pages/count/job/countJob.vue

@ -278,7 +278,7 @@
}, },
showMessage(message) { showMessage(message) {
this.$refs.comMessage.showWaringMessage(message, res => { this.$refs.comMessage.showErrorMessage(message, res => {
if (res) { if (res) {
} }

4
pages/customerReturn/job/returnDetail.vue

@ -14,8 +14,6 @@
</scroll-view> </scroll-view>
</view> </view>
<view class="page-footer"> <view class="page-footer">
<view class="uni-flex u-col-center space-between padding_10" <view class="uni-flex u-col-center space-between padding_10"
style="background-color:ghostwhite; width: 100%; "> style="background-color:ghostwhite; width: 100%; ">
@ -97,6 +95,8 @@
}; };
}, },
onLoad(option) { onLoad(option) {
console.log("任务id",option.id)
console.log("任务状态",option.status)
this.id = option.id; this.id = option.id;
if (this.id != undefined) { if (this.id != undefined) {
// //

2
pages/inventoryMove/coms/comInventoryDetailCard.vue

@ -13,8 +13,8 @@
<recommend :detail="item" :isShowFromLocation="true" :isShowToLocation="true"></recommend> <recommend :detail="item" :isShowFromLocation="true" :isShowToLocation="true"></recommend>
</uni-swipe-action-item> </uni-swipe-action-item>
</uni-swipe-action> </uni-swipe-action>
<u-line />
</view> </view>
<u-line />
</uni-collapse-item> </uni-collapse-item>
</uni-collapse> </uni-collapse>
<balance-qty-edit ref="qtyEdit" :settingParam="settingParam" @confirm="confirm"></balance-qty-edit> <balance-qty-edit ref="qtyEdit" :settingParam="settingParam" @confirm="confirm"></balance-qty-edit>

132
pages/issue/request/issueRequest.vue

@ -32,7 +32,8 @@
import requestButton from '@/mycomponents/button/requestButton.vue' import requestButton from '@/mycomponents/button/requestButton.vue'
import { import {
goHome, goHome,
updateTitle updateTitle,
clearTirmAndWrap
} from '@/common/basic.js'; } from '@/common/basic.js';
import { import {
@ -40,6 +41,11 @@
} from '@/common/record.js'; } from '@/common/record.js';
import { import {
getIssueRequestList, getIssueRequestList,
issueRequestClose,
issueRequestSubmitApproveRefused,
issueRequestSubmitApproveAgree,
issueRequestSubmitApprove,
issueRequestHandle
} from '@/api/request2.js'; } from '@/api/request2.js';
import { import {
getDetailOption, getDetailOption,
@ -201,23 +207,41 @@
}) })
}, },
swipeClick(e, dataContent) { swipeClick(e, dataContent) {
if (e.content.text == "详情") { var text = clearTirmAndWrap(e.content.text)
console.log("详情", dataContent.id) if (text == "详情") {
this.openRequestInfoPopup(dataContent); this.openRequestInfoPopup(dataContent);
} else if (e.content.text == "处理") { } else if (text == "处理") {
console.log("处理") this.showQuestionMessage("确定要处理当前申请吗?",res=>{
} else if (e.content.text == "审批") { this.issueRequestHandle(dataContent.id)
console.log("审批") })
} else if (e.content.text == "审批通过") { } else if (text == "提交审批") {
console.log("审批通过") this.showQuestionMessage("确定要审批当前申请吗?",res=>{
} else if (e.content.text == "审批驳回") { this.issueRequestSubmitApprove(dataContent.id)
console.log("审批驳回") })
} else if (e.content.text == "关闭") { } else if (text.includes("审批通过")) {
console.log("关闭") this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{
this.issueRequestSubmitApproveAgree(dataContent.id)
})
} else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{
this.issueRequestSubmitApproveRefused(dataContent.id)
})
} else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{
this.issueRequestClose(dataContent.id)
})
} }
}, },
showQuestionMessage(hint,callBack){
this.$refs.comMessage.showQuestionMessage(hint,
res => {
if (res) {
callBack()
}
});
},
switchChangeWait(state, jobStatus) { switchChangeWait(state, jobStatus) {
this.checkedWaitTask = state; this.checkedWaitTask = state;
this.status = jobStatus; this.status = jobStatus;
@ -267,6 +291,86 @@
}); });
}, },
issueRequestSubmitApprove(id) {
issueRequestSubmitApprove(id).then(res => {
if (res.data) {
this.getList("refresh")
uni.showToast({
title: "申请提交审批成功"
})
} else {
this.showMessage("申请提交审批失败")
}
}).catch(error => {
this.showMessage(error)
})
},
issueRequestClose(id) {
issueRequestClose(id).then(res => {
if (res.data) {
this.getList("refresh")
uni.showToast({
title: "申请关闭成功"
})
} else {
this.showMessage("申请关闭失败")
}
}).catch(error => {
this.showMessage(error)
})
},
issueRequestSubmitApproveAgree(id) {
issueRequestSubmitApproveAgree(id).then(res => {
if (res.data) {
this.getList("refresh")
uni.showToast({
title: "申请审批通过成功"
})
} else {
this.showMessage("申请审批通过失败")
}
}).catch(error => {
this.showMessage(error)
})
},
issueRequestSubmitApproveRefused(id) {
issueRequestSubmitApproveRefused(id).then(res => {
if (res.data) {
this.getList("refresh")
uni.showToast({
title: "申请审批驳回成功"
})
} else {
this.showMessage("申请审批驳回失败")
}
}).catch(error => {
this.showMessage(error)
})
},
issueRequestHandle(id) {
issueRequestHandle(id).then(res => {
if (res.data) {
this.getList("refresh")
uni.showToast({
title: "申请处理成功"
})
} else {
this.showMessage("申请处理失败")
}
}).catch(error => {
this.showMessage(error)
})
},
} }
} }
</script> </script>

3
pages/purchaseReturn/job/returnJob.vue

@ -199,8 +199,7 @@
this.$refs.comMessage.showQuestionMessage("确定要放弃当前任务?", this.$refs.comMessage.showQuestionMessage("确定要放弃当前任务?",
res => { res => {
if (res) { if (res) {
var id = dataContent.id this.cancleJob(dataContent.id);
this.cancleJob(id);
} }
}); });
} }

137
pages/purchaseReturn/request/returnRequest.vue

@ -36,9 +36,15 @@
import { import {
goHome, goHome,
updateTitle, updateTitle,
clearTirmAndWrap
} from '@/common/basic.js'; } from '@/common/basic.js';
import { import {
getPurchaseReturnRequestList, getPurchaseReturnRequestList,
purchaseReturnRequestClose,
purchaseReturnRequestSubmitApprove,
purchaseReturnRequestSubmitApproveAgree,
purchaseReturnRequestSubmitApproveRefused,
purchaseReturnRequestHandle
} from '@/api/request2.js'; } from '@/api/request2.js';
import { import {
getDetailOption, getDetailOption,
@ -81,7 +87,7 @@
this.detailOptions = getDetailOption(); this.detailOptions = getDetailOption();
this.detailAndApproveOptions = getDetailAndApproveOption() this.detailAndApproveOptions = getDetailAndApproveOption()
this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(), this.detailAndApprovePassAndApproveNoOption = getDetailAndApprovePassAndApproveNoOption(),
this.detailAndHandleOption = getDetailAndHandleOption() this.detailAndHandleOption = getDetailAndHandleOption()
this.detailAndCloseOption = getDetailAndCloseOption() this.detailAndCloseOption = getDetailAndCloseOption()
}, },
@ -113,8 +119,6 @@
}, },
methods: { methods: {
requestConfirm(action, item) {},
openRequestDetail(item) { openRequestDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './returnRequestDetail?id=' + item.id + '&fromType=' + this.fromType url: './returnRequestDetail?id=' + item.id + '&fromType=' + this.fromType
@ -170,12 +174,12 @@
updateTitle("采购退货申请(" + this.totalCount + ")"); updateTitle("采购退货申请(" + this.totalCount + ")");
}).catch(error => { }).catch(error => {
uni.hideLoading();
if (type === "refresh") { if (type === "refresh") {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
} }
updateTitle("采购退货申请"); updateTitle("采购退货申请");
this.loadingType = ""; this.loadingType = "";
uni.hideLoading();
that.showMessage(error) that.showMessage(error)
}) })
}, },
@ -202,21 +206,40 @@
}, },
swipeClick(e, dataContent) { swipeClick(e, dataContent) {
if (e.content.text == "详情") { var text = clearTirmAndWrap(e.content.text)
console.log("详情", dataContent.id) if (text == "详情") {
this.openRequestInfoPopup(dataContent); this.openRequestInfoPopup(dataContent);
} else if (e.content.text == "处理") { } else if (text == "处理") {
console.log("处理") this.showQuestionMessage("确定要处理当前申请吗?",res=>{
} else if (e.content.text == "审批") { this.purchaseReturnRequestHandle(dataContent.id)
console.log("审批") })
} else if (e.content.text == "审批通过") { } else if (text == "提交审批") {
console.log("审批通过") this.showQuestionMessage("确定要审批当前申请吗?",res=>{
} else if (e.content.text == "审批驳回") { this.purchaseReturnRequestSubmitApprove(dataContent.id)
console.log("审批驳回") })
} else if (e.content.text == "关闭") { } else if (text=="审批通过") {
console.log("关闭") this.showQuestionMessage("确定要审批通过当前申请吗?",res=>{
this.purchaseReturnRequestSubmitApproveAgree(dataContent.id)
})
} else if (text == "审批驳回") {
this.showQuestionMessage("确定要审批驳回当前申请吗?",res=>{
this.purchaseReturnRequestSubmitApproveRefused(dataContent.id)
})
} else if (text == "关闭") {
this.showQuestionMessage("确定要关闭当前申请吗?",res=>{
this.purchaseReturnRequestClose(dataContent.id)
})
} }
}, },
showQuestionMessage(hint,callBack){
this.$refs.comMessage.showQuestionMessage(hint,
res => {
if (res) {
callBack()
}
});
},
switchChangeWait(state, jobStatus) { switchChangeWait(state, jobStatus) {
this.checkedWaitTask = state; this.checkedWaitTask = state;
this.status = jobStatus; this.status = jobStatus;
@ -266,6 +289,88 @@
}); });
}, },
purchaseReturnRequestSubmitApprove(id) {
purchaseReturnRequestSubmitApprove(id).then(res => {
if (res.data) {
this.getList("refresh")
uni.showToast({
title: "申请提交审批成功"
})
} else {
this.showMessage("申请提交审批失败")
}
}).catch(error => {
this.showMessage(error)
})
},
purchaseReturnRequestClose(id) {
purchaseReturnRequestClose(id).then(res => {
if (res.data) {
this.getList("refresh")
uni.showToast({
title: "申请关闭成功"
})
} else {
this.showMessage("申请关闭失败")
}
}).catch(error => {
this.showMessage(error)
})
},
purchaseReturnRequestSubmitApproveAgree(id) {
purchaseReturnRequestSubmitApproveAgree(id).then(res => {
if (res.data) {
this.getList("refresh")
uni.showToast({
title: "申请审批通过成功"
})
} else {
this.showMessage("申请审批通过失败")
}
}).catch(error => {
this.showMessage(error)
})
},
purchaseReturnRequestSubmitApproveRefused(id) {
purchaseReturnRequestSubmitApproveRefused(id).then(res => {
if (res.data) {
this.getList("refresh")
uni.showToast({
title: "申请审批驳回成功"
})
} else {
this.showMessage("申请审批驳回失败")
}
}).catch(error => {
this.showMessage(error)
})
},
purchaseReturnRequestHandle(id) {
purchaseReturnRequestSubmitApproveRefused(id).then(res => {
if (res.data) {
this.getList("refresh")
uni.showToast({
title: "申请处理成功"
})
} else {
this.showMessage("申请处理失败")
}
}).catch(error => {
this.showMessage(error)
})
},
} }
} }
</script> </script>

1
pages/purchaseReturn/request/returnRequestDetail.vue

@ -20,6 +20,7 @@
<script> <script>
import { import {
getPurchaseReturnRequestDetail, getPurchaseReturnRequestDetail,
} from '@/api/request2.js'; } from '@/api/request2.js';
import { import {

1
pages/putaway/job/putawayDetail.vue

@ -170,6 +170,7 @@
} else { } else {
if (res.data.subList.length > 0) { if (res.data.subList.length > 0) {
that.jobContent = res.data; that.jobContent = res.data;
that.jobContent.outInventoryStatuses='INSP'
that.subList = res.data.subList; that.subList = res.data.subList;
that.detailSource = getDataSource(that.subList) that.detailSource = getDataSource(that.subList)

Loading…
Cancel
Save