From 8a980bd32dc2dc70f90447eb6ba293a06a2d881c Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 28 十一月 2023 18:11:36 +0800 Subject: [PATCH] 提交信息 --- src/views/patient/propaganda/particty.vue | 489 ++++++++++++++++-------------------------------------- 1 files changed, 144 insertions(+), 345 deletions(-) diff --git a/src/views/patient/propaganda/particty.vue b/src/views/patient/propaganda/particty.vue index 7c5e6ef..4ac1600 100644 --- a/src/views/patient/propaganda/particty.vue +++ b/src/views/patient/propaganda/particty.vue @@ -50,19 +50,16 @@ <el-checkbox label="澶滈棿锛�18:30-20:30锛�"></el-checkbox> </el-checkbox-group> </el-form-item> - <el-form-item label="瀹f暀褰㈠紡"> + <el-form-item label="鏈嶅姟褰㈠紡"> <el-checkbox-group v-model="checkList"> - <el-checkbox label="褰撻潰"></el-checkbox> - <el-checkbox label="澶氬獟浣�"></el-checkbox> - <el-checkbox label="绾歌川"></el-checkbox> - <el-checkbox label="鐢佃瘽"></el-checkbox> - <el-checkbox label="鐭俊"></el-checkbox> - <el-checkbox label="寰俊鍏紬鍙�"></el-checkbox> - <el-checkbox label="寰俊灏忕▼搴�"></el-checkbox> - <el-checkbox label="閽夐拤"></el-checkbox> + <el-checkbox + v-for="(item, index) in checkboxlist" + :key="index" + :label="item" + ></el-checkbox> </el-checkbox-group> </el-form-item> - <el-form-item label="鍙戦�佹椂闂存锛�"> + <el-form-item label="缁勭粐褰㈠紡"> <el-radio-group v-model="form.radio"> <el-radio :label="3">鍗曚汉</el-radio> <el-radio :label="6">澶氫汉</el-radio> @@ -79,7 +76,7 @@ </div> <div class="examine-jic"> <div class="headline"> - <div>瀹f暀鍐呭鍒楄〃</div> + <div>{{ title }}</div> </div> <div class="examine-jic"> <div class="jic-value"> @@ -161,91 +158,15 @@ </el-form-item> </el-form> <el-divider></el-divider> - <el-table - v-loading="loading" - :data="userList" - @selection-change="handleSelectionChange" - > - <el-table-column - type="selection" - width="50" - align="center" - /> - <el-table-column - label="搴忓彿" - align="center" - key="id" - prop="id" - /> - - <el-table-column - label="瀹f暀鍚嶇О" - align="center" - sortable - key="name" - prop="name" - :show-overflow-tooltip="true" - /> - <el-table-column - label="瀹f暀妯℃澘" - align="center" - key="impTemplate" - prop="impTemplate" - /> - <el-table-column - label="鍒涘缓鏃ユ湡" - align="center" - key="create_time" - prop="create_time" - /> - - <el-table-column - label="鍒涘缓浜�" - align="center" - key="update_by" - prop="update_by" - sortable - width="120" - :show-overflow-tooltip="true" - /> - <el-table-column - label="鎿嶄綔" - align="center" - width="120" - class-name="small-padding fixed-width" - > - <template slot-scope="scope"> - <el-button - size="medium" - type="text" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:user:edit']" - ><span class="button-zx" - ><i class="el-icon-s-promotion"></i>寮�濮嬫墽琛�</span - ></el-button - > - </template> - </el-table-column> - <el-table-column - label="浠诲姟璇︽儏" - align="center" - width="200" - class-name="small-padding fixed-width" - > - <template slot-scope="scope"> - <el-button - size="medium" - type="text" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:user:edit']" - ><span class="button-xq" - ><i class="el-icon-s-data"></i>閫夋嫨</span - ></el-button - > - </template> - </el-table-column> - </el-table> - + <!-- 閫夋嫨浠诲姟鍒楄〃 --> + <SFtable + @handleUpdate="handleUpdate" + @handleSelectionChange="handleSelectionChange" + :currentList="userList" + :tableLabel="tableLabelxj" + :controlsc="false" + :multiplechoice="false" + /> <pagination v-show="total > 0" :total="total" @@ -380,8 +301,7 @@ icon="el-icon-plus" size="medium" :disabled="!tasktopic" - @click="handleAdd" - v-hasPermi="['system:user:add']" + @click="handleAddpatient" >鏂板</el-button > </el-col> @@ -394,152 +314,20 @@ size="medium" :disabled="multiple" @click="handleDelete" - v-hasPermi="['system:user:remove']" >鍒犻櫎</el-button > </el-col> <!-- <el-col :span="1.5"> </el-col> --> </el-row> - <!-- <right-toolbar - :showSearch.sync="showSearch" - @queryTable="getList" - :columns="columns" - ></right-toolbar> --> - <el-table - v-loading="loading" - :data="userList" - @selection-change="handleSelectionChange" - > - <el-table-column - type="selection" - width="50" - align="center" - /> - <el-table-column - label="搴忓彿" - align="center" - key="id" - prop="id" - /> - - <el-table-column - label="浠诲姟鍚嶇О" - align="center" - sortable - key="name" - prop="name" - :show-overflow-tooltip="true" - /> - <el-table-column - label="鏈嶅姟妯℃澘" - align="center" - key="impTemplate" - prop="impTemplate" - /> - <el-table-column - label="鍒涘缓鏃ユ湡" - align="center" - key="create_time" - prop="create_time" - /> - <el-table-column - label="鎵ц鐘舵��" - align="center" - key="phonenumber" - prop="phonenumber" - width="120" - /> - - <el-table-column - label="鎵ц鐘舵��" - align="center" - key="topicnumber" - prop="topicnumber" - width="120" - :show-overflow-tooltip="true" - > - <template slot-scope="scope"> - <div>鎵ц瀹屾垚/鎵ц澶辫触</div> - </template> - </el-table-column> - <el-table-column - label="鏇存柊浜�" - align="center" - key="update_by" - prop="update_by" - sortable - width="120" - :show-overflow-tooltip="true" - /> - - <el-table-column - label="鏇存柊鏃堕棿" - sortable - align="center" - prop="update_time" - width="160" - > - <template slot-scope="scope"> - <span>{{ parseTime(scope.row.createTime) }}</span> - </template> - </el-table-column> - <el-table-column - label="鎿嶄綔" - align="center" - width="120" - class-name="small-padding fixed-width" - > - <template slot-scope="scope"> - <el-button - size="medium" - type="text" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:user:edit']" - ><span class="button-zx" - ><i class="el-icon-s-promotion"></i>寮�濮嬫墽琛�</span - ></el-button - > - </template> - </el-table-column> - <el-table-column - label="浠诲姟璇︽儏" - align="center" - width="200" - class-name="small-padding fixed-width" - > - <template slot-scope="scope"> - <el-button - size="medium" - type="text" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:user:edit']" - ><span class="button-xq" - ><i class="el-icon-s-data"></i>璇︽儏</span - ></el-button - > - <el-button - size="medium" - type="text" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:user:edit']" - ><span class="button-bb" - ><i class="el-icon-s-order"></i>鎶ヨ〃</span - ></el-button - > - <el-button - size="medium" - type="text" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:user:edit']" - ><span class="button-sc" - ><i class="el-icon-delete"></i>鍒犻櫎</span - ></el-button - > - </template> - </el-table-column> - </el-table> - + <!-- 閫変腑鎮h�呭垪琛� --> + <SFtable + @handleUpdate="handleUpdate" + @handleSelectionChange="handleSelectionChange" + :currentList="sonuserList" + :tableLabel="tableLabelhz" + :controlxz="false" + /> <pagination v-show="total > 0" :total="total" @@ -640,73 +428,14 @@ > </el-form-item> </el-form> - - <el-table - v-loading="patientloading" - :data="patientuserList" - @selection-change="handleSelectionChange" - > - <el-table-column type="selection" width="50" align="center" /> - <el-table-column - label="搴忓彿" - align="center" - key="patid" - prop="patid" - /> - - <el-table-column - label="鎮h�呭悕绉�" - align="center" - sortable - key="name" - prop="name" - :show-overflow-tooltip="true" - /> - - <el-table-column - label="鎮h�呮潵婧�" - align="center" - key="source" - prop="source" - /> - <el-table-column - label="鎵嬫満鍙风爜" - align="center" - key="telcode" - prop="telcode" - width="120" - :show-overflow-tooltip="true" - /> - - <el-table-column - label="浠诲姟璇︽儏" - align="center" - width="200" - class-name="small-padding fixed-width" - > - <template slot-scope="scope"> - <el-button - size="medium" - type="text" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:user:edit']" - ><span class="button-xq" - ><i class="el-icon-s-data"></i>璇︽儏</span - ></el-button - > - - <el-button - size="medium" - type="text" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:user:edit']" - ><span class="button-sc" - ><i class="el-icon-delete"></i>鍒犻櫎</span - ></el-button - > - </template> - </el-table-column> - </el-table> + <!-- 閫夋嫨鎮h�呭垪琛� --> + <SFtable + @handleUpdate="handleUpdate" + @handleSelectionChange="handleSelectionChange" + :currentList="patientuserList" + :tableLabel="tableLabelhz" + :controlsc="false" + /> </el-row> <pagination v-show="patienttotal > 0" @@ -728,25 +457,69 @@ </template> <script> -import { - listsvr_prjtask, - getsvr_prjtask, - addsvr_prjtask, - updatesvr_prjtask, - delsvr_prjtask, - Addpatienttask, -} from "@/api/smartorpor/svr_prjtask"; +import { listsvr_prjtask, Addpatienttask } from "@/api/smartorpor/svr_prjtask"; import { listpat_archive } from "@/api/smartorpor/pat_archive"; import { listsvr_prjtaskline } from "@/api/smartorpor/svr_prjtaskline"; +import { messagelistpatient } from "@/api/patient/homepage"; +import SFtable from "@/components/SFtable"; //琛ㄦ牸缁勪欢 export default { + name: "ServiceDetails", data() { return { + title: "瀹f暀鍐呭鍒楄〃", + currenttype: 1, //1瀹f暀2闂ㄨ瘖3鍑洪櫌4澶嶈瘖5浣撴6闂嵎 Editprogress: 1, //缂栬緫杩涘害 loading: false, // 閬僵灞� patientloading: false, // 閬僵灞� - dialogVisible: false, //浠诲姟璇︽儏寮规 dialogVisiblepatient: false, //娣诲姞鎮h�呭脊妗� + checkboxlist: [], + tableLabel: [], + // 鎮h�呰〃鍗� + tableLabelhz: [ + { label: "鎮h�呭悕绉�", width: "", prop: "name" }, + { label: "鎬у埆", width: "", prop: "sex" }, + { label: "骞撮緞", width: "", prop: "age" }, + { label: "灏辫瘖绉戝", width: "", prop: "impTemplate" }, + { label: "鍏ラ櫌鏃ユ湡", width: "", prop: "create_time" }, + { label: "鍒涘缓浜�", width: "", prop: "update_by" }, + ], + tableLabelxj: [ + { label: "瀹f暀鍚嶇О", width: "", prop: "name" }, + { label: "瀹f暀妯$増", width: "", prop: "impTemplate" }, + { label: "鍒涘缓鏃ユ湡", width: "", prop: "create_time" }, + { label: "鍒涘缓浜�", width: "", prop: "update_by" }, + ], + tableLabelmz: [ + { label: "闅忚鍚嶇О", width: "118", prop: "name" }, + { label: "闅忚妯$増", width: "130", prop: "impTemplate" }, + { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" }, + { label: "鍒涘缓浜�", width: "130", prop: "update_by" }, + ], + tableLabelcy: [ + { label: "闅忚鍚嶇О", width: "118", prop: "name" }, + { label: "闅忚璁″垝", width: "130", prop: "impTemplate" }, + { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" }, + { label: "鍒涘缓浜�", width: "130", prop: "update_by" }, + ], + tableLabelfz: [ + { label: "閫氱煡鍚嶇О", width: "118", prop: "name" }, + { label: "閫氱煡妯$増", width: "130", prop: "impTemplate" }, + { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" }, + { label: "鍒涘缓浜�", width: "130", prop: "update_by" }, + ], + tableLabeltj: [ + { label: "閫氱煡鍚嶇О", width: "118", prop: "name" }, + { label: "閫氱煡妯$増", width: "130", prop: "impTemplate" }, + { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" }, + { label: "鍒涘缓浜�", width: "130", prop: "update_by" }, + ], + tableLabelwj: [ + { label: "闂嵎鍚嶇О", width: "118", prop: "name" }, + { label: "闂嵎妯$増", width: "130", prop: "impTemplate" }, + { label: "鍒涘缓鏃ユ湡", width: "136", prop: "create_time" }, + { label: "鍒涘缓浜�", width: "130", prop: "update_by" }, + ], topqueryParams: { pageNum: 1, // pageSize: 10, @@ -772,9 +545,9 @@ // 闈炲涓鐢� multiple: true, // 鐢ㄦ埛琛ㄦ牸鏁版嵁 - userList: null, - patientuserList: null, - sonuserList: null, + userList: [], //妯$増鍒楄〃 + patientuserList: [], //閫夋嫨鎮h�呭垪琛� + sonuserList: [], //閫変腑鎮h�呭垪琛� tasktopic: null, //鏂板绫诲瀷 form: { name: "", @@ -794,14 +567,6 @@ { value: "閫夐」2", label: "鍙岀毊濂�", - }, - { - value: "閫夐」3", - label: "铓典粩鐓�", - }, - { - value: "閫夐」4", - label: "榫欓』闈�", }, { value: "閫夐」5", @@ -829,13 +594,63 @@ quote: false, }; }, + components: { SFtable }, created() { this.Addsubtask(); this.Getsubtask(); + this.Acquisitiontype(); }, methods: { + // 鑾峰彇褰撳墠绫诲瀷 + Acquisitiontype() { + this.currenttype = this.$route.query.type; + console.log(this.currenttype); + if (this.currenttype == 1) { + this.title = "瀹f暀鍐呭鍒楄〃"; + this.tableLabel = this.tableLabelxj; + this.checkboxlist = [ + "褰撻潰", + "澶氬獟浣�", + "绾歌川", + "鐢佃瘽", + "鐭俊", + "寰俊鍏紬鍙�", + "寰俊灏忕▼搴�", + "閽夐拤", + ]; + } else if (this.currenttype == 2) { + this.title = "闅忚鍐呭鍒楄〃"; + this.tableLabel = this.tableLabelmz; + this.checkboxlist = ["褰撻潰", "绾歌川", "鐢佃瘽", "鐭俊", "寰俊鍏紬鍙�"]; + } else if (this.currenttype == 3) { + this.title = "闅忚璁″垝鍒楄〃"; + this.tableLabel = this.tableLabelcy; + this.checkboxlist = ["褰撻潰", "绾歌川", "鐢佃瘽", "鐭俊", "寰俊鍏紬鍙�"]; + } else if (this.currenttype == 4) { + this.title = "閫氱煡鍐呭鍒楄〃"; + this.tableLabel = this.tableLabelfz; + this.checkboxlist = ["鐢佃瘽", "鐭俊", "寰俊鍏紬鍙�"]; + } else if (this.currenttype == 5) { + this.title = "閫氱煡鍐呭鍒楄〃"; + this.tableLabel = this.tableLabeltj; + this.checkboxlist = ["绾歌川", "鐢佃瘽", "鐭俊", "寰俊鍏紬鍙�"]; + } else if (this.currenttype == 6) { + this.title = "闂嵎鍐呭鍒楄〃"; + this.tableLabel = this.tableLabelwj; + this.checkboxlist = [ + "褰撻潰", + "澶氬獟浣�", + "绾歌川", + "鐢佃瘽", + "鐭俊", + "寰俊鍏紬鍙�", + "寰俊灏忕▼搴�", + "閽夐拤", + ]; + } + }, // 涓嬩竴姝� submitForm(formName) { if (this.Editprogress <= 3) { @@ -851,21 +666,10 @@ // } // }); }, - // 瀛愪换鍔′竴绾у脊妗� - handleAdd() { - this.multiple = true; - listsvr_prjtaskline(this.deliverytopqueryParams).then((response) => { - console.log(response); - this.sonuserList = response.rows; - this.sontotal = response.total; - this.loading = false; - }); - this.dialogVisible = true; - }, // 瀛愪换鍔′簩绾у脊妗� - handleAddpatient() { - console.log(this.multiple); - listpat_archive(this.patientqueryParams).then((response) => { + handleAddpatient(row) { + console.log(row, "瀛愮粍浠舵暟鎹�"); + messagelistpatient(this.patientqueryParams).then((response) => { console.log(response); this.patientuserList = response.rows; this.patienttotal = response.total; @@ -887,9 +691,6 @@ getList() {}, handleQuery() {}, resetQuery() {}, - handleCloserw() { - this.dialogVisible = false; - }, handleClosehz() { this.dialogVisiblepatient = false; }, @@ -928,9 +729,7 @@ Getsubtask() { this.topqueryParams.pguid = 2; console.log(this.topqueryParams); - // this.topqueryParams.pid = this.$route.query.id; - // console.log(this.topqueryParams.pid); - listsvr_prjtask(this.topqueryParams).then((res) => { + messagelistpatient(this.topqueryParams).then((res) => { this.userList = res.rows; this.total = res.total; console.log(this.userList); -- Gitblit v1.9.3