sale-client 4.2.9 → 4.2.10
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/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/build/dev-server.js +1 -4
- package/package.json +1 -1
- package/src/filiale/jinhuang/WebHand.vue +1026 -1026
- package/src/filiale/yuncheng/UploadIdCard.vue +59 -62
- package/src/main.js +1 -1
- package/src/components/FilesManage/addressts/FileUserFilests.vue +0 -671
- package/src/components/FilesManage/ncUserinfoList.vue +0 -315
- package/src/components/SellGasCharge/MeterCharge/CardDataRewrite.vue +0 -107
- package/src/components/SendCard/SendCardData.vue +0 -208
- package/src/components/accounts/accountAdd.vue +0 -276
- package/src/components/accounts/accountsList.vue +0 -183
- package/src/components/accounts/accountsManage.vue +0 -87
- package/src/components/common/chargeinfo/chargeinfo.vue +0 -55
- package/src/components/common/userinfo_detail/config/exportConfig.js +0 -85
- package/src/components/ncarchives/ncArchivesAdd.vue +0 -468
- package/src/components/ncarchives/ncArchivesList.vue +0 -159
- package/src/components/ncarchives/ncUserfilesList.vue +0 -373
- package/src/components/ncarchives/ncarchivesmanage.vue +0 -80
- package/src/components/revenue/IOTArrears/arrears.vue +0 -323
- package/src/components/revenue/IOTArrears/iotRechargeAudit.vue +0 -369
- package/src/components/revenue/base/rightview/carddetail/cardiotfeeChangeDetail.vue +0 -59
- package/src/components/revenue/base/rightview/carddetail/reduceChangeDetail.vue +0 -59
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellationts.vue +0 -73
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchEnablets.vue +0 -73
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/ReduceAddGas.vue +0 -199
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionManage.vue +0 -24
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionYSManage.vue +0 -24
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeDeduction.vue +0 -185
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeYSDeduction.vue +0 -185
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeFlowMeter.vue +0 -356
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/CorrectionMeter.vue +0 -148
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackUserList.vue +0 -136
- package/src/components/revenue/recordMainten/sellinggas/AddWarehousemain.vue +0 -65
- package/src/components/revenue/recordMainten/sellinggas/MeterOperateAdd.vue +0 -483
- package/src/components/revenue/recordMainten/sellinggas/MeterOperatemain.vue +0 -279
- package/src/components/revenue/recordMainten/sellinggas/MeterOperatemainImport.vue +0 -265
- package/src/components/thirdapply/thirdAdd.vue +0 -289
- package/src/components/thirdapply/thirdList.vue +0 -162
- package/src/components/thirdapply/thirdManage.vue +0 -74
- package/src/components/webMeter/InstructQuery.vue +0 -414
- package/src/components/webMeter/ParamSet/ParamSet.vue +0 -556
- package/src/components/webMeter/ParamSet/ParamSetForm.vue +0 -296
- package/src/components/webMeter/WebUserHand.vue +0 -483
- package/src/components/webMeter/instructionView/NewQueryInstruct.vue +0 -509
- package/src/components/webMeter/instructionView/NewQueryInstructMain.vue +0 -48
- package/src/components/webMeter/webManage/NewMeterList.vue +0 -461
- package/src/plugins/FileManageServicets.js +0 -214
- package/src/plugins/GetImg.js +0 -53
|
@@ -60,16 +60,16 @@
|
|
|
60
60
|
</template>
|
|
61
61
|
<script>
|
|
62
62
|
import { HttpResetClass } from 'vue-client'
|
|
63
|
-
import Vue from
|
|
63
|
+
import Vue from 'vue'
|
|
64
64
|
|
|
65
65
|
export default {
|
|
66
|
-
title:
|
|
67
|
-
props: ['blodid', 'isremark', 'isusetype','takeimg','defname','isupload','fusetype','cols'],
|
|
68
|
-
data() {
|
|
66
|
+
title: '附件',
|
|
67
|
+
props: ['blodid', 'isremark', 'isusetype', 'takeimg', 'defname', 'isupload', 'fusetype', 'cols'],
|
|
68
|
+
data () {
|
|
69
69
|
return {
|
|
70
70
|
isDelete: '1', // 删除按钮,可以进行控制(权限等)
|
|
71
71
|
fileInfoData: [], // 数据库存储的文件记录对象数组
|
|
72
|
-
headers: {'username': this.$login.f.name, 'blodid': '', 'fremarks': '','defname':'','fusetype':this.fusetype?this.fusetype:''}, // 调用rs/file/uploadFile 的参数
|
|
72
|
+
headers: {'username': this.$login.f.name, 'blodid': '', 'fremarks': '', 'defname': '', 'fusetype': this.fusetype ? this.fusetype : ''}, // 调用rs/file/uploadFile 的参数
|
|
73
73
|
showUpload: false, // 上传模态框控制
|
|
74
74
|
showhighmeter: false, // 高拍仪组件控制
|
|
75
75
|
useType: '', // 使用类型
|
|
@@ -78,49 +78,47 @@ export default {
|
|
|
78
78
|
},
|
|
79
79
|
methods: {
|
|
80
80
|
// 查询按钮事件
|
|
81
|
-
delet(index, row) {
|
|
81
|
+
delet (index, row) {
|
|
82
82
|
this.$resetdelete('api/af-revenue/entity/t_files', {id: row.id}, {resolveMsg: '删除成功', rejectMsg: '删除失败'}).then((res) => {
|
|
83
83
|
this.fileInfoData.splice(index, 1)
|
|
84
84
|
})
|
|
85
85
|
},
|
|
86
|
-
GetRequest() {
|
|
87
|
-
var url = location.search
|
|
88
|
-
var theRequest = new Object()
|
|
89
|
-
if (url.indexOf(
|
|
90
|
-
var str = url.substr(1)
|
|
91
|
-
let strs = str.split(
|
|
86
|
+
GetRequest () {
|
|
87
|
+
var url = location.search
|
|
88
|
+
var theRequest = new Object()
|
|
89
|
+
if (url.indexOf('?') != -1) {
|
|
90
|
+
var str = url.substr(1)
|
|
91
|
+
let strs = str.split('&')
|
|
92
92
|
for (var i = 0; i < strs.length; i++) {
|
|
93
|
-
theRequest[strs[i].split(
|
|
93
|
+
theRequest[strs[i].split('=')[0]] = decodeURIComponent(strs[i].split('=')[1])
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
return theRequest
|
|
96
|
+
return theRequest
|
|
97
97
|
},
|
|
98
|
-
downloadfile(filepath){
|
|
99
|
-
|
|
100
|
-
var link = document.createElement('a');
|
|
98
|
+
downloadfile (filepath) {
|
|
99
|
+
var link = document.createElement('a')
|
|
101
100
|
// let pathName = "http://" + location.host + filepath;
|
|
102
|
-
link.href = filepath
|
|
103
|
-
link.target='_blank'
|
|
104
|
-
link.dispatchEvent(new MouseEvent('click'))
|
|
101
|
+
link.href = filepath
|
|
102
|
+
link.target = '_blank'
|
|
103
|
+
link.dispatchEvent(new MouseEvent('click'))
|
|
105
104
|
},
|
|
106
|
-
upload() {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
console.log(this,'测试')
|
|
105
|
+
upload () {
|
|
106
|
+
if (this.showhighmeter) {
|
|
107
|
+
console.log(this, '测试')
|
|
110
108
|
this.$refs.ltgao.closeVideo()
|
|
111
109
|
}
|
|
112
110
|
console.log('测试1')
|
|
113
111
|
this.showhighmeter = !this.showhighmeter
|
|
114
112
|
},
|
|
115
|
-
async load(self) {
|
|
113
|
+
async load (self) {
|
|
116
114
|
let condition = `f_blobid= '${self.headers.blodid}' `
|
|
117
|
-
if(this.fusetype){
|
|
115
|
+
if (this.fusetype) {
|
|
118
116
|
condition += ` and fusetype='${this.fusetype}'`
|
|
119
117
|
}
|
|
120
118
|
var http = new HttpResetClass()
|
|
121
119
|
let data = {
|
|
122
120
|
tablename: 't_files',
|
|
123
|
-
condition: condition
|
|
121
|
+
condition: condition + ` order by f_uploaddate desc `
|
|
124
122
|
}
|
|
125
123
|
let getFile = await http.load('POST', 'api/af-revenue/sql/saleSingleTable', {data: data}, {
|
|
126
124
|
warnMsg: null,
|
|
@@ -129,23 +127,22 @@ export default {
|
|
|
129
127
|
|
|
130
128
|
for (var i = 0; i < getFile.data.length; i++) {
|
|
131
129
|
// 如果使用类型包含导入字样,则是execl文件导入的,不做显示
|
|
132
|
-
if(getFile.data[i].fusetype&&(getFile.data[i].fusetype.includes('execl导入'))){
|
|
133
|
-
getFile.data.splice(i,1)
|
|
130
|
+
if (getFile.data[i].fusetype && (getFile.data[i].fusetype.includes('execl导入'))) {
|
|
131
|
+
getFile.data.splice(i, 1)
|
|
134
132
|
i--
|
|
135
133
|
continue
|
|
136
134
|
}
|
|
137
135
|
let temp = getFile.data[i].f_downloadpath
|
|
138
|
-
let URL = temp.substring(temp.lastIndexOf(
|
|
139
|
-
getFile.data[i].f_downloadURL = location.protocol +
|
|
136
|
+
let URL = temp.substring(temp.lastIndexOf(':\\') + 2)
|
|
137
|
+
getFile.data[i].f_downloadURL = location.protocol + '//' + location.host + '/' + URL
|
|
140
138
|
}
|
|
141
139
|
self.fileInfoData = []
|
|
142
140
|
self.fileInfoData = getFile.data
|
|
143
141
|
},
|
|
144
142
|
// 数据库时间格式化
|
|
145
|
-
formatdate(val) {
|
|
146
|
-
//20180914151603 : 2018-09-14 15:16:03
|
|
147
|
-
if (val.length != 14)
|
|
148
|
-
return
|
|
143
|
+
formatdate (val) {
|
|
144
|
+
// 20180914151603 : 2018-09-14 15:16:03
|
|
145
|
+
if (val.length != 14) { return }
|
|
149
146
|
let year = val.substr(0, 4)
|
|
150
147
|
let month = val.substr(4, 2)
|
|
151
148
|
let day = val.substr(6, 2)
|
|
@@ -155,60 +152,60 @@ export default {
|
|
|
155
152
|
return year + '-' + month + '-' + day + ' ' + hour + ':' + min + ':' + second
|
|
156
153
|
},
|
|
157
154
|
// 打开文件上传对话框
|
|
158
|
-
fileUpload() {
|
|
155
|
+
fileUpload () {
|
|
159
156
|
this.showUpload = true
|
|
160
157
|
},
|
|
161
158
|
// 关闭文件上传对话框
|
|
162
|
-
close() {
|
|
159
|
+
close () {
|
|
163
160
|
this.showUpload = false
|
|
164
161
|
// 将选的文件清空
|
|
165
162
|
this.$refs.file.$el.querySelector('input').value = ''
|
|
166
163
|
this.load(this)
|
|
167
164
|
},
|
|
168
|
-
convertBase64ToBlob(base64String) {
|
|
165
|
+
convertBase64ToBlob (base64String) {
|
|
169
166
|
// 将base64解码
|
|
170
|
-
var bytes = atob(base64String)
|
|
171
|
-
//var bytes = base64;
|
|
172
|
-
var bytesCode = new ArrayBuffer(bytes.length)
|
|
167
|
+
var bytes = atob(base64String)
|
|
168
|
+
// var bytes = base64;
|
|
169
|
+
var bytesCode = new ArrayBuffer(bytes.length)
|
|
173
170
|
// 转换为类型化数组
|
|
174
|
-
var byteArray = new Uint8Array(bytesCode)
|
|
171
|
+
var byteArray = new Uint8Array(bytesCode)
|
|
175
172
|
|
|
176
173
|
// 将base64转换为ascii码
|
|
177
174
|
for (var i = 0; i < bytes.length; i++) {
|
|
178
|
-
byteArray[i] = bytes.charCodeAt(i)
|
|
175
|
+
byteArray[i] = bytes.charCodeAt(i)
|
|
179
176
|
}
|
|
180
177
|
// 生成Blob对象(文件对象)
|
|
181
|
-
return new Blob([bytesCode], {type: 'image/jpeg'})
|
|
178
|
+
return new Blob([bytesCode], {type: 'image/jpeg'})
|
|
182
179
|
},
|
|
183
|
-
newPhoto(Imgbase64) {
|
|
180
|
+
newPhoto (Imgbase64) {
|
|
184
181
|
let form = new FormData()
|
|
185
182
|
let xhr = new XMLHttpRequest()
|
|
186
|
-
let formDataBoundary =
|
|
183
|
+
let formDataBoundary = '----WebkitFormBoundary' + 'GaoPaiYi'
|
|
187
184
|
form.append('Content-Type', 'multipart/form-data;boundary=' + formDataBoundary)
|
|
188
|
-
form.append('file', this.convertBase64ToBlob(Imgbase64),
|
|
189
|
-
xhr.open(
|
|
185
|
+
form.append('file', this.convertBase64ToBlob(Imgbase64), 'GaoPaiYi.jpg')
|
|
186
|
+
xhr.open('POST', 'api/af-revenue/file/uploadFile')
|
|
190
187
|
|
|
191
188
|
if (this.headers) {
|
|
192
189
|
for (var header in this.headers) {
|
|
193
190
|
xhr.setRequestHeader(header, encodeURIComponent(this.headers[header]))
|
|
194
191
|
}
|
|
195
192
|
}
|
|
196
|
-
xhr.send(form)
|
|
197
193
|
if (Vue.$login && Vue.$login.jwt) {
|
|
198
194
|
xhr.setRequestHeader('Authorization', 'Bearer ' + Vue.$login.jwtNew)
|
|
199
195
|
xhr.setRequestHeader('Token', Vue.$login.jwt)
|
|
200
196
|
}
|
|
197
|
+
xhr.send(form)
|
|
201
198
|
setTimeout(() => {
|
|
202
199
|
this.load(this)
|
|
203
200
|
}, 5000)
|
|
204
201
|
},
|
|
205
|
-
confirmIdCard (IdCardInfo){
|
|
206
|
-
let param=IdCardInfo
|
|
207
|
-
this.showhighmeter=false
|
|
208
|
-
this.$dispatch('getidinfo',param)
|
|
202
|
+
confirmIdCard (IdCardInfo) {
|
|
203
|
+
let param = IdCardInfo
|
|
204
|
+
this.showhighmeter = false
|
|
205
|
+
this.$dispatch('getidinfo', param)
|
|
209
206
|
}
|
|
210
207
|
},
|
|
211
|
-
ready() {
|
|
208
|
+
ready () {
|
|
212
209
|
this.headers.blodid = this.blodid
|
|
213
210
|
console.log('123222', this.blobid)
|
|
214
211
|
if (this.blodid) {
|
|
@@ -216,29 +213,29 @@ export default {
|
|
|
216
213
|
}
|
|
217
214
|
},
|
|
218
215
|
watch: {
|
|
219
|
-
'blodid'(val) {
|
|
216
|
+
'blodid' (val) {
|
|
220
217
|
if (val) {
|
|
221
218
|
console.log('观察blodid', val)
|
|
222
219
|
this.headers.blodid = this.blodid
|
|
223
220
|
this.load(this)
|
|
224
221
|
}
|
|
225
222
|
},
|
|
226
|
-
'useType'() {
|
|
223
|
+
'useType' () {
|
|
227
224
|
this.headers.fusetype = this.useType[0] ? this.useType[0] : ''
|
|
228
225
|
},
|
|
229
|
-
'defname'() {
|
|
230
|
-
this.headers.defname=this.defname
|
|
226
|
+
'defname' () {
|
|
227
|
+
this.headers.defname = this.defname
|
|
231
228
|
}
|
|
232
229
|
},
|
|
233
230
|
computed: {
|
|
234
|
-
foptions() {
|
|
231
|
+
foptions () {
|
|
235
232
|
return this.$appdata.getParam('使用类型')
|
|
236
|
-
}
|
|
233
|
+
}
|
|
237
234
|
},
|
|
238
235
|
events: {
|
|
239
236
|
onFileUpload: function (file, res) {
|
|
240
|
-
console.log(
|
|
241
|
-
this.headers.fremarks=''
|
|
237
|
+
console.log('上传完毕')
|
|
238
|
+
this.headers.fremarks = ''
|
|
242
239
|
this.close()
|
|
243
240
|
}
|
|
244
241
|
}
|
package/src/main.js
CHANGED
|
@@ -2,7 +2,7 @@ import Vue from 'vue'
|
|
|
2
2
|
import all from 'vue-client/src/all'
|
|
3
3
|
import App from './App'
|
|
4
4
|
import system from 'system-clients/src/system'
|
|
5
|
-
import FilialeSale from './filiale/
|
|
5
|
+
import FilialeSale from './filiale/yuncheng/sale'
|
|
6
6
|
import sale from './sale'
|
|
7
7
|
import address from 'address-client/src/address'
|
|
8
8
|
import ldap from 'ldap-clients/src/ldap'
|