From 872aed0fd757885e3a77f71f4fdfbc38de70a3a3 Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期二, 05 十二月 2023 18:03:44 +0800 Subject: [PATCH] su --- src/views/system/tijian/index.vue | 101 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 98 insertions(+), 3 deletions(-) diff --git a/src/views/system/tijian/index.vue b/src/views/system/tijian/index.vue index 260cbe5..79a235f 100644 --- a/src/views/system/tijian/index.vue +++ b/src/views/system/tijian/index.vue @@ -150,16 +150,34 @@ <el-form :inline="true" ref="form" :model="form" :rules="rules" :label-position="labelPosition" label-width="98px" v-show="top"> <el-row> - <el-col :span="9"> + <el-col :span="7"> <el-form-item label="浠嬬粛浜�" prop="cusIntroduce" style="display: flex;"> <el-input :disabled="isDisabled" v-model="form.cusIntroduce" placeholder="璇疯緭鍏ヤ粙缁嶄汉" /> </el-form-item> </el-col> - <el-col :span="11"> + <el-col :span="7"> <el-form-item label="宸ヤ綔鍗曚綅" prop="company" style="display: flex;"> <el-input style="width: 100%;" :disabled="isDisabled" v-model="form.company" placeholder="璇疯緭鍏ュ伐浣滃崟浣�" /> </el-form-item> </el-col> + <el-col :span="7"> + <el-button + v-show="lishi" + type="primary" + @click="cope" + size="mini" + >涓�閿鍒�</el-button + > + <el-button + type="primary" + @click="inputChange" + v-show="lishi" + size="mini" + :disabled="confirm" + >鍘嗗彶浣撴璁板綍</el-button + > + </el-col> + </el-row> </el-form> @@ -615,6 +633,53 @@ <el-button type="primary" @click="beat = false">纭� 瀹�</el-button> </span> --> <!-- </el-dialog> --> + <el-drawer + title="鍘嗗彶浣撴璁板綍" + :visible.sync="table" + direction="rtl" + size="50%" + > + <el-table :data="HistoryList" style="width: 95%; margin-left: 20px"> + <el-table-column + property="tjNum" + label="浣撴鍙�" + align="center" + :show-overflow-tooltip="true" + ></el-table-column> + <el-table-column + property="userName" + label="濮撳悕" + align="center" + :show-overflow-tooltip="true" + ></el-table-column> + <el-table-column + property="tjTime" + label="浣撴鏃堕棿" + align="center" + :show-overflow-tooltip="true" + ></el-table-column> + <el-table-column + property="tjProName" + label="浣撴椤圭洰" + align="center" + :show-overflow-tooltip="true" + ></el-table-column> + </el-table> + </el-drawer> + <el-dialog + title="鎻愮ず" + :visible.sync="dialogVisiblese" + width="30%" + :before-close="handleClose" + > + <span>闇�瑕佸鍒舵渶杩戜竴娆$殑浣撴椤圭洰鍚楋紵</span> + <span slot="footer" class="dialog-footer"> + <el-button @click="dialogVisiblese = false">鍙� 娑�</el-button> + <el-button type="primary" @click="dialogVisiblese = false" + >纭� 瀹�</el-button + > + </span> + </el-dialog> </div> </template> @@ -634,7 +699,8 @@ getTransitionList, getByTeamNo, getLoadFile, - getIsRequired + getIsRequired, + getHistryTjOrderByCusIdCard } from "@/api/system/tijian"; import { MessageBox } from "element-ui"; import VTreeTransfer from './TreeTransfer.vue' @@ -658,6 +724,10 @@ }, data() { return { + dialogVisiblese:false, + lishi: false, + table: false, + HistoryList: {}, index: 0, dictType: [ { @@ -951,10 +1021,35 @@ this.form.cusBrithday = birthday; this.form.age = age; } + let cusIdCard = this.form.cusIdcard; + getHistryTjOrderByCusIdCard(cusIdCard).then((res) => { + if (res.code == 200) { + this.table = true; + this.lishi = true; + this.HistoryList = res.data; + } + }); } else { return false; } }, + cope(){ + let cusIdCard = this.form.cusIdcard; + getHistryTjOrderByCusIdCard(cusIdCard).then((res) => { + if(res.data.length != 0){ + this.dialogVisiblese = true; + }else{ + this.$message.warning('鏆傛棤鍘嗗彶浣撴璁板綍锛�'); + } + }); + }, + handleClose(done) { + this.$confirm('纭鍏抽棴锛�') + .then(_ => { + done(); + }) + .catch(_ => {}); + }, getCompetence() { var _this = this; _this.hide = false; -- Gitblit v1.8.0