master
xy 2 years ago
parent 895fbeffeb
commit 3dd54f752e

@ -5,3 +5,4 @@ ENV = 'production'
VUE_APP_DOMIAN=http://192.168.60.99:9003/ VUE_APP_DOMIAN=http://192.168.60.99:9003/
VUE_APP_BASE_API = '' VUE_APP_BASE_API = ''
VUE_APP_OUT_URL = http://192.168.60.18:2021 VUE_APP_OUT_URL = http://192.168.60.18:2021
VUE_APP_UPLOAD=http://192.168.60.99:9003/api/admin/upload-file

@ -34,13 +34,15 @@
<div class="xy-table-item"> <div class="xy-table-item">
<div class="xy-table-item-label">评审内容 </div> <div class="xy-table-item-label">评审内容 </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-input <el-select
type="textarea"
v-model="form.content" v-model="form.content"
clearable clearable
placeholder="请输入评审内容" placeholder="请选择评审内容"
style="width: 300px" style="width: 300px"
></el-input> >
<el-option v-for="i in ['概算评审','预算评审','竣工结算评审','竣工财务评审']" :label="i" :value="i">
</el-option>
</el-select>
</div> </div>
</div> </div>
</template> </template>
@ -49,6 +51,7 @@
<div class="xy-table-item-label">计划评审时间 </div> <div class="xy-table-item-label">计划评审时间 </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-date-picker <el-date-picker
type="month"
v-model="form.plan_date" v-model="form.plan_date"
placeholder="请选择计划评审时间" placeholder="请选择计划评审时间"
style="width: 300px" style="width: 300px"
@ -192,14 +195,22 @@ export default {
sortable: false, sortable: false,
customFn: (row) => { customFn: (row) => {
return ( return (
<el-input <el-select
placeholder="评审内容" placeholder="评审内容"
readonly={this.role == 1} readonly={this.role == 1}
style="width: 100%;" style="width: 100%;"
v-model={row.content} v-model={row.content}
size="mini" size="mini"
clearable={true} clearable={true}
></el-input> >
{
['概算评审','预算评审','竣工结算评审','竣工财务评审'].map(i => {
return (
<el-option label={i} value={i}></el-option>
)
})
}
</el-select>
); );
}, },
}, },
@ -211,6 +222,7 @@ export default {
customFn: (row) => { customFn: (row) => {
return ( return (
<el-date-picker <el-date-picker
type="money"
placeholder="计划评审时间" placeholder="计划评审时间"
readonly={this.role == 1} readonly={this.role == 1}
style="width: 100%;" style="width: 100%;"

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<Modal v-model="isShow" title="附件" footer-hide :width="64"> <Modal v-model="isShow" title="附件" footer-hide :width="64">
<Button type="primary" shape="circle" icon="ios-add" @click="add" <Button v-if="role === 1 || role === 0" type="primary" shape="circle" icon="ios-add" @click="add"
>新增</Button >新增</Button
> >
@ -20,7 +20,9 @@
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
import { show, save, store } from "@/api/propertyPlan"; import { show, save, store } from "@/api/propertyPlan";
export default { export default {
props: {}, props: {
role: Number
},
data() { data() {
return { return {
fileList: [], fileList: [],

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

@ -64,6 +64,7 @@
<div class="xy-table-item-label">采购意向公开计划时间 </div> <div class="xy-table-item-label">采购意向公开计划时间 </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-date-picker <el-date-picker
type="month"
v-model="form.public_plane_date" v-model="form.public_plane_date"
placeholder="请选择采购意向公开计划时间" placeholder="请选择采购意向公开计划时间"
style="width: 300px" style="width: 300px"
@ -90,6 +91,7 @@
<div class="xy-table-item-label">招标文件挂网计划时间 </div> <div class="xy-table-item-label">招标文件挂网计划时间 </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-date-picker <el-date-picker
type="month"
v-model="form.invite_plane_date" v-model="form.invite_plane_date"
placeholder="请选择招标文件挂网计划时间" placeholder="请选择招标文件挂网计划时间"
style="width: 300px" style="width: 300px"
@ -116,6 +118,7 @@
<div class="xy-table-item-label">项目开标计划时间 </div> <div class="xy-table-item-label">项目开标计划时间 </div>
<div class="xy-table-item-content"> <div class="xy-table-item-content">
<el-date-picker <el-date-picker
type="month"
v-model="form.open_plane_date" v-model="form.open_plane_date"
placeholder="请选择项目开标计划时间" placeholder="请选择项目开标计划时间"
style="width: 300px" style="width: 300px"

@ -116,7 +116,7 @@ export default {
label: "采购意向公开计划时间", label: "采购意向公开计划时间",
width: 190, width: 190,
formatter: (cell, data, value) => { formatter: (cell, data, value) => {
return value ? this.$moment(new Date(value)).format("YYYY年MM月DD") : '未完成'; return value ? this.$moment(new Date(value)).format("YYYY年MM月") : '未完成';
}, },
}, },
{ {
@ -132,7 +132,7 @@ export default {
label: "招标文件挂网计划时间", label: "招标文件挂网计划时间",
width: 190, width: 190,
formatter: (cell, data, value) => { formatter: (cell, data, value) => {
return value ? this.$moment(new Date(value)).format("YYYY年MM月DD") : '未完成'; return value ? this.$moment(new Date(value)).format("YYYY年MM月") : '未完成';
}, },
}, },
{ {
@ -148,7 +148,7 @@ export default {
label: "项目开标计划时间", label: "项目开标计划时间",
width: 180, width: 180,
formatter: (cell, data, value) => { formatter: (cell, data, value) => {
return value ? this.$moment(new Date(value)).format("YYYY年MM月DD") : '未完成'; return value ? this.$moment(new Date(value)).format("YYYY年MM月") : '未完成';
}, },
}, },
{ {

Loading…
Cancel
Save