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 slot="proStatus" slot-scope="{ data }">
<el-tag size="mini" type="primary">
<el-tag size="mini" :type="initType(data.proStatus)">
{{ initProStatus(data.proStatus) }}
</el-tag>
</template>
@ -51,6 +51,7 @@
size="mini"
type="success"
icon="el-icon-check"
v-if="data.proStatus != '4'"
v-hasPermi="['lot:project:complete']"
@click="onHandleCompleteAllProject(data)"
>
@ -235,9 +236,10 @@ export default {
const res = await addAndEditLotLotProjectAPI({
id: data.id,
proStatus: '4',
subComId: data.subComId,
})
if (res.code === 200) {
this.$msgSuccess('完工成功')
this.$modal.msgSuccess('完工成功')
this.$refs.lotProjectTableRef.getTableList() //
}
})
@ -269,6 +271,18 @@ export default {
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() {