Browse Source

fix:[资源库管理][供试品管理]签名

lkf
HanLong 2 months ago
parent
commit
403f7087e7
18 changed files with 25 additions and 314 deletions
  1. +1
    -1
      src/views/business/resource/gsp/comps/gsp/Bj.vue
  2. +1
    -1
      src/views/business/resource/gsp/comps/gsp/Cz.vue
  3. +1
    -1
      src/views/business/resource/gsp/comps/gsp/CzBatch.vue
  4. +4
    -4
      src/views/business/resource/gsp/comps/gsp/Ff.vue
  5. +1
    -1
      src/views/business/resource/gsp/comps/gsp/Gd.vue
  6. +4
    -4
      src/views/business/resource/gsp/comps/gsp/Gh.vue
  7. +1
    -1
      src/views/business/resource/gsp/comps/gsp/Jd.vue
  8. +1
    -1
      src/views/business/resource/gsp/comps/gsp/Js.vue
  9. +1
    -1
      src/views/business/resource/gsp/comps/gsp/Jy.vue
  10. +1
    -1
      src/views/business/resource/gsp/comps/gsp/Sd.vue
  11. +1
    -1
      src/views/business/resource/gsp/comps/gsp/Shbj.vue
  12. +1
    -1
      src/views/business/resource/gsp/comps/gsp/Shxgkc.vue
  13. +3
    -3
      src/views/business/resource/gsp/comps/gsp/Xgkc.vue
  14. +1
    -38
      src/views/business/resource/gsp/comps/gsp/Xq.vue
  15. +0
    -252
      src/views/business/resource/gsp/comps/gsp/XqExport.vue
  16. +1
    -1
      src/views/business/resource/gsp/comps/gsp/Xz.vue
  17. +1
    -1
      src/views/business/resource/gsp/comps/gsp/Ysff.vue
  18. +1
    -1
      src/views/business/resource/gsp/comps/rkjl/Bj.vue

+ 1
- 1
src/views/business/resource/gsp/comps/gsp/Bj.vue View File

@ -88,7 +88,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.signerPsw')" prop="qmrmm">
<el-input type="password" v-model="form.qmrmm" maxlength="20"
<el-input type="password" v-model="form.qmrmm" maxlength="20" show-password
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>

+ 1
- 1
src/views/business/resource/gsp/comps/gsp/Cz.vue View File

@ -65,7 +65,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" v-model="form.qmrmm" maxlength="20"
<el-input type="password" v-model="form.qmrmm" maxlength="20" show-password
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>

+ 1
- 1
src/views/business/resource/gsp/comps/gsp/CzBatch.vue View File

@ -55,7 +55,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" v-model="form.qmrmm" maxlength="20"
<el-input type="password" v-model="form.qmrmm" maxlength="20" show-password
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>

+ 4
- 4
src/views/business/resource/gsp/comps/gsp/Ff.vue View File

@ -150,7 +150,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.gsp.lqr1')+$t('form.password')" prop="lqr1mm">
<el-input type="password" v-model="form.lqr1mm" maxlength="20"
<el-input type="password" v-model="form.lqr1mm" maxlength="20" show-password
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
@ -163,7 +163,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.gsp.lqr2')+$t('form.password')" >
<el-input type="password" v-model="form.lqr2mm" maxlength="20"
<el-input type="password" v-model="form.lqr2mm" maxlength="20" show-password
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
@ -176,7 +176,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.mjy.ffr1')+$t('form.password')" prop="ffr1mm">
<el-input type="password" v-model="form.ffr1mm" maxlength="20"
<el-input type="password" v-model="form.ffr1mm" maxlength="20" show-password
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
@ -189,7 +189,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.mjy.ffr2')+$t('form.password')" prop="ffr2mm">
<el-input type="password" v-model="form.ffr2mm" maxlength="20"
<el-input type="password" v-model="form.ffr2mm" maxlength="20" show-password
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>

+ 1
- 1
src/views/business/resource/gsp/comps/gsp/Gd.vue View File

@ -33,7 +33,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" />
<el-input type="password" v-model="form.qmrmm" maxlength="20" show-password :placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
</el-row>

+ 4
- 4
src/views/business/resource/gsp/comps/gsp/Gh.vue View File

@ -101,7 +101,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.mjy.ghr1Id') + $t('form.password')" prop="ghr1mm">
<el-input type="password" v-model="form.ghr1mm" maxlength="20"
<el-input type="password" v-model="form.ghr1mm" maxlength="20" show-password
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
@ -114,7 +114,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.mjy.ghr2Id') + $t('form.password')">
<el-input type="password" v-model="form.ghr2mm" maxlength="20"
<el-input type="password" v-model="form.ghr2mm" maxlength="20" show-password
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
@ -127,7 +127,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.mjy.jsr1Id') + $t('form.password')" prop="jsr1mm">
<el-input type="password" v-model="form.jsr1mm" maxlength="20"
<el-input type="password" v-model="form.jsr1mm" maxlength="20" show-password
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
@ -140,7 +140,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('page.business.resource.mjy.jsr2Id') + $t('form.password')">
<el-input type="password" v-model="form.jsr2mm" maxlength="20"
<el-input type="password" v-model="form.jsr2mm" maxlength="20" show-password
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>

+ 1
- 1
src/views/business/resource/gsp/comps/gsp/Jd.vue View File

@ -58,7 +58,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" />
<el-input type="password" show-password v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
</el-row>

+ 1
- 1
src/views/business/resource/gsp/comps/gsp/Js.vue View File

@ -48,7 +48,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" v-model="form.qmrmm" maxlength="20"
<el-input type="password" v-model="form.qmrmm" maxlength="20" show-password
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>

+ 1
- 1
src/views/business/resource/gsp/comps/gsp/Jy.vue View File

@ -68,7 +68,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" v-model="form.qmrmm" maxlength="20"
<el-input type="password" v-model="form.qmrmm" maxlength="20" show-password
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>

+ 1
- 1
src/views/business/resource/gsp/comps/gsp/Sd.vue View File

@ -32,7 +32,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" />
<el-input type="password" v-model="form.qmrmm" show-password maxlength="20" :placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
</el-row>

+ 1
- 1
src/views/business/resource/gsp/comps/gsp/Shbj.vue View File

@ -71,7 +71,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" />
<el-input type="password" v-model="form.qmrmm" show-password maxlength="20" :placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
</el-row>

+ 1
- 1
src/views/business/resource/gsp/comps/gsp/Shxgkc.vue View File

@ -61,7 +61,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" />
<el-input type="password" v-model="form.qmrmm" show-password maxlength="20" :placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
</el-row>

+ 3
- 3
src/views/business/resource/gsp/comps/gsp/Xgkc.vue View File

@ -32,8 +32,8 @@
</el-row>
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.password')" prop="sdrmm">
<el-input type="text" v-model="form.sdrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" />
<el-form-item :label="$t('form.password')" prop="qmrmm">
<el-input type="password" v-model="form.qmrmm" show-password maxlength="20" :placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>
</el-row>
@ -71,7 +71,7 @@ export default {
open: false,
form: {},
rules: {
sdrmm: [{
qmrmm: [{
required: true,
message: ' ',
trigger: 'blur'

+ 1
- 38
src/views/business/resource/gsp/comps/gsp/Xq.vue View File

@ -121,7 +121,6 @@
@pagination="getJjcgjList" />
</div>
</div>
<XqExport ref="XqExport" key="XqExport" />
</div>
</div>
@ -131,12 +130,9 @@
<script>
import { info, tzList, jcgjList, exportDetail } from "@/api/business/gsp/gsp"
import JcgjList from "@/views/business/comps/common/JcgjList";
import html2canvas from 'html2canvas';
import jsPDF from 'jspdf'
import XqExport from "./XqExport"
export default {
name: "Xq",
components: { JcgjList, XqExport },
components: { JcgjList, },
data() {
return {
form: {},
@ -169,38 +165,7 @@ export default {
}).finally(() => {
this.$modal.closeLoading()
})
// const canvas = await html2canvas(element, {
// scale: 2, //
// useCORS: true, //
// backgroundColor: '#ffffff'
// })
// const imgData = canvas.toDataURL('image/png')
// const pdf = new jsPDF('p', 'mm', 'a4') // A4
// const imgWidth = 210 // A4
// const pageHeight = 295 // A4
// const imgHeight = (canvas.height * imgWidth) / canvas.width
// let heightLeft = imgHeight
// let position = 0
// //
// pdf.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight)
// heightLeft -= pageHeight
// //
// while (heightLeft > 0) {
// position = heightLeft - imgHeight
// pdf.addPage()
// pdf.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight)
// heightLeft -= pageHeight
// }
// pdf.save('document.pdf')
},
exportExcel() {
alert('todo')
},
jcgjListHandleQuery(val) {
this.$modal.loading()
@ -242,8 +207,6 @@ export default {
this.getTzList()
this.open = true
})
this.$refs.XqExport.show(row)
}
}
}

+ 0
- 252
src/views/business/resource/gsp/comps/gsp/XqExport.vue View File

@ -1,252 +0,0 @@
<template>
<!-- 详情 -->
<div>
<div class="detail-container">
<div ref="content">
<div class="detail-title"><img src="@/assets/images/detail-title.png">{{ $t('page.business.resource.gsp.gspxq')
}}<img src="@/assets/images/detail-title.png" /></div>
<div class="detail-content">
<div style="width: 100%;">
<!-- 基本信息 -->
<div class="content-title">
<div class="line"></div>
<div class="subtitle"> {{ $t('page.business.resource.gsp.mc') }}</div>
</div>
<div class="pal">
<div class="left">
<div class="left-title">{{ $t('page.business.resource.gsp.mc') }}</div>
<el-input type="text" :value="form.mc" maxlength="50" disabled />
</div>
<div class="right">
<div class="right-title">{{ $t('page.business.resource.gsp.bh') }}</div>
<el-input type="text" :value="form.bh" maxlength="50" disabled />
</div>
</div>
<div class="pal">
<div class="left">
<div class="left-title">{{ $t('page.business.resource.gsp.ph') }}</div>
<el-input type="text" :value="form.ph" maxlength="50" disabled />
</div>
<div class="right">
<div class="right-title">{{ $t('page.business.resource.gsp.gg') }}</div>
<el-input type="text" :value="form.gg" maxlength="50" disabled> <template slot="append">{{
form.ggdw }}</template> </el-input>
</div>
</div>
<div class="pal">
<div class="left">
<div class="left-title">{{ $t('page.business.resource.gsp.jsrq') }}</div>
<el-input type="text" :value="form.jsrq" maxlength="50" disabled />
</div>
<div class="right">
<div class="right-title">{{ $t('page.business.resource.gsp.kcl') }}</div>
<el-input type="text" :value="form.kc" maxlength="50" disabled> <template slot="append">{{
form.kcdw }}</template> </el-input>
</div>
</div>
<div class="pal">
<div class="left">
<div class="left-title">{{ $t('page.business.resource.gsp.yxq') }}</div>
<el-input type="text" :value="form.yxq" maxlength="50" disabled />
</div>
<div class="right">
<div class="right-title">{{ $t('page.business.resource.gsp.zjzt') }}</div>
<el-select v-model="form.zjzt" disabled style="width: 100%;">
<el-option key="1" :label="$t('page.business.resource.resource.zjzt.rk')" :value="1" />
<el-option key="3" :label="$t('page.business.resource.resource.zjzt.yff')" :value="3" />
<el-option key="5" :label="$t('page.business.resource.resource.zjzt.ysd')" :value="5" />
<el-option key="7" :label="$t('page.business.resource.resource.zjzt.dgd')" :value="7" />
<el-option key="9" :label="$t('page.business.resource.resource.zjzt.gd')" :value="9" />
<el-option key="11" :label="$t('page.business.resource.resource.zjzt.djd')" :value="11" />
</el-select>
</div>
</div>
<!-- 台账 -->
<div class="content-title">
<div class="line"></div>
<div class="subtitle"> {{ $t('page.business.resource.gsp.tz') }}</div>
</div>
<div class="pal">
<el-table :data="tzList" v-loading="loadingTz">
<el-table-column :label="$t('page.business.resource.mjy.syr')" align="center" prop="qmrMc"
:show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.resource.mjy.lqghr')" align="center"
:show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.lqrMc }}{{ scope.row.ghrMc }}
</template>
</el-table-column>
<el-table-column :label="$t('page.business.resource.mjy.ffjsr')" align="center"
:show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.ffrMc }}{{ scope.row.jsrMc }}
</template>
</el-table-column>
<el-table-column :label="$t('page.business.resource.mjy.czlx')" align="center" prop="qmyy"
:show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.resource.mjy.czl')" align="center"
:show-overflow-tooltip="true">
<template slot-scope="scope">
{{ scope.row.czl }}{{ scope.row.czldw }}
</template>
</el-table-column>
<el-table-column :label="$t('page.business.resource.mjy.bzyy')" align="center" prop="remark"
:show-overflow-tooltip="true" />
<el-table-column :label="$t('page.business.resource.mjy.ccsj')" align="center" prop="createTime"
width="150px" />
</el-table>
</div>
<!-- 稽查轨迹 -->
<div class="content-title">
<div class="line"></div>
<div class="subtitle"> {{ $t('page.business.resource.gsp.jcgj') }}</div>
</div>
<div>
<div v-for="(item, index) in jcgjList" :key="index">
<div>
<span>{{ $i18n.locale === 'zh_CN' ? item.jcmc : item.jcmcEn }},</span>
<span class="jcglList-jcnr">
<template v-if="$i18n.locale === 'zh_CN'">
<span v-for="(pitem, pindex) in item.jcnrList" :key="pindex">
{{ pitem.name }}{{ pitem.value }},
</span>
</template>
<template v-else>
<span v-for="(pitem, pindex) in item.jcnrListEn" :key="pindex">
{{ pitem.name }}{{ pitem.value }},
</span>
</template>
<span v-if="item.remark && item.remark !== ''">
{{ $t('form.remark') }}{{ item.remark }},
</span>
<span v-if="item.qmrId && item.qmrId > 0">
{{ $t('form.qmyy') }}{{ $i18n.locale === 'zh_CN' ? item.jcmc : item.jcmcEn }},
</span>
<span v-if="item.qmrId && item.qmrId > 0">
<!-- {{$t('form.signer')}}{{ $i18n.locale === 'zh_CN'?item.qmrMc:item.qmrMcEn }} -->
{{ $t('form.signer') }}{{ item.qmrMc }},
</span>
<span>{{ $t('form.signTime') }}{{ item.createTime }}</span>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import { info, tzList, jcgjList } from "@/api/business/gsp/gsp"
import JcgjList from "@/views/business/comps/common/JcgjList";
import html2canvas from 'html2canvas';
import jsPDF from 'jspdf'
export default {
name: "XqExport",
components: { JcgjList },
data() {
return {
form: {},
tzList: [],
totalTz: 0,
loadingTz: true,
open: false,
queryParamstZ: {
mjyId: null,
pageNum: 1,
pageSize: 9999999
},
jcgjTotal: 0,
jcgjList: [],
queryJcgjParams: {
pageNum: 1,
mjyId: null,
pageSize: 9999999,
}
}
},
created() {
},
methods: {
async exportPDF() {
this.$modal.loading()
const element = this.$refs.content
const canvas = await html2canvas(element, {
scale: 2, //
useCORS: true, //
backgroundColor: '#ffffff'
})
const imgData = canvas.toDataURL('image/png')
const pdf = new jsPDF('p', 'mm', 'a4') // A4
const imgWidth = 210 // A4
const pageHeight = 295 // A4
const imgHeight = (canvas.height * imgWidth) / canvas.width
let heightLeft = imgHeight
let position = 0
//
pdf.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight)
heightLeft -= pageHeight
//
while (heightLeft > 0) {
position = heightLeft - imgHeight
pdf.addPage()
pdf.addImage(imgData, 'PNG', 0, position, imgWidth, imgHeight)
heightLeft -= pageHeight
}
pdf.save('document.pdf')
this.$modal.closeLoading()
},
exportExcel() {
alert('todo')
},
jcgjListHandleQuery(val) {
this.$modal.loading()
jcgjList(_.merge({}, this.queryJcgjParams, val)).then(response => {
this.jcgjList = response.rows
this.jcgjTotal = response.total
this.$modal.closeLoading()
})
},
getJjcgjList() {
jcgjList(this.queryJcgjParams).then(response => {
this.jcgjList = response.rows
this.jcgjTotal = response.total
this.$modal.closeLoading()
})
},
cancel() {
this.open = false
this.$emit('callback')
},
getTzList() {
this.loadingTz = true
tzList(this.queryParamstZ).then(response => {
this.tzList = response.rows
this.totalTz = response.total
this.loadingTz = false
this.getJjcgjList()
})
},
show(row) {
this.$modal.loading()
this.queryParamstZ.gspId = row.id
this.queryJcgjParams.gspId = row.id
info({ id: row.id }).then(response => {
this.form = response.data
this.getTzList()
this.open = true
})
}
}
}
</script>

+ 1
- 1
src/views/business/resource/gsp/comps/gsp/Xz.vue View File

@ -98,7 +98,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.signerPsw')" prop="qmrmm">
<el-input type="password" v-model="form.qmrmm" maxlength="20"
<el-input type="password" show-password v-model="form.qmrmm" maxlength="20"
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>

+ 1
- 1
src/views/business/resource/gsp/comps/gsp/Ysff.vue View File

@ -97,7 +97,7 @@
</el-col>
<el-col :span="12">
<el-form-item :label="$t('form.password')" prop="ffrmm">
<el-input type="text" v-model="form.ffrmm" maxlength="20"
<el-input type="password" v-model="form.ffrmm" show-password maxlength="20"
:placeholder="$t('form.placeholderInput')">
</el-input>
</el-form-item>

+ 1
- 1
src/views/business/resource/gsp/comps/rkjl/Bj.vue View File

@ -83,7 +83,7 @@
<el-row>
<el-col :span="24">
<el-form-item :label="$t('form.signerPsw')" prop="qmrmm">
<el-input type="password" v-model="form.qmrmm" maxlength="20"
<el-input type="password" v-model="form.qmrmm" show-password maxlength="20"
:placeholder="$t('form.placeholderInput')" />
</el-form-item>
</el-col>

Loading…
Cancel
Save