|
@@ -0,0 +1,702 @@
|
|
|
+<template>
|
|
|
+ <div class="app-container">
|
|
|
+ <el-form
|
|
|
+ :model="queryParams"
|
|
|
+ ref="queryForm"
|
|
|
+ size="small"
|
|
|
+ :inline="true"
|
|
|
+ v-show="showSearch"
|
|
|
+ label-width="68px"
|
|
|
+ >
|
|
|
+ <el-form-item label="地区" prop="xzqh">
|
|
|
+ <RegionCascaderSelect
|
|
|
+ endLevel="4"
|
|
|
+ v-model="xzqh"
|
|
|
+ :opts="{ placeholder: '请选择地区' }"
|
|
|
+ style="width: 100%"
|
|
|
+ valueProp="code"
|
|
|
+ >
|
|
|
+ </RegionCascaderSelect>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="项目单位" prop="xmdw">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.xmdw"
|
|
|
+ placeholder="请输入项目单位"
|
|
|
+ clearable
|
|
|
+ @keyup.enter.native="handleQuery"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="项目性质" prop="xmxz">
|
|
|
+ <el-select
|
|
|
+ v-model="queryParams.xmxz"
|
|
|
+ placeholder="请选择项目性质"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.XZ098"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-search"
|
|
|
+ size="mini"
|
|
|
+ @click="handleQuery"
|
|
|
+ >搜索</el-button
|
|
|
+ >
|
|
|
+ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
|
|
|
+ >重置</el-button
|
|
|
+ >
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+
|
|
|
+ <el-row :gutter="10" class="mb8">
|
|
|
+ <right-toolbar
|
|
|
+ :showSearch.sync="showSearch"
|
|
|
+ @queryTable="getList"
|
|
|
+ ></right-toolbar>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-table v-loading="loading" :data="jgjsList">
|
|
|
+ <el-table-column label="序号" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{
|
|
|
+ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
|
|
|
+ }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="地区" align="center" prop="xzqhName" />
|
|
|
+ <el-table-column label="项目单位" align="center" prop="xmdw" />
|
|
|
+ <el-table-column label="项目性质" align="center" prop="xmxz">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.XZ098" :value="scope.row.xmxz" />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="负责人" align="center" prop="fzr" />
|
|
|
+ <el-table-column label="手机号" align="center" prop="sjh" />
|
|
|
+ <el-table-column label="建筑面积" align="center" prop="jzmj" />
|
|
|
+ <el-table-column label="床位数量" align="center" prop="cwsl" />
|
|
|
+ <el-table-column label="流转状态" align="center" prop="status">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <dict-tag :options="dict.type.XZ106" :value="scope.row.status" />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ label="操作"
|
|
|
+ align="center"
|
|
|
+ class-name="small-padding fixed-width"
|
|
|
+ fixed="right"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button
|
|
|
+ v-if="!scope.row.mzShjg"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="handleUpdate(scope.row)"
|
|
|
+ v-hasPermi="['business:jgjssh:sh']"
|
|
|
+ >审核</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="handleUpdate(scope.row)"
|
|
|
+ v-hasPermi="['business:jgjssh:query']"
|
|
|
+ >详情</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+
|
|
|
+ <pagination
|
|
|
+ v-show="total > 0"
|
|
|
+ :total="total"
|
|
|
+ :page.sync="queryParams.pageNum"
|
|
|
+ :limit.sync="queryParams.pageSize"
|
|
|
+ @pagination="getList"
|
|
|
+ />
|
|
|
+
|
|
|
+ <!-- 添加或修改项目申报公办养老机构建设项目信息对话框 -->
|
|
|
+ <el-dialog
|
|
|
+ v-dialog-drag
|
|
|
+ :title="title"
|
|
|
+ :visible.sync="open"
|
|
|
+ width="500px"
|
|
|
+ append-to-body
|
|
|
+ >
|
|
|
+ <el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
+ <el-form-item label="地区" prop="xzqhId">
|
|
|
+ <RegionCascaderSelect
|
|
|
+ endLevel="4"
|
|
|
+ v-model="xzqhId"
|
|
|
+ :opts="{ placeholder: '请输入地区' }"
|
|
|
+ style="width: 100%"
|
|
|
+ valueProp="code"
|
|
|
+ >
|
|
|
+ </RegionCascaderSelect>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="项目单位" prop="xmdw">
|
|
|
+ <el-input v-model="form.xmdw" placeholder="请输入项目单位" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="单位地址" prop="dwdz">
|
|
|
+ <el-input v-model="form.dwdz" placeholder="请输入单位地址" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="项目性质" prop="xmxz">
|
|
|
+ <el-select v-model="form.xmxz" placeholder="请选择项目性质">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.XZ098"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="负责人" prop="fzr">
|
|
|
+ <el-input v-model="form.fzr" placeholder="请输入负责人" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="手机号" prop="sjh">
|
|
|
+ <el-input v-model="form.sjh" placeholder="请输入手机号" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="建筑面积" prop="jzmj">
|
|
|
+ <number
|
|
|
+ placeholder="建筑面积"
|
|
|
+ v-model.sync="form.jzmj"
|
|
|
+ :min="0"
|
|
|
+ :max="10000000000"
|
|
|
+ :precision="2"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="床位数量" prop="cwsl">
|
|
|
+ <number
|
|
|
+ placeholder="床位数量"
|
|
|
+ v-model.sync="form.cwsl"
|
|
|
+ :min="0"
|
|
|
+ :max="100"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="入住老年人数" prop="rzrs">
|
|
|
+ <number
|
|
|
+ placeholder="入住老年人数"
|
|
|
+ v-model.sync="form.rzrs"
|
|
|
+ :min="0"
|
|
|
+ :max="100"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="特困供养人数" prop="tkgyrs">
|
|
|
+ <number
|
|
|
+ placeholder="特困供养人数"
|
|
|
+ v-model.sync="form.tkgyrs"
|
|
|
+ :min="0"
|
|
|
+ :max="100"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="失能半失能" prop="snbsn">
|
|
|
+ <number
|
|
|
+ placeholder="失能半失能"
|
|
|
+ v-model.sync="form.snbsn"
|
|
|
+ :min="0"
|
|
|
+ :max="100"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="自理人数" prop="zlrs">
|
|
|
+ <number
|
|
|
+ placeholder="自理人数"
|
|
|
+ v-model.sync="form.zlrs"
|
|
|
+ :min="0"
|
|
|
+ :max="100"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="建设期开始" prop="jsqks">
|
|
|
+ <el-input v-model="form.jsqks" placeholder="请输入建设期开始" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="建设期结束" prop="jsqjs">
|
|
|
+ <el-input v-model="form.jsqjs" placeholder="请输入建设期结束" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="预算资金(万元)" prop="yszj">
|
|
|
+ <number
|
|
|
+ placeholder="预算资金(万元)"
|
|
|
+ v-model.sync="form.yszj"
|
|
|
+ :min="0"
|
|
|
+ :max="10000000000"
|
|
|
+ :precision="2"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="当地政府投入(万元)" prop="ddzftr">
|
|
|
+ <number
|
|
|
+ placeholder="当地政府投入(万元)"
|
|
|
+ v-model.sync="form.ddzftr"
|
|
|
+ :min="0"
|
|
|
+ :max="10000000000"
|
|
|
+ :precision="2"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="自筹资金(万元)" prop="zczj">
|
|
|
+ <number
|
|
|
+ placeholder="自筹资金(万元)"
|
|
|
+ v-model.sync="form.zczj"
|
|
|
+ :min="0"
|
|
|
+ :max="10000000000"
|
|
|
+ :precision="2"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="申请省级支持资金(万元)" prop="sqsjzczj">
|
|
|
+ <number
|
|
|
+ placeholder="申请省级支持资金(万元)"
|
|
|
+ v-model.sync="form.sqsjzczj"
|
|
|
+ :min="0"
|
|
|
+ :max="10000000000"
|
|
|
+ :precision="2"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="附件清单" prop="fjFirst">
|
|
|
+ <file-upload v-model="form.fjFirst" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="" prop="fjSecond">
|
|
|
+ <file-upload v-model="form.fjSecond" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="" prop="fjThird">
|
|
|
+ <file-upload v-model="form.fjThird" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="" prop="fjFourth">
|
|
|
+ <file-upload v-model="form.fjFourth" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="" prop="fjFifth">
|
|
|
+ <file-upload v-model="form.fjFifth" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="" prop="fjSixth">
|
|
|
+ <file-upload v-model="form.fjSixth" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="" prop="fjSeventh">
|
|
|
+ <file-upload v-model="form.fjSeventh" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="" prop="fjEighth">
|
|
|
+ <file-upload v-model="form.fjEighth" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="民政部门审核结果" prop="mzShjg">
|
|
|
+ <el-select v-model="form.mzShjg" placeholder="请选择民政部门审核结果">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.CZ002"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="民政部门审核意见" prop="mzShyj">
|
|
|
+ <el-input
|
|
|
+ v-model="form.mzShyj"
|
|
|
+ type="textarea"
|
|
|
+ maxlength="200"
|
|
|
+ show-word-limit
|
|
|
+ placeholder="请输入民政部门审核意见"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="民政部门审核时间" prop="mzShsj">
|
|
|
+ <el-date-picker
|
|
|
+ clearable
|
|
|
+ v-model="form.mzShsj"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyyMMdd"
|
|
|
+ placeholder="请选择民政部门审核时间"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <!-- <el-form-item label="财政部门审核结果" prop="czShjg">
|
|
|
+ <el-select v-model="form.czShjg" placeholder="请选择财政部门审核结果">
|
|
|
+ <el-option
|
|
|
+ v-for="dict in dict.type.CZ002"
|
|
|
+ :key="dict.value"
|
|
|
+ :label="dict.label"
|
|
|
+ :value="dict.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="财政部门审核意见" prop="czShyj">
|
|
|
+ <el-input
|
|
|
+ v-model="form.czShyj"
|
|
|
+ type="textarea"
|
|
|
+ maxlength="200"
|
|
|
+ show-word-limit
|
|
|
+ placeholder="请输入财政部门审核意见"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-form-item label="财政部门审核时间" prop="czShsj">
|
|
|
+ <el-date-picker
|
|
|
+ clearable
|
|
|
+ v-model="form.czShsj"
|
|
|
+ type="date"
|
|
|
+ value-format="yyyyMMdd"
|
|
|
+ placeholder="请选择财政部门审核时间"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item> -->
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="submitForm"
|
|
|
+ :loading="submitFormLoading"
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
+ <el-button @click="cancel">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import {
|
|
|
+ addJgjs,
|
|
|
+ delJgjs,
|
|
|
+ getJgjs,
|
|
|
+ listJgjsSh,
|
|
|
+ updateJgjs,
|
|
|
+} from "@/api/business/xmsb/jgjs";
|
|
|
+import { chineseOne, idCard, Regular } from "@/utils/regular";
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: "Jgjs",
|
|
|
+ dicts: ["CZ002", "XZ098", "XZ106"],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ // 遮罩层
|
|
|
+ loading: true,
|
|
|
+ submitFormLoading: false,
|
|
|
+ xzqh: [],
|
|
|
+ // 选中数组
|
|
|
+ ids: [],
|
|
|
+ // 非单个禁用
|
|
|
+ single: true,
|
|
|
+ // 非多个禁用
|
|
|
+ multiple: true,
|
|
|
+ // 显示搜索条件
|
|
|
+ showSearch: true,
|
|
|
+ // 总条数
|
|
|
+ total: 0,
|
|
|
+ // 项目申报公办养老机构建设项目信息表格数据
|
|
|
+ jgjsList: [],
|
|
|
+ // 弹出层标题
|
|
|
+ title: "",
|
|
|
+ // 是否显示弹出层
|
|
|
+ open: false,
|
|
|
+ // 查询参数
|
|
|
+ queryParams: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ },
|
|
|
+ // 表单参数
|
|
|
+ form: {},
|
|
|
+ // 表单校验
|
|
|
+ rules: {
|
|
|
+ xzqhId: [{ required: true, message: "地区不能为空", trigger: "blur" }],
|
|
|
+ xmdw: [
|
|
|
+ { required: true, message: "项目单位不能为空", trigger: "blur" },
|
|
|
+ { max: 100, message: "项目单位不能超过100个字符", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ dwdz: [
|
|
|
+ { required: true, message: "单位地址不能为空", trigger: "blur" },
|
|
|
+ { max: 100, message: "单位地址不能超过100个字符", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ xmxz: [
|
|
|
+ { required: true, message: "项目性质不能为空", trigger: "change" },
|
|
|
+ ],
|
|
|
+ fzr: [
|
|
|
+ { required: true, message: "负责人不能为空", trigger: "blur" },
|
|
|
+ { max: 72, message: "负责人不能超过72个字符", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ sjh: [
|
|
|
+ { required: true, message: "手机号不能为空", trigger: "blur" },
|
|
|
+ {
|
|
|
+ pattern: Regular.Mobile,
|
|
|
+ message: "手机号格式不对",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ jzmj: [
|
|
|
+ { required: true, message: "建筑面积不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ cwsl: [
|
|
|
+ { required: true, message: "床位数量不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ rzrs: [
|
|
|
+ { required: true, message: "入住老年人数不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ tkgyrs: [
|
|
|
+ { required: true, message: "特困供养人数不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ snbsn: [
|
|
|
+ { required: true, message: "失能半失能不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ zlrs: [
|
|
|
+ { required: true, message: "自理人数不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ jsqks: [
|
|
|
+ { required: true, message: "建设期开始不能为空", trigger: "blur" },
|
|
|
+ { max: 8, message: "建设期开始不能超过8个字符", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ jsqjs: [
|
|
|
+ { required: true, message: "建设期结束不能为空", trigger: "blur" },
|
|
|
+ { max: 8, message: "建设期结束不能超过8个字符", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ yszj: [
|
|
|
+ { required: true, message: "预算资金不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ ddzftr: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "资金来源(当地政府投入)不能为空",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ zczj: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "资金来源(自筹资金)不能为空",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ sqsjzczj: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: "资金来源(申请省级支持资金)不能为空",
|
|
|
+ trigger: "blur",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ mzShjg: [
|
|
|
+ { required: true, message: "审核结果不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ mzShsj: [
|
|
|
+ { required: true, message: "审核时间不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ mzShyj: [
|
|
|
+ { required: true, message: "审核意见不能为空", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ /** 查询项目申报公办养老机构建设项目信息列表 */
|
|
|
+ getList() {
|
|
|
+ this.loading = true;
|
|
|
+ listJgjsSh(this.queryParams).then((response) => {
|
|
|
+ this.jgjsList = response.rows;
|
|
|
+ this.total = response.total;
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ // 取消按钮
|
|
|
+ cancel() {
|
|
|
+ this.open = false;
|
|
|
+ this.reset();
|
|
|
+ },
|
|
|
+ // 表单重置
|
|
|
+ reset() {
|
|
|
+ this.submitFormLoading = false;
|
|
|
+ this.form = {
|
|
|
+ id: null,
|
|
|
+ xzqhId: null,
|
|
|
+ xmdw: null,
|
|
|
+ dwdz: null,
|
|
|
+ xmxz: null,
|
|
|
+ fzr: null,
|
|
|
+ sjh: null,
|
|
|
+ jzmj: null,
|
|
|
+ cwsl: null,
|
|
|
+ rzrs: null,
|
|
|
+ tkgyrs: null,
|
|
|
+ snbsn: null,
|
|
|
+ zlrs: null,
|
|
|
+ jsqks: null,
|
|
|
+ jsqjs: null,
|
|
|
+ yszj: null,
|
|
|
+ ddzftr: null,
|
|
|
+ zczj: null,
|
|
|
+ sqsjzczj: null,
|
|
|
+ fjFirst: null,
|
|
|
+ fjSecond: null,
|
|
|
+ fjThird: null,
|
|
|
+ fjFourth: null,
|
|
|
+ fjFifth: null,
|
|
|
+ fjSixth: null,
|
|
|
+ fjSeventh: null,
|
|
|
+ fjEighth: null,
|
|
|
+ mzShjg: null,
|
|
|
+ mzShyj: null,
|
|
|
+ mzShsj: null,
|
|
|
+ czShjg: null,
|
|
|
+ czShyj: null,
|
|
|
+ czShsj: null,
|
|
|
+ state: null,
|
|
|
+ };
|
|
|
+ this.resetForm("form");
|
|
|
+ },
|
|
|
+ /** 搜索按钮操作 */
|
|
|
+ handleQuery() {
|
|
|
+ this.queryParams.pageNum = 1;
|
|
|
+ if (this.xzqh) {
|
|
|
+ this.queryParams.xzqhId = this.xzqh[this.xzqh.length - 1];
|
|
|
+ } else {
|
|
|
+ this.queryParams.xzqhId = null;
|
|
|
+ }
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ /** 重置按钮操作 */
|
|
|
+ resetQuery() {
|
|
|
+ this.resetForm("queryForm");
|
|
|
+ this.xzqh = [];
|
|
|
+ this.handleQuery();
|
|
|
+ },
|
|
|
+ // 多选框选中数据
|
|
|
+ handleSelectionChange(selection) {
|
|
|
+ this.ids = selection.map((item) => item.id);
|
|
|
+ this.single = selection.length !== 1;
|
|
|
+ this.multiple = !selection.length;
|
|
|
+ },
|
|
|
+ /** 新增按钮操作 */
|
|
|
+ handleAdd() {
|
|
|
+ this.reset();
|
|
|
+ this.open = true;
|
|
|
+ this.title = "添加项目申报公办养老机构建设项目信息";
|
|
|
+ },
|
|
|
+ /** 修改按钮操作 */
|
|
|
+ handleUpdate(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.open = true;
|
|
|
+ this.title = "修改项目申报公办养老机构建设项目信息";
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 提交按钮 */
|
|
|
+ submitForm() {
|
|
|
+ this.$refs["form"].validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ this.submitFormLoading = true;
|
|
|
+ if (this.form.id != null) {
|
|
|
+ /****** sks 需要改动的地方 start ******/
|
|
|
+ let formData = this.comparisonObject(this.form, this.copyForm);
|
|
|
+ if (formData) {
|
|
|
+ updateJgjs({ ...formData, id: this.form.id })
|
|
|
+ .then((response) => {
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
+ this.open = false;
|
|
|
+ this.jgjsList = this.dataReplacement(
|
|
|
+ this.jgjsList,
|
|
|
+ this.form.id,
|
|
|
+ formData
|
|
|
+ );
|
|
|
+ // this.getList();
|
|
|
+ })
|
|
|
+ .finally(() => (this.submitFormLoading = false));
|
|
|
+ } else {
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
+ this.open = false;
|
|
|
+ this.submitFormLoading = false;
|
|
|
+ }
|
|
|
+ /****** sks 需要改动的地方 end ******/
|
|
|
+ } else {
|
|
|
+ addJgjs(this.form)
|
|
|
+ .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++;
|
|
|
+ /****** sks 需要改动的地方 end ******/
|
|
|
+ })
|
|
|
+ .finally(() => (this.submitFormLoading = false));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ /** 删除按钮操作 */
|
|
|
+ handleDelete(row, index) {
|
|
|
+ const ids = row.id || this.ids;
|
|
|
+ const xh =
|
|
|
+ (this.queryParams.pageNum - 1) * this.queryParams.pageSize + index + 1;
|
|
|
+ this.$modal
|
|
|
+ .confirm(
|
|
|
+ "确认删除" + this.changeDelData(row, "id", "ID值", xh) + "的记录?"
|
|
|
+ )
|
|
|
+ .then(function () {
|
|
|
+ return delJgjs(ids);
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ // this.getList();
|
|
|
+ /****** sks 需要改动的地方 ind参数需要传进来 start ******/
|
|
|
+ this.jgjsList.splice(index, 1);
|
|
|
+ if (this.jgjsList.length === 0) {
|
|
|
+ this.getList();
|
|
|
+ } else {
|
|
|
+ this.total--;
|
|
|
+ }
|
|
|
+ this.$modal.msgSuccess("删除成功");
|
|
|
+ /****** sks 需要改动的地方 end ******/
|
|
|
+ })
|
|
|
+ .catch(() => {});
|
|
|
+ },
|
|
|
+ /** 导出按钮操作 */
|
|
|
+ handleExport() {
|
|
|
+ this.download(
|
|
|
+ "business/jgjs/export",
|
|
|
+ {
|
|
|
+ ...this.queryParams,
|
|
|
+ },
|
|
|
+ `jgjs_${new Date().getTime()}.xlsx`
|
|
|
+ );
|
|
|
+ },
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|