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/word_mange/mangeGZ.vue | 28 +++--- src/views/padSunmaryProcedure/word_mange/mangeJD.vue | 29 +++---- src/views/padSunmaryProcedure/padFrom.vue | 103 ++++++++++++++++++++++--- src/views/padSunmaryProcedure/padWord.vue | 13 +- src/views/padSunmaryProcedure/word_mange/mangeBL.vue | 54 +++++++++--- src/views/padSunmaryProcedure/index.vue | 13 ++- 6 files changed, 172 insertions(+), 68 deletions(-) diff --git a/src/views/padSunmaryProcedure/index.vue b/src/views/padSunmaryProcedure/index.vue index 9b8f997..158f0d6 100644 --- a/src/views/padSunmaryProcedure/index.vue +++ b/src/views/padSunmaryProcedure/index.vue @@ -5,10 +5,10 @@ <el-input v-model="formInline.litigant" placeholder="瀹℃壒浜�"></el-input> </el-form-item> <el-form-item label="鐢佃瘽"> - <el-input v-model="formInline.user" placeholder="瀹℃壒浜�"></el-input> + <el-input v-model="formInline.phone" placeholder="鐢佃瘽"></el-input> </el-form-item> <el-form-item> - <el-button type="primary" @click="getDataList(0)">鏌ヨ</el-button> + <el-button type="primary" @click="look()">鏌ヨ</el-button> </el-form-item> <el-form-item style="float: right"> <el-button type="primary" @click="getById">鏂板</el-button> @@ -90,6 +90,10 @@ this.getDataList(0) }, methods: { + look(){ + // this.formInline.phone =1111 + this.formInline.phone = window.android.getAppToken() + }, // 鏌ヨ鍒楄〃 getDataList(type){ // this.$nextTick(()=>{ @@ -99,6 +103,7 @@ getObj(this.formInline).then(res =>{ this.tableData =res.data.data.records }) + this.formInline.phone = window.android.getAppToken() }else { // this.formInline.user=333 getObj().then(res =>{ @@ -109,8 +114,8 @@ }, //鐐瑰嚮鐐硅烦杞煡鐪� rowget(row,column) { - /*console.log(row,'row===') - console.log(column,'column===')*/ + console.log(row,'row===') + // console.log(column,'column===') // this.$router.push({name: 'process_manage', params: {name: id}}) this.$router.push({ path: '/padWord', 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 = ''; diff --git a/src/views/padSunmaryProcedure/padWord.vue b/src/views/padSunmaryProcedure/padWord.vue index 0b023a3..3d32cce 100644 --- a/src/views/padSunmaryProcedure/padWord.vue +++ b/src/views/padSunmaryProcedure/padWord.vue @@ -4,8 +4,8 @@ <el-button icon="el-icon-arrow-left" @click="goHome">杩斿洖</el-button> <div>{{ name1 }}</div> <div> - <el-button v-if="1" icon="el-icon-caret-top" @click="ShowHide(0)"></el-button> - <el-button v-if="0" icon="el-icon-caret-bottom" @click="ShowHide(1)"></el-button> + <el-button v-if="btn ==1" icon="el-icon-caret-top" @click="ShowHide(0)"></el-button> + <el-button v-if="btn ==0" icon="el-icon-caret-bottom" @click="ShowHide(1)"></el-button> <el-button icon="el-icon-upload el-icon--right" @click="submit">鎻愪氦</el-button> </div> </div> @@ -57,15 +57,16 @@ } }, methods: { - ShowHide(type) { - this.btn = type; - window.android.toShowHide() - } + goHome() { this.$router.push({ path: '/pad', }) }, + ShowHide(type) { + this.btn = type; + window.android.toShowHide() + }, submit() { submitcase({id: this.id}).then(res => { this.goHome() diff --git a/src/views/padSunmaryProcedure/word_mange/mangeBL.vue b/src/views/padSunmaryProcedure/word_mange/mangeBL.vue index 48376c8..ee565f3 100644 --- a/src/views/padSunmaryProcedure/word_mange/mangeBL.vue +++ b/src/views/padSunmaryProcedure/word_mange/mangeBL.vue @@ -130,14 +130,15 @@ </el-form> <div style="text-align: center"> <el-button v-if="form.registerState=='0'||form.registerState==null" @click="dataFormSubmit('0')">淇濆瓨</el-button> - <el-button type="primary" @click="viewVord(form)">棰勮</el-button> + <el-button type="primary" @click="viewVord(form.id)">棰勮</el-button> <el-button type="success" @click="downloadWord(form)">涓嬭浇</el-button> </div> </el-main> </template> <script> -import {inquiry, inquiryquestion} from '../../../api/News/pad' +import {createword, inquiry, inquiryquestion} from '../../../api/News/pad' +import {viewD, exportDoc, urlToBase64, viewWithImg, exportDocWidthImg} from "@/libs/word" export default { name: "mangeBL", @@ -187,6 +188,7 @@ methods: { getDataList() { inquiryquestion(this.id).then(res => { + console.log(res,'res') this.form = res.data.data this.value1.push(res.data.data.startTime) this.value1.push(res.data.data.endTime) @@ -226,28 +228,50 @@ }, //鐐瑰嚮棰勮 viewVord(data) { - // let wordData = this.transforData(data); - this.$router.push({ + /*if (data){ + this.dataFormSubmit(); + createword(data).then(res =>{ + // console.log(this.form.id) + console.log(res,'123456') + // window.android.toPreviewWord() + }) + }else { + createword(data).then(res =>{ + // console.log(this.form.id) + console.log(res,'123456') + // window.android.toPreviewWord() + }) + }*/ + createword(data).then(res =>{ + // console.log(this.form.id) + console.log(res,'123456') + window.android.toPreviewWord(res.data.data) + }).catch(err=>{ + console.log(err,'閿欒'); + }) + + + + /*this.$router.push({ path: '/WordYulan', query: { wordData: data, src:'/wordes/inquiryCause.docx', name:'璋冩煡璇㈤棶绗斿綍', } - }) + })*/ }, //鐐瑰嚮涓嬭浇 downloadWord(data){ - this.$router.push({ - path: '/WordYulan', - query: { - downWordData: data, - src:'/wordes/inquiryCause.docx', - name:'璋冩煡璇㈤棶绗斿綍', - } - }) - // WordView.methods.exportDoc(wordData, "/wordes/inquiryCause.docx", "璋冩煡璇㈤棶绗斿綍.docx") - }, + window.android.toDownLoadWord() + console.log(exportDoc(data, '/wordes/inquiryCause.docx','璋冩煡璇㈤棶绗斿綍'),'aaaa') + createword(data).then(res =>{ + // console.log(this.form.id) + console.log(res,'123456') + window.android.toPreviewWord(res.data.data) + }).catch(err=>{ + console.log(err,'閿欒'); + }) }, // 閬嶅巻鏁版嵁 transforData(obj) { let s = JSON.stringify(obj); diff --git a/src/views/padSunmaryProcedure/word_mange/mangeGZ.vue b/src/views/padSunmaryProcedure/word_mange/mangeGZ.vue index f930bcc..e9bc0ac 100644 --- a/src/views/padSunmaryProcedure/word_mange/mangeGZ.vue +++ b/src/views/padSunmaryProcedure/word_mange/mangeGZ.vue @@ -110,7 +110,7 @@ </template> <script> -import { ordercorrec, ordercorrection} from '../../../api/News/pad' +import {createword, ordercorrec, ordercorrection} from '../../../api/News/pad' export default { name: "mangeGZ", @@ -159,24 +159,22 @@ //鐐瑰嚮棰勮 viewVord(data) { // let wordData = this.transforData(data); - this.$router.push({ - path: '/WordYulan', - query: { - wordData: data, - src:'/wordes/correctionNotice.docx', - name:'璐d护闄愭湡鏀规閫氱煡涔�', - } + createword(data).then(res =>{ + // console.log(this.form.id) + console.log(res,'123456') + window.android.toPreviewWord(res.data.data) + }).catch(err=>{ + console.log(err,'閿欒'); }) }, //鐐瑰嚮涓嬭浇 downloadWord(data){ - this.$router.push({ - path: '/WordYulan', - query: { - downWordData: data, - src:'/wordes/correctionNotice.docx', - name:'璐d护闄愭湡鏀规閫氱煡涔�', - } + createword(data).then(res =>{ + // console.log(this.form.id) + console.log(res,'123456') + window.android.toPreviewWord(res.data.data) + }).catch(err=>{ + console.log(err,'閿欒'); }) // WordView.methods.exportDoc(wordData, "/wordes/inquiryCause.docx", "璋冩煡璇㈤棶绗斿綍.docx") }, diff --git a/src/views/padSunmaryProcedure/word_mange/mangeJD.vue b/src/views/padSunmaryProcedure/word_mange/mangeJD.vue index 61b8c95..42a5033 100644 --- a/src/views/padSunmaryProcedure/word_mange/mangeJD.vue +++ b/src/views/padSunmaryProcedure/word_mange/mangeJD.vue @@ -119,7 +119,7 @@ </template> <script> -import {inquiry, nowpenaltydecision} from "../../../api/News/pad"; +import {createword, inquiry, nowpenaltydecision} from "../../../api/News/pad"; export default { @@ -164,25 +164,22 @@ //鐐瑰嚮棰勮 viewVord(data) { // let wordData = this.transforData(data); - this.$router.push({ - path: '/WordYulan', - query: { - wordData: data, - src: '/wordes/penaltyDecision.docx', - name: '澶勭綒鍐冲畾涔�', - } + createword(data).then(res =>{ + // console.log(this.form.id) + console.log(res,'123456') + window.android.toPreviewWord(res.data.data) + }).catch(err=>{ + console.log(err,'閿欒'); }) }, //鐐瑰嚮涓嬭浇 downloadWord(data) { - this.$router.push({ - path: '/WordYulan', - query: { - id: this.id, - downWordData: data, - src: '/wordes/penaltyDecision.docx', - name: '澶勭綒鍐冲畾涔�', - } + createword(data).then(res =>{ + // console.log(this.form.id) + console.log(res,'123456') + window.android.toPreviewWord(res.data.data) + }).catch(err=>{ + console.log(err,'閿欒'); }) // WordView.methods.exportDoc(wordData, "/wordes/inquiryCause.docx", "璋冩煡璇㈤棶绗斿綍.docx") }, -- Gitblit v1.9.1