结算权限取消

This commit is contained in:
bonus 2025-11-28 15:16:43 +08:00
parent 6c6cc8769d
commit 972d6f829a
3 changed files with 42 additions and 3 deletions

View File

@ -673,7 +673,8 @@ export default {
repairList: this.repairList,
scrapList: this.scrapList,
loseList: this.loseList,
reductionList: this.reducList
reductionList: this.reducList,
settlementType: this.rowData[0].settlementType || ''
}
console.log('2222222222222', params)
submitCosts(params).then(response => {
@ -681,7 +682,7 @@ export default {
type: 'success',
message: '提交成功'
})
this.$emit('goBackPage')
this.$emit('isReset')
})
})
.catch(() => {})

View File

@ -53,6 +53,17 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item prop="settlementType">
<el-select v-model="queryParams.settlementType" placeholder="请选择结算类型" clearable filterable>
<el-option
v-for="(item, index) in settlementTypeList"
:key="index"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
@ -83,6 +94,15 @@
<span v-else style="color: #909399">无待结费用</span>
</template>
</el-table-column>
<el-table-column label="结算类型" align="center" prop="sltStatus" :show-overflow-tooltip="true">
<template slot-scope="scope">
<el-tag v-if="scope.row.settlementType == 1" effect="plain">工器具</el-tag>
<el-tag type="warning" v-if="scope.row.settlementType == 2" effect="plain">安全工器具</el-tag>
<el-tag v-if="!scope.row.settlementType || scope.row.settlementType == 0" effect="plain">
总费用
</el-tag>
</template>
</el-table-column>
<el-table-column label="结算状态" align="center" prop="sltStatus" :show-overflow-tooltip="true">
<template slot-scope="scope">
<dict-tag :options="dict.type.cost_status" :value="scope.row.sltStatus" />
@ -375,12 +395,18 @@ export default {
pageNum: 1,
pageSize: 10,
sltStatus: '',
settlementType: '',
isCommit: '',
unitId: null,
projectId: null,
agreementId: [],
agreementCode: ''
},
settlementTypeList: [
{ label: '总费用', value: '' },
{ label: '工器具', value: '1' },
{ label: '安全工器具', value: '2' },
],
openPrint: false,
//
agreementContent: {
@ -520,6 +546,7 @@ export default {
pageSize: this.queryParams.pageSize,
projectId: this.queryParams.projectId,
sltStatus: this.queryParams.sltStatus,
settlementType: this.queryParams.settlementType,
agreementCode: this.queryParams.agreementCode,
// ...this.queryParams,
unitIds: this.unitIds
@ -543,6 +570,7 @@ export default {
pageNum: 1,
pageSize: 10,
sltStatus: '',
settlementType: '',
isCommit: '',
unitId: null,
projectId: null,
@ -555,6 +583,7 @@ export default {
//
handleApply(row) {
console.log('🚀 handleApply 被调用,传入数据:', row)
row.settlementType = this.queryParams.settlementType
let arr = []
arr.push(row)
console.log('🚀 准备发送的数据:', arr)
@ -580,6 +609,7 @@ export default {
this.multiple = !selection.length
},
async openPrintDialog(row) {
row.settlementType = this.queryParams.settlementType
this.openPrint = true
try {
const res = await getSltInfo([row])

View File

@ -6,12 +6,14 @@
:pageContent="pageContent"
@goBack="goBack"
/>
<keep-alive>
<keep-alive include="ApplyHome">
<component
ref="componentRef"
:is="isShowComponent"
:row="rowData"
@goDetail="goDetail"
@goBackPage="goBack"
@isReset="isReset"
/>
</keep-alive>
</div>
@ -48,6 +50,12 @@ export default {
goBack() {
this.isShowComponent = 'ApplyHome'
},
isReset() {
this.isShowComponent = "ApplyHome"
this.$nextTick(() => {
this.$refs.componentRef.getList()
})
}
},
}
</script>