优化领料审核页面缓存问题

This commit is contained in:
BianLzhaoMin 2024-06-18 10:37:15 +08:00
parent a538a5eb84
commit 84272fee42
4 changed files with 46 additions and 32 deletions

View File

@ -2,7 +2,10 @@
<!-- 领料审核页面 -->
<div id="ReceiveExamine">
<el-row :gutter="10" class="mb8">
<h3>{{ queryParams.applyFor }}提交的领料申请</h3>
<h3
><span class="apply-user">{{ queryParams.applyFor }}</span>
提交的领料申请</h3
>
<div>领料单号{{ queryParams.code }}</div>
</el-row>
<el-row :gutter="24" class="mb8">
@ -99,7 +102,7 @@
:show-overflow-tooltip="true"
/>
<el-table-column
label="申请人"
label="领料申请人"
align="center"
prop="applyFor"
:show-overflow-tooltip="true"
@ -215,35 +218,35 @@
<el-button
type="primary"
@click="subAuditLeaseByCompany(9)"
v-if="queryParams.taskStatus == 30"
v-show="queryParams.taskStatus == 30"
v-hasPermi="['picking:auditing:fgs']"
> </el-button
>
<el-button
type="primary"
@click="subAuditLeaseByCompany(5)"
v-if="queryParams.taskStatus == 31"
v-show="queryParams.taskStatus == 31"
v-hasPermi="['picking:auditing:sgb']"
> </el-button
>
<el-button
type="primary"
@click="subAuditLeaseByCompany(7)"
v-if="queryParams.taskStatus == 31"
v-show="queryParams.taskStatus == 31"
v-hasPermi="['receive:examine:ajb']"
> </el-button
>
<el-button
type="primary"
@click="subAuditLeaseByCompany(1)"
v-if="queryParams.taskStatus == 32"
v-show="queryParams.taskStatus == 32"
v-hasPermi="['picking:auditing:jjnb']"
> </el-button
>
<el-button
type="primary"
@click="subAuditLeaseByCompany(3)"
v-if="queryParams.taskStatus == 32"
v-show="queryParams.taskStatus == 32"
v-hasPermi="['picking:auditing:tsnb']"
> </el-button
>
@ -268,35 +271,35 @@
<el-button
type="primary"
@click="refuseAuditLeaseByCompany(10)"
v-if="queryParams.taskStatus == 30"
v-show="queryParams.taskStatus == 30"
v-hasPermi="['picking:auditing:fgs']"
> </el-button
>
<el-button
type="primary"
@click="refuseAuditLeaseByCompany(6)"
v-if="queryParams.taskStatus == 31"
v-show="queryParams.taskStatus == 31"
v-hasPermi="['picking:auditing:sgb']"
> </el-button
>
<el-button
type="primary"
@click="refuseAuditLeaseByCompany(8)"
v-if="queryParams.taskStatus == 31"
v-show="queryParams.taskStatus == 31"
v-hasPermi="['receive:examine:ajb']"
> </el-button
>
<el-button
type="primary"
@click="refuseAuditLeaseByCompany(2)"
v-if="queryParams.taskStatus == 32"
v-show="queryParams.taskStatus == 32"
v-hasPermi="['picking:auditing:jjnb']"
> </el-button
>
<el-button
type="primary"
@click="refuseAuditLeaseByCompany(4)"
v-if="queryParams.taskStatus == 32"
v-show="queryParams.taskStatus == 32"
v-hasPermi="['picking:auditing:tsnb']"
> </el-button
>
@ -784,4 +787,9 @@ export default {
font-size: 13px;
}
}
.apply-user {
margin-right: 2px;
letter-spacing: 1px;
}
</style>

View File

@ -234,7 +234,7 @@
type="text"
@click="handleExamine(scope.row)"
v-hasPermi="['picking:auditing:fgs']"
v-if="
v-show="
Number(scope.row.examineStatusId) == 30 &&
scope.row.deptId == currentDeptId
"
@ -245,7 +245,7 @@
type="text"
@click="handleExamine(scope.row)"
v-hasPermi="['picking:auditing:sgb']"
v-if="
v-show="
Number(scope.row.examineStatusId) == 31 &&
(scope.row.leaseApplyInfoList[0].status == '0' ||
scope.row.leaseApplyInfoList[0].status == '7' ||
@ -273,7 +273,7 @@
type="text"
@click="handleExamine(scope.row, 'jjfgs')"
v-hasPermi="['picking:auditing:jjnb']"
v-if="
v-show="
Number(scope.row.examineStatusId) == 32 &&
(scope.row.leaseApplyInfoList[0].status == '5' ||
scope.row.leaseApplyInfoList[0].status == '7' ||
@ -288,7 +288,7 @@
type="text"
@click="handleExamine(scope.row, 'sbfgs')"
v-hasPermi="['picking:auditing:tsnb']"
v-if="
v-show="
Number(scope.row.examineStatusId) == 32 &&
(scope.row.leaseApplyInfoList[0].status == '5' ||
scope.row.leaseApplyInfoList[0].status == '7' ||
@ -475,6 +475,12 @@ import { getInfo } from '@/api/login'
import vueEasyPrint from 'vue-easy-print'
export default {
// name: "ReceiveManage",
props: {
isRefresh: {
type: Boolean,
default: () => false,
},
},
data() {
return {
//
@ -588,11 +594,6 @@ export default {
// console.log(this.user)
this.getList()
},
/* 刷新列表 */
refreshList() {
this.getList()
},
/** 查询列表 */
async getList() {
this.loading = true
@ -611,7 +612,7 @@ export default {
const res = await getLeaseManageListAll(params)
this.loading = false
console.log('getList ============', res)
console.log('getList ============', res, '列表查询')
this.leaseAuditList = res.data.rows
// this.leaseAuditList.forEach((item,index)=>{
// console.log(item.leaseApplyInfoList)
@ -786,6 +787,12 @@ export default {
})
},
},
activated() {
if (this.isRefresh) {
this.getList()
}
},
}
</script>

View File

@ -7,11 +7,12 @@
@goBack="goBack"
/>
<!-- 6.17 新增组件缓存 因客户需要查询或审核后返回列表时保留页面状态 -->
<keep-alive>
<keep-alive include="Home">
<component
ref="componentRef"
:is="isShowComponent"
:isView="isView"
:isRefresh="isRefresh"
:auditingTaskId="auditingTaskId"
@pickingView="pickingView"
@pickingAuditing="pickingAuditing"
@ -37,7 +38,7 @@ export default {
pageContent: '',
auditingTaskId: '',
isView: false,
includeCom: '',
isRefresh: false,
}
},
methods: {
@ -56,13 +57,11 @@ export default {
this.isShowComponent = 'AuditingPage'
},
goBack(val) {
this.isRefresh = false
this.isShowComponent = 'Home'
// val 1
if (val === 1) {
this.$nextTick(() => {
this.$refs.componentRef.refreshList()
})
if (val == 1) {
this.isRefresh = true
}
},
},

View File

@ -43,11 +43,11 @@ module.exports = {
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网
// target: `https://z.csgmall.com.cn`,
// target: `http://10.40.92.51:28080`, //超
// target: `http://10.40.92.60:28080`, //超
// target: `http://10.40.92.81:8080`, //韩/
// target: `http://10.40.92.74:8080`,//旭/
target: `http://10.40.92.140:28080`, //帅
// target: `http://10.40.92.253:28080`, //福
// target: `http://10.40.92.140:28080`, //帅
target: `http://10.40.92.253:28080`, //福
//******** 注意事项 ********* */
//1.全局替换qrUrl二维码扫码提供的网址-发布服务器的地址target;