From 105e36dfd740d96c916d0065c37217aa69e2184c Mon Sep 17 00:00:00 2001 From: yang <1441163367@qq.com> Date: 星期五, 28 十月 2022 14:27:00 +0800 Subject: [PATCH] 修改问题 --- src/views/padSunmaryProcedure/padFrom.vue | 103 +++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 91 insertions(+), 12 deletions(-) diff --git a/src/views/padSunmaryProcedure/padFrom.vue b/src/views/padSunmaryProcedure/padFrom.vue index 78b7aec..56dd45e 100644 --- a/src/views/padSunmaryProcedure/padFrom.vue +++ b/src/views/padSunmaryProcedure/padFrom.vue @@ -1,15 +1,49 @@ <template> -<el-main style="width: 60vw;margin: 0 auto"> - <el-form ref="form" :model="form" label-width="85px" size="medium"> +<el-main style="width: 100%;margin: 0 auto"> + <el-form ref="form" :model="form" label-width="110px" size="medium"> + <el-form-item label="妗堢敱"> <el-input v-model="form.casePoint" placeholder="璇峰~鍐欐鐢�"></el-input> </el-form-item> - <el-form-item label="褰撲簨浜哄鍚�"> - <el-input v-model="form.litigant" placeholder="璇峰~鍐欏綋浜嬩汉濮撳悕" ></el-input> + + <el-row> + <el-col :span="12"> + <el-form-item label="褰撲簨浜哄鍚�"> + <el-select v-model="form.litigant" placeholder="璇烽�夋嫨褰撲簨浜�" + style="width: 100%;" @change="marketChange"> + <el-option + v-for="item in marketList" + :key="item.subjectName" + :label="item.subjectName" + :value="item"> + </el-option> + </el-select> + </el-form-item> + </el-col> + <el-col :span="12"> + <el-form-item label="娉曚汉"> + <el-input v-model="form.legalPerson" placeholder="璇峰~鍐欐硶浜哄鍚�"></el-input> + </el-form-item> + </el-col> + </el-row> + + <el-row> + <el-col :span="12"> + <el-form-item label="璇佷欢鍙�/淇$敤鐮�"> + <el-input v-model="form.certNo" placeholder="璇峰~鍐欒瘉浠跺彿/淇$敤鐮�" ></el-input> + </el-form-item> + </el-col> + <el-col :span="12"> + <el-form-item label="鑱旂郴鐢佃瘽"> + <el-input v-model="form.phone" placeholder="璇峰~鍐欏綋浜嬩汉鐢佃瘽"></el-input> + </el-form-item> + </el-col> + </el-row> + + <el-form-item label="浣忓潃"> + <el-input v-model="form.address" placeholder="璇峰~鍐欏綋浜嬩汉浣忓潃"></el-input> </el-form-item> - <el-form-item label="鑱旂郴鐢佃瘽"> - <el-input v-model="form.phone" placeholder="璇峰~鍐欏綋浜嬩汉鐢佃瘽"></el-input> - </el-form-item> + <el-form-item label="鍔炴浜哄憳" prop="hanlderIds"> <el-select v-model="form.hanlderIds" clearable filterable multiple :multiple-limit="2" placeholder="璇烽�夋嫨" style="width: 100%;" @change="setPersonname($event)"> @@ -32,7 +66,7 @@ </template> <script> -import {easycase,marketb} from '../../api/News/pad' +import {easycase,getMarketList,getIdByToken} from '../../api/News/pad' import {getfindAll} from "../../api/News/useres"; export default { name: "padFrom", @@ -41,10 +75,16 @@ form:{ casePoint:'', litigant:"", + legalPerson:"", + certNo:"", phone:"", - hanlderIds:"", + address:"", + hanlderIds:[], }, - organPersons:[] + //鍔炴浜哄憳鏁版嵁 + organPersons:[], + //褰撲簨浜烘暟鎹� + marketList:[], } }, created() { @@ -53,13 +93,51 @@ methods:{ init(){ // this.$nextTick(()=>{ - //鏌ヨ褰撲簨浜轰俊鎭� + getIdByToken().then(res =>{ + console.log(res,'getIdByToken') + let a = res.data.data; + this.form.hanlderIds.push(a) + }) + //鏌ヨ褰撲簨浜� + getMarketList().then((res) => { + this.marketList = res.data.data; + }) + //鏌ヨ鍔炴浜哄憳淇℃伅 getfindAll().then((res) => { this.organPersons = res.data.data; }) + // }) }, - marketb(){}, + marketChange(item){ + this.form.litigant = ""; + this.form.legalPerson = ""; + this.form.litigantCert = ""; + this.form.certNo = ""; + this.form.address = ""; + this.form.phone = ""; + this.form.litigantId = item.id; + if ("缁忚惀鑰�" == item.subjectType || "涓綋宸ュ晢鎴�" == item.subjectType) { + this.form.litigant = item.subjectName; + this.form.legalPerson = item.legalPerson; + this.form.litigantCert = "钀ヤ笟鎵х収"; + this.form.certNo = item.idCard; + this.form.address = item.address; + this.form.phone = item.phone; + } else if ("鍏皯" == item.subjectType) { + this.form.litigant = item.subjectName; + this.form.litigantCert = "灞呮皯韬唤璇�"; + this.form.certNo = item.idCard; + this.form.address = item.address; + this.form.phone = item.phone; + } else if ("鍏朵粬缁勭粐" == item.subjectType) { + this.form.litigant = item.subjectName; + this.form.legalPerson = item.legalPerson; + this.form.certNo = item.idCard; + this.form.address = item.address; + this.form.phone = item.phone; + } + }, backAll(){ this.$router.push({ path: '/pad', @@ -77,6 +155,7 @@ } }, onSubmit(){ + console.log(this.form.hanlderIds,'this.form.hanlderIds') this.form.hanlderIds=this.form.hanlderIds.toString() if (this.form.hanlderIds.length < 1) { this.form.hanlders = ''; -- Gitblit v1.9.1