| | |
| | | <el-row v-if="jurisdiction"> |
| | | <!-- <el-alert title="当前为查看状态,不支持修改存储。" type="warning"> |
| | | </el-alert> --> |
| | | <el-alert |
| | | title="当前为查看状态,不支持修改存储。" |
| | | type="warning" |
| | | show-icon |
| | | > |
| | | <el-alert title="当前为查看状态,不支持修改存储。" type="warning" show-icon> |
| | | </el-alert> |
| | | </el-row> |
| | | <el-row v-if="businessType == 2"> |
| | | <div style="margin-bottom: 15px;"> |
| | | <el-button |
| | | type="success" |
| | | icon="el-icon-download" |
| | | @click="Batchentry" |
| | | >批量录入</el-button |
| | | > |
| | | <el-button type="success" icon="el-icon-download" @click="Batchentry">批量录入</el-button> |
| | | </div> |
| | | </el-row> |
| | | <el-row> |
| | |
| | | </el-table-column>--> |
| | | <el-table-column prop="applytype" align="center" label="服务类型" width="200"> |
| | | <template slot-scope="scope"> |
| | | <el-select |
| | | v-model="scope.row.applytype" |
| | | placeholder="服务类型" |
| | | @change="verifyFeeItemType(scope.row)" |
| | | > |
| | | <el-option |
| | | v-for="dict in rowfeeItemTypes" |
| | | :key="dict.index" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | ></el-option> |
| | | <el-select v-model="scope.row.applytype" placeholder="服务类型" @change="verifyFeeItemType(scope.row)"> |
| | | <el-option v-for="dict in rowfeeItemTypes" :key="dict.index" :label="dict.label" |
| | | :value="dict.value"></el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="unitno" align="center" label="单位名称" width="250" v-if="form.applytype != '4'"> |
| | | <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> |
| | | <!-- <el-select |
| | | v-model="scope.row.unitno" |
| | | placeholder="单位" |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="unitno" align="center" label="单位/个人" width="250" v-if="form.applytype == '4'"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | @click="ShowDetailDialog(scope, 'expert')" |
| | | >{{ |
| | | experthear == "expert" |
| | | ? scope.row.unitname |
| | | : scope.row.beneficiaryname |
| | | }}</el-button |
| | | > |
| | | <el-button type="primary" plain @click="ShowDetailDialog(scope, 'expert')">{{ |
| | | experthear == "expert" |
| | | ? scope.row.unitname |
| | | : scope.row.beneficiaryname |
| | | }}</el-button> |
| | | <!-- <el-select |
| | | v-model="scope.row.unitno" |
| | | placeholder="单位" |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24" v-if="experthear == 'unit'"> |
| | | <el-form-item |
| | | label="人员姓名" |
| | | prop="beneficiaryname" |
| | | label-width="80px" |
| | | > |
| | | <el-select |
| | | filterable |
| | | allow-create |
| | | ref="beneficiaryname" |
| | | default-first-option |
| | | @change="bbaaccss" |
| | | v-model="funddetailForm.beneficiaryname" |
| | | placeholder="请选择" |
| | | style="width: 100%" |
| | | > |
| | | <el-option |
| | | v-for="item in expertlist" |
| | | :key="item.expertNo" |
| | | :label="item.exportName" |
| | | :value="item.exportName" |
| | | > |
| | | <el-form-item label="人员姓名" prop="beneficiaryname" label-width="80px"> |
| | | <el-select filterable allow-create ref="beneficiaryname" default-first-option @change="bbaaccss" |
| | | v-model="funddetailForm.beneficiaryname" placeholder="请选择" style="width: 100%"> |
| | | <el-option v-for="item in expertlist" :key="item.expertNo" :label="item.exportName" |
| | | :value="item.exportName"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="24" v-if="experthear == 'expert'"> |
| | | <el-form-item label="单位名称" prop="unitno" label-width="120px"> |
| | | <el-select |
| | | v-model="funddetailForm.unitname" |
| | | placeholder="单位名称" |
| | | @change="bbaaccss" |
| | | clearable |
| | | filterable |
| | | allow-create |
| | | style="width: 100%" |
| | | > |
| | | <el-option |
| | | v-for="(spec, index) in unitList" |
| | | :key="index" |
| | | :label="spec.organizationname" |
| | | :value="spec.organizationname" |
| | | ></el-option> |
| | | <el-select v-model="funddetailForm.unitname" placeholder="单位名称" @change="bbaaccss" clearable filterable |
| | | allow-create style="width: 100%"> |
| | | <el-option v-for="(spec, index) in unitList" :key="index" :label="spec.organizationname" |
| | | :value="spec.organizationname"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-button type="primary" @click="ConfirmDetailDialog()">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog |
| | | v-dialogDrags |
| | | :modal="false" |
| | | :close-on-click-modal="false" |
| | | :title="pdftitle" |
| | | :visible.sync="pdfVisible" |
| | | width="60%" |
| | | > |
| | | <el-dialog v-dialogDrags :modal="false" :close-on-click-modal="false" :title="pdftitle" :visible.sync="pdfVisible" |
| | | width="60%"> |
| | | <div> |
| | | <el-table :data="tableDatatop" style="width: 100%"> |
| | | <el-table-column |
| | | v-if="businessType == 4" |
| | | prop="price" |
| | | align="center" |
| | | label="单价" |
| | | > |
| | | <el-table-column v-if="businessType == 4" prop="price" align="center" label="单价"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="quantity" |
| | | align="center" |
| | | label="数量" |
| | | v-if="businessType == 4" |
| | | > |
| | | <el-table-column prop="quantity" align="center" label="数量" v-if="businessType == 4"> |
| | | </el-table-column> |
| | | <el-table-column prop="amount" align="center" :label="amountLabel"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="taxedamount" |
| | | align="center" |
| | | label="税后金额" |
| | | v-if=" |
| | | (this.ismanager == true) & |
| | | (form.applytype == '1' || form.applytype == '2') |
| | | " |
| | | > |
| | | <el-table-column prop="taxedamount" align="center" label="税后金额" v-if="(this.ismanager == true) & |
| | | (form.applytype == '1' || form.applytype == '2') |
| | | "> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="beneficiaryname" |
| | | align="center" |
| | | label="姓名" |
| | | v-if="form.applytype == '1' || form.applytype == '2'" |
| | | > |
| | | <el-table-column prop="beneficiaryname" align="center" label="姓名" |
| | | v-if="form.applytype == '1' || form.applytype == '2'"> |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | prop="unitno" |
| | | align="center" |
| | | label="单位名称" |
| | | width="250" |
| | | v-if="form.applytype != '4'" |
| | | > |
| | | <el-table-column prop="unitno" align="center" label="单位名称" width="250" v-if="form.applytype != '4'"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="beneficiaryname" |
| | | align="center" |
| | | label="单位/个人" |
| | | width="250" |
| | | v-if="form.applytype == '4'" |
| | | > |
| | | <el-table-column prop="beneficiaryname" align="center" label="单位/个人" width="250" v-if="form.applytype == '4'"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="title" |
| | | align="center" |
| | | label="职称" |
| | | width="120" |
| | | v-if="form.applytype == '1' || form.applytype == '2'" |
| | | > |
| | | <el-table-column prop="title" align="center" label="职称" width="120" |
| | | v-if="form.applytype == '1' || form.applytype == '2'"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="idcardno" |
| | | align="center" |
| | | label="身份证号" |
| | | width="200" |
| | | v-if="form.applytype == '1' || form.applytype == '2'" |
| | | > |
| | | <el-table-column prop="idcardno" align="center" label="身份证号" width="200" |
| | | v-if="form.applytype == '1' || form.applytype == '2'"> |
| | | </el-table-column> |
| | | <el-table-column prop="depositbank" align="center" label="开户银行"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="bankcardno" |
| | | align="center" |
| | | label="银行帐号" |
| | | width="210" |
| | | > |
| | | <el-table-column prop="bankcardno" align="center" label="银行帐号" width="210"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | |
| | | </el-dialog> |
| | | |
| | | <!-- 批量选取 --> |
| | | <el-dialog |
| | | title="批量生成明细信息" |
| | | :visible.sync="batchdialogVisible" |
| | | width="30%" |
| | | > |
| | | <el-dialog title="批量生成明细信息" :visible.sync="batchdialogVisible" width="30%"> |
| | | <div style="max-height: 300px; overflow-y: auto"> |
| | | <el-checkbox |
| | | :indeterminate="isIndeterminate" |
| | | v-model="checkAll" |
| | | @change="handleCheckAllChange" |
| | | >全选</el-checkbox |
| | | > |
| | | <el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox> |
| | | <div style="margin: 15px 0;"></div> |
| | | <el-checkbox-group |
| | | v-model="checkedCities" |
| | | @change="handleCheckedCitiesChange" |
| | | > |
| | | <el-checkbox |
| | | border |
| | | v-for="city in cityOptions" |
| | | :label="city" |
| | | :key="city.reportNo" |
| | | >{{ city.reportName }}</el-checkbox |
| | | > |
| | | <el-checkbox-group v-model="checkedCities" @change="handleCheckedCitiesChange"> |
| | | <el-checkbox border v-for="city in cityOptions" :label="city" :key="city.reportNo">{{ city.reportName |
| | | }}</el-checkbox> |
| | | </el-checkbox-group> |
| | | </div> |
| | | |
| | |
| | | rowfeeItemTypes: [], |
| | | |
| | | //费用说明 |
| | | <<<<<<< Updated upstream |
| | | feeBlocks: [], |
| | | ======= |
| | | feeBlockList: [], |
| | | >>>>>>> Stashed changes |
| | | |
| | | fundflowList: [], |
| | | // 随机数 |
| | |
| | | //方法集合 |
| | | methods: { |
| | | bbaaccss(val) { |
| | | console.log(val); |
| | | console.log(this.funddetailForm); |
| | | }, |
| | | // 浏览器页面关闭或刷新提示 |
| | | beforeunloadHandler(e) { |
| | |
| | | sessionStorage.getItem("apifunddetail")) || |
| | | !sessionStorage.getItem("apifunddetail") |
| | | ) { |
| | | console.log(cg); |
| | | } else { |
| | | this._beforeUnload_time = new Date().getTime(); |
| | | e = e || window.event; |
| | |
| | | if (string.includes("9091")) { |
| | | const index = string.indexOf("9091"); |
| | | this.Networkheader = string.slice(0, index + 4); // 截取9091及其前部字符 |
| | | // console.log(this.Networkheader); |
| | | } else { |
| | | const index = string.indexOf("8032"); |
| | | this.Networkheader = string.slice(0, index + 4); // 截取8032及其前部字符 |
| | |
| | | this.title = this.businessName + "新建"; |
| | | if (this.operationType != "4") { |
| | | this.curCase = this.$route.query.curCase; |
| | | console.log("this.curCase", this.curCase); |
| | | } |
| | | this.handleAdd(); |
| | | } else if (this.operationType == "update") { |
| | |
| | | listFundflow(listFundflowparams).then(res => { |
| | | this.fundflowList = res.rows; |
| | | }); |
| | | console.log(this.fundflowList); |
| | | }); |
| | | }, |
| | | |
| | |
| | | getFund(this.curId).then(response => { |
| | | this.form = response.data; |
| | | sessionStorage.removeItem("apiform"); |
| | | |
| | | sessionStorage.setItem("apiform", JSON.stringify(this.form)); |
| | | |
| | | console.log("response.data", response.data); |
| | | //附件处理 |
| | | // this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : [] |
| | | |
| | |
| | | }) |
| | | .then(() => { |
| | | getownFundDetail(this.curId).then(res => { |
| | | console.log(res); |
| | | |
| | | let listdetails = res.data; |
| | | for (let i = 0; i < listdetails.length; i++) { |
| | | delFunddetail(listdetails[i].id); |
| | |
| | | return randomString; |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm: debounce(function() { |
| | | console.log("debounce"); |
| | | submitForm: debounce(function () { |
| | | if (!this.randomnumber) { |
| | | this.randomnumber = this.generateRandomString(9); |
| | | this.form.randomnumber = this.randomnumber; |
| | | } |
| | | console.log(this.randomnumber); |
| | | |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | this.formData = this.form; |
| | |
| | | this.rbDetails.map(item => { |
| | | this.form.serviceFunddetails += item.amount; |
| | | }); |
| | | console.log(this.rbDetails); |
| | | this.form.serviceFunddetails = this.rbDetails; |
| | | |
| | | if (this.form.id != null) { |
| | |
| | | } else { |
| | | this.ismanager = false; |
| | | } |
| | | console.log(this.userprofile, this.ismanager); |
| | | |
| | | if (this.operationType == "add") { |
| | | this.form.username = this.userprofile.nickName; |
| | | this.form.userno = this.userprofile.userName; |
| | |
| | | expertNo: this.personlist[j].id, |
| | | exportName: this.personlist[j].username |
| | | }); |
| | | console.log(this.expertlist); |
| | | } |
| | | } |
| | | }); |
| | |
| | | |
| | | //获取费用机构列表 |
| | | getFeeUnitList() { |
| | | console.log("单位"); |
| | | listReportname("org").then(res => { |
| | | this.feeUnitList = res.data; |
| | | }); |
| | | console.log(this.feeUnitList); |
| | | }, |
| | | |
| | | //获取医疗机构列表 |
| | | getUnitList() { |
| | | console.log("医疗机构"); |
| | | listOrganization(3).then(response => { |
| | | for (let i = 0; i < response.rows.length; i++) { |
| | | this.unitList.push({ |
| | |
| | | subjecttype: dataList[m].subjecttype, |
| | | subjecttypename: dataList[m].subjecttypename |
| | | }); |
| | | console.log("费用类型", this.rowfeeItemTypes); |
| | | } |
| | | }); |
| | | |
| | |
| | | this.rbDetails.map(item => { |
| | | this.form.serviceFunddetails += item.amount; |
| | | }); |
| | | console.log(this.rbDetails); |
| | | this.form.serviceFunddetails = this.rbDetails; |
| | | |
| | | if (this.form.id != null) { |
| | |
| | | }); |
| | | }, |
| | | handleCheckAllChange(val) { |
| | | console.log(val); |
| | | this.checkedCities = val ? this.cityOptions : []; |
| | | this.isIndeterminate = false; |
| | | }, |
| | | handleCheckedCitiesChange(value) { |
| | | console.log(value); |
| | | console.log(this.checkedCities); |
| | | let checkedCount = value.length; |
| | | console.log(checkedCount); |
| | | this.checkAll = checkedCount === this.cityOptions.length; |
| | | this.isIndeterminate = |
| | | checkedCount > 0 && checkedCount < this.cityOptions.length; |
| | |
| | | Batchentry() { |
| | | // ethical |
| | | listReportname("ethical").then(res => { |
| | | console.log(res); |
| | | this.cityOptions = res.data; |
| | | }); |
| | | this.batchdialogVisible = true; |
| | |
| | | // 确认录入 |
| | | BatchentryFn() { |
| | | this.checkedCities.forEach(item => { |
| | | console.log(item); |
| | | let rowData = { |
| | | orderno: null, |
| | | id: item.id, |
| | |
| | | annexfiles: null |
| | | }; |
| | | |
| | | console.log(rowData); |
| | | this.rbDetails.push(rowData); |
| | | }); |
| | | for (let i = 0; i < this.checkedCities.length + 1; i++) { |
| | |
| | | type: "success" |
| | | }) |
| | | .then(() => { |
| | | console.log(this.rbDetails.length); |
| | | if (this.rbDetails.length == 1) { |
| | | console.log("新增"); |
| | | this.addRow(0); |
| | | } |
| | | if (row.id !== null) { |
| | |
| | | }).then(() => { |
| | | this.$set(rows, rows.splice(index, 1)); |
| | | getownFundDetail(this.form.id).then(res => { |
| | | console.log(res); |
| | | |
| | | this.$set(this.rbDetails, res.data); |
| | | for (let i = 0; i < this.rbDetails.length; i++) { |
| | |
| | | }, |
| | | |
| | | //文件上传 |
| | | handleUploadError() {}, |
| | | handleUploadError() { }, |
| | | remove(file, fileList) { |
| | | const rbDetails = [...this.rbDetails]; |
| | | this.fileListto.splice(this.fileListto.indexOf(file), 1); |
| | |
| | | // this.$modal.msgSuccess(response.msg); |
| | | // this.fileList.push({ name: response.fileName, url: response.fileName }); |
| | | // } else { |
| | | // console.log(response.msg); |
| | | // } |
| | | // }, |
| | | uploadSccess(response, file, fileList) { |
| | |
| | | |
| | | this.rbDetails[this.atpresent].annexfilesList = this.fileListto; |
| | | } else { |
| | | console.log(response.msg); |
| | | } |
| | | }, |
| | | |
| | | // 点击票据 |
| | | Filepopup(index, rows, row) { |
| | | console.log(row); |
| | | this.tableDatatop = []; |
| | | this.pdfimgsrcList = []; |
| | | this.tableDatatop.push(row); |
| | |
| | | this.fileListto.forEach(item => { |
| | | this.pdfimgsrcList.push(this.Networkheader + "/prod-api" + item.url); |
| | | }); |
| | | console.log(this.pdfimgsrcList); |
| | | console.log(this.pdfimg); |
| | | this.pdftitle = "共" + this.pdfimgsrcList.length + "项"; |
| | | } else { |
| | | this.fileListto = []; |
| | |
| | | |
| | | // 点击已上传文件 |
| | | downFile(item) { |
| | | console.log(item); |
| | | this.pdftitle = |
| | | "共" + this.pdfimgsrcList.length + "项,当前选中" + item.name; |
| | | let name = item.name.split("."); |
| | |
| | | |
| | | // if (!this.pdfimgsrcList.includes(this.pdfimg)) { |
| | | // this.pdfimgsrcList.push(this.pdfimg); |
| | | // console.log("加入"); |
| | | // } |
| | | console.log(this.pdfimg); |
| | | console.log(this.pdfimgsrcList, "imglist"); |
| | | } else { |
| | | this.pdfimg = this.Networkheader + "/prod-api" + item.url; |
| | | } |
| | |
| | | }, |
| | | // 点击删除 |
| | | deletedowfile(row) { |
| | | console.log(this.fileListto); |
| | | console.log(row); |
| | | const indexlist = this.getIndexInArray( |
| | | this.pdfimgsrcList, |
| | | this.Networkheader + "/prod-api" + row.url |
| | | ); |
| | | console.log(indexlist); |
| | | this.pdfimgsrcList.splice(indexlist, 1); |
| | | const index = this.getIndexInArray(this.fileListto, row); |
| | | this.fileListto.splice(index, 1); |
| | | console.log(index); |
| | | console.log(this.pdfimgsrcList); |
| | | }, |
| | | // 点击上移 |
| | | moveupdowfile(row) { |
| | |
| | | //专家/医疗机构/费用报销机构选择 |
| | | ShowDetailDialog(spoce, showType) { |
| | | this.spocewl = spoce; |
| | | console.log(spoce); |
| | | this.selectionType = showType; |
| | | if (this.businessType == 4 || !showType) { |
| | | this.selectionType = this.experthear; |
| | | console.log(this.selectionType); |
| | | } |
| | | // if (!showType) { |
| | | // this.selectionType = this.experthear; |
| | |
| | | |
| | | //专家/医疗机构/费用报销机构选择 |
| | | ConfirmDetailDialog() { |
| | | console.log(this.unitforname); |
| | | console.log(this.Personnelforname); |
| | | if (this.businessType == 4) { |
| | | if (this.experthear == "expert") { |
| | | this.funddetailForm.beneficiaryname = this.unitforname; |
| | | } else { |
| | | console.log(11); |
| | | this.funddetailForm.beneficiaryname = this.Personnelforname; |
| | | console.log(this.funddetailForm.beneficiaryname); |
| | | } |
| | | } |
| | | |
| | | console.log(this.funddetailForm); |
| | | let tempIndex = this.funddetailForm.index; |
| | | let tempExpertName = this.funddetailForm.beneficiaryname; |
| | | let tempUnitname = this.funddetailForm.unitname; |
| | | let singleDetail = this.rbDetails[tempIndex]; |
| | | console.log(tempExpertName); |
| | | |
| | | if (this.selectionType == "expert" || this.businessType == 4) { |
| | | if (this.expertfrom == "1" || this.experthear == "unit") { |
| | |
| | | if (this.businessType == 4) { |
| | | singleDetail.beneficiaryname = this.funddetailForm.beneficiaryname; |
| | | } |
| | | console.log(singleDetail); |
| | | console.log(this.funddetailForm); |
| | | this.rbDetails[tempIndex] = singleDetail; |
| | | this.showSelectionDialog = false; |
| | | } |
| | |
| | | this.getUserProfile(); |
| | | let apifunddetailForm = this.funddetailForm; |
| | | let apiform = this.form; |
| | | console.log(apiform); |
| | | console.log(apifunddetailForm); |
| | | |
| | | // this.getFeeUnitList(); |
| | | }, |
| | |
| | | font-size: 25px; |
| | | line-height: 25px; |
| | | } |
| | | ::v-deep .el-checkbox.is-bordered + .el-checkbox.is-bordered { |
| | | |
| | | ::v-deep .el-checkbox.is-bordered+.el-checkbox.is-bordered { |
| | | margin-left: 0 !important; |
| | | margin-bottom: 10px; |
| | | } |