| | |
| | | <el-table-column label="所属组别" align="center" prop="deptmentname" width="140px" /> |
| | | <el-table-column label="组长" align="center" prop="managername" width="120px" /> |
| | | <el-table-column label="捐献者" align="center" prop="donorname" width="120px" /> |
| | | <el-table-column label="捐献编号" align="center" prop="donorno" /> |
| | | <!--<el-table-column label="捐献编号" align="center" prop="donorno" />--> |
| | | <el-table-column label="申请金额" align="center" prop="amountrequested" width="120px" /> |
| | | <el-table-column label="预支费用" align="center" prop="prepaidamount" width="120px" /> |
| | | <!--<el-table-column label="工作单位" align="center" prop="unitname" width="230px" /> |
| | |
| | | <el-radio-group v-model="form.applytype" @change="LoadItemTypeArr"> |
| | | <!--<el-radio v-for="dict in dict.type.sys_financeitemtype" :key="dict.value" :label="dict.value" |
| | | :disabled="form.id != null">{{ dict.label }}</el-radio>--> |
| | | <el-radio v-model="form.applytype" label="3">伦理审查专家费申请</el-radio> |
| | | <el-radio v-model="form.applytype" label="3">医学成本费用申请</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <el-form-item label="合计金额" prop="amountrequested"> |
| | | <el-input v-model="form.amountrequested" placeholder="申请金额" :disabled="true" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col><!-- |
| | | <el-col :span="5"> |
| | | <el-form-item label="税前金额" prop="amountrequested"> |
| | | <el-input v-model="form.pretaxcost" placeholder="税前金额合计" :disabled="true" /> |
| | |
| | | </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> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-col>--> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="4"> |
| | |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-row> |
| | | |
| | | <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) => |
| | | 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> |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row style="margin-top: 5px; margin-bottom: 5px"> |
| | | <el-table :data="fundflowList" border> |
| | | <el-table-column label="审核人" align="center" prop="checkusername" /> |
| | |
| | | import Li_area_select from "@/components/Address"; |
| | | import OrgSelecter from "@/views/project/components/orgselect"; |
| | | import { getUserProfile } from "@/api/system/user"; |
| | | import { getToken } from "@/utils/auth"; |
| | | |
| | | export default { |
| | | components: { |
| | |
| | | approveLevel: 5, |
| | | fundtypeArrAll: [], |
| | | dialogType: "edit", |
| | | |
| | | //附件列表 |
| | | fileList: [], |
| | | //上传附件路径 |
| | | uploadFileUrl: process.env.VUE_APP_BASE_API + "/common/upload", |
| | | headers: { |
| | | Authorization: "Bearer " + getToken(), |
| | | }, |
| | | |
| | | }; |
| | | }, |
| | | watch: {}, |
| | |
| | | }, |
| | | methods: { |
| | | selectapplication() { |
| | | console.log("时间", this.createTime); |
| | | this.queryParams.APPLICATIONBEGTIME = this.createTime[0]; |
| | | this.queryParams.APPLICATIONENDTIME = this.createTime[1]; |
| | | }, |
| | |
| | | this.loading = true; |
| | | // this.queryParams.params = {}; |
| | | listbypower(this.queryParams).then((res) => { |
| | | //console.log("根据权限显示列表", res); |
| | | console.log("根据权限显示列表", res); |
| | | this.loading = false; |
| | | let list = res.rows; |
| | | let arr = []; |
| | |
| | | dundcheck() { |
| | | // this.$em |
| | | this.dialogOpen = false; |
| | | console.log("1234567", this.newobj, this.form.flowconclusion); |
| | | let checkfundobj = { |
| | | flowconclusion: this.newobj.flowlevelone, |
| | | flowcontent: this.newobj.flowconclusion, |
| | |
| | | }; |
| | | checkfund(checkfundobj).then((res) => { |
| | | this.reset(); |
| | | this.$modal.msgSuccess("审核完成!"); |
| | | console.log("审核费用", res); |
| | | this.$modal.msgSuccess("审核完成!"); |
| | | this.getlistbypower(); |
| | | }); |
| | |
| | | change(scope) { }, |
| | | autodonorno() { |
| | | listDonatebaseinfo().then((res) => { |
| | | // console.log("所有捐献者列表:",res); |
| | | res.rows.forEach((data) => { |
| | | // console.log("data:",data); |
| | | if (this.form.doname === data.name) { |
| | | this.form.donorno = data.donorno; |
| | | console.log(this.form.donorno); |
| | | } else { |
| | | // this.$modal.alertWarning("对不起,无该捐献人"); |
| | | } |
| | |
| | | applytype: "3", |
| | | }; |
| | | this.resetForm("form"); |
| | | |
| | | //清空附件 |
| | | this.fileList = [] |
| | | }, |
| | | |
| | | /** 搜索按钮操作 */ |
| | |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | console.log("222", this.curCase); |
| | | if (this.curCase.id) { |
| | | this.istrue += 2; |
| | | this.reset(); |
| | |
| | | getFund(id).then((response) => { |
| | | this.form = response.data; |
| | | this.form.name = this.curCase.name; |
| | | //附件处理 |
| | | this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : [] |
| | | |
| | | getownFundDetail(id).then((res) => { |
| | | this.loading = false; |
| | |
| | | this.fundDetailArr[m].itemArr = []; |
| | | this.getItemArr(m, this.fundDetailArr[m]); |
| | | } |
| | | console.log("fundDetailArr:" + JSON.stringify(this.fundDetailArr)); |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | getFund(row.id).then((response) => { |
| | | this.form = response.data; |
| | | this.form.name = this.curCase.name; |
| | | //附件处理 |
| | | this.fileList = this.form.annexbankcard ? this.form.annexbankcard.split(",").map(item => ({ url: item, name: item })) : [] |
| | | |
| | | getownFundDetail(row.id).then((res) => { |
| | | this.fundDetailArr = res.data; |
| | | for (let m = 0; m < this.fundDetailArr.length; m++) { |
| | |
| | | }, |
| | | |
| | | select(row) { |
| | | console.log("测试开始", row.itemid, row.itemArr); |
| | | row.itemArr.map((res) => { |
| | | if (row.itemid === res.id) { |
| | | row.remark = res.itemdescribe; |
| | |
| | | } |
| | | }); |
| | | listcountItem(this.form.infoid, row.itemid).then((res) => { |
| | | console.log("resresresres", res); |
| | | if (res.data > 0) { |
| | | this.$modal.msgWarning("您已经提交过该服务项目"); |
| | | } |
| | |
| | | servivesscope: item.id, |
| | | }); |
| | | }); |
| | | console.log("组装后的数据", fundblock); |
| | | |
| | | this.fundblock = fundblock; |
| | | }); |
| | | }, |
| | |
| | | }, |
| | | |
| | | saverow(row, index, rows) { |
| | | console.log("dwadw", index, rows, row); |
| | | let totallist = this.fundDetailArr; |
| | | if (this.form.id) { |
| | | if (!row.id) { |
| | |
| | | this.$set(this.fundDetailArr, res.data); |
| | | this.sumTotalFee(); |
| | | // this.fundDetailArr = res.data |
| | | // console.log('删除后',this.fundDetailArr) |
| | | }); |
| | | }); |
| | | } |
| | | // getownFundDetail(this.form.id).then(res=>{ |
| | | // this.$set(this.fundDetailArr,res.data) |
| | | // this.fundDetailArr = res.data |
| | | // console.log('删除后',this.fundDetailArr) |
| | | // }) |
| | | }); |
| | | } else { |
| | |
| | | }) |
| | | .then(() => { |
| | | updateFunddetail(this.fundDetailArr).then((res) => { |
| | | console.log("牛丸牛啊", res); |
| | | }); |
| | | }) |
| | | .catch(() => { |
| | |
| | | //判断数据明细数据是否正确 |
| | | let detailDataCorrect = true; |
| | | for (let i = 0; i < this.applicationDetailArr.length; i++) { |
| | | // console.log('qqq',this.applicationDetailArr[i]); |
| | | let tempData = this.applicationDetailArr[i]; |
| | | Object.keys(tempData).forEach(function (key) { |
| | | // console.log('iii',key, tempData[key]); |
| | | if ( |
| | | tempData[key] == null || |
| | | tempData[key] == undefined || |
| | |
| | | //获取费用类型 |
| | | getCurFundType() { |
| | | getFundTypeAll(3).then((res) => { |
| | | console.log("费用类型", res.data); |
| | | let dataList = res.data; |
| | | this.fundtypeArrAll = dataList; |
| | | this.fundtypeArr = []; |
| | |
| | | listReportname(arr[i]).then((res) => { |
| | | this.arrr2 = res.data; |
| | | this.arrr3 = this.arrr3.concat(this.arrr2); |
| | | console.log("adadadadasdsad", this.arrr3, this.userlist); |
| | | }); |
| | | } |
| | | }, |
| | |
| | | |
| | | getUsermsg() { |
| | | getUserProfile().then((response) => { |
| | | console.log("登录用户信息", response.data); |
| | | // this.defaultperson = response.data; |
| | | // this.standardlevel = response.data.standardlevel; |
| | | if ( |
| | |
| | | } else { |
| | | this.show = 3; |
| | | } |
| | | console.log("where", this.show); |
| | | }); |
| | | }, |
| | | |
| | |
| | | dayin() { |
| | | if (this.form.id) { |
| | | const id = this.form.id; |
| | | console.log(id); |
| | | getdownloadLW(id).then((res) => { |
| | | if (res.downloadUrl) { |
| | | var fileUrl = res; |
| | |
| | | dayin4() { |
| | | const id = this.form.id; |
| | | // getdownloadLL(id).then(res=>{ |
| | | // console.log('劳务下载',res); |
| | | // }) |
| | | }, |
| | | // 捐献者家属交通食宿打印 |
| | |
| | | type: "success", |
| | | }); |
| | | } |
| | | console.log("家属伙食交通费", res); |
| | | }); |
| | | } else { |
| | | this.$alert("请确认您要下载的专家劳务表", "提醒", { |
| | |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | //文件上传 |
| | | handleUploadError() { }, |
| | | remove(file) { |
| | | this.fileList.splice(this.fileList.indexOf(file), 1) |
| | | }, |
| | | handleExceed() { |
| | | this.$message.error(`上传文件数量不能超过 ${5} 个!`); |
| | | }, |
| | | //文件上传成功回调 |
| | | uploadSccess(response, file, fileList) { |
| | | //获取附件信息位置 |
| | | if (response.code == 200) { |
| | | this.form.filename = file.raw.name; |
| | | this.$modal.msgSuccess(response.msg); |
| | | this.fileList.push({ name: response.fileName, url: response.fileName }); |
| | | } else { |
| | | this.$modal.msgError(response.msg); |
| | | } |
| | | }, |
| | | // 下载文件 |
| | | downFile(item) { |
| | | const url = process.env.VUE_APP_BASE_API + item.url |
| | | var a = document.createElement('a'); |
| | | var event = new MouseEvent('click'); |
| | | a.download = item.name; |
| | | a.href = url; |
| | | a.dispatchEvent(event); |
| | | }, |
| | | |
| | | }, |
| | | }; |
| | | </script> |