This commit is contained in:
BianLzhaoMin 2025-08-18 18:13:43 +08:00
parent fc3e8a9bfa
commit dbe565fcf1
1 changed files with 16 additions and 2 deletions

View File

@ -40,7 +40,7 @@
</template> </template>
<!-- 标段工程状态 --> <!-- 标段工程状态 -->
<template slot="proStatus" slot-scope="{ data }"> <template slot="proStatus" slot-scope="{ data }">
<el-tag size="mini" type="primary"> <el-tag size="mini" :type="initType(data.proStatus)">
{{ initProStatus(data.proStatus) }} {{ initProStatus(data.proStatus) }}
</el-tag> </el-tag>
</template> </template>
@ -51,6 +51,7 @@
size="mini" size="mini"
type="success" type="success"
icon="el-icon-check" icon="el-icon-check"
v-if="data.proStatus != '4'"
v-hasPermi="['lot:project:complete']" v-hasPermi="['lot:project:complete']"
@click="onHandleCompleteAllProject(data)" @click="onHandleCompleteAllProject(data)"
> >
@ -235,9 +236,10 @@ export default {
const res = await addAndEditLotLotProjectAPI({ const res = await addAndEditLotLotProjectAPI({
id: data.id, id: data.id,
proStatus: '4', proStatus: '4',
subComId: data.subComId,
}) })
if (res.code === 200) { if (res.code === 200) {
this.$msgSuccess('完工成功') this.$modal.msgSuccess('完工成功')
this.$refs.lotProjectTableRef.getTableList() // this.$refs.lotProjectTableRef.getTableList() //
} }
}) })
@ -269,6 +271,18 @@ export default {
return data || '' return data || ''
}, },
//
initType(data) {
if (typeof data === 'string') {
return (
this.dict.type.project_status.find(
(item) => item.value == data,
).raw.listClass || 'primary'
)
}
return 'primary' || ''
},
// //
async onHandleConfirmAddOrEdit() { async onHandleConfirmAddOrEdit() {