结算权限取消
This commit is contained in:
parent
6c6cc8769d
commit
972d6f829a
|
|
@ -673,7 +673,8 @@ export default {
|
||||||
repairList: this.repairList,
|
repairList: this.repairList,
|
||||||
scrapList: this.scrapList,
|
scrapList: this.scrapList,
|
||||||
loseList: this.loseList,
|
loseList: this.loseList,
|
||||||
reductionList: this.reducList
|
reductionList: this.reducList,
|
||||||
|
settlementType: this.rowData[0].settlementType || ''
|
||||||
}
|
}
|
||||||
console.log('2222222222222', params)
|
console.log('2222222222222', params)
|
||||||
submitCosts(params).then(response => {
|
submitCosts(params).then(response => {
|
||||||
|
|
@ -681,7 +682,7 @@ export default {
|
||||||
type: 'success',
|
type: 'success',
|
||||||
message: '提交成功'
|
message: '提交成功'
|
||||||
})
|
})
|
||||||
this.$emit('goBackPage')
|
this.$emit('isReset')
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,17 @@
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</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-form-item>
|
||||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">查询</el-button>
|
<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>
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||||
|
|
@ -83,6 +94,15 @@
|
||||||
<span v-else style="color: #909399">无待结费用</span>
|
<span v-else style="color: #909399">无待结费用</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
<el-table-column label="结算状态" align="center" prop="sltStatus" :show-overflow-tooltip="true">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<dict-tag :options="dict.type.cost_status" :value="scope.row.sltStatus" />
|
<dict-tag :options="dict.type.cost_status" :value="scope.row.sltStatus" />
|
||||||
|
|
@ -375,12 +395,18 @@ export default {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
sltStatus: '',
|
sltStatus: '',
|
||||||
|
settlementType: '',
|
||||||
isCommit: '',
|
isCommit: '',
|
||||||
unitId: null,
|
unitId: null,
|
||||||
projectId: null,
|
projectId: null,
|
||||||
agreementId: [],
|
agreementId: [],
|
||||||
agreementCode: ''
|
agreementCode: ''
|
||||||
},
|
},
|
||||||
|
settlementTypeList: [
|
||||||
|
{ label: '总费用', value: '' },
|
||||||
|
{ label: '工器具', value: '1' },
|
||||||
|
{ label: '安全工器具', value: '2' },
|
||||||
|
],
|
||||||
openPrint: false,
|
openPrint: false,
|
||||||
// 协议书内容
|
// 协议书内容
|
||||||
agreementContent: {
|
agreementContent: {
|
||||||
|
|
@ -520,6 +546,7 @@ export default {
|
||||||
pageSize: this.queryParams.pageSize,
|
pageSize: this.queryParams.pageSize,
|
||||||
projectId: this.queryParams.projectId,
|
projectId: this.queryParams.projectId,
|
||||||
sltStatus: this.queryParams.sltStatus,
|
sltStatus: this.queryParams.sltStatus,
|
||||||
|
settlementType: this.queryParams.settlementType,
|
||||||
agreementCode: this.queryParams.agreementCode,
|
agreementCode: this.queryParams.agreementCode,
|
||||||
// ...this.queryParams,
|
// ...this.queryParams,
|
||||||
unitIds: this.unitIds
|
unitIds: this.unitIds
|
||||||
|
|
@ -543,6 +570,7 @@ export default {
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
sltStatus: '',
|
sltStatus: '',
|
||||||
|
settlementType: '',
|
||||||
isCommit: '',
|
isCommit: '',
|
||||||
unitId: null,
|
unitId: null,
|
||||||
projectId: null,
|
projectId: null,
|
||||||
|
|
@ -555,6 +583,7 @@ export default {
|
||||||
//结算申请
|
//结算申请
|
||||||
handleApply(row) {
|
handleApply(row) {
|
||||||
console.log('🚀 handleApply 被调用,传入数据:', row)
|
console.log('🚀 handleApply 被调用,传入数据:', row)
|
||||||
|
row.settlementType = this.queryParams.settlementType
|
||||||
let arr = []
|
let arr = []
|
||||||
arr.push(row)
|
arr.push(row)
|
||||||
console.log('🚀 准备发送的数据:', arr)
|
console.log('🚀 准备发送的数据:', arr)
|
||||||
|
|
@ -580,6 +609,7 @@ export default {
|
||||||
this.multiple = !selection.length
|
this.multiple = !selection.length
|
||||||
},
|
},
|
||||||
async openPrintDialog(row) {
|
async openPrintDialog(row) {
|
||||||
|
row.settlementType = this.queryParams.settlementType
|
||||||
this.openPrint = true
|
this.openPrint = true
|
||||||
try {
|
try {
|
||||||
const res = await getSltInfo([row])
|
const res = await getSltInfo([row])
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,14 @@
|
||||||
:pageContent="pageContent"
|
:pageContent="pageContent"
|
||||||
@goBack="goBack"
|
@goBack="goBack"
|
||||||
/>
|
/>
|
||||||
<keep-alive>
|
<keep-alive include="ApplyHome">
|
||||||
<component
|
<component
|
||||||
|
ref="componentRef"
|
||||||
:is="isShowComponent"
|
:is="isShowComponent"
|
||||||
:row="rowData"
|
:row="rowData"
|
||||||
@goDetail="goDetail"
|
@goDetail="goDetail"
|
||||||
@goBackPage="goBack"
|
@goBackPage="goBack"
|
||||||
|
@isReset="isReset"
|
||||||
/>
|
/>
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -48,6 +50,12 @@ export default {
|
||||||
goBack() {
|
goBack() {
|
||||||
this.isShowComponent = 'ApplyHome'
|
this.isShowComponent = 'ApplyHome'
|
||||||
},
|
},
|
||||||
|
isReset() {
|
||||||
|
this.isShowComponent = "ApplyHome"
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.componentRef.getList()
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue