sale-client 3.6.281 → 3.6.283

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.281",
3
+ "version": "3.6.283",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -0,0 +1,109 @@
1
+ <template>
2
+ <div id='contractSigning'>
3
+ <modal :show.sync="show" backdrop="false">
4
+ <header slot="modal-header" class="modal-header">
5
+ <h3 style="color:black" class="modal-title">合同</h3>
6
+ </header>
7
+ <article slot="modal-body" class="modal-body">
8
+ <iframe :src="url" v-if="url" width="100%" height="500px">
9
+ </iframe>
10
+ </article>
11
+ <footer slot="modal-footer" class="modal-footer">
12
+ <button type="button" class="btn btn-default" @click="handleReset">签名</button>
13
+ <button type="button" class="btn btn-default" @click="handleGenerate">保存</button>
14
+ <button type="button" class="btn btn-default" @click="clasehand">关闭</button>
15
+ </footer>
16
+ </modal>
17
+ <work-busy :is-busy="showbuy"></work-busy>
18
+ </div>
19
+ </template>
20
+ <script>
21
+ import * as jsign from '../../../plugins/jsign'
22
+ export default {
23
+ title: '合同签名页面',
24
+ data () {
25
+ return {
26
+ url: '',
27
+ imgstr: '',
28
+ scheduleData: '',
29
+ showclase: false,
30
+ showbuy: false
31
+ }
32
+ },
33
+ props: ['show'],
34
+ ready () {
35
+ },
36
+ compiled () {
37
+ },
38
+ methods: {
39
+ clasehand () {
40
+ this.url = ''
41
+ this.imgstr = ''
42
+ this.scheduleData = ''
43
+ this.show = false
44
+ },
45
+ getUserInfo () {
46
+ jsign.jsign_set_string('singurl', encodeURI(this.url))
47
+ },
48
+ getContractData (userinfoid) {
49
+ console.log(userinfoid)
50
+ this.showbuy = true
51
+ this.f_userinfo_id = userinfoid
52
+ this.$resetpost('wx/rs/logic/wordToosRept', {f_userinfo_id: this.f_userinfo_id}, {resolveMsg: null, rejectMsg: '获取合同失败!!'}).then(item => {
53
+ this.showbuy = false
54
+ if (item.data.length > 0) {
55
+ this.scheduleData = item.data[0]
56
+ this.url = item.data[0].f_visitpc_url
57
+ }
58
+ }).catch(err => {
59
+ console.log(err)
60
+ this.showbuy = false
61
+ })
62
+ },
63
+ handleReset () {
64
+ console.log('进入sign()')
65
+ console.log('jsign.dictGetArray', jsign.dictGetArray)
66
+ jsign.jsign_open(this)
67
+ setTimeout(() => {
68
+ jsign.jsign_get_device_status()
69
+ }, 1500)
70
+ setTimeout(() => {
71
+ if (jsign.dictGetArray['devicestatus'] === 'fail') {
72
+ console.log('没签字屏')
73
+ this.$showAlert('没有可用签字屏', 'danger', 0)
74
+ this.busy = 1
75
+ return
76
+ }
77
+ // jsign.jsign_set_string('name', 'jsigner')
78
+ // jsign.jsign_set_string('businessname', 'payment')
79
+ this.getUserInfo()
80
+ jsign.jsign_set_string('picture', '')
81
+
82
+ jsign.jsign_run_sign(jsign.htmlPath + `sign.html`)
83
+ }, 3000)
84
+ },
85
+ handleGenerate () {
86
+ // this.$dispatch('toggle')
87
+ if (this.imgstr === '') {
88
+ this.$showAlert('请先签字!', 'danger', 2000)
89
+ return
90
+ }
91
+ var data = {
92
+ content: this.imgstr,
93
+ f_userinfo_id: this.scheduleData.f_userinfo_id,
94
+ f_contract_signature_id: this.scheduleData.f_contract_signature_id
95
+ }
96
+ this.$resetpost('wx/rs/logic/pdfToosSignature', data).then((res) => {
97
+ if (res.data) {
98
+ this.showclase = true
99
+ this.url = res.data.f_visitpc_url
100
+ } else {
101
+ this.$vux.alert.show({title: '操作提示', content: '提交失败请稍后重试!'})
102
+ }
103
+ })
104
+ }
105
+ },
106
+ computed: {
107
+ }
108
+ }
109
+ </script>
@@ -93,10 +93,8 @@
93
93
  }
94
94
  await self.$resetpost('invoice/rs/logic/getInvoice', {data: params}, {resolveMsg: null, rejectMsg: '发票冲红失败!!!'})
95
95
  }
96
- if (name === 'otherFeeRollback') {
97
- console.log('准备刷新了!。。', res, self.model)
98
- self.$dispatch('cancel-success')
99
- }
96
+ console.log('准备刷新了!。。', res, self.model)
97
+ self.$dispatch('cancel-success')
100
98
 
101
99
  // 判断需不需要冲正电子票
102
100
  // if (self.isNeedEticket(getRecord.data, self.data.type)) {