领料管理
This commit is contained in:
parent
d4c9beff5e
commit
76ce215d1f
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue