|
@@ -108,6 +108,7 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
+ width="200"
|
|
|
label="操作"
|
|
|
align="center"
|
|
|
class-name="small-padding fixed-width"
|
|
@@ -146,7 +147,7 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
- @click="handleUpdate(scope.row)"
|
|
|
+ @click="handleUpdateXQ(scope.row)"
|
|
|
v-hasPermi="['business:jgjs:query']"
|
|
|
>详情</el-button
|
|
|
>
|
|
@@ -167,10 +168,10 @@
|
|
|
v-dialog-drag
|
|
|
:title="title"
|
|
|
:visible.sync="open"
|
|
|
- width="500px"
|
|
|
+ width="800px"
|
|
|
append-to-body
|
|
|
>
|
|
|
- <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="170px">
|
|
|
<el-form-item label="地区" prop="xzqhId">
|
|
|
<RegionCascaderSelect
|
|
|
endLevel="4"
|
|
@@ -358,6 +359,7 @@
|
|
|
<file-upload v-model="form.fjEighth" />
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
+
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -368,6 +370,110 @@
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <!-- 详情框 -->
|
|
|
+ <el-dialog
|
|
|
+ v-dialog-drag
|
|
|
+ :title="title"
|
|
|
+ :visible.sync="xqOpen"
|
|
|
+ width="1000px"
|
|
|
+ append-to-body
|
|
|
+ >
|
|
|
+
|
|
|
+ <h3>详情信息</h3>
|
|
|
+ <table class="table">
|
|
|
+ <tr>
|
|
|
+ <td>地区</td>
|
|
|
+ <td>{{ form.xzqhName }}</td>
|
|
|
+ <td>项目单位</td>
|
|
|
+ <td>{{ form.xmdw }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>单位地址</td>
|
|
|
+ <td>{{ form.dwdz }}</td>
|
|
|
+ <td>项目性质</td>
|
|
|
+ <td>{{ translateDict('XZ098',form.xmxz) }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>负责人</td>
|
|
|
+ <td>{{ form.fzr }}</td>
|
|
|
+ <td>手机号</td>
|
|
|
+ <td>{{ form.sjh }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>建筑面积</td>
|
|
|
+ <td>{{ form.jzmj }}</td>
|
|
|
+ <td>床位数量</td>
|
|
|
+ <td>{{ form.cwsl }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>入住老年人数</td>
|
|
|
+ <td>{{ form.rzrs }}</td>
|
|
|
+ <td>特困供养人数</td>
|
|
|
+ <td>{{ form.tkgyrs }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>失能半失能</td>
|
|
|
+ <td>{{ form.snbsn }}</td>
|
|
|
+ <td>自理人数</td>
|
|
|
+ <td>{{ form.zlrs }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>建设期开始</td>
|
|
|
+ <td>{{ form.jsqks }}</td>
|
|
|
+ <td>建设期结束</td>
|
|
|
+ <td>{{ form.jsqjs }}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ <table class="table">
|
|
|
+ <tr>
|
|
|
+ <td>预算资金(万元)</td>
|
|
|
+ <td>{{ form.yszj }}</td>
|
|
|
+ <td>当地政府投入(万元)</td>
|
|
|
+ <td>{{ form.ddzftr }}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+
|
|
|
+ <table class="table">
|
|
|
+ <tr>
|
|
|
+ <td>自筹资金(万元)</td>
|
|
|
+ <td>{{ form.zczj }}</td>
|
|
|
+ <td>申请省级支持资金(万元)</td>
|
|
|
+ <td>{{ form.sqsjzczj }}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td>附件清单</td>
|
|
|
+ <td colspan="4">
|
|
|
+ <file-upload v-model="form.fjFirst" :isShowTip="false" :fileSize="10" :isFile="false"
|
|
|
+ :fileType="['jpg','jpeg','png','doc','docx','pdf']"></file-upload>
|
|
|
+ <file-upload v-model="form.fjSecond" :isShowTip="false" :fileSize="10" :isFile="false"
|
|
|
+ :fileType="['jpg','jpeg','png','doc','docx','pdf']"></file-upload>
|
|
|
+ <file-upload v-model="form.fjThird" :isShowTip="false" :fileSize="10" :isFile="false"
|
|
|
+ :fileType="['jpg','jpeg','png','doc','docx','pdf']"></file-upload>
|
|
|
+ <file-upload v-model="form.fjFourth" :isShowTip="false" :fileSize="10" :isFile="false"
|
|
|
+ :fileType="['jpg','jpeg','png','doc','docx','pdf']"></file-upload>
|
|
|
+ <file-upload v-model="form.fjFifth" :isShowTip="false" :fileSize="10" :isFile="false"
|
|
|
+ :fileType="['jpg','jpeg','png','doc','docx','pdf']"></file-upload>
|
|
|
+ <file-upload v-model="form.fjSixth" :isShowTip="false" :fileSize="10" :isFile="false"
|
|
|
+ :fileType="['jpg','jpeg','png','doc','docx','pdf']"></file-upload>
|
|
|
+ <file-upload v-model="form.fjSeventh" :isShowTip="false" :fileSize="10" :isFile="false"
|
|
|
+ :fileType="['jpg','jpeg','png','doc','docx','pdf']"></file-upload>
|
|
|
+ <file-upload v-model="form.fjEighth" :isShowTip="false" :fileSize="10" :isFile="false"
|
|
|
+ :fileType="['jpg','jpeg','png','doc','docx','pdf']"></file-upload>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ </table>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <!-- <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="submitForm"
|
|
|
+ :loading="submitFormLoading"
|
|
|
+ >确 定</el-button
|
|
|
+ > -->
|
|
|
+ <el-button @click="xqOpen =false">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -407,10 +513,14 @@ export default {
|
|
|
title: "",
|
|
|
// 是否显示弹出层
|
|
|
open: false,
|
|
|
+ // 详情对话框
|
|
|
+ xqOpen:false,
|
|
|
// 查询参数
|
|
|
queryParams: {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
+ xmxz:null,
|
|
|
+ xmdw:null,
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
@@ -497,6 +607,28 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 字典翻译
|
|
|
+ translateDict(type, value) {
|
|
|
+ return this.selectDictLabel(this.dict.type[type], value)
|
|
|
+ },
|
|
|
+ // 详情对话框
|
|
|
+ handleUpdateXQ(row){
|
|
|
+ this.reset();
|
|
|
+ const id = row.id || this.ids;
|
|
|
+ getJgjs(id).then((response) => {
|
|
|
+ this.form = response.data;
|
|
|
+ if (this.form.xzqhId) {
|
|
|
+ this.form.xzqhId = JSON.stringify(this.form.xzqhId.split(","));
|
|
|
+ } else {
|
|
|
+ this.form.xzqhId = "";
|
|
|
+ }
|
|
|
+ /****** sks 需要改动的地方 start ******/
|
|
|
+ this.copyForm = this.deepCopy(response.data);
|
|
|
+ /****** sks 需要改动的地方 end ******/
|
|
|
+ this.xqOpen = true;
|
|
|
+ this.title = "修改项目申报公办养老机构建设项目信息";
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 查询项目申报公办养老机构建设项目信息列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
@@ -623,6 +755,7 @@ export default {
|
|
|
if (formData) {
|
|
|
updateJgjs({ ...formData, id: this.form.id, xzqhId: szxzqh })
|
|
|
.then((response) => {
|
|
|
+ console.log('提交了');
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.jgjsList = this.dataReplacement(
|
|
@@ -634,9 +767,11 @@ export default {
|
|
|
})
|
|
|
.finally(() => (this.submitFormLoading = false));
|
|
|
} else {
|
|
|
+ console.log('提交了');
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.open = false;
|
|
|
this.submitFormLoading = false;
|
|
|
+ // this.getList();
|
|
|
}
|
|
|
/****** sks 需要改动的地方 end ******/
|
|
|
} else {
|
|
@@ -644,13 +779,13 @@ export default {
|
|
|
.then((response) => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.open = false;
|
|
|
- // this.getList();
|
|
|
/****** sks 需要改动的地方 start ******/
|
|
|
if (this.queryParams.pageSize === this.jgjsList.length) {
|
|
|
this.jgjsList.pop();
|
|
|
}
|
|
|
this.jgjsList.unshift({ ...this.form, id: response.data });
|
|
|
this.total++;
|
|
|
+ this.getList();
|
|
|
/****** sks 需要改动的地方 end ******/
|
|
|
})
|
|
|
.finally(() => (this.submitFormLoading = false));
|
|
@@ -697,3 +832,22 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
+
|
|
|
+<style rel="stylesheet/scss" lang="scss" scoped>
|
|
|
+ @import '@/assets/styles/common/common.scss';
|
|
|
+
|
|
|
+.el-form {
|
|
|
+ margin-top: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+.switch {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ margin-bottom: 10px;
|
|
|
+}
|
|
|
+.sxzd {
|
|
|
+ font-weight: 600;
|
|
|
+ margin: 10px 15px;
|
|
|
+}
|
|
|
+</style>
|