重庆审批流修改

This commit is contained in:
zhouzy062 2024-03-16 13:35:57 +08:00
parent a9de36b025
commit 85a1fe9cfb
4 changed files with 36 additions and 69 deletions

View File

@ -158,6 +158,15 @@ export function auditLeaseByCompany(params = {} ){
data:params data:params
}) })
} }
// 领料审核 同意
export function auditLeaseByCompanyCq(params = {} ){
return request({
url:'/base/tm_task/auditLeaseByCompanyCq',
method:'post',
data:params
})
}
// 领料审核 拒绝 // 领料审核 拒绝
export function rejectLeaseByCompany(params = {}){ export function rejectLeaseByCompany(params = {}){
return request({ return request({
@ -166,6 +175,14 @@ export function rejectLeaseByCompany(params = {}){
data: params data: params
}) })
} }
// 领料审核 拒绝
export function rejectLeaseByCompanyCq(params = {}){
return request({
url: '/base/tm_task/rejectLeaseByCompanyCq',
method: 'post',
data: params
})
}
// 获取 物品类型 // 获取 物品类型
export function getUseTypeTreee(params = {}){ export function getUseTypeTreee(params = {}){

View File

@ -257,7 +257,7 @@ export default {
companyId:'', // companyId:'', //
createBy: '', // createBy: '', //
taskType: 29, taskType: 29,
taskStatus: 30, taskStatus: 31,
// //
leaseApplyInfo:{ leaseApplyInfo:{
leasePerson: '', leasePerson: '',
@ -447,7 +447,7 @@ export default {
this.queryParams.leaseApplyInfo.leasePerson = data.leaseApplyInfoList[0].leasePerson this.queryParams.leaseApplyInfo.leasePerson = data.leaseApplyInfoList[0].leasePerson
this.queryParams.agreementCode = data.agreementCode this.queryParams.agreementCode = data.agreementCode
this.queryParams.agreementId = data.agreementId this.queryParams.agreementId = data.agreementId
this.queryParams.leaseType = data.leaseType // this.queryParams.leaseType = data.leaseType
this.$set(this.queryParams,'leaseType',data.leaseType) this.$set(this.queryParams,'leaseType',data.leaseType)
this.queryParams.leaseApplyInfo.remark = data.leaseApplyInfoList[0].remark this.queryParams.leaseApplyInfo.remark = data.leaseApplyInfoList[0].remark
this.leaseApplyInfoList = data.leaseApplyInfoList this.leaseApplyInfoList = data.leaseApplyInfoList
@ -476,7 +476,7 @@ export default {
this.queryParams.leaseApplyInfo.leasePerson = data.leaseApplyInfoList[0].leasePerson this.queryParams.leaseApplyInfo.leasePerson = data.leaseApplyInfoList[0].leasePerson
this.queryParams.agreementCode = data.agreementCode this.queryParams.agreementCode = data.agreementCode
this.queryParams.agreementId = data.agreementId this.queryParams.agreementId = data.agreementId
this.queryParams.leaseType = data.leaseType // this.queryParams.leaseType = data.leaseType
this.$set(this.queryParams,'leaseType',data.leaseType) this.$set(this.queryParams,'leaseType',data.leaseType)
this.queryParams.leaseApplyInfo.remark = data.leaseApplyInfoList[0].remark this.queryParams.leaseApplyInfo.remark = data.leaseApplyInfoList[0].remark
this.leaseApplyInfoList = data.leaseApplyInfoList this.leaseApplyInfoList = data.leaseApplyInfoList

View File

@ -126,11 +126,8 @@
<el-input placeholder="请输入审核意见" type="textarea" maxlength="200" :autosize="{ minRows: 4, maxRows: 6}" v-model="queryParams.companyAuditRemarks"></el-input> <el-input placeholder="请输入审核意见" type="textarea" maxlength="200" :autosize="{ minRows: 4, maxRows: 6}" v-model="queryParams.companyAuditRemarks"></el-input>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="examineVisible=false"> </el-button> <el-button @click="examineVisible=false"> </el-button>
<el-button type="primary" @click="subAuditLeaseByCompany(9)" v-if="queryParams.taskStatus==30" v-hasPermi="['receive:examine:fgs']"> </el-button> <el-button type="primary" @click="subAuditLeaseByCompany()"> </el-button>
<el-button type="primary" @click="subAuditLeaseByCompany(5)" v-if="queryParams.taskStatus==31" v-hasPermi="['receive:examine:sgb']"> </el-button>
<el-button type="primary" @click="subAuditLeaseByCompany(7)" v-if="queryParams.taskStatus==31" v-hasPermi="['receive:examine:ajb']"> </el-button>
<el-button type="primary" @click="subAuditLeaseByCompany(1)" v-if="queryParams.taskStatus==32" v-hasPermi="['receive:examine:nbry-jjfgs']"> </el-button>
<el-button type="primary" @click="subAuditLeaseByCompany(3)" v-if="queryParams.taskStatus==32" v-hasPermi="['receive:examine:nbry-sbfgs']"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
@ -139,11 +136,8 @@
<el-input placeholder="请输入审核意见" type="textarea" maxlength="200" :autosize="{ minRows: 4, maxRows: 6}" v-model="queryParams.companyAuditRemarks"></el-input> <el-input placeholder="请输入审核意见" type="textarea" maxlength="200" :autosize="{ minRows: 4, maxRows: 6}" v-model="queryParams.companyAuditRemarks"></el-input>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="refuseVisible=false"> </el-button> <el-button @click="refuseVisible=false"> </el-button>
<el-button type="primary" @click="refuseAuditLeaseByCompany(10)" v-if="queryParams.taskStatus==30" v-hasPermi="['receive:examine:fgs']"> </el-button> <el-button type="primary" @click="refuseAuditLeaseByCompany()"> </el-button>
<el-button type="primary" @click="refuseAuditLeaseByCompany(6)" v-if="queryParams.taskStatus==31" v-hasPermi="['receive:examine:sgb']"> </el-button>
<el-button type="primary" @click="refuseAuditLeaseByCompany(8)" v-if="queryParams.taskStatus==31" v-hasPermi="['receive:examine:ajb']"> </el-button>
<el-button type="primary" @click="refuseAuditLeaseByCompany(2)" v-if="queryParams.taskStatus==32" v-hasPermi="['receive:examine:nbry-jjfgs']"> </el-button>
<el-button type="primary" @click="refuseAuditLeaseByCompany(4)" v-if="queryParams.taskStatus==32" v-hasPermi="['receive:examine:nbry-sbfgs']"> </el-button>
</div> </div>
</el-dialog> </el-dialog>
@ -152,7 +146,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 { auditLeaseByCompany, getTaskDetail,rejectLeaseByCompany } from '@/api/claimAndRefund/receive' import { auditLeaseByCompanyCq, getTaskDetail,rejectLeaseByCompanyCq } from '@/api/claimAndRefund/receive'
import {mapState} from 'vuex' import {mapState} from 'vuex'
export default { export default {
name: "ReceiveExamine", name: "ReceiveExamine",
@ -267,17 +261,9 @@ export default {
this.examineVisible = true this.examineVisible = true
this.queryParams.companyAuditRemarks = '同意' this.queryParams.companyAuditRemarks = '同意'
}, },
// handelExamine(type){
// if(type){
// this.subAuditLeaseByCompany()
// }else {
// this.queryParams.companyAuditRemarks = ''
// }
// this.examineVisible = type
// },
// //
async subAuditLeaseByCompany(type){ async subAuditLeaseByCompany(){
console.log(type) console.log()
const params = JSON.parse(JSON.stringify(this.queryParams)) const params = JSON.parse(JSON.stringify(this.queryParams))
params.taskStatus = params.taskStatus+1 params.taskStatus = params.taskStatus+1
@ -286,12 +272,12 @@ export default {
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))
this.$set(v,'status',type) // this.$set(v,'status','')
}) })
params.updateTime = params.updateTimes params.updateTime = params.updateTimes
params.createTime = params.createTimes params.createTime = params.createTimes
console.log(params) console.log(params)
const res = await auditLeaseByCompany(params) const res = await auditLeaseByCompanyCq(params)
if(res.code == 200){ if(res.code == 200){
this.examineVisible = false this.examineVisible = false
this.$tab.closeOpenPage({ path: "/claimAndRefund/receiveByCq/receiveManage"}); this.$tab.closeOpenPage({ path: "/claimAndRefund/receiveByCq/receiveManage"});
@ -304,25 +290,9 @@ export default {
this.refuseVisible = true this.refuseVisible = true
this.queryParams.companyAuditRemarks = '驳回' this.queryParams.companyAuditRemarks = '驳回'
}, },
// handelRefuse(type){
// if (this.queryParams.companyAuditRemarks=='') {
// this.$message.error('');
// return;
// }
// if(type){
// this.refuseAuditLeaseByCompany()
// }else {
// this.queryParams.companyAuditRemarks = ''
// }
// this.refuseVisible = type
// },
// //
async refuseAuditLeaseByCompany(type){ async refuseAuditLeaseByCompany(){
const params = JSON.parse(JSON.stringify(this.queryParams)) const params = JSON.parse(JSON.stringify(this.queryParams))
if(params.taskStatus==30){
params.taskStatus=98;
params.examineStatusId=98
}
if(params.taskStatus==31){ if(params.taskStatus==31){
params.taskStatus=99; params.taskStatus=99;
params.examineStatusId=99 params.examineStatusId=99
@ -337,10 +307,10 @@ export default {
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))
this.$set(v,'status',type) // this.$set(v,'status',type)
}) })
console.log(params) console.log(params)
const res = await rejectLeaseByCompany(params) const res = await rejectLeaseByCompanyCq(params)
if(res.code == 200){ if(res.code == 200){
this.examineVisible = false this.examineVisible = false
this.$tab.closeOpenPage({ path: "/claimAndRefund/receiveByCq/receiveManage"}); this.$tab.closeOpenPage({ path: "/claimAndRefund/receiveByCq/receiveManage"});

View File

@ -105,36 +105,16 @@
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)==30" v-if="Number(scope.row.examineStatusId)==31"
>审批</el-button> >审批</el-button>
<el-button <el-button
size="mini" size="mini"
type="primary" type="primary"
@click="handleExamine(scope.row)" @click="handleExamine(scope.row)"
v-hasPermi="['receive:examine:sgb']" v-hasPermi="['receive:examine:nbs']"
v-if="Number(scope.row.examineStatusId)==31 && (scope.row.leaseApplyInfoList[0].status=='0'||scope.row.leaseApplyInfoList[0].status=='7'||scope.row.leaseApplyInfoList[0].status=='8'||scope.row.leaseApplyInfoList[0].status=='6')" v-if="Number(scope.row.examineStatusId)==32"
>审批</el-button>
<el-button
size="mini"
type="primary"
@click="handleExamine(scope.row)"
v-hasPermi="['receive:examine:ajb']"
v-if="Number(scope.row.examineStatusId)==31 && (scope.row.leaseApplyInfoList[0].status=='0'||scope.row.leaseApplyInfoList[0].status=='5'||scope.row.leaseApplyInfoList[0].status=='6'||scope.row.leaseApplyInfoList[0].status=='8')"
>审批</el-button>
<el-button
size="mini"
type="primary"
@click="handleExamine(scope.row,'jjfgs')"
v-hasPermi="['receive:examine:nbry-jjfgs']"
v-if="Number(scope.row.examineStatusId)==32 && (scope.row.leaseApplyInfoList[0].status=='5'||scope.row.leaseApplyInfoList[0].status=='7'||scope.row.leaseApplyInfoList[0].status=='4'||scope.row.leaseApplyInfoList[0].status=='2')"
>审批</el-button>
<el-button
size="mini"
type="primary"
@click="handleExamine(scope.row,'sbfgs')"
v-hasPermi="['receive:examine:nbry-sbfgs']"
v-if="Number(scope.row.examineStatusId)==32 && (scope.row.leaseApplyInfoList[0].status=='5'||scope.row.leaseApplyInfoList[0].status=='7'||scope.row.leaseApplyInfoList[0].status=='4'||scope.row.leaseApplyInfoList[0].status=='2')"
>审批</el-button> >审批</el-button>
<el-button <el-button
size="mini" size="mini"
type="info" type="info"