重庆领料审批前端修改
This commit is contained in:
parent
1dbfb3f562
commit
4a5d3f299d
|
|
@ -273,6 +273,14 @@ export function submitNumOut(params){
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 领料确认
|
||||||
|
export function updateLeaseTaskStatusConfirmByCq(params){
|
||||||
|
return request({
|
||||||
|
url: '/base/tm_task/updateLeaseTaskStatusConfirmByCq',
|
||||||
|
method: 'post',
|
||||||
|
data: params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -586,7 +586,9 @@ export default {
|
||||||
this.queryParams.createBy = this.user.userName
|
this.queryParams.createBy = this.user.userName
|
||||||
this.queryParams.companyId = this.user.companyId
|
this.queryParams.companyId = this.user.companyId
|
||||||
let res;
|
let res;
|
||||||
|
if(this.queryParams.leaseType==1){
|
||||||
|
this.queryParams.taskStatus = 117
|
||||||
|
}
|
||||||
if(this.taskId){
|
if(this.taskId){
|
||||||
this.leaseApplyInfoList.forEach(v => {
|
this.leaseApplyInfoList.forEach(v => {
|
||||||
v = Object.assign(v,this.queryParams.leaseApplyInfo)
|
v = Object.assign(v,this.queryParams.leaseApplyInfo)
|
||||||
|
|
|
||||||
|
|
@ -124,6 +124,9 @@
|
||||||
<el-button type="primary" @click="agree">同意</el-button>
|
<el-button type="primary" @click="agree">同意</el-button>
|
||||||
<el-button @click="refuse">驳回</el-button>
|
<el-button @click="refuse">驳回</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
<div slot="footer" class="dialog-footer" style="text-align: right;margin-right: 200px;" v-if="queryParams.taskStatus==117&&!this.isView">
|
||||||
|
<el-button type="primary" @click="confirm">确认</el-button>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- 同意 -->
|
<!-- 同意 -->
|
||||||
<el-dialog title="审核意见" :visible.sync="examineVisible" width="600px" :close-on-click-modal="false">
|
<el-dialog title="审核意见" :visible.sync="examineVisible" width="600px" :close-on-click-modal="false">
|
||||||
|
|
@ -150,7 +153,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type";
|
import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type";
|
||||||
import { auditLeaseByCompanyCq, getLeaseListAllCq,rejectLeaseByCompanyCq } from '@/api/claimAndRefund/receive'
|
import { auditLeaseByCompanyCq, getLeaseListAllCq,rejectLeaseByCompanyCq,updateLeaseTaskStatusConfirmByCq } from '@/api/claimAndRefund/receive'
|
||||||
import {mapState} from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: "ReceiveExamine",
|
name: "ReceiveExamine",
|
||||||
|
|
@ -176,6 +179,12 @@ export default {
|
||||||
remarkKey:'directAuditRemark',
|
remarkKey:'directAuditRemark',
|
||||||
authorKey:'directAuditBy',
|
authorKey:'directAuditBy',
|
||||||
timeKey:'directAuditTime'
|
timeKey:'directAuditTime'
|
||||||
|
},{
|
||||||
|
id:117,
|
||||||
|
name:'机具分公司确认',
|
||||||
|
remarkKey:'directAuditRemark',
|
||||||
|
authorKey:'directAuditBy',
|
||||||
|
timeKey:'directAuditTime'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
isView:false,
|
isView:false,
|
||||||
|
|
@ -269,10 +278,13 @@ export default {
|
||||||
async subAuditLeaseByCompany(type){
|
async subAuditLeaseByCompany(type){
|
||||||
console.log()
|
console.log()
|
||||||
const params = JSON.parse(JSON.stringify(this.queryParams))
|
const params = JSON.parse(JSON.stringify(this.queryParams))
|
||||||
params.taskStatus = params.taskStatus+1
|
if(params.taskStatus==31){
|
||||||
|
params.taskStatus = 32
|
||||||
|
}else if(params.taskStatus==32){
|
||||||
|
params.taskStatus=117
|
||||||
|
}
|
||||||
params.leaseApplyInfoList.forEach(v => {
|
params.leaseApplyInfoList.forEach(v => {
|
||||||
console.log(v)
|
// console.log(v)
|
||||||
this.$set(v,'companyAuditRemark',params.companyAuditRemarks)
|
this.$set(v,'companyAuditRemark',params.companyAuditRemarks)
|
||||||
this.$set(v,'companyAuditBy',this.user.id)
|
this.$set(v,'companyAuditBy',this.user.id)
|
||||||
this.$set(v,'examineStatusId',Number(params.examineStatusId))
|
this.$set(v,'examineStatusId',Number(params.examineStatusId))
|
||||||
|
|
@ -288,7 +300,20 @@ export default {
|
||||||
}
|
}
|
||||||
console.log('subAuditLeaseByCompany ==================',res)
|
console.log('subAuditLeaseByCompany ==================',res)
|
||||||
},
|
},
|
||||||
|
//确认
|
||||||
|
confirm(){
|
||||||
|
const taskData = JSON.parse(JSON.stringify(this.queryParams))
|
||||||
|
console.log(taskData)
|
||||||
|
let param = {
|
||||||
|
taskId:taskData.taskId,
|
||||||
|
taskStatus:33
|
||||||
|
}
|
||||||
|
updateLeaseTaskStatusConfirmByCq(param).then(response => {
|
||||||
|
this.$modal.msgSuccess("操作成功");
|
||||||
|
this.getData(taskData.taskId)
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
//审核 驳回
|
//审核 驳回
|
||||||
refuse(){
|
refuse(){
|
||||||
this.refuseVisible = true
|
this.refuseVisible = true
|
||||||
|
|
@ -360,6 +385,10 @@ export default {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(this.queryParams.examineStatusId==33){
|
||||||
|
this.flowPath[2].color = '#0bbd87'
|
||||||
|
this.flowPath[2].icon = 'el-icon-check'
|
||||||
|
}
|
||||||
// console.log(this.flowPath)
|
// console.log(this.flowPath)
|
||||||
if(this.queryParams.examineStatusId==98){
|
if(this.queryParams.examineStatusId==98){
|
||||||
this.flowPath[0].color = 'red'
|
this.flowPath[0].color = 'red'
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="handleExamine(scope.row)"
|
@click="handleExamine(scope.row)"
|
||||||
v-hasPermi="['receive:examine:fgs']"
|
v-hasPermi="['receive:examine:fgs']"
|
||||||
v-if="Number(scope.row.examineStatusId)==31"
|
v-if="Number(scope.row.examineStatusId)==31||Number(scope.row.examineStatusId)==117"
|
||||||
>审批</el-button>
|
>审批</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
|
|
|
||||||
|
|
@ -235,7 +235,7 @@ import {
|
||||||
submitLeaseApply,
|
submitLeaseApply,
|
||||||
getUseTypeTreee
|
getUseTypeTreee
|
||||||
} from '@/api/claimAndRefund/receive'
|
} from '@/api/claimAndRefund/receive'
|
||||||
import { ApiSubmitBackApply } from "@/api/claimAndRefund/return"
|
import { submitBackApplyApi } from "@/api/claimAndRefund/return"
|
||||||
import { submitBackApplyApiByCq,materialReturnNoteByApply,submitRefuseBackApply } from "@/api/claimAndRefund/return.js"
|
import { submitBackApplyApiByCq,materialReturnNoteByApply,submitRefuseBackApply } from "@/api/claimAndRefund/return.js"
|
||||||
import { mapState } from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import {
|
import {
|
||||||
|
|
@ -682,7 +682,7 @@ export default {
|
||||||
backApplyInfo: this.queryParams.backApplyInfo,
|
backApplyInfo: this.queryParams.backApplyInfo,
|
||||||
backApplyDetails: this.queryParams.leaseApplyDetails,
|
backApplyDetails: this.queryParams.leaseApplyDetails,
|
||||||
}
|
}
|
||||||
const res = await submitBackApplyApiByCq(params)
|
const res = await submitBackApplyApi(params)
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message({ type: 'success', message: '申请成功'})
|
this.$message({ type: 'success', message: '申请成功'})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue