领料管理

This commit is contained in:
zhouzy062 2024-02-26 20:16:16 +08:00
parent d4c9beff5e
commit 76ce215d1f
2 changed files with 19 additions and 30 deletions

View File

@ -140,10 +140,10 @@
<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()" v-if="queryParams.taskStatus==30" v-hasPermi="['receive:examine:fgs']"> </el-button> <el-button type="primary" @click="refuseAuditLeaseByCompany()" v-if="queryParams.taskStatus==30" v-hasPermi="['receive:examine:fgs']"> </el-button>
<el-button type="primary" @click="refuseAuditLeaseByCompany(6)" v-if="queryParams.taskStatus==31" v-hasPermi="['receive:examine:sgb']"> 5</el-button> <el-button type="primary" @click="refuseAuditLeaseByCompany(6)" v-if="queryParams.taskStatus==31" v-hasPermi="['receive:examine:sgb']"> 6</el-button>
<el-button type="primary" @click="refuseAuditLeaseByCompany(8)" v-if="queryParams.taskStatus==31" v-hasPermi="['receive:examine:ajb']"> 7</el-button> <el-button type="primary" @click="refuseAuditLeaseByCompany(8)" v-if="queryParams.taskStatus==31" v-hasPermi="['receive:examine:ajb']"> 8</el-button>
<el-button type="primary" @click="refuseAuditLeaseByCompany(2)" v-if="queryParams.taskStatus==32" v-hasPermi="['receive:examine:nbry-jjfgs']"> 1</el-button> <el-button type="primary" @click="refuseAuditLeaseByCompany(2)" v-if="queryParams.taskStatus==32" v-hasPermi="['receive:examine:nbry-jjfgs']"> 2</el-button>
<el-button type="primary" @click="refuseAuditLeaseByCompany(4)" v-if="queryParams.taskStatus==32" v-hasPermi="['receive:examine:nbry-sbfgs']"> 3</el-button> <el-button type="primary" @click="refuseAuditLeaseByCompany(4)" v-if="queryParams.taskStatus==32" v-hasPermi="['receive:examine:nbry-sbfgs']"> 4</el-button>
</div> </div>
</el-dialog> </el-dialog>
@ -335,15 +335,8 @@ export default {
params.leaseApplyInfoList.forEach(v => { params.leaseApplyInfoList.forEach(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',params.examineStatusId) this.$set(v,'examineStatusId',Number(params.examineStatusId))
if(params.examineStatusId=='32'){ this.$set(v,'status',type)
if(v.companyId==101){
this.$set(v,'status',2)
}
if(v.companyId==102){
this.$set(v,'status',4)
}
}
}) })
console.log(params) console.log(params)
const res = await rejectLeaseByCompany(params) const res = await rejectLeaseByCompany(params)

View File

@ -112,28 +112,28 @@
type="primary" type="primary"
@click="handleExamine(scope.row)" @click="handleExamine(scope.row)"
v-hasPermi="['receive:examine:sgb']" v-hasPermi="['receive:examine:sgb']"
v-if="Number(scope.row.examineStatusId)==31" 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')"
>施管审批</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:ajb']" v-hasPermi="['receive:examine:ajb']"
v-if="Number(scope.row.examineStatusId)==31" 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>
<el-button <el-button
size="mini" size="mini"
type="primary" type="primary"
@click="handleExamine(scope.row,'jjfgs')" @click="handleExamine(scope.row,'jjfgs')"
v-hasPermi="['receive:examine:nbry-jjfgs']" v-hasPermi="['receive:examine:nbry-jjfgs']"
v-if="Number(scope.row.examineStatusId)==32 && scope.row.showExamineBtn" 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="primary" type="primary"
@click="handleExamine(scope.row,'sbfgs')" @click="handleExamine(scope.row,'sbfgs')"
v-hasPermi="['receive:examine:nbry-sbfgs']" v-hasPermi="['receive:examine:nbry-sbfgs']"
v-if="Number(scope.row.examineStatusId)==32 && scope.row.showExamineBtn" 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"
@ -328,20 +328,16 @@ export default {
this.loading = false; this.loading = false;
console.log('getList ============',res) console.log('getList ============',res)
this.leaseAuditList = res.data.rows; this.leaseAuditList = res.data.rows;
this.leaseAuditList.forEach((item,index)=>{ // this.leaseAuditList.forEach((item,index)=>{
console.log(item.leaseApplyInfoList) // console.log(item.leaseApplyInfoList)
if(item.leaseApplyInfoList.length>0){ // if(item.leaseApplyInfoList.length>0){
if(item.leaseApplyInfoList[0].leaseApplyDetails.length>0){ // // item.showExamineBtn = true;
// if(item.leaseApplyInfoList[0].status=="0"||item.leaseApplyInfoList[0].status=="5"||item.leaseApplyInfoList[0].status=="7"||item.leaseApplyInfoList[0].status=="8"){
// if(item.leaseApplyInfoList[0].companyId==101){ // item.showExamineBtn = true;
if(item.leaseApplyInfoList[0].leaseApplyDetails[0].status=="0"){ // }
item.showExamineBtn = true // }
}
// }
}
}
}) // })
console.log(this.leaseAuditList) console.log(this.leaseAuditList)
this.total = res.data.total; this.total = res.data.total;
}, },