diff --git a/src/views/basic-manage/project-manage/lot-project/index.vue b/src/views/basic-manage/project-manage/lot-project/index.vue index 55afe31..1364eed 100644 --- a/src/views/basic-manage/project-manage/lot-project/index.vue +++ b/src/views/basic-manage/project-manage/lot-project/index.vue @@ -40,7 +40,7 @@ @@ -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() {