|
|
|
|
@ -49,6 +49,12 @@
|
|
|
|
|
</Poptip>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column v-else label="操作" prop="more" header-align="center" align="center" width="100">
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<Button size="small" type="primary" @click="$refs['file'].setId(row.pid),$refs['file'].show()">附件查看</Button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</template>
|
|
|
|
|
</xy-table>
|
|
|
|
|
|
|
|
|
|
@ -67,7 +73,7 @@
|
|
|
|
|
|
|
|
|
|
<addPropertyPlan ref="addPropertyPlan" :role="role" @refresh="getList"></addPropertyPlan>
|
|
|
|
|
<remark ref="remark"></remark>
|
|
|
|
|
<file ref="file"></file>
|
|
|
|
|
<file :role="role" ref="file"></file>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
@ -115,11 +121,17 @@ export default {
|
|
|
|
|
prop: "plan_date",
|
|
|
|
|
label: "计划评审时间",
|
|
|
|
|
width: 170,
|
|
|
|
|
formatter: (cell, data, value) => {
|
|
|
|
|
return value ? this.$moment(new Date(value)).format("YYYY年MM月") : '未完成';
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
prop: "actually_date",
|
|
|
|
|
label: "实际评审时间",
|
|
|
|
|
width: 170,
|
|
|
|
|
formatter: (cell, data, value) => {
|
|
|
|
|
return value ? this.$moment(new Date(value)).format("YYYY年MM月DD") : '未完成';
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
total: 0,
|
|
|
|
|
@ -127,12 +139,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
destroy (row) {
|
|
|
|
|
let temp = this.originalList.find(i => i.id === row.pid)
|
|
|
|
|
let index = temp?.item?.indexOf(temp?.item?.find(o => o.id === row.id))
|
|
|
|
|
temp.item.splice(index,1)
|
|
|
|
|
save({
|
|
|
|
|
...temp,
|
|
|
|
|
item_list: temp.item
|
|
|
|
|
console.log(row)
|
|
|
|
|
destroy({
|
|
|
|
|
id: row.pid
|
|
|
|
|
}).then(res => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'success',
|
|
|
|
|
@ -159,7 +168,7 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
list.push({
|
|
|
|
|
|
|
|
|
|
pid: i.id,
|
|
|
|
|
index: index+1,
|
|
|
|
|
type: 1,
|
|
|
|
|
...i
|
|
|
|
|
|