src/views/project/donateannex/index.vue
@@ -135,7 +135,7 @@ @selection-change="handleSelectionChange" > <el-table-column type="selection" width="55" align="center" /> <el-table-column <el-table-column label="捐献编号" align="center" prop="donorno" @@ -148,36 +148,29 @@ width="120" > <template slot-scope="scope"> <dict-tag :options="dict.type.sys_DonationStatus" :value="scope.row.recordstate" /> <div v-if="!scope.terminationCase"> <dict-tag :options="dict.type.sys_DonationStatus" :value="scope.row.recordstate" /> </div> <div v-else>任务中止</div> </template> </el-table-column> <el-table-column label="姓名" align="center" prop="name" width="120" /> <el-table-column label="性别" align="center" prop="sex" width="120"> <el-table-column label="姓名" align="center" prop="name" width="120" /> <el-table-column label="性别" align="center" prop="sex" width="120"> <template slot-scope="scope"> <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.sex" /> </template> </el-table-column> <el-table-column label="年龄" align="center" prop="age" width="120" /> <el-table-column label="年龄" align="center" prop="age" width="120" /> <el-table-column label="医疗机构" align="center" prop="treatmenthospitalname" width="180" /> <el-table-column label="报告人" align="center" @@ -267,11 +260,14 @@ <el-input v-model="form.donorno" placeholder="请输入捐献者编号" /> </el-form-item> <el-form-item label="姓名" prop="name"> <el-input disabled v-model="form.name" placeholder="请输入捐献者姓名" /> </el-form-item> <el-form-item label="姓名" prop="name"> <el-input disabled v-model="form.name" placeholder="请输入捐献者姓名" /> </el-form-item> <el-table :data="attachmentTableData" style="width: 100%; margin-bottom: 20px" @@ -334,7 +330,7 @@ delDonateannex, addDonateannex, updateDonateannex, exportDonateannex, exportDonateannex } from "@/api/project/donateannex"; import Li_area_select from "@/components/Address"; import OrgSelecter from "@/views/project/components/orgselect"; @@ -350,7 +346,7 @@ // exportProvincemessage, } from "@/api/project/donatebaseinfo"; export default { components: { components: { Li_area_select, OrgSelecter, AnnexUpload @@ -377,7 +373,7 @@ "sys_SelfWill", "sys_FamilyRelation", "sys_Organ", "sys_organstate", "sys_organstate" ], data() { return { @@ -401,14 +397,14 @@ title: "", // 是否显示弹出层 open: false, donorno:"", donorno: "", // 查询参数 queryParams: { pageNum: 1, pageSize: 10, donorno: null, annexname: null, annexno: null, annexno: null }, // 表单参数 form: {}, @@ -426,45 +422,45 @@ annexname: "捐献者身份证明", annexno: "0001", annexurl: "", fileList: [], fileList: [] }, { annexname: "捐献者亲属身份证明", annexno: "0002", annexurl: "", fileList: [], }, ], fileList: [] } ] }, { annexname: "捐献者及亲属关系证明", annexno: "002", annexurl: "", fileList: [], fileList: [] }, { annexname: "捐献者病情简介", annexno: "003", annexurl: "", fileList: [], fileList: [] }, { annexname: "捐献确认登记表", annexno: "004", annexurl: "", fileList: [], fileList: [] }, { annexname: "人体器官捐献人员评估资质(可选)", annexno: "005", annexurl: "", fileList: [], fileList: [] }, { annexname: "公民逝世后人体器官捐献告知书", annexno: "006", annexurl: "", fileList: [], fileList: [] }, { annexname: "DBD/DCD可行性评估报告", @@ -482,7 +478,7 @@ annexname: "人体器官捐献病情评估表(DBD)", annexno: "00711", annexurl: "", fileList: [], fileList: [] }, { annexname: "脑死亡判定符合报告:符合其中两项即可", @@ -494,29 +490,29 @@ annexname: "脑电图报告", annexno: "007121", annexurl: "", fileList: [], fileList: [] }, { annexname: "短潜伏期体感诱发电位", annexno: "007122", annexurl: "", fileList: [], fileList: [] }, { annexname: "经颅多普勒超声报告", annexno: "007123", annexurl: "", fileList: [], }, ], fileList: [] } ] }, { annexname: "人体器官捐献病情评估意见(DBD)", annexno: "00713", annexurl: "", fileList: [], }, ], fileList: [] } ] }, { annexname: "(二)DCD可行性评估报告", @@ -528,29 +524,29 @@ annexname: "人体器官捐献病情评估表(DCD)", annexno: "00721", annexurl: "", fileList: [], fileList: [] }, { annexname: "撤除心肺支持60分钟内死亡风险评估单", annexno: "00722", annexurl: "", fileList: [], fileList: [] }, { annexname: "人体器官捐献病情评估意见(DCD)", annexno: "00723", annexurl: "", fileList: [], }, ], }, ], }, fileList: [] } ] } ] } ], // 上传的图片服务器地址 uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", headers: { Authorization: "Bearer " + getToken(), Authorization: "Bearer " + getToken() }, //各份附件所在attachmentTableData数组中的位置 attachJsonPosition: [ @@ -560,7 +556,7 @@ annexno: "001", annexurl: "", level: 2, position: [0, 0], position: [0, 0] }, { id: null, @@ -568,7 +564,7 @@ annexno: "002", annexurl: "", level: 2, position: [0, 1], position: [0, 1] }, { id: null, @@ -576,7 +572,7 @@ annexno: "001", annexurl: "", level: 1, position: [1], position: [1] }, { id: null, @@ -584,7 +580,7 @@ annexno: "001", annexurl: "", level: 1, position: [2], position: [2] }, { id: null, @@ -592,7 +588,7 @@ annexno: "001", annexurl: "", level: 1, position: [3], position: [3] }, { id: null, @@ -600,7 +596,7 @@ annexno: "001", annexurl: "", level: 1, position: [4], position: [4] }, { id: null, @@ -608,7 +604,7 @@ annexno: "001", annexurl: "", level: 1, position: [5], position: [5] }, { id: null, @@ -616,7 +612,7 @@ annexno: "001", annexurl: "", level: 3, position: [6, 0, 0], position: [6, 0, 0] }, { id: null, @@ -624,7 +620,7 @@ annexno: "001", annexurl: "", level: 4, position: [6, 0, 1, 0], position: [6, 0, 1, 0] }, { id: null, @@ -632,7 +628,7 @@ annexno: "001", annexurl: "", level: 4, position: [6, 0, 1, 1], position: [6, 0, 1, 1] }, { id: null, @@ -640,7 +636,7 @@ annexno: "001", annexurl: "", level: 4, position: [6, 0, 1, 2], position: [6, 0, 1, 2] }, { id: null, @@ -648,7 +644,7 @@ annexno: "001", annexurl: "", level: 3, position: [6, 0, 2], position: [6, 0, 2] }, { id: null, @@ -656,7 +652,7 @@ annexno: "001", annexurl: "", level: 3, position: [6, 1, 0], position: [6, 1, 0] }, { id: null, @@ -664,7 +660,7 @@ annexno: "001", annexurl: "", level: 3, position: [6, 1, 1], position: [6, 1, 1] }, { id: null, @@ -672,13 +668,13 @@ annexno: "001", annexurl: "", level: 3, position: [6, 1, 2], }, position: [6, 1, 2] } ], //捐赠编号 donorno: "0001", infoid: "8", openType: "edit", openType: "edit" }; }, created() { @@ -688,8 +684,8 @@ /** 查询捐献附件列表 */ getList() { this.loading = true; listnewDonateannex(this.queryParams).then((response) => { console.log("新数据",response); listnewDonateannex(this.queryParams).then(response => { console.log("新数据", response); this.donateannexList = response.rows; console.log(this.donateannexList.donorNo); this.total = response.total; @@ -700,12 +696,13 @@ cancel() { this.open = false; this.reset(); }, curCase: { donorno: "", name: "", registerAddresss:"", infoid: "", }, }, curCase: { donorno: "", name: "", registerAddresss: "", infoid: "" }, // 表单重置 reset() { this.form = { @@ -785,7 +782,7 @@ majorrelatives: null, familyrelations: null, acquisitiontissueno: null, acquisitiontissuename: null, acquisitiontissuename: null }; this.resetForm("form"); }, @@ -801,7 +798,7 @@ }, // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map((item) => item.id); this.ids = selection.map(item => item.id); this.single = selection.length !== 1; this.multiple = !selection.length; }, @@ -815,10 +812,10 @@ let searchParam = { donorno: this.donorno, infoid: this.infoid, isdel: 0, isdel: 0 }; this.loading = true; listDonateannex(searchParam).then((response) => { listDonateannex(searchParam).then(response => { //this.donateannexList = response.rows; this.loading = false; let dataList = response.rows; @@ -837,7 +834,7 @@ const list = Array.isArray(tempUrl) ? tempUrl : tempUrl.split(","); tempfileList = list.map((item) => { tempfileList = list.map(item => { if (typeof item === "string") { item = { name: item, url: item }; } @@ -849,10 +846,12 @@ let tempPositionArr = this.attachJsonPosition[k].position; let tempData; if (this.attachJsonPosition[k].level == 1) { this.attachmentTableData[tempPositionArr[0]].fileList = tempfileList; this.attachmentTableData[tempPositionArr[0]].annexurl = tempUrl; this.attachmentTableData[ tempPositionArr[0] ].fileList = tempfileList; this.attachmentTableData[ tempPositionArr[0] ].annexurl = tempUrl; tempData = this.attachmentTableData[tempPositionArr[0]]; } else if (this.attachJsonPosition[k].level == 2) { this.attachmentTableData[tempPositionArr[0]].children[ @@ -861,10 +860,8 @@ this.attachmentTableData[tempPositionArr[0]].children[ tempPositionArr[1] ].annexurl = tempUrl; tempData = this.attachmentTableData[tempPositionArr[0]].children[ tempPositionArr[1] ]; tempData = this.attachmentTableData[tempPositionArr[0]] .children[tempPositionArr[1]]; } else if (this.attachJsonPosition[k].level == 3) { this.attachmentTableData[tempPositionArr[0]].children[ tempPositionArr[1] @@ -872,10 +869,8 @@ this.attachmentTableData[tempPositionArr[0]].children[ tempPositionArr[1] ].children[tempPositionArr[2]].annexurl = tempUrl; tempData = this.attachmentTableData[tempPositionArr[0]].children[ tempPositionArr[1] ].children[tempPositionArr[2]]; tempData = this.attachmentTableData[tempPositionArr[0]] .children[tempPositionArr[1]].children[tempPositionArr[2]]; } else if (this.attachJsonPosition[k].level == 4) { this.attachmentTableData[tempPositionArr[0]].children[ tempPositionArr[1] @@ -887,10 +882,9 @@ ].children[tempPositionArr[2]].children[ tempPositionArr[3] ].annexurl = tempUrl; tempData = this.attachmentTableData[tempPositionArr[0]].children[ tempPositionArr[1] ].children[tempPositionArr[2]].children[tempPositionArr[3]]; tempData = this.attachmentTableData[tempPositionArr[0]] .children[tempPositionArr[1]].children[tempPositionArr[2]] .children[tempPositionArr[3]]; } } } @@ -905,9 +899,9 @@ handleUpdate(row) { this.reset(); const id = row.id || this.ids; getDonatebaseinfo(id).then((response) => { getDonatebaseinfo(id).then(response => { this.form = response.data; console.log("form:",this.form); console.log("form:", this.form); // this.form.diseasetype = this.form.diseasetype.split(","); // this.form.infectious = this.form.infectious.split(","); // this.form.selfwill = this.form.selfwill.split(","); @@ -924,16 +918,16 @@ if (this.openType == "edit") { //循环数组,单个上传,后续改为批量上传 for (let i = 0; i < this.attachJsonPosition.length; i++) { let updateParam = { let updateParam = { id: this.attachJsonPosition[i].id, infoid: this.infoid, donorno: this.donorno, delFlag: 0, annexname: this.attachJsonPosition[i].annexname, annexno: this.attachJsonPosition[i].annexno, annexurl: this.attachJsonPosition[i].annexurl, annexurl: this.attachJsonPosition[i].annexurl }; updateDonateannex(updateParam).then((response) => { updateDonateannex(updateParam).then(response => { this.$modal.msgSuccess("修改成功"); }); } @@ -946,9 +940,9 @@ delFlag: 0, annexname: this.attachJsonPosition[i].annexname, annexno: this.attachJsonPosition[i].annexno, annexurl: this.attachJsonPosition[i].annexurl, annexurl: this.attachJsonPosition[i].annexurl }; addDonateannex(addParam).then((response) => { addDonateannex(addParam).then(response => { this.$modal.msgSuccess("新增成功"); //this.open = false; }); @@ -961,7 +955,7 @@ const ids = row.id || this.ids; this.$modal .confirm('是否确认删除捐献基础编号为"' + ids + '"的数据项?') .then(function () { .then(function() { return delDonatebaseinfo(ids); }) .then(() => { @@ -979,7 +973,7 @@ this.exportLoading = true; return exportDonatebaseinfo(queryParams); }) .then((response) => { .then(response => { this.$download.name(response.msg); this.exportLoading = false; }) @@ -1044,7 +1038,7 @@ } } } else { console.log(response.msg);; console.log(response.msg); } }, @@ -1080,8 +1074,9 @@ this.attachJsonPosition[positionIndex].annexurl = attachmentFileInfo.annexurl; } else if (position.level == 2) { this.attachmentTableData[positionArr[0]].children[positionArr[1]] = attachmentFileInfo; this.attachmentTableData[positionArr[0]].children[ positionArr[1] ] = attachmentFileInfo; this.attachJsonPosition[positionIndex].annexurl = attachmentFileInfo.annexurl; } else if (position.level == 3) { @@ -1108,7 +1103,7 @@ strs += list[i].url + separator; } return strs != "" ? strs.substr(0, strs.length - 1) : ""; }, }, } } }; </script> src/views/project/donatebaseinfo/index.vue
@@ -1,31 +1,63 @@ <template> <div class="app-container"> <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="70px"> <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="70px" > <el-row :gutter="8"> <el-col :span="5"> <el-form-item label="姓名" prop="name"> <el-input v-model="queryParams.name" placeholder="请输入姓名" clearable size="small" @keyup.enter.native="handleQuery" /> <el-input v-model="queryParams.name" placeholder="请输入姓名" clearable size="small" @keyup.enter.native="handleQuery" /> </el-form-item> </el-col> <el-col :span="5"> <el-form-item align="left" label="医疗机构" prop="treatmenthospitalname"> <org-selecter ref="orgSelecter" :org-type="'3'" v-model="queryParams.treatmenthospitalno" @keyup.enter.native="handleQuery" /> <el-form-item align="left" label="医疗机构" prop="treatmenthospitalname" > <org-selecter ref="orgSelecter" :org-type="'3'" v-model="queryParams.treatmenthospitalno" @keyup.enter.native="handleQuery" /> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="捐献地市"> <el-select v-model="queryParams.city" placeholder="请选择地市"> <el-option v-for="item in provinceData" :key="item.value" :label="item.label" :value="item.value"> <el-option v-for="item in provinceData" :key="item.value" :label="item.label" :value="item.value" > </el-option> </el-select> </el-form-item> </el-col> <el-col :span="9"> <el-form-item label="日期"> <el-date-picker style="width: 100%" v-model="selecttime" type="monthrange" range-separator="至" start-placeholder="开始月份" end-placeholder="结束月份" value-format="yyyy-MM-dd" @change="getTimeList"> <el-date-picker style="width: 100%" v-model="selecttime" type="monthrange" range-separator="至" start-placeholder="开始月份" end-placeholder="结束月份" value-format="yyyy-MM-dd" @change="getTimeList" > </el-date-picker> </el-form-item> </el-col> @@ -33,16 +65,33 @@ <el-row :gutter="8"> <el-col :span="5"> <el-form-item label="捐献进度" prop="recordstate"> <el-select v-model="queryParams.recordstate" placeholder="请选择当前进度" clearable size="small"> <el-option v-for="dict in dict.type.sys_DonationStatus" :key="dict.value" :label="dict.label" :value="dict.value" /> <el-select v-model="queryParams.recordstate" placeholder="请选择当前进度" clearable size="small" > <el-option v-for="dict in dict.type.sys_DonationStatus" :key="dict.value" :label="dict.label" :value="dict.value" /> </el-select> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="报告人"> <el-select v-model="queryParams.reporterno" placeholder="请选择报告人"> <el-option v-for="item in reportlist" :key="item.index" :label="item.reportername" :value="item.reporterno"> <el-select v-model="queryParams.reporterno" placeholder="请选择报告人" > <el-option v-for="item in reportlist" :key="item.index" :label="item.reportername" :value="item.reporterno" > </el-option> </el-select> </el-form-item> @@ -50,22 +99,40 @@ <el-col :span="9"> <el-form-item label="籍贯"> <div> <li_area_select ref="areaSelect" v-model="searchAddress"></li_area_select> <li_area_select ref="areaSelect" v-model="searchAddress" ></li_area_select> </div> </el-form-item> </el-col> <el-col :span="4"> <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-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-col> </el-row> </el-form> <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['project:donatebaseinfo:add']">新增</el-button> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['project:donatebaseinfo:add']" >新增</el-button > </el-col> <!-- <el-col :span="1.5"> <el-button @@ -81,42 +148,91 @@ </el-col> --> <el-col :span="1.5"> <el-button type="warning" plain icon="el-icon-download" size="mini" :loading="exportLoading" @click="handleExport" v-hasPermi="['project:donatebaseinfo:export']">导出</el-button> <el-button type="warning" plain icon="el-icon-download" size="mini" :loading="exportLoading" @click="handleExport" v-hasPermi="['project:donatebaseinfo:export']" >导出</el-button > </el-col> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" ></right-toolbar> </el-row> <el-table v-loading="loading" :data="donatebaseinfoList" @selection-change="handleSelectionChange" border :default-sort="{ prop: 'donatetime', order: 'descending' }"> <el-table v-loading="loading" :data="donatebaseinfoList" @selection-change="handleSelectionChange" border :default-sort="{ prop: 'donatetime', order: 'descending' }" > <!-- <el-table-column label="报告时间" align="center" prop="id" /> --> <!-- <el-table-column type="selection" width="55" align="center" /> --> <el-table-column label="案例时间" align="center" prop="donatetime" width="100"> <el-table-column label="案例时间" align="center" prop="donatetime" width="100" > <template slot-scope="scope"> <span>{{ parseTime(scope.row.donatetime, "{y}-{m}-{d}") }}</span> </template> </el-table-column> <el-table-column label="捐献编号" align="center" prop="donorno" width="200" /> <el-table-column label="捐献编号" align="center" prop="donorno" width="200" /> <el-table-column label="姓名" align="center" prop="name" width="100" /> <el-table-column label="性别" align="center" prop="sex" width="100"> <template slot-scope="scope"> <dict-tag :options="dict.type.sys_user_sex" :value="parseInt(scope.row.sex)" /> <dict-tag :options="dict.type.sys_user_sex" :value="parseInt(scope.row.sex)" /> </template> </el-table-column> <el-table-column label="年龄" align="center" prop="age" width="100" /> <el-table-column label="医疗机构" align="center" prop="treatmenthospitalname" /> <el-table-column label="医疗机构" align="center" prop="treatmenthospitalname" /> <el-table-column label="血型" align="center" prop="bloodtype" width="100"> <template slot-scope="scope"> <dict-tag :options="dict.type.sys_BloodType" :value="scope.row.bloodtype" /> <dict-tag :options="dict.type.sys_BloodType" :value="scope.row.bloodtype" /> </template> </el-table-column> <el-table-column label="捐献类别" align="center" prop="donationcategory" width="150"> <el-table-column label="捐献类别" align="center" prop="donationcategory" width="150" > <template slot-scope="scope"> <dict-tag :options="dict.type.sys_DonationCategory" :value="scope.row.donationcategory" /> <dict-tag :options="dict.type.sys_DonationCategory" :value="scope.row.donationcategory" /> </template> </el-table-column> <el-table-column label="报告人" align="center" prop="reportername" width="100" /> <el-table-column label="报告人" align="center" prop="reportername" width="100" /> <!-- <el-table-column label="现所在地市" @@ -138,22 +254,57 @@ </template> </el-table-column> --> <el-table-column label="捐献进度" align="center" prop="workflow" width="120"> <el-table-column label="捐献进度" align="center" prop="workflow" width="120" > <template slot-scope="scope"> <dict-tag :options="dict.type.sys_donornode" :value="scope.row.workflow" /> <div v-if="!scope.row.terminationCase"> <dict-tag :options="dict.type.sys_donornode" :value="scope.row.workflow" /> </div> <div v-else>任务中止</div> </template> </el-table-column> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" > <template slot-scope="scope"> <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['project:donatebaseinfo:edit']">详情</el-button> <el-button v-if="scope.row.recordstate == 0" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['project:donatebaseinfo:remove']">删除</el-button> <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['project:donatebaseinfo:edit']" >详情</el-button > <el-button v-if="scope.row.recordstate == 0" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['project:donatebaseinfo:remove']" >删除</el-button > <!-- <el-button v-if="scope.row.recordstate == 0 || scope.row.recordstate == 3" size="mini" type="text" icon="el-icon-thumb" @click="handleapproval(scope.row)">提交</el-button> --> <el-button size="mini" type="text" icon="el-icon-refrigerator" @click="handledownload(scope.row)">下载</el-button> <el-button size="mini" type="text" icon="el-icon-refrigerator" @click="handledownload(scope.row)" >下载</el-button > <!-- <el-button size="mini" type="text" icon="el-icon-edit" @click="handletermination(scope.row)" v-hasPermi="['project:donatebaseinfo:edit']">{{ scope.row.recordstate == 99 ? "恢复": "终止" }}</el-button> @@ -161,16 +312,35 @@ </template> </el-table-column> </el-table> <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" /> <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" /> <!-- 添加或修改捐献基础对话框 --> <el-dialog :title="title" align="center" :visible.sync="open" :close-on-click-modal="false" width="1100px"> <el-form ref="form" :model="form" :rules="rules" label-width="130px" label-position="right"> <div style=" <el-dialog :title="title" align="center" :visible.sync="open" :close-on-click-modal="false" width="1100px" > <el-form ref="form" :model="form" :rules="rules" label-width="130px" label-position="right" > <div style=" border-bottom: 1px solid #ddd; border-top: 1px solid #ddd; padding-right: 60px; "> " > <el-row style="margin-top: 40px"> <el-col :span="8"> <el-form-item label="捐献编号" prop="donorno"> @@ -178,13 +348,24 @@ </el-form-item> </el-col> <el-col :span="8"> <el-form-item align="left" label="医疗机构" prop="treatmenthospitalno"> <org-selecter ref="addOrgSelect" :org-type="'3'" v-model="form.treatmenthospitalno" /> <el-form-item align="left" label="医疗机构" prop="treatmenthospitalno" > <org-selecter ref="addOrgSelect" :org-type="'3'" v-model="form.treatmenthospitalno" /> </el-form-item> </el-col> <el-col :span="8"> <el-form-item label="科室" prop="treatmentdeptno"> <el-input v-model="form.treatmentdeptname" placeholder="请输入科室" /> <el-input v-model="form.treatmentdeptname" placeholder="请输入科室" /> </el-form-item> </el-col> </el-row> @@ -197,8 +378,12 @@ <el-col :span="6"> <el-form-item label="民族" prop="nation"> <el-select v-model="form.nation" placeholder="请选择民族"> <el-option v-for="dict in dict.type.sys_nation" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> <el-option v-for="dict in dict.type.sys_nation" :key="dict.value" :label="dict.label" :value="dict.value" ></el-option> </el-select> </el-form-item> </el-col> @@ -216,23 +401,40 @@ <el-row> <el-col :span="6"> <el-form-item label="证件类型" prop="idcardtype"> <el-select v-model="form.idcardtype" placeholder="请选择证件类型"> <el-option v-for="dict in dict.type.sys_IDType" :key="dict.value" :label="dict.label" :value="parseInt(dict.value)"></el-option> <el-select v-model="form.idcardtype" placeholder="请选择证件类型" > <el-option v-for="dict in dict.type.sys_IDType" :key="dict.value" :label="dict.label" :value="parseInt(dict.value)" ></el-option> </el-select> </el-form-item> </el-col> <el-col :span="6"> <el-form-item label="证件号码" prop="idcardno"> <el-input style="width: 174px" ref="updateBSvalue" class="sfzcode" v-model="form.idcardno" placeholder="请输入证件号码" @blur="updateMessage" /> <el-input style="width: 174px" ref="updateBSvalue" class="sfzcode" v-model="form.idcardno" placeholder="请输入证件号码" @blur="updateMessage" /> </el-form-item> </el-col> <el-col :span="6"> <el-form-item label="性别" prop="sex"> <el-select v-model="form.sex" placeholder="请输入性别"> <el-option v-for="dict in dict.type.sys_user_sex" :key="dict.label" :label="dict.label" :value="parseInt(dict.value)"></el-option> <el-option v-for="dict in dict.type.sys_user_sex" :key="dict.label" :label="dict.label" :value="parseInt(dict.value)" ></el-option> </el-select> </el-form-item> </el-col> @@ -245,24 +447,39 @@ <el-row> <el-col :span="6"> <el-form-item label="出生日期" prop="birthday"> <el-date-picker clearable size="small" v-model="form.birthday" type="date" style="width: 174px" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择出生日期"> <el-date-picker clearable size="small" v-model="form.birthday" type="date" style="width: 174px" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择出生日期" > </el-date-picker> </el-form-item> </el-col> <el-col :span="6"> <el-form-item label="职业" prop="occupation"> <el-select v-model="form.occupation" placeholder="请选择职业"> <el-option v-for="dict in dict.type.sys_occupation" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> <el-option v-for="dict in dict.type.sys_occupation" :key="dict.value" :label="dict.label" :value="dict.value" ></el-option> </el-select> </el-form-item> </el-col> <el-col :span="6"> <el-form-item label="学历" prop="education"> <el-select v-model="form.education" placeholder="请选择学历"> <el-option v-for="dict in dict.type.sys_education" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> <el-option v-for="dict in dict.type.sys_education" :key="dict.value" :label="dict.label" :value="dict.value" ></el-option> </el-select> </el-form-item> </el-col> @@ -271,13 +488,19 @@ <el-col :span="12"> <el-form-item label="住址" prop="residenceaddress"> <div> <li_area_select ref="residenceSelect" v-model="residenceAddresss"></li_area_select> <li_area_select ref="residenceSelect" v-model="residenceAddresss" ></li_area_select> <!-- <div>{{defultAddress}}</div> --> </div> </el-form-item> </el-col> <el-col :span="11" :push="1"> <el-input v-model="form.residenceaddress" placeholder="请输入内容" /> <el-input v-model="form.residenceaddress" placeholder="请输入内容" /> </el-col> </el-row> @@ -285,22 +508,30 @@ <el-col :span="12"> <el-form-item label="现所在地" prop="registeraddress"> <div> <li_area_select ref="registerSelect" v-model="registerAddresss"></li_area_select> <li_area_select ref="registerSelect" v-model="registerAddresss" ></li_area_select> <!-- <div>{{defultAddress}}</div> --> </div> </el-form-item> </el-col> <el-col :span="11" :push="1"> <el-input v-model="form.registeraddress" placeholder="请输入内容" /> <el-input v-model="form.registeraddress" placeholder="请输入内容" /> </el-col> </el-row> </div> <div style=" <div style=" border-bottom: 1px solid #ddd; margin-top: 20px; padding-right: 60px; "> " > <el-row> <el-col :span="8"> <el-form-item label="住院号" prop="inpatientno"> @@ -309,7 +540,10 @@ </el-col> <el-col :span="16"> <el-form-item label="疾病诊断" prop="diagnosisname"> <el-input v-model="form.diagnosisname" placeholder="请输入疾病诊断名称" /> <el-input v-model="form.diagnosisname" placeholder="请输入疾病诊断名称" /> </el-form-item> </el-col> </el-row> @@ -317,16 +551,24 @@ <el-col :span="12"> <el-form-item align="left" label="血型" prop="bloodtype"> <el-radio-group v-model="form.bloodtype"> <el-radio v-for="dict in dict.type.sys_BloodType" :key="dict.value" :label="dict.value">{{ dict.label }}</el-radio> <el-radio v-for="dict in dict.type.sys_BloodType" :key="dict.value" :label="dict.value" >{{ dict.label }}</el-radio > </el-radio-group> </el-form-item> </el-col> <el-col :span="12" :pull="1"> <el-form-item label="Rh(D)" align="left" prop="rhyin"> <el-radio-group v-model="form.rhyin"> <el-radio v-for="dict in dict.type.sys_bloodtype_rhd" :key="dict.value" :label="dict.value">{{ dict.label }}</el-radio> <el-radio v-for="dict in dict.type.sys_bloodtype_rhd" :key="dict.value" :label="dict.value" >{{ dict.label }}</el-radio > </el-radio-group> </el-form-item> </el-col> @@ -334,20 +576,31 @@ <el-row> <el-form-item label="疾病类型" align="left"> <el-checkbox-group v-model="form.diseasetype"> <el-checkbox v-for="dict in dict.type.sys_DiseaseType" :key="dict.value" :label="dict.value"> <el-checkbox v-for="dict in dict.type.sys_DiseaseType" :key="dict.value" :label="dict.value" > {{ dict.label }} </el-checkbox> </el-checkbox-group> </el-form-item> <el-form-item label="其他" prop="diseasetypeOther"> <el-input v-model="form.diseasetypeOther" placeholder="请输入其他" /> <el-input v-model="form.diseasetypeOther" placeholder="请输入其他" /> </el-form-item> </el-row> <el-row> <el-col :span="12"> <el-form-item align="left" label="传染病"> <el-checkbox-group v-model="form.infectious"> <el-checkbox v-for="dict in dict.type.sys_Infectious" :key="dict.value" :label="dict.value"> <el-checkbox v-for="dict in dict.type.sys_Infectious" :key="dict.value" :label="dict.value" > {{ dict.label }} </el-checkbox> </el-checkbox-group> @@ -355,7 +608,10 @@ </el-col> <el-col :span="12"> <el-form-item align="left" label="其他" prop="infectiousOther"> <el-input v-model="form.infectiousOther" placeholder="请输入其他" /> <el-input v-model="form.infectiousOther" placeholder="请输入其他" /> </el-form-item> </el-col> </el-row> @@ -363,7 +619,11 @@ <el-col :span="9"> <el-form-item align="left" label="病人状况"> <el-checkbox-group v-model="form.patientstate"> <el-checkbox v-for="dict in dict.type.sys_patientstate" :key="dict.value" :label="dict.value"> <el-checkbox v-for="dict in dict.type.sys_patientstate" :key="dict.value" :label="dict.value" > {{ dict.label }} </el-checkbox> </el-checkbox-group> @@ -372,7 +632,11 @@ <el-col :span="15" align="left"> <el-form-item label="其他情况"> <el-checkbox-group v-model="form.othercases"> <el-checkbox v-for="dict in dict.type.sys_OtherCases" :key="dict.value" :label="dict.value"> <el-checkbox v-for="dict in dict.type.sys_OtherCases" :key="dict.value" :label="dict.value" > {{ dict.label }} </el-checkbox> </el-checkbox-group> @@ -381,18 +645,29 @@ </el-row> </div> <div style=" <div style=" border-bottom: 1px solid #ddd; padding-right: 60px; margin-top: 20px; "> " > <el-row> <div display="flex"> <el-row> <el-col :span="12"> <el-form-item label="亲属状况" prop="kinship" class="relation" align="left"> <el-form-item label="亲属状况" prop="kinship" class="relation" align="left" > <el-checkbox-group v-model="form.kinship"> <el-checkbox v-for="dict in dict.type.sys_Kinship" :key="dict.value" :label="dict.value"> <el-checkbox v-for="dict in dict.type.sys_Kinship" :key="dict.value" :label="dict.value" > {{ dict.label }} </el-checkbox> </el-checkbox-group> @@ -400,7 +675,10 @@ </el-col> <el-col :span="12"> <el-form-item label="其他" prop="kinshipOther"> <el-input v-model="form.kinshipOther" placeholder="请输入其他" /> <el-input v-model="form.kinshipOther" placeholder="请输入其他" /> </el-form-item> </el-col> </el-row> @@ -410,7 +688,11 @@ <el-col :span="24"> <el-form-item align="left" label="本人意愿 "> <el-checkbox-group v-model="form.selfwill"> <el-checkbox v-for="dict in dict.type.sys_SelfWill" :key="dict.value" :label="dict.value"> <el-checkbox v-for="dict in dict.type.sys_SelfWill" :key="dict.value" :label="dict.value" > {{ dict.label }} </el-checkbox> </el-checkbox-group> @@ -420,14 +702,24 @@ <el-row> <el-col :span="12"> <el-form-item label="主要亲属" prop="majorrelatives"> <el-input v-model="form.majorrelatives" placeholder="请输入主要亲属" /> <el-input v-model="form.majorrelatives" placeholder="请输入主要亲属" /> </el-form-item> </el-col> <el-col :span="8"> <el-form-item label="与捐赠者关系" prop="familyrelations"> <el-select v-model="form.familyrelations" placeholder="请选择与捐赠者关系"> <el-option v-for="dict in dict.type.sys_FamilyRelation" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> <el-select v-model="form.familyrelations" placeholder="请选择与捐赠者关系" > <el-option v-for="dict in dict.type.sys_FamilyRelation" :key="dict.value" :label="dict.label" :value="dict.value" ></el-option> </el-select> </el-form-item> </el-col> @@ -436,7 +728,11 @@ <el-col :span="12"> <el-form-item align="left" label="信息来源"> <el-checkbox-group v-model="form.infosources"> <el-checkbox v-for="dict in dict.type.sys_InfoSources" :key="dict.value" :label="dict.value"> <el-checkbox v-for="dict in dict.type.sys_InfoSources" :key="dict.value" :label="dict.value" > {{ dict.label }} </el-checkbox> </el-checkbox-group> @@ -444,7 +740,10 @@ </el-col> <el-col :span="8"> <el-form-item label="其他" prop="infosourcesOther"> <el-input v-model="form.infosourcesOther" placeholder="请输入信息来源其他" /> <el-input v-model="form.infosourcesOther" placeholder="请输入信息来源其他" /> </el-form-item> </el-col> </el-row> @@ -456,55 +755,99 @@ </el-col> <el-col :span="8"> <el-form-item label="联系电话" prop="infophone"> <el-input v-model="form.infophone" placeholder="请输入信息员联系电话" /> <el-input v-model="form.infophone" placeholder="请输入信息员联系电话" /> </el-form-item> </el-col> </el-row> <el-row> <el-col :span="8"> <el-form-item align="left" label="红十字会" prop="redorganno"> <org-selecter ref="addCrossOrgSelect" :org-type="'2'" v-model="form.redorganno" /> <org-selecter ref="addCrossOrgSelect" :org-type="'2'" v-model="form.redorganno" /> </el-form-item> </el-col> <el-col :span="8"> <el-form-item label="联系人" prop="contactperson"> <el-input v-model="form.contactperson" placeholder="请输入联系人" /> <el-input v-model="form.contactperson" placeholder="请输入联系人" /> </el-form-item> </el-col> <el-col :span="8"> <el-form-item label="联系时间" prop="contacttime"> <el-date-picker clearable size="small" style="width: 190px" v-model="form.contacttime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择报告时间"> <el-date-picker clearable size="small" style="width: 190px" v-model="form.contacttime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择报告时间" > </el-date-picker> </el-form-item> </el-col> </el-row> <el-row> <el-col :span="24"> <el-form-item align="left" label="获取组织" prop="acquisitiontissuename"> <org-selecter style="width: 260px" ref="orgSelecter" :org-type="'1'" v-model="form.acquisitiontissueno" /> <el-form-item align="left" label="获取组织" prop="acquisitiontissuename" > <org-selecter style="width: 260px" ref="orgSelecter" :org-type="'1'" v-model="form.acquisitiontissueno" /> </el-form-item> </el-col> </el-row> <el-row> <el-col :span="8"> <el-form-item label="报告人" prop="reporterno"> <el-select ref="getReportname" v-model="form.reporterno" placeholder="请选择"> <el-option v-for="item in reporters" :key="item.reportNo" :label="item.reportName" :value="item.reportNo"> <el-select ref="getReportname" v-model="form.reporterno" placeholder="请选择" > <el-option v-for="item in reporters" :key="item.reportNo" :label="item.reportName" :value="item.reportNo" > </el-option> </el-select> </el-form-item> </el-col> <el-col :span="8"> <el-form-item label="联系电话" prop="reporterphone"> <el-input v-model="form.reporterphone" placeholder="请输入联系电话" /> <el-input v-model="form.reporterphone" placeholder="请输入联系电话" /> </el-form-item> </el-col> <el-col :span="8"> <el-form-item label="报告时间" align="left" prop="reporttime"> <el-date-picker clearable size="small" style="width: 190px" v-model="form.reporttime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择报告时间"> <el-date-picker clearable size="small" style="width: 190px" v-model="form.reporttime" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择报告时间" > </el-date-picker> </el-form-item> </el-col> @@ -520,8 +863,15 @@ </div> --> </el-form> <div slot="footer" class="dialog-footer"> <el-button v-show="showSaveBtn" type="primary" @click="submitForm">保存并前往案例工作台</el-button> <el-button v-show="showTerminationBtn" type="primary" @click="submitForm">终止案例</el-button> <el-button v-show="showSaveBtn" type="primary" @click="submitForm" >保存并前往案例工作台</el-button > <el-button v-show="showTerminationBtn" type="primary" @click="submitForm" >终止案例</el-button > <el-button @click="cancel">取 消</el-button> <!-- <el-button @click="handleapproval">提交审核</el-button> --> </div> @@ -773,7 +1123,7 @@ ] }; }, created() { }, created() {}, mounted(e) { // let idd = this.$route.query.userid @@ -854,7 +1204,7 @@ resetArr(Arr) { var hash = {}; Arr = Arr.reduce(function (arr, current) { Arr = Arr.reduce(function(arr, current) { hash[current.reporterno] ? "" : (hash[current.reporterno] = true && arr.push(current)); @@ -988,8 +1338,8 @@ d.getFullYear() - birthdays.getFullYear() - (d.getMonth() < birthdays.getMonth() || (d.getMonth() == birthdays.getMonth() && d.getDate() < birthdays.getDate()) (d.getMonth() == birthdays.getMonth() && d.getDate() < birthdays.getDate()) ? 1 : 0); // 赋值给表格 @@ -998,7 +1348,7 @@ this.form.age = age; } else { } } catch { } } catch {} }, // sheng: '浙江省', // shi: '', @@ -1223,7 +1573,7 @@ this.showSaveBtn = true; //this.$refs.annex.getAnnexList(); this.open = true; this.$nextTick(function () { this.$nextTick(function() { this.$refs.annex.getAnnexList(); }); @@ -1294,7 +1644,7 @@ this.open = true; this.title = "人体器官潜在捐献者登记表"; this.form.recordstate = 99; this.$nextTick(function () { this.$nextTick(function() { this.$refs.annex.getAnnexList(); }); }); @@ -1390,14 +1740,14 @@ const ids = row.id || this.ids; this.$modal .confirm('是否确认删除捐献基础编号为"' + ids + '"的数据项?') .then(function () { .then(function() { return delDonatebaseinfo(ids); }) .then(() => { this.getList(); this.$modal.msgSuccess("删除成功"); }) .catch(() => { }); .catch(() => {}); }, /** 导出按钮操作 */ @@ -1413,7 +1763,7 @@ this.$download.name(response.msg); this.exportLoading = false; }) .catch(() => { }); .catch(() => {}); }, // 对象转成指定字符串分隔 @@ -1463,7 +1813,7 @@ console.log(url); const link = document.createElement("a"); link.href = url; const name=fileUrl["downloadName"] const name = fileUrl["downloadName"]; link.setAttribute("download", name); // 替换file.pdf为实际的文件名 document.body.appendChild(link); link.click(); src/views/project/donationdetails/index.vue
@@ -1918,7 +1918,6 @@ }); } else { this.form.workflow = 0; this.form.recordstate = 0; addDonatebaseinfo(this.form).then(response => { if (response.code == 200) { this.$modal.msgSuccess("新增成功"); src/views/project/fund/applyDetail/index.vue
@@ -2188,8 +2188,10 @@ flowconclusion: this.checkObj.flowlevelone, flowcontent: this.checkObj.flowconclusion }; this.$modal.loading("正在提交审核,请稍候!"); checkfund(checkFundObj).then(res => { //关闭窗口 this.$modal.closeLoading(); this.$modal.msgSuccess("审核完成!"); this.$store.dispatch("tagsView/delView", this.$route); this.$router.go(-1); src/views/project/fund/ethicalExpertFeeApply/index.vue
@@ -1,31 +1,63 @@ <!-- --> <template> <div class="app-container"> <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="70px"> <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="70px" > <el-row align="left"> <el-col :span="6"> <el-form-item label="姓名" prop="name"> <el-input v-model="queryParams.name" placeholder="请输入姓名" clearable size="small" @keyup.enter.native="handleQuery" /> <el-input v-model="queryParams.name" placeholder="请输入姓名" clearable size="small" @keyup.enter.native="handleQuery" /> </el-form-item> </el-col> <el-col :span="6"> <el-form-item label="捐献进度" prop="recordstate"> <el-select v-model="queryParams.recordstate" placeholder="请选择记录状态" clearable size="small"> <el-option v-for="dict in dict.type.sys_DonationStatus" :key="dict.value" :label="dict.label" :value="dict.value" /> <el-select v-model="queryParams.recordstate" placeholder="请选择记录状态" clearable size="small" > <el-option v-for="dict in dict.type.sys_DonationStatus" :key="dict.value" :label="dict.label" :value="dict.value" /> </el-select> </el-form-item> </el-col> <el-col :span="6"> <el-form-item label="捐献者" prop="name"> <el-input v-model="queryParams.donorname" placeholder="请输入捐献者姓名" clearable size="small" @keyup.enter.native="handleQuery" /> <el-input v-model="queryParams.donorname" placeholder="请输入捐献者姓名" clearable size="small" @keyup.enter.native="handleQuery" /> </el-form-item> </el-col> <el-col :span="6"> <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-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-col> </el-row> </el-form> @@ -39,18 +71,32 @@ </el-row> </el-col> </el-row> <el-table v-loading="loading" border highlight-current-row :data="donatebaseinfoList" @row-click="selectDonotor"> <el-table v-loading="loading" border highlight-current-row :data="donatebaseinfoList" @row-click="selectDonotor" > <!-- <el-table-column label="捐献编号" align="center" prop="donorno" /> --> <el-table-column label="捐献进度" align="center" prop="recordstate"> <template slot-scope="scope"> <dict-tag :options="dict.type.sys_DonationStatus" :value="scope.row.recordstate" /> <dict-tag :options="dict.type.sys_DonationStatus" :value="scope.row.recordstate" /> </template> </el-table-column> <el-table-column label="姓名" align="center" prop="name" /> </el-table> <pagination v-show="total > 0" :total="total" small :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getBaseInfoList" /> <pagination v-show="total > 0" :total="total" small :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getBaseInfoList" /> </el-card> </el-col> <el-col :span="18"> @@ -59,7 +105,10 @@ <el-row :gutter="4" align="right" class="mb8"> <el-col :span="9"> <el-form-item label="捐献编号"> <el-input v-model="curCase.donorno" :disabled="true"></el-input> <el-input v-model="curCase.donorno" :disabled="true" ></el-input> </el-form-item> </el-col> <el-col :span="9"> @@ -70,54 +119,147 @@ </el-row> <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['project:ethicalfund:add']">新增申请单</el-button> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" v-hasPermi="['project:ethicalfund:add']" >新增申请单</el-button > </el-col> </el-row> <el-row> <el-table v-loading="loading" border :data="donateconsolationfundList"> <el-table-column label="申请日期" align="center" prop="applyTime" width="150px"> <el-table v-loading="loading" border :data="donateconsolationfundList" :row-class-name="rowClassName" > <el-table-column label="申请日期" align="center" prop="applyTime" width="150px" > <template slot-scope="scope"> <span>{{ parseTime(scope.row.applyTime, "{y}-{m}-{d}") }}</span> </template> </el-table-column> <el-table-column label="申请人" align="center" prop="username" width="120px" /> <el-table-column label="申请金额" align="center" prop="pretaxcost" width="200px" /> <el-table-column label="所属组别" align="center" prop="deptmentname" width="200px" /> <el-table-column label="组长" align="center" prop="managername" width="150px" /> <el-table-column label="审核状态" align="center" prop="recordstatus"> <el-table-column label="申请人" align="center" prop="username" width="120px" /> <el-table-column label="申请金额" align="center" prop="pretaxcost" width="200px" /> <el-table-column label="所属组别" align="center" prop="deptmentname" width="200px" /> <el-table-column label="组长" align="center" prop="managername" width="150px" /> <el-table-column label="审核状态" align="center" prop="recordstatus" > <template slot-scope="scope"> <dict-tag :options="dict.type.sys_recordstatus" :value="scope.row.recordstatus" /> <dict-tag :options="dict.type.sys_recordstatus" :value="scope.row.recordstatus" /> </template> </el-table-column> <el-table-column label="申请材料状态" width="140" align="center" prop="checkstatus"> <el-table-column label="申请材料状态" width="140" align="center" prop="checkstatus" > <template slot-scope="scope"> <dict-tag :options="dict.type.sys_stage_type" :value="scope.row.checkstatus" /> <dict-tag :options="dict.type.sys_stage_type" :value="scope.row.checkstatus" /> </template> </el-table-column> <!-- <el-table-column label="联系电话" align="center" prop="phone" width="150px" /> <el-table-column label="工作单位" align="center" prop="unitname" width="220px" /> --> <el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width" width="280px"> <el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width" width="280px" > <template slot-scope="scope"> <el-button v-if="scope.row.recordstatus == -1 || scope.row.recordstatus == 1 " size="mini" type="text" icon="el-icon-edit" @click="handleup(scope.row)">上报</el-button> <el-button v-if="scope.row.recordstatus == -1 || scope.row.recordstatus == 1 " size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['project:ethicalfund:edit']">修改</el-button> <el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)">查看</el-button> <el-button v-if="scope.row.recordstatus == -1 || scope.row.recordstatus == 1 " size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['project:ethicalfund:delete']">删除</el-button> <el-button size="mini" type="text" icon="el-icon-download" @click="mixExport(scope.row.id)" v-hasPermi="['project:ethicalfund:download']">下载</el-button> <el-button v-if=" scope.row.recordstatus == -1 || scope.row.recordstatus == 1 " size="mini" type="text" icon="el-icon-edit" @click="handleup(scope.row)" >上报</el-button > <el-button v-if=" scope.row.recordstatus == -1 || scope.row.recordstatus == 1 " size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['project:ethicalfund:edit']" >修改</el-button > <el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)" >查看</el-button > <el-button v-if=" scope.row.recordstatus == -1 || scope.row.recordstatus == 1 " size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['project:ethicalfund:delete']" >删除</el-button > <el-button size="mini" type="text" icon="el-icon-download" @click="mixExport(scope.row.id)" v-hasPermi="['project:ethicalfund:download']" >下载</el-button > </template> </el-table-column> </el-table> @@ -128,72 +270,134 @@ </el-row> <!-- 添加或修改费用申请单 --> <el-dialog :visible.sync="dialogOpen" :close-on-click-modal="false" width="1400px" :title="title" style="text-align: center" v-loading="loading"> <el-dialog :visible.sync="dialogOpen" :close-on-click-modal="false" width="1400px" :title="title" style="text-align: center" v-loading="loading" > <el-form ref="form" :model="form" label-width="120px" :rules="rules"> <el-row style="text-align: left"> <el-col :span="5"> <el-form-item label="申请日期" prop="applyTime"> <el-date-picker clearable style="width: 100%" v-model="form.applyTime" type="date" value-format="yyyy-MM-dd HH:mm:ss" placeholder="申请日期"> <el-date-picker clearable style="width: 100%" v-model="form.applyTime" type="date" value-format="yyyy-MM-dd HH:mm:ss" placeholder="申请日期" > </el-date-picker> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="经办人" prop="username"> <el-select v-model="form.username" placeholder="经办人" clearable filterable allow-create style="width: 100%"> <el-option v-for="dict in userlist" :key="dict.index" :label="dict.nickname" :value="dict.nickname"></el-option> <el-select v-model="form.username" placeholder="经办人" clearable filterable allow-create style="width: 100%" > <el-option v-for="dict in userlist" :key="dict.index" :label="dict.nickname" :value="dict.nickname" ></el-option> </el-select> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="所属组别" prop="deptmentname"> <el-input v-model="form.deptmentname" placeholder="请输入所属组别" clearable /> <el-input v-model="form.deptmentname" placeholder="请输入所属组别" clearable /> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="组长" prop="managername"> <el-input v-model="form.managername" placeholder="请输入组长" clearable /> <el-input v-model="form.managername" placeholder="请输入组长" clearable /> </el-form-item> </el-col> </el-row> <el-row style="text-align: left"> <el-col :span="5"> <el-form-item label="申请类型"> <el-radio v-model="form.applytype" label="2">伦理审查专家费申请</el-radio> </el-form-item> </el-col><el-col :span="10"> <el-radio v-model="form.applytype" label="2" >伦理审查专家费申请</el-radio > </el-form-item> </el-col ><el-col :span="10"> <el-form-item label="申请说明" prop="remark"> <el-input v-model="form.remark" placeholder="申请说明" /> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="捐献者" prop="donorname"> <el-input :disabled="true" v-model="form.donorname" placeholder="请输入捐献者姓名" clearable /> <el-input :disabled="true" v-model="form.donorname" placeholder="请输入捐献者姓名" clearable /> </el-form-item> </el-col> </el-row> <el-row style="text-align: left"><el-col :span="5"> <el-row style="text-align: left" ><el-col :span="5"> <el-form-item label="申请金额" prop="amountrequested"> <el-input v-model="form.amountrequested" placeholder="申请金额" :disabled="true" /> <el-input v-model="form.amountrequested" placeholder="申请金额" :disabled="true" /> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="税前金额" prop="pretaxcost"> <el-input v-model="form.pretaxcost" placeholder="税前金额合计" :disabled="true" /> <el-input v-model="form.pretaxcost" placeholder="税前金额合计" :disabled="true" /> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="税后金额" prop="pretaxcost"> <el-input v-model="form.taxedcost" placeholder="税后金额合计" :disabled="true" /> <el-input v-model="form.taxedcost" placeholder="税后金额合计" :disabled="true" /> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="审核状态" prop="recordstatus"> <!-- <el-input v-model="form.recordstatus" placeholder="审核意见" /> --> <el-select v-model="form.recordstatus" placeholder="请选择审核状态" clearable size="small" :disabled="true"> <el-option v-for="dict in dict.type.sys_recordstatus" :key="dict.value" :label="dict.label" :value="dict.value" /> <el-select v-model="form.recordstatus" placeholder="请选择审核状态" clearable size="small" :disabled="true" > <el-option v-for="dict in dict.type.sys_recordstatus" :key="dict.value" :label="dict.label" :value="dict.value" /> </el-select> </el-form-item> </el-col> @@ -212,130 +416,294 @@ </el-row> <el-row style="margin-bottom: 10px"> <el-col :span="4"> <el-button @click.native.prevent="addAlls" type="primary" size="small"> <el-button @click.native.prevent="addAlls" type="primary" size="small" > 导入服务项目 </el-button> </el-col> </el-row> <el-row style="margin-top: 5px; margin-bottom: 5px"> <el-table :data="fundDetailArr" border highlight-current-row> <el-table-column prop="orderno" align="center" label="排序" width="80"> <el-table-column prop="orderno" align="center" label="排序" width="80" > <template slot-scope="scope"> <el-input v-model="scope.row.orderno" placeholder="排序" /> </template> </el-table-column> <el-table-column prop="itemtype" align="center" label="费用类型" width="220"> <el-table-column prop="itemtype" align="center" label="费用类型" width="220" > <template slot-scope="scope"> <el-select v-model="scope.row.applytype" placeholder="费用类型" @change="LoadItemTypeArr(scope.row)"> <el-option v-for="dict in fundtypeArr" :key="dict.value" :label="dict.label" :value="dict.value"></el-option> <el-select v-model="scope.row.applytype" placeholder="费用类型" @change="LoadItemTypeArr(scope.row)" > <el-option v-for="dict in fundtypeArr" :key="dict.value" :label="dict.label" :value="dict.value" ></el-option> </el-select> </template> </el-table-column> <el-table-column prop="itemtype" align="center" label="服务项目" width="260"> <el-table-column prop="itemtype" align="center" label="服务项目" width="260" > <template slot-scope="scope"> <el-select v-model="scope.row.itemid" placeholder="服务项目" @change="select(scope.row)" clearable filterable allow-create :filter-method="val => SearchItem(val, scope)"> <el-option v-for="dict in scope.row.itemArr" :key="dict.index" :label="dict.itemName" :value="dict.id"></el-option> <el-select v-model="scope.row.itemid" placeholder="服务项目" @change="select(scope.row)" clearable filterable allow-create :filter-method="val => SearchItem(val, scope)" > <el-option v-for="dict in scope.row.itemArr" :key="dict.index" :label="dict.itemName" :value="dict.id" ></el-option> </el-select> </template> </el-table-column> <el-table-column prop="beneficiaryno" align="center" label="姓名" width="120" v-if="form.applytype != 3"> <el-table-column prop="beneficiaryno" align="center" label="姓名" width="120" v-if="form.applytype != 3" > <template slot-scope="scope"> <el-button type="primary" plain @click="ShowDetailDialog(scope, 'name')">{{ scope.row.beneficiaryname }}</el-button> <el-button type="primary" plain @click="ShowDetailDialog(scope, 'name')" >{{ scope.row.beneficiaryname }}</el-button > <!-- <el-input v-model="scope.row.beneficiaryname" placeholder="姓名" /> --> </template> </el-table-column> <el-table-column prop="servicesscopename" align="center" label="费用说明" width="180"> <el-table-column prop="servicesscopename" align="center" label="费用说明" width="180" > <template slot-scope="scope"> <el-select v-model="scope.row.servicesscopename" placeholder="费用说明" clearable allow-create filterable @change="selectremark(scope.row)"> <el-option v-for="dict in fundblock" :key="dict.expensedescribe" :label="dict.expensedescribe" :value="dict.expensedescribe"></el-option> <el-select v-model="scope.row.servicesscopename" placeholder="费用说明" clearable allow-create filterable @change="selectremark(scope.row)" > <el-option v-for="dict in fundblock" :key="dict.expensedescribe" :label="dict.expensedescribe" :value="dict.expensedescribe" ></el-option> </el-select> </template> </el-table-column> <el-table-column prop="amount" align="center" label="税前金额" width="120" v-if="form.applytype != 3"> <el-table-column prop="amount" align="center" label="税前金额" width="120" v-if="form.applytype != 3" > <template slot-scope="scope"> <el-input v-model="scope.row.amount" placeholder="税前金额" @blur="val => { sumTotalFee(); } " /> <el-input v-model="scope.row.amount" placeholder="税前金额" @blur=" val => { sumTotalFee(); } " /> </template> </el-table-column> <el-table-column prop="taxedamount" align="center" label="税后金额" width="120" v-if="form.applytype != '3'"> <el-table-column prop="taxedamount" align="center" label="税后金额" width="120" v-if="form.applytype != '3'" > <template slot-scope="scope"> <el-input v-model="scope.row.taxedamount" placeholder="税后金额" @blur="val => { sumTotalFee(); } " /> <el-input v-model="scope.row.taxedamount" placeholder="税后金额" @blur=" val => { sumTotalFee(); } " /> </template> </el-table-column> <el-table-column prop="unitno" align="center" label="单位" width="220"> <el-table-column prop="unitno" align="center" label="单位" width="220" > <template slot-scope="scope"> <el-button type="primary" plain @click="ShowDetailDialog(scope, 'unit')">{{ scope.row.unitname }}</el-button> <el-button type="primary" plain @click="ShowDetailDialog(scope, 'unit')" >{{ scope.row.unitname }}</el-button > </template> </el-table-column> <el-table-column prop="quantity" align="center" label="数量" width="120" v-if="form.applytype == '3'"> <el-table-column prop="quantity" align="center" label="数量" width="120" v-if="form.applytype == '3'" > <template slot-scope="scope"> <el-input v-model="scope.row.quantity" placeholder="数量" @blur="val => { sumTotalFee(); } " /> <el-input v-model="scope.row.quantity" placeholder="数量" @blur=" val => { sumTotalFee(); } " /> </template> </el-table-column> <el-table-column prop="price" align="center" label="价格" width="120" v-if="form.applytype == '3'"> <el-table-column prop="price" align="center" label="价格" width="120" v-if="form.applytype == '3'" > <template slot-scope="scope"> <el-input v-model="scope.row.price" placeholder="价格" @blur="val => { sumTotalFee(); } " /> <el-input v-model="scope.row.price" placeholder="价格" @blur=" val => { sumTotalFee(); } " /> </template> </el-table-column> <el-table-column prop="remark" align="center" label="备注" width="210" v-if="form.applytype == '3'"> <el-table-column prop="remark" align="center" label="备注" width="210" v-if="form.applytype == '3'" > <template slot-scope="scope"> <el-input v-model="scope.row.remark" placeholder="备注" /> </template> </el-table-column> <el-table-column prop="title" align="center" label="职称" width="120" v-if="form.applytype != '3'"> <el-table-column prop="title" align="center" label="职称" width="120" v-if="form.applytype != '3'" > <template slot-scope="scope"> <el-input v-model="scope.row.title" placeholder="职称" /> </template> </el-table-column> <el-table-column prop="idcardno" align="center" label="身份证号" width="200" v-if="form.applytype != '3'"> <el-table-column prop="idcardno" align="center" label="身份证号" width="200" v-if="form.applytype != '3'" > <template slot-scope="scope"> <el-input v-model="scope.row.idcardno" placeholder="身份证号" /> </template> </el-table-column> <el-table-column prop="depositbank" align="center" label="开户银行" width="200" v-if="form.applytype != '3'"> <el-table-column prop="depositbank" align="center" label="开户银行" width="200" v-if="form.applytype != '3'" > <template slot-scope="scope"> <el-input v-model="scope.row.depositbank" placeholder="开户银行" /> <el-input v-model="scope.row.depositbank" placeholder="开户银行" /> </template> </el-table-column> <el-table-column prop="bankcardno" align="center" label="银行卡号" width="210" v-if="form.applytype != '3'"> <el-table-column prop="bankcardno" align="center" label="银行卡号" width="210" v-if="form.applytype != '3'" > <template slot-scope="scope"> <el-input v-model="scope.row.bankcardno" placeholder="银行卡号" /> <el-input v-model="scope.row.bankcardno" placeholder="银行卡号" /> </template> </el-table-column> <el-table-column fixed="right" align="center" label="操作" width="120" v-if="dialogType == 'edit'"> <el-table-column fixed="right" align="center" label="操作" width="120" v-if="dialogType == 'edit'" > <template slot-scope="scope"> <el-button type="text" size="mini" @click="addRow(scope.$index)">新增</el-button> <el-button @click.native.prevent=" deleteRows(scope.row, scope.$index, fundDetailArr) " type="text" size="small"> <el-button type="text" size="mini" @click="addRow(scope.$index)" >新增</el-button > <el-button @click.native.prevent=" deleteRows(scope.row, scope.$index, fundDetailArr) " type="text" size="small" > 删除 </el-button> </template> @@ -385,55 +753,139 @@ <el-row> <el-col :span="24"> <el-form-item label="申请附件:" align="left" prop="annexbankcard"> <el-upload size="mini" class="upload-demo" :action="uploadFileUrl" :file-list="fileList" multiple :limit="20" :headers="headers" :on-success="(response, file, fileList) => <el-upload size="mini" class="upload-demo" :action="uploadFileUrl" :file-list="fileList" multiple :limit="20" :headers="headers" :on-success=" (response, file, fileList) => uploadSccess(response, file, fileList) " :on-preview="downFile" :disabled="dialogType == 'detail'" :on-error="handleUploadError" :on-exceed="handleExceed" :on-remove="remove" accept="image/*,.pdf"> <el-button :disabled="dialogType == 'detail'" size="small" type="primary">上传</el-button> " :on-preview="downFile" :disabled="dialogType == 'detail'" :on-error="handleUploadError" :on-exceed="handleExceed" :on-remove="remove" accept="image/*,.pdf" > <el-button :disabled="dialogType == 'detail'" size="small" type="primary" >上传</el-button > </el-upload> </el-form-item> </el-col> </el-row> <el-row v-if="dialogType == 'detail'"> <el-table :data="fundflowList" border> <el-table-column label="审核人" align="center" width="120" prop="checkusername" /> <el-table-column label="审核日期" align="center" width="160" prop="createTime" /> <el-table-column label="审核结果" align="center" width="200" prop="flowconclusion"><template slot-scope="scope"><span v-if="scope.row.flowconclusion == 1">通过</span><span v-if="scope.row.flowconclusion == 2">不通过</span></template> <el-table-column label="审核人" align="center" width="120" prop="checkusername" /> <el-table-column label="审核日期" align="center" width="160" prop="createTime" /> <el-table-column label="审核结果" align="center" width="200" prop="flowconclusion" ><template slot-scope="scope" ><span v-if="scope.row.flowconclusion == 1">通过</span ><span v-if="scope.row.flowconclusion == 2" >不通过</span ></template > </el-table-column> <el-table-column label="审核备注" align="center" prop="flowcontent" /> <el-table-column label="审核备注" align="center" prop="flowcontent" /> </el-table> </el-row> </el-form> <div slot="footer" class="dialog-footer"> <el-button type="primary" @click="submitForm" v-if="dialogType == 'edit'">保 存</el-button> <el-button type="primary" @click="submitForm" v-if="dialogType == 'edit'" >保 存</el-button > <!-- <el-button type="success" @click="print">打 印</el-button> --> <el-button @click="cancel">取 消</el-button> </div> </el-dialog> <el-dialog :visible.sync="detailInfoDialogShow" :close-on-click-modal="false" :title="'信息修改'" style="text-align: center" v-loading="loading" width="500px"> <el-dialog :visible.sync="detailInfoDialogShow" :close-on-click-modal="false" :title="'信息修改'" style="text-align: center" v-loading="loading" width="500px" > <el-form ref="funddetailForm" :model="funddetailForm" label-width="120px"> <el-row> <el-col :span="24" v-if="detailInfoDialogShowType == 'name'"> <el-form-item align="left" label="姓名" prop="beneficiaryname" label-width="80px"> <el-select filterable allow-create ref="beneficiaryname" default-first-option v-model="funddetailForm.beneficiaryname" placeholder="请选择" style="width: 100%"> <el-option v-for="item in arrr3" :key="item.reportNo" :label="item.reportName" :value="item.reportName"> <el-form-item align="left" label="姓名" prop="beneficiaryname" label-width="80px" > <el-select filterable allow-create ref="beneficiaryname" default-first-option v-model="funddetailForm.beneficiaryname" placeholder="请选择" style="width: 100%" > <el-option v-for="item in arrr3" :key="item.reportNo" :label="item.reportName" :value="item.reportName" > </el-option> </el-select> </el-form-item> </el-col> <el-col :span="24" v-if="detailInfoDialogShowType == 'unit'"> <el-form-item align="left" label="单位" prop="unitno" label-width="80px"> <el-select v-model="funddetailForm.unitno" placeholder="单位" clearable filterable allow-create style="width: 100%"> <el-option v-for="(spec, index) in unitList" :key="index" :label="spec.organizationname" :value="spec.organizationid"></el-option> <el-form-item align="left" label="单位" prop="unitno" label-width="80px" > <el-select v-model="funddetailForm.unitno" placeholder="单位" clearable filterable allow-create style="width: 100%" > <el-option v-for="(spec, index) in unitList" :key="index" :label="spec.organizationname" :value="spec.organizationid" ></el-option> </el-select> </el-form-item> </el-col> @@ -441,7 +893,9 @@ </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="detailInfoDialogShow = false">取 消</el-button> <el-button type="primary" @click="ConfirmDetailDialog()">确 定</el-button> <el-button type="primary" @click="ConfirmDetailDialog()" >确 定</el-button > </span> </el-dialog> </div> @@ -724,8 +1178,8 @@ //附件处理 this.fileList = this.form.annexbankcard ? this.form.annexbankcard .split(",") .map(item => ({ url: item, name: item })) .split(",") .map(item => ({ url: item, name: item })) : []; getownFundDetail(id).then(async res => { @@ -768,8 +1222,8 @@ //附件处理 this.fileList = this.form.annexbankcard ? this.form.annexbankcard .split(",") .map(item => ({ url: item, name: item })) .split(",") .map(item => ({ url: item, name: item })) : []; listFundflow(listFundflowparams).then(res => { @@ -797,7 +1251,7 @@ const ids = row.id || this.ids; this.$modal .confirm("是否确认删除该记录?") .then(function () { .then(function() { return delFund(ids); }) .then(() => { @@ -811,7 +1265,7 @@ this.getfundList(); this.$modal.msgSuccess("删除成功"); }) .catch(() => { }); .catch(() => {}); }, /** 上报按钮操作 */ handleup(row) { @@ -825,7 +1279,18 @@ //判断是否存在上报记录 row.recordstatus = "0"; var currenttime = new Date(); row.applyTime = currenttime.getFullYear() + "-" + (currenttime.getMonth()+1) + "-" + currenttime.getDate() + " " + currenttime.getHours() + ":" + currenttime.getMinutes() + ":" + currenttime.getSeconds(); row.applyTime = currenttime.getFullYear() + "-" + (currenttime.getMonth() + 1) + "-" + currenttime.getDate() + " " + currenttime.getHours() + ":" + currenttime.getMinutes() + ":" + currenttime.getSeconds(); updateFund(row).then(response => { if (response.code == 200) { @@ -863,7 +1328,7 @@ this.$download.name(response.msg); this.exportLoading = false; }) .catch(() => { }); .catch(() => {}); }, /** 提交按钮 */ @@ -943,9 +1408,9 @@ tempData.itemid = tempItemArr[itemIndex].id; } if (tempData.id > 0) { updateFunddetail(tempData).then(response2 => { }); updateFunddetail(tempData).then(response2 => {}); } else { addFunddetail(tempData).then(response2 => { }); addFunddetail(tempData).then(response2 => {}); } } }); @@ -1374,7 +1839,7 @@ console.log(url); const link = document.createElement("a"); link.href = url; const name=fileUrl["downloadName"] const name = fileUrl["downloadName"]; link.setAttribute("download", name); // 替换file.pdf为实际的文件名 document.body.appendChild(link); link.click(); @@ -1509,7 +1974,7 @@ }, //文件上传 handleUploadError() { }, handleUploadError() {}, remove(file) { this.fileList.splice(this.fileList.indexOf(file), 1); }, @@ -1587,6 +2052,12 @@ } this.fundDetailArr[tempIndex] = singleDetail; this.detailInfoDialogShow = false; }, rowClassName({ row, column, rowIndex, columnIndex }) { if (row.recordstatus == -1 && row.backflowlevel != 0) { return "error-row"; } return ""; } }, @@ -1604,15 +2075,18 @@ this.getUsermsg(); this.getlistExternalperson(); }, beforeCreate() { }, //生命周期 - 创建之前 beforeMount() { }, //生命周期 - 挂载之前 beforeUpdate() { }, //生命周期 - 更新之前 updated() { }, //生命周期 - 更新之后 beforeDestroy() { }, //生命周期 - 销毁之前 destroyed() { }, //生命周期 - 销毁完成 activated() { } //如果页面有keep-alive缓存功能,这个函数会触发 beforeCreate() {}, //生命周期 - 创建之前 beforeMount() {}, //生命周期 - 挂载之前 beforeUpdate() {}, //生命周期 - 更新之前 updated() {}, //生命周期 - 更新之后 beforeDestroy() {}, //生命周期 - 销毁之前 destroyed() {}, //生命周期 - 销毁完成 activated() {} //如果页面有keep-alive缓存功能,这个函数会触发 }; </script> <style scoped> <style lang="scss" scoped> /* @import url(); 引入公共css类 */ ::v-deep.el-table .error-row { background: #fcebeb; } </style> src/views/project/fund/expertFeeApply/index.vue
@@ -133,6 +133,7 @@ v-loading="loading" border :data="donateconsolationfundList" :row-class-name="rowClassName" > <el-table-column label="申请日期" @@ -2570,10 +2571,19 @@ } else { console.log(response.msg); } }, rowClassName({ row, column, rowIndex, columnIndex }) { if (row.recordstatus == -1 && row.backflowlevel != 0) { return "error-row"; } return ""; } } }; </script> <style scoped> <style lang="scss" scoped> /* @import url(); 引入公共css类 */ ::v-deep.el-table .error-row { background: #fcebeb; } </style> src/views/project/fund/medicalCostApply/index.vue
@@ -124,6 +124,7 @@ v-loading="loading" border :data="donateconsolationfundList" :row-class-name="rowClassName" > <el-table-column label="申请日期" @@ -689,8 +690,20 @@ .then(() => { //查找是否存在登记完成记录 //判断是否存在上报记录 row.recordstatus = 0;var currenttime = new Date(); row.applyTime = currenttime.getFullYear() + "-" + (currenttime.getMonth()+1) + "-" + currenttime.getDate() + " " + currenttime.getHours() + ":" + currenttime.getMinutes() + ":" + currenttime.getSeconds(); row.recordstatus = 0; var currenttime = new Date(); row.applyTime = currenttime.getFullYear() + "-" + (currenttime.getMonth() + 1) + "-" + currenttime.getDate() + " " + currenttime.getHours() + ":" + currenttime.getMinutes() + ":" + currenttime.getSeconds(); updateFund(row).then(response => { if (response.code == 200) { this.$message({ @@ -1297,7 +1310,7 @@ console.log(url); const link = document.createElement("a"); link.href = url; const name=fileUrl["downloadName"] const name = fileUrl["downloadName"]; link.setAttribute("download", name); // 替换file.pdf为实际的文件名 document.body.appendChild(link); link.click(); @@ -1423,10 +1436,19 @@ this.$modal.msgWarning("当前文件暂不支持预览"); this.previewpdf = false; } }, rowClassName({ row, column, rowIndex, columnIndex }) { if (row.recordstatus == -1 && row.backflowlevel != 0) { return "error-row"; } return ""; } } }; </script> <style scoped> <style lang="scss" scoped> /* @import url(); 引入公共css类 */ ::v-deep.el-table .error-row { background: #fcebeb; } </style> src/views/project/fund/officeExpenseApply/index.vue
@@ -87,7 +87,9 @@ <!-- v-hasPermi="['project:medicalfund:export']" --> <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> --> </el-row> <el-table v-loading="loading" border :data="donateconsolationfundList"> <el-table v-loading="loading" border :data="donateconsolationfundList" :row-class-name="rowClassName" > <el-table-column label="申请日期" align="center" @@ -1925,6 +1927,12 @@ a.download = item.name; a.href = url; a.dispatchEvent(event); }, rowClassName({ row, column, rowIndex, columnIndex }) { //此判断为最后三行 if (row.recordstatus == -1 && row.backflowlevel != 0) { return "error-row"; } } }, @@ -1967,4 +1975,7 @@ </script> <style scoped> /* @import url(); 引入公共css类 */ ::v-deep.el-table .error-row { background: #FCEBEB; } </style> src/views/project/fund/performanceApply/index.vue
@@ -1,95 +1,236 @@ <!-- --> <template> <div class="app-container"> <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="70px"> <el-row align="left"> <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="70px" > <el-row align="left"> <el-col :span="5"> <el-form-item label="审批状态" prop="CHECKFLAG" style="float: left"> <el-select v-model="queryParams.CHECKFLAG" placeholder="请选择" style="width: 100%"> <el-option v-for="item in checkFlagOptions" :key="item.value" :label="item.label" :value="item.value"> <el-select v-model="queryParams.CHECKFLAG" placeholder="请选择" style="width: 100%" > <el-option v-for="item in checkFlagOptions" :key="item.value" :label="item.label" :value="item.value" > </el-option> </el-select> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="申请金额" prop="money" style="float: left"> <el-input v-model="queryParams.money" placeholder="请输入申请人金额" clearable size="small" @keyup.enter.native="handleQuery" /> <el-input v-model="queryParams.money" placeholder="请输入申请人金额" clearable size="small" @keyup.enter.native="handleQuery" /> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="经办人" prop="name"> <el-input v-model="queryParams.name" placeholder="请输入经办人" clearable size="small" @keyup.enter.native="handleQuery" /> <el-input v-model="queryParams.name" placeholder="请输入经办人" clearable size="small" @keyup.enter.native="handleQuery" /> </el-form-item> </el-col> </el-row> <el-row> <el-row> <el-col :span="7"> <el-form-item label="申请日期" prop="applyTime"> <el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" v-model="value1" type="daterange" @blur="onpick" range-separator="至" start-placeholder="报销申请开始日期" end-placeholder="报销申请结束日期" @keyup.enter.native="handleQuery"> <el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" v-model="value1" type="daterange" @blur="onpick" range-separator="至" start-placeholder="报销申请开始日期" end-placeholder="报销申请结束日期" @keyup.enter.native="handleQuery" > </el-date-picker> </el-form-item> </el-col> <el-col :span="6"> <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-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-col> </el-row> </el-form> <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button> <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" >新增</el-button > <!-- v-hasPermi="['project:medicalfund:add']" --> </el-col> <el-col :span="1.5"> <el-button type="warning" plain icon="el-icon-download" size="mini" :loading="exportLoading" @click="handleExport">导出</el-button> <el-button type="warning" plain icon="el-icon-download" size="mini" :loading="exportLoading" @click="handleExport" >导出</el-button > </el-col> <!-- v-hasPermi="['project:medicalfund:export']" --> <!-- <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> --> </el-row> <el-table v-loading="loading" border :data="donateconsolationfundList"> <el-table-column label="申请日期" align="center" prop="applyTime" width="180px"> <el-table v-loading="loading" border :data="donateconsolationfundList" :row-class-name="rowClassName" > <el-table-column label="申请日期" align="center" prop="applyTime" width="180px" > <template slot-scope="scope"> <span>{{ parseTime(scope.row.applyTime, "{y}-{m}-{d}") }}</span> </template> </el-table-column> <el-table-column label="申请人" align="center" prop="username" width="150px" /> <el-table-column label="申请金额" align="center" prop="pretaxcost" width="150px" /> <el-table-column label="申请人" align="center" prop="username" width="150px" /> <el-table-column label="申请金额" align="center" prop="pretaxcost" width="150px" /> <el-table-column label="审核状态" width="150" align="center" prop="recordstatus"> <el-table-column label="审核状态" width="150" align="center" prop="recordstatus" > <template slot-scope="scope"> <dict-tag :options="dict.type.sys_recordstatus" :value="scope.row.recordstatus" /> <dict-tag :options="dict.type.sys_recordstatus" :value="scope.row.recordstatus" /> </template> </el-table-column> <el-table-column label="申请材料状态" width="140" align="center" prop="checkstatus"> <el-table-column label="申请材料状态" width="140" align="center" prop="checkstatus" > <template slot-scope="scope"> <dict-tag :options="dict.type.sys_stage_type" :value="scope.row.checkstatus" /> <dict-tag :options="dict.type.sys_stage_type" :value="scope.row.checkstatus" /> </template> </el-table-column> <el-table-column label="绩效类型" width="150" align="center" prop="performancetype"> <el-table-column label="绩效类型" width="150" align="center" prop="performancetype" > <template slot-scope="scope"> <dict-tag :options="dict.type.sys_performance_type" :value="scope.row.performancetype" /> <dict-tag :options="dict.type.sys_performance_type" :value="scope.row.performancetype" /> </template> </el-table-column> <el-table-column label="备注" align="center" prop="remark" /> <el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width" width="280px"> <el-table-column label="操作" fixed="right" align="center" class-name="small-padding fixed-width" width="280px" > <template slot-scope="scope"> <el-button v-if="scope.row.recordstatus == -1 || scope.row.recordstatus == 1" size="mini" type="text" icon="el-icon-edit" @click="handleup(scope.row)">上报</el-button> <el-button v-if="scope.row.recordstatus == -1 || scope.row.recordstatus == 1" size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['project:medicalfund:edit']">修改</el-button> <el-button v-if="scope.row.recordstatus == -1 || scope.row.recordstatus == 1" size="mini" type="text" icon="el-icon-edit" @click="handleup(scope.row)" >上报</el-button > <el-button v-if="scope.row.recordstatus == -1 || scope.row.recordstatus == 1" size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['project:medicalfund:edit']" >修改</el-button > <el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)">查看</el-button> <el-button v-if="scope.row.recordstatus == -1 || scope.row.recordstatus == 1" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['project:medicalfund:delete']">删除</el-button> <el-button size="mini" type="text" icon="el-icon-download" @click="mixExport(scope.row.id)" v-hasPermi="['project:medicalfund:download']">下载</el-button> <el-button size="mini" type="text" icon="el-icon-edit" @click="duplicationfn(scope.row)">复制</el-button> <el-button size="mini" type="text" icon="el-icon-view" @click="handleDetail(scope.row)" >查看</el-button > <el-button v-if="scope.row.recordstatus == -1 || scope.row.recordstatus == 1" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['project:medicalfund:delete']" >删除</el-button > <el-button size="mini" type="text" icon="el-icon-download" @click="mixExport(scope.row.id)" v-hasPermi="['project:medicalfund:download']" >下载</el-button > <el-button size="mini" type="text" icon="el-icon-edit" @click="duplicationfn(scope.row)" >复制</el-button > </template> </el-table-column> </el-table> @@ -265,8 +406,20 @@ .then(() => { //查找是否存在登记完成记录 //判断是否存在上报记录 row.recordstatus = 0; var currenttime = new Date(); row.applyTime = currenttime.getFullYear() + "-" + (currenttime.getMonth() + 1) + "-" + currenttime.getDate() + " " + currenttime.getHours() + ":" + currenttime.getMinutes() + ":" + currenttime.getSeconds(); row.recordstatus = 0; var currenttime = new Date(); row.applyTime = currenttime.getFullYear() + "-" + (currenttime.getMonth() + 1) + "-" + currenttime.getDate() + " " + currenttime.getHours() + ":" + currenttime.getMinutes() + ":" + currenttime.getSeconds(); updateFund(row).then(response => { if (response.code == 200) { this.$message({ @@ -347,14 +500,14 @@ this.$download.name(response.msg); this.exportLoading = false; }) .catch(() => { }); .catch(() => {}); }, handleDelete(row) { const ids = row.id || this.ids; this.$modal .confirm("是否确认删除该记录?") .then(function () { .then(function() { return delFund(ids); }) .then(() => { @@ -367,7 +520,7 @@ this.getList(); this.$modal.msgSuccess("删除成功"); }) .catch(() => { }); .catch(() => {}); }, /** 查询列表 */ @@ -407,7 +560,7 @@ console.log(url); const link = document.createElement("a"); link.href = url; const name=fileUrl["downloadName"] const name = fileUrl["downloadName"]; link.setAttribute("download", name); // 替换file.pdf为实际的文件名 document.body.appendChild(link); link.click(); @@ -442,6 +595,12 @@ mixExport(id) { this.dayin2(id); //this.totaldayin(id); }, rowClassName({ row, column, rowIndex, columnIndex }) { if (row.recordstatus == -1 && row.backflowlevel != 0) { return "error-row"; } return ""; } }, //生命周期 - 创建完成(可以访问当前this实例) @@ -450,17 +609,20 @@ }, //生命周期 - 挂载完成(可以访问DOM元素) mounted() { }, mounted() {}, beforeCreate() { }, //生命周期 - 创建之前 beforeMount() { }, //生命周期 - 挂载之前 beforeUpdate() { }, //生命周期 - 更新之前 updated() { }, //生命周期 - 更新之后 beforeDestroy() { }, //生命周期 - 销毁之前 destroyed() { }, //生命周期 - 销毁完成 activated() { } //如果页面有keep-alive缓存功能,这个函数会触发 beforeCreate() {}, //生命周期 - 创建之前 beforeMount() {}, //生命周期 - 挂载之前 beforeUpdate() {}, //生命周期 - 更新之前 updated() {}, //生命周期 - 更新之后 beforeDestroy() {}, //生命周期 - 销毁之前 destroyed() {}, //生命周期 - 销毁完成 activated() {} //如果页面有keep-alive缓存功能,这个函数会触发 }; </script> <style scoped> <style lang="scss" scoped> /* @import url(); 引入公共css类 */ ::v-deep.el-table .error-row { background: #fcebeb; } </style> src/views/project/fund/performancedetails/index.vue
@@ -1719,9 +1719,11 @@ flowconclusion: this.checkObj.flowlevelone, flowcontent: this.checkObj.flowconclusion }; this.$modal.loading("正在提交审核,请稍候!"); checkfund(checkFundObj).then(res => { //关闭窗口 this.reset(); this.$modal.closeLoading(); this.$modal.msgSuccess("审核完成!"); this.$store.dispatch("tagsView/delView", this.$route); this.$router.go(-1); src/views/project/medicalevaluation/index.vue
@@ -200,10 +200,13 @@ width="120" > <template slot-scope="scope"> <dict-tag <div v-if="!scope.row.terminationCase"> <dict-tag :options="dict.type.sys_DonationStatus" :value="scope.row.recordstate" /> /> </div> <div v-else>任务中止</div> </template> </el-table-column> src/views/project/relativesconfirmation/index.vue
@@ -157,10 +157,14 @@ prop="recordstate" > <template slot-scope="scope"> <dict-tag <div v-if="!scope.row.terminationCase"> <dict-tag :options="dict.type.sys_DonationStatus" :value="scope.row.recordstate" /> /> </div> <div v-else>任务中止</div> </template> </el-table-column> src/views/project/travelexpenseapply/index.vue
@@ -1754,7 +1754,7 @@ console.log(url); const link = document.createElement("a"); link.href = url; const name=fileUrl["downloadName"] const name = fileUrl["downloadName"]; link.setAttribute("download", name); // 替换file.pdf为实际的文件名 document.body.appendChild(link); link.click(); @@ -2579,19 +2579,24 @@ //明显提示审批退回记录 rowClassName({ row, column, rowIndex, columnIndex }) { //此判断为最后三行 if (row.backflowlevel == 199) { return "addClassva"; if (row.recordstatus == -1 && row.backflowlevel != 0) { console.log("上色"); return "error-row"; } return ""; } } }; </script> <!-- <style scoped> --> <!-- 不可加scoped,会独立样式element访问不到 --> <style> <style lang="scss" scoped> .addClassva { /* background: #10aec2; */ background: #e8f4ff !important; /* color:whitesmoke; */ } ::v-deep.el-table .error-row { background: #FCEBEB; } </style> src/views/project/travelexpenseapply/travelexpensedetail/index.vue
@@ -2431,7 +2431,10 @@ this.Savenow(); console.log("保存"); } this.$modal.loading("正在提交审核,请稍候!"); checkfund(checkfundobj).then(res => { this.$modal.closeLoading(); this.$modal.msgSuccess("提交审核成功!"); // 关闭窗口 this.$store.dispatch("tagsView/delView", this.$route);