sale-client 3.6.365 → 3.6.367
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/build/dev-server.js +6 -6
- package/package.json +1 -1
- package/src/components/FilesManage/Edit.vue +53 -30
- package/src/components/FilesManage/UserGeneralInfoTest.vue +0 -1
- package/src/filiale/kelai/MeterinfoTest.vue +5 -5
- package/src/filiale/liaoyuan/Overduetax.vue +11 -6
- package/src/filiale/qianneng/FilesManage/MeterinfoTest.vue +3 -1
- package/src/filiale/qianneng/FilesManageNew/MeterinfoTest.vue +2 -1
package/build/dev-server.js
CHANGED
|
@@ -29,12 +29,12 @@ var devConfig = {
|
|
|
29
29
|
'/invoice/rs/logic/getInvoice': {
|
|
30
30
|
target: serverRul
|
|
31
31
|
},
|
|
32
|
-
'/rs/sql/filemanage_getUserfies':{
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
'/rs/logic/importNetworkValve':{
|
|
36
|
-
|
|
37
|
-
},
|
|
32
|
+
// '/rs/sql/filemanage_getUserfies':{
|
|
33
|
+
// target: 'http://127.0.0.1:8080/'
|
|
34
|
+
// },
|
|
35
|
+
// '/rs/logic/importNetworkValve':{
|
|
36
|
+
// target: 'http://127.0.0.1:8080/'
|
|
37
|
+
// },
|
|
38
38
|
'/rs/file': {
|
|
39
39
|
target: localUrl
|
|
40
40
|
},
|
package/package.json
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<script>
|
|
10
|
-
import HttpResetClass from
|
|
10
|
+
import HttpResetClass from 'vue-client/src/plugins/HttpResetClass'
|
|
11
11
|
|
|
12
12
|
export default {
|
|
13
13
|
title: 'App',
|
|
14
|
-
data() {
|
|
14
|
+
data () {
|
|
15
15
|
return {
|
|
16
16
|
inputText: '',
|
|
17
17
|
showSketchPage: false,
|
|
@@ -19,28 +19,50 @@ export default {
|
|
|
19
19
|
sketchId: '',
|
|
20
20
|
title: '',
|
|
21
21
|
paperMessage: ''
|
|
22
|
-
}
|
|
22
|
+
}
|
|
23
23
|
},
|
|
24
24
|
props: {
|
|
25
25
|
row: ''
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
ready () {
|
|
28
28
|
if (this.row) {
|
|
29
|
-
|
|
29
|
+
new HttpResetClass().load('POST', 'rs/sql/tel_singleTable_OrderBy', {
|
|
30
30
|
data: {
|
|
31
31
|
items: 'blob', tablename: 't_blob_sketch', condition: `id = '${this.row}'`, orderitem: 'id'
|
|
32
32
|
}
|
|
33
|
-
}).then(res => {
|
|
33
|
+
}).then(async res => {
|
|
34
34
|
if (res.data.length === 0) {
|
|
35
35
|
this.handleClick()
|
|
36
36
|
return
|
|
37
37
|
}
|
|
38
|
+
let resDataUserfiles = await new HttpResetClass().load('POST', 'rs/sql/tel_singleTable_OrderBy', {
|
|
39
|
+
data: {
|
|
40
|
+
items: '*', tablename: 't_userfiles', condition: `f_userinfo_id = '${this.row}'`, orderitem: ' f_userfiles_id desc '
|
|
41
|
+
}
|
|
42
|
+
})
|
|
43
|
+
var userfilesJson = {}
|
|
44
|
+
if (resDataUserfiles.data.length > 0) {
|
|
45
|
+
resDataUserfiles.data.forEach(v => {
|
|
46
|
+
userfilesJson[v.f_meternumber] = {
|
|
47
|
+
cardNo: v.f_card_id,
|
|
48
|
+
meterType: v.f_meter_classify,
|
|
49
|
+
meterGasnums: v.f_total_gas,
|
|
50
|
+
meterBalance: v.f_balance == 0 ? v.f_balance_amount : v.f_balance,
|
|
51
|
+
meterTolal: v.f_total_fee
|
|
52
|
+
}
|
|
53
|
+
})
|
|
54
|
+
}
|
|
38
55
|
try {
|
|
39
|
-
let hex = Buffer.from(res.data[0].blob, 'hex').toString('utf8')
|
|
56
|
+
let hex = Buffer.from(res.data[0].blob, 'hex').toString('utf8')
|
|
40
57
|
if (!hex.includes('{')) {
|
|
41
|
-
|
|
58
|
+
let jsonstr = Buffer.from(hex, 'hex').toString('utf8')
|
|
59
|
+
let json = JSON.parse(jsonstr)
|
|
60
|
+
json['AddParams4NewSys'] = userfilesJson
|
|
61
|
+
this.inputText = json
|
|
42
62
|
} else {
|
|
43
|
-
|
|
63
|
+
let json = JSON.parse(hex)
|
|
64
|
+
json['AddParams4NewSys'] = userfilesJson
|
|
65
|
+
this.inputText = json
|
|
44
66
|
}
|
|
45
67
|
} catch (e) {
|
|
46
68
|
this.$showMessage('网络异常请联系管理员')
|
|
@@ -51,17 +73,17 @@ export default {
|
|
|
51
73
|
},
|
|
52
74
|
methods: {
|
|
53
75
|
handleClick() {
|
|
54
|
-
this.showSketchPage = true
|
|
76
|
+
this.showSketchPage = true
|
|
55
77
|
this.$nextTick(() => {
|
|
56
|
-
const sketchIframe = document.getElementById('aaaa2')
|
|
78
|
+
const sketchIframe = document.getElementById('aaaa2')
|
|
57
79
|
|
|
58
80
|
window.addEventListener('message', (event) => {
|
|
59
81
|
if (JSON.parse(event.data.param).gadgets.length > 0) {
|
|
60
|
-
this.paperMessage = event.data.param
|
|
82
|
+
this.paperMessage = event.data.param
|
|
61
83
|
}
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
sketchIframe.contentWindow.postMessage(this.inputText, '*')
|
|
84
|
+
})
|
|
85
|
+
console.log(JSON.stringify(this.inputText))
|
|
86
|
+
sketchIframe.contentWindow.postMessage(JSON.stringify(this.inputText), '*')
|
|
65
87
|
})
|
|
66
88
|
},
|
|
67
89
|
savePaper() {
|
|
@@ -76,7 +98,7 @@ export default {
|
|
|
76
98
|
}
|
|
77
99
|
let gadgets = param.gadgets
|
|
78
100
|
if (gadgets.length > 0) {
|
|
79
|
-
var jsonString = JSON.stringify(param)
|
|
101
|
+
var jsonString = JSON.stringify(param)
|
|
80
102
|
var reqdata = {
|
|
81
103
|
blob: Buffer.from(jsonString, 'utf8').toString('hex'),
|
|
82
104
|
orgid: this.$login.f.orgid,
|
|
@@ -94,33 +116,34 @@ export default {
|
|
|
94
116
|
}
|
|
95
117
|
},
|
|
96
118
|
hexToBytes(hex) {
|
|
97
|
-
for (var bytes = [], c = 0; c < hex.length; c += 2)
|
|
98
|
-
bytes.push(parseInt(hex.substring(c, 2), 16))
|
|
99
|
-
|
|
119
|
+
for (var bytes = [], c = 0; c < hex.length; c += 2) {
|
|
120
|
+
bytes.push(parseInt(hex.substring(c, 2), 16))
|
|
121
|
+
}
|
|
122
|
+
return new Uint8Array(bytes)
|
|
100
123
|
},
|
|
101
124
|
decodeHexStringToJSON(hexString) {
|
|
102
125
|
// 去除前缀 "0x"
|
|
103
|
-
var cleanHexString = hexString.slice(2)
|
|
126
|
+
var cleanHexString = hexString.slice(2)
|
|
104
127
|
|
|
105
128
|
// 将十六进制字符串转换为字节数组
|
|
106
|
-
var byteArray = this.hexToBytes(cleanHexString)
|
|
129
|
+
var byteArray = this.hexToBytes(cleanHexString)
|
|
107
130
|
|
|
108
131
|
// 创建 Blob 对象
|
|
109
|
-
var blob = new Blob([byteArray], {type: 'application/json'})
|
|
132
|
+
var blob = new Blob([byteArray], {type: 'application/json'})
|
|
110
133
|
|
|
111
134
|
// 读取 Blob 为文本
|
|
112
135
|
return new Promise(function (resolve, reject) {
|
|
113
|
-
var reader = new FileReader()
|
|
136
|
+
var reader = new FileReader()
|
|
114
137
|
reader.onloadend = function () {
|
|
115
|
-
resolve(reader.result)
|
|
116
|
-
}
|
|
138
|
+
resolve(reader.result)
|
|
139
|
+
}
|
|
117
140
|
reader.onerror = function () {
|
|
118
|
-
reject(reader.error)
|
|
119
|
-
}
|
|
120
|
-
reader.readAsText(blob, 'UTF-8')
|
|
121
|
-
})
|
|
141
|
+
reject(reader.error)
|
|
142
|
+
}
|
|
143
|
+
reader.readAsText(blob, 'UTF-8')
|
|
144
|
+
})
|
|
122
145
|
}
|
|
123
|
-
}
|
|
146
|
+
}
|
|
124
147
|
// beforeDestroy() {
|
|
125
148
|
// this.savePaper()
|
|
126
149
|
// }
|
|
@@ -188,18 +188,20 @@
|
|
|
188
188
|
<input type="number" class="input_search" style="width:60%" v-model="fireinfo.f_use_limit"
|
|
189
189
|
placeholder='表具使用年限' >
|
|
190
190
|
</div>
|
|
191
|
+
|
|
191
192
|
<div class="col-sm-4 form-group" :class="[$m.f_gas_person.required ? 'has-error col' : '']">
|
|
193
|
+
<input type="text" style="width:60%" v-model="$refs.f_gas_person.value" v-show="false" v-validate:f_gas_person='{required: true }'>
|
|
192
194
|
<label for="f_gas_person" class="font_normal_body"> 通 气 人</label>
|
|
193
195
|
<v-select
|
|
194
196
|
:value.sync="row.f_gas_person"
|
|
195
197
|
v-model="row.f_gas_person"
|
|
196
198
|
:options='gasperson'
|
|
197
199
|
placeholder='通气人'
|
|
200
|
+
v-ref:f_gas_person
|
|
198
201
|
close-on-select
|
|
199
|
-
v-validate:f_gas_person='{ required: true }'
|
|
200
|
-
:class="{ 'is-invalid': errors.has('f_gas_person') }"
|
|
201
202
|
></v-select>
|
|
202
203
|
</div>
|
|
204
|
+
|
|
203
205
|
<div class="col-sm-4 form-group" :class="[$m.f_gas_date.required ? 'has-error col' : '']">
|
|
204
206
|
<input type="text" v-model="$refs.f_gas_date.value" v-show="false" v-validate:f_gas_date='{required: true }'>
|
|
205
207
|
<label for="f_gas_date" class="font_normal_body"> 通气日期</label>
|
|
@@ -555,6 +557,7 @@
|
|
|
555
557
|
usestate: this.$appdata.getParam('使用状态'),
|
|
556
558
|
aroundmeters: this.$appdata.getParam('左右表'),
|
|
557
559
|
garbagefee: this.$appdata.getParam('垃圾费'),
|
|
560
|
+
gasperson: this.$appdata.getParam('通气人员'),
|
|
558
561
|
valvestate: this.$appdata.getParam('阀门状态'),
|
|
559
562
|
usertypes: this.$appdata.getParam('用户类型'),
|
|
560
563
|
handmonth: [{label: '单月', value: '单月'}, {label: '双月', value: '双月'}],
|
|
@@ -900,9 +903,6 @@
|
|
|
900
903
|
usestate () {
|
|
901
904
|
return this.$appdata.getParam('使用状态')
|
|
902
905
|
},
|
|
903
|
-
gasperson () {
|
|
904
|
-
return this.$appdata.getParam('通气人员')
|
|
905
|
-
},
|
|
906
906
|
gongyetype () {
|
|
907
907
|
return this.$appdata.getParam('工业备注')
|
|
908
908
|
},
|
|
@@ -254,6 +254,7 @@
|
|
|
254
254
|
dep: [],
|
|
255
255
|
user: []
|
|
256
256
|
},
|
|
257
|
+
query: false,
|
|
257
258
|
orgCondtionStr: '',
|
|
258
259
|
criteriaShow: false,
|
|
259
260
|
model: new PagedList('rs/sql/getSearchOverdue', 20),
|
|
@@ -408,14 +409,18 @@
|
|
|
408
409
|
}
|
|
409
410
|
},
|
|
410
411
|
search (args) {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
412
|
+
if (this.query) {
|
|
413
|
+
console.log('===>', args)
|
|
414
|
+
console.log('=this.model==>', this.model)
|
|
415
|
+
if (!this.orgCondtionStr) {
|
|
416
|
+
args.condition = `${args.condition}` + ' and f_orgid = ' + this.$login.f.orgid
|
|
417
|
+
} else {
|
|
418
|
+
args.condition = `${args.condition}` + this.orgCondtionStr
|
|
419
|
+
}
|
|
420
|
+
this.model.search(args.condition)
|
|
415
421
|
} else {
|
|
416
|
-
|
|
422
|
+
this.query = true
|
|
417
423
|
}
|
|
418
|
-
this.model.search(args.condition)
|
|
419
424
|
},
|
|
420
425
|
// 批量减免按钮
|
|
421
426
|
async batchtax () {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
<label for="gasbrand" class="font_normal_body">气表品牌</label>
|
|
43
43
|
<input type="text" class="input_search" style="width:60%" v-show="false" v-model="$refs.brand.selectedItems"
|
|
44
44
|
v-validate:brand='{required: true }'>
|
|
45
|
-
<v-select :value.sync="row.gasbrand" :options='meterbrands' placeholder='气表品牌' close-on-select
|
|
45
|
+
<v-select :value.sync="row.gasbrand" :options='meterbrands' :menu-width='menuWidth' :min-width='menuWidth' placeholder='气表品牌' close-on-select
|
|
46
46
|
search @change='brandChange' v-model='row.gasbrand' v-ref:brand></v-select>
|
|
47
47
|
</div>
|
|
48
48
|
<div class="col-sm-4 form-group" :class="[$m.model.required ? 'has-error' : '']">
|
|
@@ -524,6 +524,7 @@
|
|
|
524
524
|
overduesetShow: false,
|
|
525
525
|
open_way: '指令开户'
|
|
526
526
|
},
|
|
527
|
+
menuWidth: '200%',
|
|
527
528
|
mapShow: false,
|
|
528
529
|
viewsee: false,
|
|
529
530
|
row: this.meter,
|
|
@@ -559,6 +560,7 @@
|
|
|
559
560
|
},
|
|
560
561
|
props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id','overdueset'],
|
|
561
562
|
ready () {
|
|
563
|
+
// console.log('this.minWidththis.minWidth--userfiles',this.menuWidth)
|
|
562
564
|
console.log('看看meter里面的数据', this.meter, this.row)
|
|
563
565
|
this.row = Object.assign(this.row, this.meter, {})
|
|
564
566
|
this.oldrow = this.row
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<label for="gasbrand" class="font_normal_body">*气表品牌</label>
|
|
34
34
|
<input type="text" class="input_search" style="width:60%" v-show="false" v-model="$refs.brand.selectedItems"
|
|
35
35
|
v-validate:brand='{required: true }'>
|
|
36
|
-
<v-select :value.sync="row.gasbrand" :options='meterbrands' placeholder='气表品牌' close-on-select
|
|
36
|
+
<v-select :value.sync="row.gasbrand" :options='meterbrands' :menu-width='menuWidth' :min-width='menuWidth' placeholder='气表品牌' close-on-select
|
|
37
37
|
search @change='brandChange' v-model='row.gasbrand' v-ref:brand></v-select>
|
|
38
38
|
</div>
|
|
39
39
|
<div class="col-sm-4 form-group" :class="[$m.model.required ? 'has-error' : '']">
|
|
@@ -340,6 +340,7 @@ let meterBookGen = function * (self) {
|
|
|
340
340
|
data () {
|
|
341
341
|
return {
|
|
342
342
|
viewsee: false,
|
|
343
|
+
menuWidth: '200%',
|
|
343
344
|
row: this.meter,
|
|
344
345
|
show: false,
|
|
345
346
|
field: '',
|