This commit is contained in:
parent
fc3e8a9bfa
commit
dbe565fcf1
|
|
@ -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() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue