峰峰执法平台简易案件程序板块 pad端
yang
2022-10-28 105e36dfd740d96c916d0065c37217aa69e2184c
修改问题
6个文件已修改
240 ■■■■ 已修改文件
src/views/padSunmaryProcedure/index.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/padSunmaryProcedure/padFrom.vue 103 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/padSunmaryProcedure/padWord.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/padSunmaryProcedure/word_mange/mangeBL.vue 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/padSunmaryProcedure/word_mange/mangeGZ.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/padSunmaryProcedure/word_mange/mangeJD.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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',
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 = '';
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()
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);
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:'责令限期改正通知书',
        }
      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:'责令限期改正通知书',
        }
      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")
    },
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")
    },