From d23ab1d66456d5dd8aa8645bb262deef4e70a9eb Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期五, 17 一月 2025 19:02:01 +0800 Subject: [PATCH] 2 --- src/views/system/tijian/index.vue | 5 src/views/doctor/pacsCheck/index.vue | 4 src/views/hosp/order/index.vue | 16 src/views/hosp/advicerules/index.vue | 863 +++++++++++++++++++++++++++++++++++++++++++++++++++++ src/api/hosp/advicerules.js | 44 ++ src/components/proposal/index.vue | 4 6 files changed, 928 insertions(+), 8 deletions(-) diff --git a/src/api/hosp/advicerules.js b/src/api/hosp/advicerules.js new file mode 100644 index 0000000..0bafcd9 --- /dev/null +++ b/src/api/hosp/advicerules.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 鏌ヨ浣撴椤圭洰寤鸿瑙勫垯鏂拌〃鍒楄〃 +export function listAdvicerules(query) { + return request({ + url: '/hosp/advicerules/list', + method: 'get', + params: query + }) +} + +// 鏌ヨ浣撴椤圭洰寤鸿瑙勫垯鏂拌〃璇︾粏 +export function getAdvicerules(id) { + return request({ + url: '/hosp/advicerules/' + id, + method: 'get' + }) +} + +// 鏂板浣撴椤圭洰寤鸿瑙勫垯鏂拌〃 +export function addAdvicerules(data) { + return request({ + url: '/hosp/advicerules', + method: 'post', + data: data + }) +} + +// 淇敼浣撴椤圭洰寤鸿瑙勫垯鏂拌〃 +export function updateAdvicerules(data) { + return request({ + url: '/hosp/advicerules', + method: 'put', + data: data + }) +} + +// 鍒犻櫎浣撴椤圭洰寤鸿瑙勫垯鏂拌〃 +export function delAdvicerules(id) { + return request({ + url: '/hosp/advicerules/' + id, + method: 'delete' + }) +} diff --git a/src/components/proposal/index.vue b/src/components/proposal/index.vue index 6f509d5..0d8f006 100644 --- a/src/components/proposal/index.vue +++ b/src/components/proposal/index.vue @@ -47,6 +47,7 @@ > <el-table-column type="selection" width="40" align="center" /> <el-table-column label="缂栫爜" width="70" align="center" prop="id" /> + <el-table-column label="鏍囬" width="120" align="center" prop="title" /> <el-table-column label="寤鸿鍐呭" align="left" prop="advice" /> <!-- <el-table-column label="鍒涘缓浜�" @@ -111,6 +112,7 @@ page: 1, pageSize: 10, jynr: "", + jybt:"" }, list: [], fList: {}, @@ -164,7 +166,7 @@ console.log(this.list); }, search() { - this.queryParams.jynr = this.searchAdv; + this.queryParams.jybt = this.searchAdv; this.queryParams.page = 1; this.loading = true; getKjTjAdviceKjbqBySex(this.queryParams).then((res) => { diff --git a/src/views/doctor/pacsCheck/index.vue b/src/views/doctor/pacsCheck/index.vue index d3bd6ed..daf5306 100644 --- a/src/views/doctor/pacsCheck/index.vue +++ b/src/views/doctor/pacsCheck/index.vue @@ -17,7 +17,7 @@ style="width: 170px" /> </el-form-item> - <el-form-item label="濮撳悕" prop="name"> + <!-- <el-form-item label="濮撳悕" prop="name"> <el-input v-model="queryParams.name" placeholder="璇疯緭鍏ュ鍚�" @@ -40,7 +40,7 @@ @change="handleDateChange" > </el-date-picker> - </el-form-item> + </el-form-item> --> <el-form-item> <el-button type="primary" diff --git a/src/views/hosp/advicerules/index.vue b/src/views/hosp/advicerules/index.vue new file mode 100644 index 0000000..5ffd937 --- /dev/null +++ b/src/views/hosp/advicerules/index.vue @@ -0,0 +1,863 @@ +<template> + <div class="app-container"> + <el-form + :model="queryParams" + ref="queryForm" + size="small" + :inline="true" + v-show="showSearch" + label-width="68px" + > + <!-- <el-form-item label="缂栫爜" prop="bm"> + <el-input + v-model="queryParams.bm" + placeholder="璇疯緭鍏ョ紪鐮�" + clearable + @keyup.enter.native="handleQuery" + /> + </el-form-item> --> + <el-form-item label="绉戝" prop="ks"> + <el-input + v-model="queryParams.ks" + placeholder="璇疯緭鍏ョ瀹�" + clearable + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="妫�鏌ラ」鐩�" prop="jcxm"> + <el-input + v-model="queryParams.jcxm" + placeholder="璇疯緭鍏ユ鏌ラ」鐩�" + clearable + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="涓昏璇婃柇" prop="zyzd"> + <el-input + v-model="queryParams.zyzd" + placeholder="璇疯緭鍏ヤ富瑕佽瘖鏂�" + clearable + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item> + <el-button + type="primary" + icon="el-icon-search" + size="mini" + @click="handleQuery" + >鎼滅储</el-button + > + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery" + >閲嶇疆</el-button + > + </el-form-item> + </el-form> + + <el-row :gutter="10" class="mb8"> + <el-col :span="1.5"> + <el-button + type="primary" + plain + icon="el-icon-plus" + size="mini" + @click="handleAdd" + v-hasPermi="['hosp:advicerules:add']" + >鏂板 + </el-button> + </el-col> + <el-col :span="1.5"> + <el-button + type="success" + plain + icon="el-icon-edit" + size="mini" + :disabled="single" + @click="handleUpdate" + v-hasPermi="['hosp:advicerules:edit']" + >淇敼 + </el-button> + </el-col> + <el-col :span="1.5"> + <el-button + type="danger" + plain + icon="el-icon-delete" + size="mini" + :disabled="multiple" + @click="handleDelete" + v-hasPermi="['hosp:advicerules:remove']" + >鍒犻櫎 + </el-button> + </el-col> + <el-col :span="1.5"> + <el-button + type="warning" + plain + icon="el-icon-download" + size="mini" + @click="handleImport" + >瀵煎叆 + </el-button> + </el-col> + <el-col :span="1.5"> + <el-button + type="warning" + plain + icon="el-icon-download" + size="mini" + @click="handleExport" + v-hasPermi="['hosp:advicerules:export']" + >瀵煎嚭 + </el-button> + </el-col> + <right-toolbar + :showSearch.sync="showSearch" + @queryTable="getList" + ></right-toolbar> + </el-row> + + <el-table + v-loading="loading" + :data="advicerulesList" + @selection-change="handleSelectionChange" + > + <el-table-column type="selection" width="55" align="center" /> + <el-table-column label="搴忓彿" width="50" align="center"> + <template slot-scope="scope"> + {{ scope.$index + 1 }} + <!-- 浣跨敤 $index 鏉ユ樉绀哄簭鍙凤紝浠�1寮�濮� --> + </template> + </el-table-column> + <el-table-column label="缂栫爜" align="center" prop="bm" /> + <el-table-column label="绉戝" align="center" prop="ks" /> + <el-table-column label="妫�鏌ラ」鐩�" align="center" prop="jcxm" /> + <el-table-column + label="涓昏璇婃柇" + align="center" + :show-overflow-tooltip="true" + width="120" + prop="zyzd" + /> + <el-table-column + label="寤鸿鍚嶇О" + align="center" + :show-overflow-tooltip="true" + width="150" + prop="jymc" + /> + <el-table-column + label="寤鸿鍐呭" + align="center" + :show-overflow-tooltip="true" + width="200" + prop="jynr" + /> + <el-table-column label="鑼冨洿" align="center" prop="fwz" /> + <el-table-column label="鑼冨洿鏈�灏忓��" align="center" prop="fwzxz" /> + <el-table-column label="鑼冨洿鏈�澶у��" align="center" prop="fwzdz" /> + <el-table-column label="寮傚父鏍囧織" align="center" prop="ycbz" /> + <el-table-column label="鏄惁鐤剧梾" align="center" prop="sfjb"> + <!-- <template slot-scope="scope"> + <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.sfjb" /> + </template> --> + </el-table-column> + <el-table-column label="鏄惁甯歌鐥�" align="center" prop="sfcjb"> + <!-- <template slot-scope="scope"> + <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.sfcjb" /> + </template> --> + </el-table-column> + <el-table-column label="鏄惁鎱㈡�х梾" align="center" prop="sfmxb"> + <!-- <template slot-scope="scope"> + <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.sfmxb" /> + </template> --> + </el-table-column> + <el-table-column + label="鏄惁閲嶅ぇ鐤剧梾" + align="center" + width="120" + prop="sfzdjb" + > + <!-- <template slot-scope="scope"> + <dict-tag :options="dict.type.sys_yes_no" :value="scope.row.sfzdjb" /> + </template> --> + </el-table-column> + <el-table-column + label="鎿嶄綔" + align="center" + class-name="small-padding fixed-width" + > + <template slot-scope="scope"> + <el-button + size="mini" + type="text" + icon="el-icon-edit" + @click="handleUpdate(scope.row)" + v-hasPermi="['hosp:advicerules:edit']" + > + </el-button> + <el-button + size="mini" + type="text" + icon="el-icon-delete" + @click="handleDelete(scope.row)" + v-hasPermi="['hosp:advicerules:remove']" + > + </el-button> + </template> + </el-table-column> + </el-table> + + <pagination + v-show="total > 0" + :total="total" + :page.sync="queryParams.pageNum" + :limit.sync="queryParams.pageSize" + @pagination="getList" + /> + + <!-- 娣诲姞鎴栦慨鏀逛綋妫�椤圭洰寤鸿瑙勫垯鏂拌〃瀵硅瘽妗� --> + <el-dialog + :title="title" + :visible.sync="open" + width="1000px" + append-to-body + :close-on-click-modal="false" + > + <el-form + ref="form" + :model="form" + :rules="rules" + label-width="80px" + :inline="true" + > + <el-form-item label="绉戝" prop="ks"> + <el-select + v-model="form.ks" + placeholder="璇烽�夋嫨绉戝" + style="width: 200" + > + <el-option + v-for="item in departmentOptions" + :key="item.value" + :label="item.label" + :value="item.value" + /> + </el-select> + </el-form-item> + <el-form-item label="妫�鏌ラ」鐩�" prop="jcxm"> + <el-input + v-model="form.jcxm" + placeholder="璇疯緭鍏ユ鏌ラ」鐩�" + style="width: 200px" + /> + </el-form-item> + <el-form-item label="涓昏璇婃柇" prop="zyzd"> + <el-input + v-model="form.zyzd" + placeholder="璇疯緭鍏ヤ富瑕佽瘖鏂�" + style="width: 200px" + /> + </el-form-item> + + <el-form-item label="鑼冨洿" prop="fw"> + <el-input + v-model="form.fw" + placeholder="璇疯緭鍏ヨ寖鍥�" + style="width: 200px" + /> + </el-form-item> + <el-form-item label="鏈�灏忓��" prop="fwzxz"> + <el-input + v-model="form.fwzxz" + style="width: 200px" + placeholder="璇疯緭鍏ヨ寖鍥存渶灏忓��" + /> + </el-form-item> + <el-form-item label="鏈�澶у��" prop="fwzdz"> + <el-input + v-model="form.fwzdz" + style="width: 200px" + placeholder="璇疯緭鍏ヨ寖鍥存渶澶у��" + /> + </el-form-item> + <el-form-item label="寮傚父鏍囧織" prop="ycbz"> + <el-input + v-model="form.ycbz" + style="width: 200px" + placeholder="璇疯緭鍏ュ紓甯告爣蹇�" + /> + </el-form-item> + <el-form-item label="鐤剧梾" prop="sfjb"> + <el-checkbox v-model="form.sfjb" true-label="鏄�" false-label="鍚�"> + </el-checkbox> + </el-form-item> + <el-form-item label="甯歌鐥�" prop="sfcjb"> + <el-checkbox + v-model="form.sfcjb" + true-label="鏄�" + false-label="鍚�" + ></el-checkbox> + <!-- <el-input + v-model="form.sfcjb" + style="width: 200px" + placeholder="璇疯緭鍏ユ槸鍚﹀父瑙佺梾" + /> --> + </el-form-item> + <el-form-item label="鎱㈡�х梾" prop="sfmxb"> + <el-checkbox + v-model="form.sfmxb" + true-label="鏄�" + false-label="鍚�" + ></el-checkbox> + <!-- <el-input + v-model="form.sfmxb" + style="width: 200px" + placeholder="璇疯緭鍏ユ槸鍚︽參鎬х梾" + /> --> + </el-form-item> + <el-form-item label="閲嶅ぇ鐤剧梾" prop="sfzdjb"> + <el-checkbox + v-model="form.sfzdjb" + true-label="鏄�" + false-label="鍚�" + ></el-checkbox> + <!-- <el-input + v-model="form.sfzdjb" + style="width: 200px" + placeholder="璇疯緭鍏ユ槸鍚﹂噸澶х柧鐥�" + /> --> + </el-form-item> + <el-form-item label="寤鸿鍚嶇О" prop="jymc" style="display: block"> + <el-input + v-model="form.jymc" + placeholder="璇疯緭鍏ュ缓璁悕绉�" + style="width: 200px" + /> + </el-form-item> + + <el-form-item label="寤鸿鍐呭" prop="jynr"> + <span + slot="label" + style="display: inline-block; border-bottom: 2px solid blue" + @click="getDetailed" + > + 寤鸿鍐呭 + </span> + + <el-input + v-if="key !== 'N'" + style="width: 782px" + type="textarea" + :rows="3" + v-model="form.jynr" + placeholder="璇疯緭鍏ュ缓璁唴瀹�" + > + </el-input> + </el-form-item> + </el-form> + <div slot="footer" class="dialog-footer"> + <el-button type="primary" @click="submitForm">纭� 瀹�</el-button> + <el-button @click="cancel">鍙� 娑�</el-button> + </div> + </el-dialog> + + <el-dialog + :title="upload.title" + :visible.sync="upload.open" + width="400px" + append-to-body + > + <el-upload + ref="upload" + :limit="1" + accept=".xlsx, .xls" + :headers="upload.headers" + :data="data" + :action="upload.url" + :disabled="upload.isUploading" + :on-progress="handleFileUploadProgress" + :on-success="handleFileSuccess" + :auto-upload="false" + drag + > + <i class="el-icon-upload"></i> + <div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div> + <div class="el-upload__tip text-center" slot="tip"> + <div class="el-upload__tip" slot="tip"> + <el-checkbox v-model="upload.updateSupport" /> + 鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹� + </div> + <span>浠呭厑璁稿鍏ls銆亁lsx鏍煎紡鏂囦欢銆�</span> + <!-- <el-link + type="primary" + :underline="false" + style="font-size: 12px; vertical-align: baseline" + @click="importTemplate" + >涓嬭浇妯℃澘</el-link + > --> + </div> + </el-upload> + <div slot="footer" class="dialog-footer"> + <el-button type="primary" @click="submitFileForm">淇濆瓨淇℃伅</el-button> + <el-button @click="upload.open = false">鍙� 娑�</el-button> + </div> + </el-dialog> + + <!-- 寤鸿鍐呭鍙婂缓璁悕绉板脊妗� --> + <el-dialog + title="寤鸿鍐呭" + :visible.sync="dialogTableVisible" + width="80%" + :close-on-click-modal="false" + @close="clearForm" + > + <div class="app-container"> + <el-form + :model="form" + ref="queryForm" + size="small" + :inline="true" + v-show="showSearch" + label-width="68px" + > + <el-form-item label="鏍囬" prop="title"> + <el-input + v-model="queryParam1.bt" + placeholder="璇疯緭鍏ユ爣棰�" + clearable + @keyup.enter.native="handlecharge" + /> + </el-form-item> + <el-form-item label="寤鸿鍐呭" prop="jynr"> + <el-input + v-model="queryParam1.nr" + placeholder="璇疯緭鍏ュ缓璁�" + clearable + @keyup.enter.native="handlecharge" + /> + </el-form-item> + <el-form-item> + <el-button + type="primary" + icon="el-icon-search" + size="mini" + @click="handlecharge" + >鎼滅储</el-button + > + </el-form-item> + </el-form> + + <el-table + v-loading="loading" + :data="adviceList" + ref="tb" + @selection-change="handleSelectionChange1" + border + > + <el-table-column type="selection" align="center" fixed /> + <el-table-column + label="搴忓彿" + align="center" + width="60" + prop="newID" + /> + <el-table-column + label="鏍囬" + align="center" + prop="title" + width="120" + :show-overflow-tooltip="true" + /> + <el-table-column + label="寤鸿" + align="center" + prop="advice" + :show-overflow-tooltip="true" + /> + </el-table> + + <div class="pag"> + <div class="pag1"> + <pagination + v-show="total > 0" + :total="total" + :page.sync="queryParam1.page" + :limit.sync="queryParam1.pageSize" + @pagination="getlistJynr" + /> + </div> + </div> + </div> + <div slot="footer" class="dialog-footer"> + <el-button @click="dialogTableVisible = false">鍙� 娑�</el-button> + <el-button type="primary" @click="submit">纭� 瀹�</el-button> + </div> + </el-dialog> + </div> +</template> + +<script> +import { + listAdvicerules, + getAdvicerules, + delAdvicerules, + addAdvicerules, + updateAdvicerules, +} from "@/api/hosp/advicerules"; +import { listAdvice } from "@/api/advice/advice"; +import { getToken } from "@/utils/auth"; +import { deptTreeSelect } from "@/api/system/dept"; + +export default { + name: "Advicerules", + data() { + return { + // 閬僵灞� + loading: true, + // 閫変腑鏁扮粍 + ids: [], + // 闈炲崟涓鐢� + single: true, + // 闈炲涓鐢� + multiple: true, + dialogTableVisible: false, + // 鏄剧ず鎼滅储鏉′欢 + showSearch: true, + // 鎬绘潯鏁� + total: 0, + // 浣撴椤圭洰寤鸿瑙勫垯鏂拌〃琛ㄦ牸鏁版嵁 + advicerulesList: [], + adviceList: [], + // 寮瑰嚭灞傛爣棰� + title: "", + // 鏄惁鏄剧ず寮瑰嚭灞� + open: false, + key: "", + moduleName: "exampleModule", // 绀轰緥妯″潡鍚� + businessName: "exampleBusiness", // 绀轰緥涓氬姟鍚� + objs: {}, + departmentOptions: [], + // 鏌ヨ鍙傛暟 + queryParams: { + pageNum: 1, + pageSize: 10, + bm: null, + ks: null, + jcxm: null, + zyzd: null, + jymc: null, + jynr: null, + sfjb: null, + sfcjb: null, + sfmxb: null, + sfzdjb: null, + }, + queryParam1: { + page: 1, + pageSize: 10, + bt: "", // 鏍囬 + nr: "", // 寤鸿鍐呭 + }, + querycharge: { + pageNum: 1, + pageSize: 10, + }, + // 琛ㄥ崟鍙傛暟 + form: {}, + // 琛ㄥ崟鏍¢獙 + rules: {}, + upload: { + // 鏄惁鏄剧ず寮瑰嚭灞傦紙鐢ㄦ埛瀵煎叆锛� + open: false, + // 寮瑰嚭灞傛爣棰橈紙鐢ㄦ埛瀵煎叆锛� + title: "", + // 鏄惁绂佺敤涓婁紶 + isUploading: false, + // 鏄惁鏇存柊宸茬粡瀛樺湪鐨勭敤鎴锋暟鎹� + updateSupport: 0, + // 璁剧疆涓婁紶鐨勮姹傚ご閮� + headers: { Authorization: "Bearer " + getToken() }, + // 涓婁紶鐨勫湴鍧� + url: process.env.VUE_APP_BASE_API + "/hosp/advicerules/tjimport", + }, + data: [], + }; + }, + created() { + this.getList(); + }, + methods: { + /** 鏌ヨ浣撴椤圭洰寤鸿瑙勫垯鏂拌〃鍒楄〃 */ + getList() { + this.loading = true; + listAdvicerules(this.queryParams).then((response) => { + this.advicerulesList = response.rows; + this.total = response.total; + this.loading = false; + }); + deptTreeSelect().then((response) => { + this.departmentOptions = response.data[0].children; + console.log(response, 999); + }); + }, + /* getDeptTree() { + deptTreeSelect().then((response) => { + this.deptOption = response.data; + }); + }, */ + // 鍙栨秷鎸夐挳 + cancel() { + this.open = false; + this.reset(); + }, + // 琛ㄥ崟閲嶇疆 + reset() { + this.form = { + id: null, + bm: null, + ks: null, + jcxm: null, + zyzd: null, + jymc: null, + jynr: null, + fwz: null, + fwzxz: null, + fwzdz: null, + ycbz: null, + sfjb: null, + sfcjb: null, + sfmxb: null, + sfzdjb: null, + createTime: null, + updateTime: null, + createBy: null, + updateBy: null, + deleted: null, + }; + this.resetForm("form"); + }, + /** 鎼滅储鎸夐挳鎿嶄綔 */ + handleQuery() { + this.queryParams.pageNum = 1; + this.getList(); + }, + handlecharge() { + this.querycharge.pageNum = 1; + this.getlistJynr(); + }, + clearForm() { + this.queryParam.bt = ""; // 娓呯┖鏍囬 + this.queryParam.nr = ""; // 娓呯┖寤鸿鍐呭 + }, + + handleSelectionChange1(selection) { + this.ChangeList = selection; + this.ids = selection.map((item) => item.aid); + this.single = selection.length !== 1; + this.multiple = !selection.length; + if (selection.length > 1) { + let del_row = selection.shift(); + this.$refs.tb.toggleRowSelection(del_row, false); //璁剧疆杩欎竴琛屽彇娑堥�変腑 + } + }, + + /** 閲嶇疆鎸夐挳鎿嶄綔 */ + resetQuery() { + this.resetForm("queryForm"); + this.handleQuery(); + }, + getDetailed() { + this.getlistJynr(); + this.dialogTableVisible = true; + this.key != "N"; + }, + /* 鑾峰彇寤鸿鍐呭 */ + getlistJynr() { + this.loading = true; + // this.List = true; + listAdvice(this.queryParam1).then((response) => { + response.data.list.forEach((item, index) => { + item.newID = + (this.queryParam1.page - 1) * this.queryParam1.pageSize + index + 1; + }); + + this.adviceList = response.data.list; + this.total = response.data.total; + this.loading = false; + }); + }, + + /* 寮规纭畾鎸夐挳 */ + submit() { + console.log(this.ChangeList, 123); + + this.ChangeList.forEach((item) => { + console.log(item.title, 6363); + this.form.jymc = item.title; + console.log(this.form.adviceBt, 2525); + + this.form.jynr = item.advice; + // this.sfxmId = parseInt(item.id); + }); + this.dialogTableVisible = false; + this.key = ""; + }, + + // 澶氶�夋閫変腑鏁版嵁 + handleSelectionChange(selection) { + this.ids = selection.map((item) => item.id); + this.single = selection.length !== 1; + this.multiple = !selection.length; + }, + /** 鏂板鎸夐挳鎿嶄綔 */ + handleAdd() { + this.reset(); + this.open = true; + this.title = "娣诲姞浣撴椤圭洰寤鸿瑙勫垯鏂拌〃"; + }, + /** 淇敼鎸夐挳鎿嶄綔 */ + handleUpdate(row) { + this.reset(); + const id = row.id || this.ids; + getAdvicerules(id).then((response) => { + this.form = response.data; + this.open = true; + this.title = "淇敼浣撴椤圭洰寤鸿瑙勫垯鏂拌〃"; + }); + }, + submitForm() { + this.$refs["form"].validate((valid) => { + if (valid) { + this.columns.forEach((column) => { + if (column.htmlType === "checkbox") { + // 灏嗛�変腑鐨� checkbox 鍊肩敤閫楀彿鍒嗛殧 + this.form[column.javaField] = + this.form[column.javaField].join(","); + } + }); + if (this.table.sub) { + this.form.subclassNameList = this.subclassNameList; // 鍋囪 subclassNameList 鏄瓙琛ㄦ牸鐨勬暟鎹� + } + if (this.form[pkColumn.javaField] != null) { + updateAdvicerules(this.form).then((response) => { + this.$modal.msgSuccess("淇敼鎴愬姛"); + this.open = false; + this.getList(); // 鍒锋柊鍒楄〃 + }); + } else { + // 濡傛灉涓婚敭瀛楁涓虹┖锛岃繘琛屾柊澧炴搷浣� + addAdvicerules(this.form).then((response) => { + this.$modal.msgSuccess("鏂板鎴愬姛"); + this.open = false; + this.getList(); // 鍒锋柊鍒楄〃 + }); + } + } + }); + }, + handleDelete(row) { + const pkValue = row[pkColumn.javaField] || this.ids; // 鑾峰彇涓婚敭鍊硷紝濡傛灉row涓病鏈変富閿�硷紝鍒欎娇鐢╰his.ids + this.$modal + .confirm(`鏄惁纭鍒犻櫎${functionName}缂栧彿涓�"${pkValue}"鐨勬暟鎹」锛焋) + .then(() => { + return delAdvicerules(pkValue); // 璋冪敤鍒犻櫎鎺ュ彛锛屼紶鍏ヤ富閿�� + }) + .then(() => { + this.getList(); // 鍒犻櫎鎴愬姛鍚庡埛鏂板垪琛� + this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); // 鏄剧ず鍒犻櫎鎴愬姛鐨勬彁绀� + }) + .catch(() => { + // 寮傚父澶勭悊 + }); + }, + handleImport() { + this.upload.title = "鐢ㄦ埛瀵煎叆"; + this.upload.open = true; + }, + // 鏂囦欢涓婁紶涓鐞� + handleFileUploadProgress(event, file, fileList) { + this.upload.isUploading = true; + }, + + // 鏂囦欢涓婁紶鎴愬姛澶勭悊 + handleFileSuccess(response, file, fileList) { + console.log(response, 666666); + if (response.code == 500) { + console.log(22222222222); + const errorList = response.data.list.join(", "); + this.$confirm(`${errorList}`, "浠ヤ笅浜哄憳淇℃伅鏈夎锛岃鏍稿鍚庡鍏ワ細", { + confirmButtonText: "纭畾", + cancelButtonText: "鍙栨秷", + type: "error", + center: true, + dangerouslyUseHTMLString: true, + }); + } + /* this.ListObj = response.data; + this.advicerulesList = response.data.list; + + this.userList.forEach((item) => { + this.CompanyList.forEach((item1) => { + if (item1.drugManufacturerId == this.objs.drugManufacturerId) { + item.company = item1.cnName; + } + }); + }); */ + this.upload.open = false; + this.upload.isUploading = false; + this.$refs.upload.clearFiles(); + this.leftList = response.msg; + console.log(response.code); + + /* if (this.leftList == "鎿嶄綔澶辫触") { + this.isdisabled = true; + this.$alert( + "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + + response.msg + + "<div style='br;margin:10px'>" + + response.data[0] + + "韬唤璇佹垨鎵嬫満鍙风爜鏈夎" + + "</div>", + "瀵煎叆缁撴灉", + { dangerouslyUseHTMLString: true } + ); + } else { + this.isdisabled = false; + this.$alert( + "<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + + response.msg, + { dangerouslyUseHTMLString: true } + ); + this.rightList = response; + } */ + for (let i = 0; i < fileList.length; i++) { + if (file.name != fileList[i].name) { + this.fileList.push({ + name: file.name, + url: "", + uid: file.uid, + }); + } + } + }, + // 鎻愪氦涓婁紶鏂囦欢 + submitFileForm() { + this.$refs.upload.submit(); + this.isShow = false; + this.getList(); + }, + + handleExport() { + this.download( + "hosp/advicerules/export", + { + ...this.queryParams, + }, + `banner_${new Date().getTime()}.xlsx` + ); + }, + }, +}; +</script> + diff --git a/src/views/hosp/order/index.vue b/src/views/hosp/order/index.vue index cc0e72d..9d7b6c4 100644 --- a/src/views/hosp/order/index.vue +++ b/src/views/hosp/order/index.vue @@ -763,7 +763,9 @@ > <el-table-column prop="propinName" label="妫�鏌ラ」鐩�"> </el-table-column> - <el-table-column prop="proPrice" label="鍘熶环" width="56px"> + <el-table-column prop="sl" label="鏁伴噺" width="56px"> + </el-table-column> + <el-table-column prop="proPrice" label="鍘熶环" width="56px"> </el-table-column> <el-table-column prop="proName" @@ -1947,7 +1949,6 @@ // 鑾峰彇鍗曚綅淇℃伅闆嗗悎 getCompany(this.queryParams).then((response) => { this.CompanyList = response.data; - console.log(this.CompanyList, 555); this.loading = false; }); @@ -2465,8 +2466,10 @@ let datas = { zhId: data.id, }; + getlistByZhId(datas).then((res) => { this.packagedataList = res.data.tjProjectList; + for (var i = 0; i < this.packagedataList.length; i++) { let proId = this.packagedataList[i].proId; getProSonDxList(proId).then((res) => { @@ -2628,7 +2631,8 @@ this.TotalPrice1 = 0; if (this.DataList3.length != 0) { this.DataList3.forEach((item) => { - this.TotalPrice1 += item.proPrice; + + this.TotalPrice1 += item.proPrice * item.sl; }); } // this.TotalPrice1 = 0; @@ -2672,7 +2676,9 @@ this.DataList.splice(index, 1); this.TotalPrice1 = 0; this.DataList.forEach((item1) => { + this.TotalPrice1 = item1.proPrice + this.TotalPrice1; + }); if (this.marryalls != 0) { this.TotalPrice1 += this.marryalls; @@ -2681,7 +2687,6 @@ }); } else if (checked == true) { this.DataList.push(data); - console.log(this.DataList, 6666); this.DataList.forEach((item1) => { if (item1.proParentId == this.dataObj.proId) { item1.propinName = this.dataObj.proName; @@ -2690,6 +2695,9 @@ this.spliceData(); this.TotalPrice1 = 0; this.DataList.forEach((item1) => { + console.log(item1.proPrice,3322); + console.log(this.TotalPrice1,1122); + this.TotalPrice1 = item1.proPrice + this.TotalPrice1; }); if (this.marryalls != 0) { diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue index f082f7c..5fac4af 100644 --- a/src/views/system/tijian/index.vue +++ b/src/views/system/tijian/index.vue @@ -673,6 +673,7 @@ width="260px" > </el-table-column> + <el-table-column prop="proPrice" label="鍘熶环" width="56px"> </el-table-column> @@ -779,6 +780,8 @@ :span-method="objectSpanMethod" > <el-table-column prop="propinName" label="妫�鏌ラ」鐩�"> + </el-table-column> + <el-table-column prop="sl" label="鏁伴噺" width="56px"> </el-table-column> <el-table-column prop="proPrice" @@ -3260,7 +3263,7 @@ if (this.DataList.length != 0) { this.list1 = false; this.DataList.forEach((item) => { - this.marryall += item.proPrice; + this.marryall = item.proPrice * item.sl; }); } }); -- Gitblit v1.8.0