领料内部审核前端代码
This commit is contained in:
parent
20915ca52c
commit
7942e4a93d
|
|
@ -43,7 +43,7 @@ export const constantRoutes = [
|
|||
},
|
||||
{
|
||||
path: '/login',
|
||||
component: () => import('@/views/loginSso'),
|
||||
component: () => import('@/views/login'),
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -267,9 +267,10 @@ export default {
|
|||
//审核 同意
|
||||
async subAuditLeaseByCompany(){
|
||||
const params = JSON.parse(JSON.stringify(this.queryParams))
|
||||
if(params.taskStatus<32){
|
||||
params.taskStatus = params.taskStatus+1
|
||||
}
|
||||
// if(params.taskStatus<32){
|
||||
// params.taskStatus = params.taskStatus+1
|
||||
// }
|
||||
params.taskStatus = params.taskStatus+1
|
||||
params.leaseApplyInfoList.forEach(v => {
|
||||
this.$set(v,'companyAuditRemark',params.companyAuditRemarks)
|
||||
this.$set(v,'companyAuditBy',this.user.id)
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@
|
|||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="leaseAuditList" @selection-change="handleSelectionChange">
|
||||
<!-- <el-table-column type="selection" width="55" align="center" />wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww -->
|
||||
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||
<el-table-column label="序号" align="center" type="index" />
|
||||
<el-table-column label="领料单号" align="center" prop="code" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="领料单位" align="center" prop="unitName" :show-overflow-tooltip="true" />
|
||||
|
|
@ -98,13 +98,11 @@
|
|||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
icon="el-icon-zoom-in"
|
||||
@click="handleView(scope.row)"
|
||||
>查看</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="el-icon-edit"
|
||||
@click="handleExamine(scope.row)"
|
||||
v-hasPermi="['receive:examine:fgs']"
|
||||
v-if="Number(scope.row.examineStatusId)==30"
|
||||
|
|
@ -112,7 +110,6 @@
|
|||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="el-icon-edit"
|
||||
@click="handleExamine(scope.row)"
|
||||
v-hasPermi="['receive:examine:fgy']"
|
||||
v-if="Number(scope.row.examineStatusId)==31"
|
||||
|
|
@ -120,18 +117,16 @@
|
|||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="el-icon-edit"
|
||||
@click="handleExamine(scope.row)"
|
||||
v-hasPermi="['receive:examine:nbry-jjfgs']"
|
||||
v-if="Number(scope.row.examineStatusId)==32"
|
||||
v-if="Number(scope.row.examineStatusId)==32 && scope.row.showExamineBtn"
|
||||
>机具审批</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="primary"
|
||||
icon="el-icon-edit"
|
||||
@click="handleExamine(scope.row)"
|
||||
v-hasPermi="['receive:examine:nbry-sbfgs']"
|
||||
v-if="Number(scope.row.examineStatusId)==32"
|
||||
v-if="Number(scope.row.examineStatusId)==32 && scope.row.showExamineBtn"
|
||||
>调试审批</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
|
|
@ -259,7 +254,8 @@ export default {
|
|||
unitList:[],
|
||||
proList: [],
|
||||
leaseAuditList:[],
|
||||
|
||||
showJJExamineBtn:false, //内部审批-机具分公司
|
||||
showSBExamineBtn:false, //内部审批-调试分公司
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
|
|
@ -326,9 +322,20 @@ export default {
|
|||
console.log('getList ============',res)
|
||||
this.leaseAuditList = res.data.rows;
|
||||
this.leaseAuditList.forEach((item,index)=>{
|
||||
console.log(item.leaseApplyInfoList)
|
||||
if(item.leaseApplyInfoList.length>0){
|
||||
if(item.leaseApplyInfoList[0].leaseApplyDetails.length>0){
|
||||
|
||||
// if(item.leaseApplyInfoList[0].companyId==101){
|
||||
if(item.leaseApplyInfoList[0].leaseApplyDetails[0].status=="0"){
|
||||
item.showExamineBtn = true
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
})
|
||||
console.log(this.leaseAuditList)
|
||||
this.total = res.data.total;
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue