领料内部审核前端代码

This commit is contained in:
zhouzy062 2024-02-22 13:56:32 +08:00
parent 20915ca52c
commit 7942e4a93d
3 changed files with 27 additions and 19 deletions

View File

@ -43,7 +43,7 @@ export const constantRoutes = [
}, },
{ {
path: '/login', path: '/login',
component: () => import('@/views/loginSso'), component: () => import('@/views/login'),
hidden: true hidden: true
}, },
{ {

View File

@ -267,9 +267,10 @@ export default {
// //
async subAuditLeaseByCompany(){ async subAuditLeaseByCompany(){
const params = JSON.parse(JSON.stringify(this.queryParams)) const params = JSON.parse(JSON.stringify(this.queryParams))
if(params.taskStatus<32){ // if(params.taskStatus<32){
params.taskStatus = params.taskStatus+1 // params.taskStatus = params.taskStatus+1
} // }
params.taskStatus = params.taskStatus+1
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)

View File

@ -81,7 +81,7 @@
</el-row> </el-row>
<el-table v-loading="loading" :data="leaseAuditList" @selection-change="handleSelectionChange"> <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" type="index" />
<el-table-column label="领料单号" align="center" prop="code" :show-overflow-tooltip="true" /> <el-table-column label="领料单号" align="center" prop="code" :show-overflow-tooltip="true" />
<el-table-column label="领料单位" align="center" prop="unitName" :show-overflow-tooltip="true" /> <el-table-column label="领料单位" align="center" prop="unitName" :show-overflow-tooltip="true" />
@ -98,13 +98,11 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
size="mini" size="mini"
icon="el-icon-zoom-in"
@click="handleView(scope.row)" @click="handleView(scope.row)"
>查看</el-button> >查看</el-button>
<el-button <el-button
size="mini" size="mini"
type="primary" type="primary"
icon="el-icon-edit"
@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)==30"
@ -112,7 +110,6 @@
<el-button <el-button
size="mini" size="mini"
type="primary" type="primary"
icon="el-icon-edit"
@click="handleExamine(scope.row)" @click="handleExamine(scope.row)"
v-hasPermi="['receive:examine:fgy']" v-hasPermi="['receive:examine:fgy']"
v-if="Number(scope.row.examineStatusId)==31" v-if="Number(scope.row.examineStatusId)==31"
@ -120,18 +117,16 @@
<el-button <el-button
size="mini" size="mini"
type="primary" type="primary"
icon="el-icon-edit"
@click="handleExamine(scope.row)" @click="handleExamine(scope.row)"
v-hasPermi="['receive:examine:nbry-jjfgs']" 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>
<el-button <el-button
size="mini" size="mini"
type="primary" type="primary"
icon="el-icon-edit"
@click="handleExamine(scope.row)" @click="handleExamine(scope.row)"
v-hasPermi="['receive:examine:nbry-sbfgs']" 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>
<el-button <el-button
size="mini" size="mini"
@ -259,7 +254,8 @@ export default {
unitList:[], unitList:[],
proList: [], proList: [],
leaseAuditList:[], leaseAuditList:[],
showJJExamineBtn:false, //-
showSBExamineBtn:false, //-
// //
form: {}, form: {},
// //
@ -326,9 +322,20 @@ export default {
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)
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; this.total = res.data.total;
}, },