sale-client 3.4.125 → 3.4.126
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 +157 -157
- package/package.json +1 -1
- package/src/components/FilesManage/TemplateManage.vue +167 -167
- package/src/components/charge/business/FilesComplete.vue +253 -253
- package/src/components/charge/business/PriceChangeCompensation/JbCompensation.vue +342 -342
- package/src/components/charge/business/ShowCardSellGas.vue +878 -878
- package/src/components/charge/business/refund/RefundManage.vue +28 -28
- package/src/components/charge/bzjcancel.vue +7 -9
- package/src/components/chargeNew/thirdSurplus.vue +309 -309
- package/src/components/meterBook/MeterManger.vue +61 -61
- package/src/components/revenue/Common/MeterMessage.vue +184 -184
- package/src/components/revenue/HandManager/HandManagerCard.vue +1163 -1163
- package/src/components/revenue/HandManager/MeterBookList.vue +488 -488
- package/src/components/revenue/HandManager/MeterBookUser.vue +702 -702
- package/src/components/revenue/HandManager/OverdueSet.vue +45 -45
- package/src/components/revenue/base/leftview/MixPriceInfo.vue +60 -60
- package/src/components/revenue/base/leftview/Stairinfo.vue +156 -156
- package/src/components/revenue/base/leftview/meterinfodetail.vue +216 -216
- package/src/components/revenue/base/rightview/CardList.vue +477 -477
- package/src/components/revenue/comprehen/ComprehenOperation/FeeDeduction/feeDeduction.vue +161 -161
- package/src/components/revenue/comprehen/ComprehenOperation/OtherGas/OtherGas.vue +348 -348
- package/src/components/revenue/comprehen/ComprehenOperation/OverCharge/OverUseCharge.vue +407 -407
- package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +638 -638
- package/src/components/revenue/comprehen/handAudit/MeterReadAudit.vue +342 -342
- package/src/components/revenue/comprehen/replacement/replacementHandInfoRecord.vue +155 -155
- package/src/components/revenue/comprehen/wechatpay/WeChat.vue +62 -62
- package/src/components/revenue/machineHandManage/ArrearsQuery.vue +895 -895
- package/src/components/revenue/machineHandManage/machineDown.vue +1112 -1112
- package/src/components/revenue/machineHandManage/machineHandManager.vue +78 -78
- package/src/filiale/alashan/PrintBill.vue +116 -116
- package/src/filiale/jingwei/CardHand.vue +742 -742
- package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +373 -373
- package/src/filiale/macheng/MessageList.vue +420 -420
- package/src/filiale/macheng/UserDeviceInfoTest.vue +412 -412
- package/src/filiale/meihekou/PrintBill.vue +140 -140
- package/src/filiale/meihekou/ReissueBill.vue +322 -322
- package/src/filiale/qianneng/HandManager.vue +1838 -1838
- package/src/filiale/qianneng/filemanagenew/FileUserFiles.vue +743 -0
- package/src/filiale/qianneng/filemanagenew/UserEssentialInfoTest.vue +318 -0
- package/src/filiale/qianneng/filemanagenew/UserMeterInfoTest.vue +133 -0
- package/src/filiale/qianneng/revenue/comprehen/closeaccount/Batchmanage.vue +58 -58
- package/src/filiale/qingtongxia/CardMeterCenter.vue +743 -743
- package/src/filiale/qingtongxia/UserGeneralInfoTest.vue +538 -538
- package/src/filiale/rongcheng/FilesManageNew/UserGeneralInfoTest.vue +608 -608
- package/src/filiale/rongchuang/OtherGas.vue +329 -329
- package/src/filiale/tongchuan/CardList.vue +482 -482
- package/src/filiale/tongchuan/feeDeduction.vue +168 -168
- package/src/filiale/{WEINAN → weinan}/AutomaticPurse.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/CardList.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/CardMeterCenter.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/CardMeterChargeCancel.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/ChangeMeter.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/ChargeList.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/ChargeManageNew.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/ChargeQueryUser.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/ChargeRecordQuery.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/DisableManage.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/EnableManage.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/FileAddressManage.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/FileUserAddress.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/HighMeter.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/IOTMeterCenter.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/MachineMeterCenter.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/MeterMessage.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/MeterinfoTest.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/OffGasAddGas.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/OtherGas.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/OverUseCharge.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/RecordCancel.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/RecordQueryUser.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/ReplaceCardManage.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/ShowCardSellGas.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/Stairinfo.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/TransferManage.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/UserBaseInfoNew.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/UserEssentialInfoTest.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/UserGeneralInfoTest.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/UserInfoDetailManageNew.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/Userinfo.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/gasmove.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/meterinfodetail.vue +0 -0
- package/src/filiale/{WEINAN → weinan}/plugins/FileManageService.js +0 -0
- package/src/filiale/{WEINAN → weinan}/plugins/getTimeService.js +0 -0
- package/src/filiale/{WEINAN → weinan}/sale.js +0 -0
- package/src/filiale/{WEINAN → weinan}/sale.js~Stashed changes +0 -0
- package/src/filiale/{WEINAN → weinan}/static/mainicon//347/237/251/345/275/2421828.png +0 -0
- package/src/filiale/xinkang/base/leftview/Userinfo.vue +176 -176
- package/src/filiale/xinkang/sale.js +8 -8
- package/src/filiale/zhongsheng/rightview/CardList.vue +492 -492
- package/src/filiale/zhongsheng/wechatpay/WeChatPayDetail.vue +469 -469
- package/src/main.js +1 -1
- package/src/plugins/CardService.js +1799 -1799
- package/src/plugins/ChangeMeterService.js +756 -756
- package/.gradle/4.4/fileChanges/last-build.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
- package/npm +0 -0
package/build/dev-server.js
CHANGED
|
@@ -1,157 +1,157 @@
|
|
|
1
|
-
var express = require('express')
|
|
2
|
-
var webpack = require('webpack')
|
|
3
|
-
var config = require('./webpack.dev.conf')
|
|
4
|
-
var proxyMiddleware = require('http-proxy-middleware')
|
|
5
|
-
// var httpProxy = require('http-proxy')
|
|
6
|
-
|
|
7
|
-
var app = express()
|
|
8
|
-
var compiler = webpack(config)
|
|
9
|
-
// var proxy = httpProxy.createProxyServer()
|
|
10
|
-
|
|
11
|
-
// Define HTTP proxies to your custom API backend
|
|
12
|
-
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
-
var bendi = 'http://
|
|
14
|
-
// 公司测试服务
|
|
15
|
-
var fuwu = 'http://
|
|
16
|
-
//铜川正式
|
|
17
|
-
// var fuwu = 'http://61.134.55.234:9999/'
|
|
18
|
-
//铜川测试
|
|
19
|
-
// var fuwu = 'http://61.134.55.234:9999/'
|
|
20
|
-
// var fuwu = 'http://60.222.250.39:8300/'
|
|
21
|
-
//韶关
|
|
22
|
-
// var fuwu = 'http://119.146.1.106:8300/'
|
|
23
|
-
// 巩义测试服务
|
|
24
|
-
// var fuwu = 'http://192.168.0.227:8400'
|
|
25
|
-
// 燎原测试服务
|
|
26
|
-
// var fuwu = 'http://121.41.19.238:8400 '
|
|
27
|
-
// var fuwu = 'http://121.41.19.238:9001/'
|
|
28
|
-
|
|
29
|
-
// var fuwu = 'http://139.214.92.34:8301/'
|
|
30
|
-
|
|
31
|
-
var proxyTable = {
|
|
32
|
-
'/rs/logic/saleExport': {
|
|
33
|
-
target: fuwu
|
|
34
|
-
},
|
|
35
|
-
'/rs/logic/saleGetExportProgress': {
|
|
36
|
-
target: fuwu
|
|
37
|
-
},
|
|
38
|
-
'/files': {
|
|
39
|
-
target: fuwu
|
|
40
|
-
},
|
|
41
|
-
// 查找资源服务数据
|
|
42
|
-
'/rs/search': {
|
|
43
|
-
target: fuwu
|
|
44
|
-
},
|
|
45
|
-
// 查找资源服务数据
|
|
46
|
-
'/rs/logic/getLogin': {
|
|
47
|
-
target: fuwu
|
|
48
|
-
},
|
|
49
|
-
// 查找资源服务数据
|
|
50
|
-
'/rs/logic/getInitData': {
|
|
51
|
-
target: fuwu
|
|
52
|
-
},
|
|
53
|
-
'/rs/logic/getSaleInitData': {
|
|
54
|
-
target: fuwu
|
|
55
|
-
},
|
|
56
|
-
'/invoice':{
|
|
57
|
-
target: fuwu
|
|
58
|
-
},
|
|
59
|
-
// 用户登录服务地址
|
|
60
|
-
'/rs/user': {
|
|
61
|
-
target: fuwu
|
|
62
|
-
},
|
|
63
|
-
'/rs/path/getParams': {
|
|
64
|
-
target: fuwu
|
|
65
|
-
},
|
|
66
|
-
'/rs/data': {
|
|
67
|
-
target: fuwu
|
|
68
|
-
},
|
|
69
|
-
'/rs/license': {
|
|
70
|
-
target: fuwu
|
|
71
|
-
},
|
|
72
|
-
'/rs/db': {
|
|
73
|
-
target: fuwu
|
|
74
|
-
},
|
|
75
|
-
'/excel': {
|
|
76
|
-
target: fuwu
|
|
77
|
-
},
|
|
78
|
-
'/rs/config': {
|
|
79
|
-
target: fuwu
|
|
80
|
-
},
|
|
81
|
-
'/rs/sql/getLicenseById': {
|
|
82
|
-
target: fuwu
|
|
83
|
-
},
|
|
84
|
-
'/rs/sql/manage_getarealist': {
|
|
85
|
-
target: fuwu
|
|
86
|
-
},
|
|
87
|
-
'/rs/sql/manage_getstreetlist': {
|
|
88
|
-
target: fuwu
|
|
89
|
-
},
|
|
90
|
-
'/rs/report': {
|
|
91
|
-
|
|
92
|
-
},
|
|
93
|
-
'/rs/vue': {
|
|
94
|
-
target: fuwu
|
|
95
|
-
},
|
|
96
|
-
'/rs': {
|
|
97
|
-
// target: 'http://192.168.30.63:8081/'
|
|
98
|
-
target: 'http://127.0.0.1:
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
104
|
-
publicPath: config.output.publicPath,
|
|
105
|
-
stats: {
|
|
106
|
-
colors: true,
|
|
107
|
-
chunks: false
|
|
108
|
-
}
|
|
109
|
-
})
|
|
110
|
-
|
|
111
|
-
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
112
|
-
// force page reload when html-webpack-plugin template changes
|
|
113
|
-
compiler.plugin('compilation', function (compilation) {
|
|
114
|
-
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
115
|
-
hotMiddleware.publish({action: 'reload'})
|
|
116
|
-
cb()
|
|
117
|
-
})
|
|
118
|
-
})
|
|
119
|
-
|
|
120
|
-
// proxy api requests
|
|
121
|
-
Object.keys(proxyTable).forEach(function (context) {
|
|
122
|
-
var options = proxyTable[context]
|
|
123
|
-
if (typeof options === 'string') {
|
|
124
|
-
options = {target: options}
|
|
125
|
-
}
|
|
126
|
-
app.use(proxyMiddleware(context, options))
|
|
127
|
-
})
|
|
128
|
-
|
|
129
|
-
// handle fallback for HTML5 history API
|
|
130
|
-
app.use(require('connect-history-api-fallback')())
|
|
131
|
-
// app.use(function (req, res, next) {
|
|
132
|
-
// res.header('Access-Control-Allow-Origin', '*')
|
|
133
|
-
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
134
|
-
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
135
|
-
// res.header('X-Powered-By', '3,2,1')
|
|
136
|
-
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
137
|
-
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
138
|
-
// next()
|
|
139
|
-
// })
|
|
140
|
-
|
|
141
|
-
// serve webpack bundle output
|
|
142
|
-
app.use(devMiddleware)
|
|
143
|
-
|
|
144
|
-
// enable hot-reload and state-preserving
|
|
145
|
-
// compilation error display
|
|
146
|
-
app.use(hotMiddleware)
|
|
147
|
-
|
|
148
|
-
// serve pure static assets
|
|
149
|
-
app.use('/static', express.static('./static'))
|
|
150
|
-
|
|
151
|
-
module.exports = app.listen(8089, function (err) {
|
|
152
|
-
if (err) {
|
|
153
|
-
console.log(err)
|
|
154
|
-
return
|
|
155
|
-
}
|
|
156
|
-
console.log('Listening at http://localhost:8089')
|
|
157
|
-
})
|
|
1
|
+
var express = require('express')
|
|
2
|
+
var webpack = require('webpack')
|
|
3
|
+
var config = require('./webpack.dev.conf')
|
|
4
|
+
var proxyMiddleware = require('http-proxy-middleware')
|
|
5
|
+
// var httpProxy = require('http-proxy')
|
|
6
|
+
|
|
7
|
+
var app = express()
|
|
8
|
+
var compiler = webpack(config)
|
|
9
|
+
// var proxy = httpProxy.createProxyServer()
|
|
10
|
+
|
|
11
|
+
// Define HTTP proxies to your custom API backend
|
|
12
|
+
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
+
var bendi = 'http://183.67.41.139:8400/',bendi1 = 'http://183.67.41.139:8400/'
|
|
14
|
+
// 公司测试服务
|
|
15
|
+
var fuwu = 'http://183.67.41.139:8400/'
|
|
16
|
+
//铜川正式
|
|
17
|
+
// var fuwu = 'http://61.134.55.234:9999/'
|
|
18
|
+
//铜川测试
|
|
19
|
+
// var fuwu = 'http://61.134.55.234:9999/'
|
|
20
|
+
// var fuwu = 'http://60.222.250.39:8300/'
|
|
21
|
+
//韶关
|
|
22
|
+
// var fuwu = 'http://119.146.1.106:8300/'
|
|
23
|
+
// 巩义测试服务
|
|
24
|
+
// var fuwu = 'http://192.168.0.227:8400'
|
|
25
|
+
// 燎原测试服务
|
|
26
|
+
// var fuwu = 'http://121.41.19.238:8400 '
|
|
27
|
+
// var fuwu = 'http://121.41.19.238:9001/'
|
|
28
|
+
|
|
29
|
+
// var fuwu = 'http://139.214.92.34:8301/'
|
|
30
|
+
|
|
31
|
+
var proxyTable = {
|
|
32
|
+
'/rs/logic/saleExport': {
|
|
33
|
+
target: fuwu
|
|
34
|
+
},
|
|
35
|
+
'/rs/logic/saleGetExportProgress': {
|
|
36
|
+
target: fuwu
|
|
37
|
+
},
|
|
38
|
+
'/files': {
|
|
39
|
+
target: fuwu
|
|
40
|
+
},
|
|
41
|
+
// 查找资源服务数据
|
|
42
|
+
'/rs/search': {
|
|
43
|
+
target: fuwu
|
|
44
|
+
},
|
|
45
|
+
// 查找资源服务数据
|
|
46
|
+
'/rs/logic/getLogin': {
|
|
47
|
+
target: fuwu
|
|
48
|
+
},
|
|
49
|
+
// 查找资源服务数据
|
|
50
|
+
'/rs/logic/getInitData': {
|
|
51
|
+
target: fuwu
|
|
52
|
+
},
|
|
53
|
+
'/rs/logic/getSaleInitData': {
|
|
54
|
+
target: fuwu
|
|
55
|
+
},
|
|
56
|
+
'/invoice':{
|
|
57
|
+
target: fuwu
|
|
58
|
+
},
|
|
59
|
+
// 用户登录服务地址
|
|
60
|
+
'/rs/user': {
|
|
61
|
+
target: fuwu
|
|
62
|
+
},
|
|
63
|
+
'/rs/path/getParams': {
|
|
64
|
+
target: fuwu
|
|
65
|
+
},
|
|
66
|
+
'/rs/data': {
|
|
67
|
+
target: fuwu
|
|
68
|
+
},
|
|
69
|
+
'/rs/license': {
|
|
70
|
+
target: fuwu
|
|
71
|
+
},
|
|
72
|
+
'/rs/db': {
|
|
73
|
+
target: fuwu
|
|
74
|
+
},
|
|
75
|
+
'/excel': {
|
|
76
|
+
target: fuwu
|
|
77
|
+
},
|
|
78
|
+
'/rs/config': {
|
|
79
|
+
target: fuwu
|
|
80
|
+
},
|
|
81
|
+
'/rs/sql/getLicenseById': {
|
|
82
|
+
target: fuwu
|
|
83
|
+
},
|
|
84
|
+
'/rs/sql/manage_getarealist': {
|
|
85
|
+
target: fuwu
|
|
86
|
+
},
|
|
87
|
+
'/rs/sql/manage_getstreetlist': {
|
|
88
|
+
target: fuwu
|
|
89
|
+
},
|
|
90
|
+
// '/rs/report': {
|
|
91
|
+
// target: 'http://127.0.0.1:8079'
|
|
92
|
+
// },
|
|
93
|
+
'/rs/vue': {
|
|
94
|
+
target: fuwu
|
|
95
|
+
},
|
|
96
|
+
'/rs': {
|
|
97
|
+
// target: 'http://192.168.30.63:8081/'
|
|
98
|
+
// target: 'http://127.0.0.1:8078'
|
|
99
|
+
target:fuwu
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
var devMiddleware = require('webpack-dev-middleware')(compiler, {
|
|
104
|
+
publicPath: config.output.publicPath,
|
|
105
|
+
stats: {
|
|
106
|
+
colors: true,
|
|
107
|
+
chunks: false
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
var hotMiddleware = require('webpack-hot-middleware')(compiler)
|
|
112
|
+
// force page reload when html-webpack-plugin template changes
|
|
113
|
+
compiler.plugin('compilation', function (compilation) {
|
|
114
|
+
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
|
|
115
|
+
hotMiddleware.publish({action: 'reload'})
|
|
116
|
+
cb()
|
|
117
|
+
})
|
|
118
|
+
})
|
|
119
|
+
|
|
120
|
+
// proxy api requests
|
|
121
|
+
Object.keys(proxyTable).forEach(function (context) {
|
|
122
|
+
var options = proxyTable[context]
|
|
123
|
+
if (typeof options === 'string') {
|
|
124
|
+
options = {target: options}
|
|
125
|
+
}
|
|
126
|
+
app.use(proxyMiddleware(context, options))
|
|
127
|
+
})
|
|
128
|
+
|
|
129
|
+
// handle fallback for HTML5 history API
|
|
130
|
+
app.use(require('connect-history-api-fallback')())
|
|
131
|
+
// app.use(function (req, res, next) {
|
|
132
|
+
// res.header('Access-Control-Allow-Origin', '*')
|
|
133
|
+
// res.header('Access-Control-Allow-Headers', 'X-Requested-With')
|
|
134
|
+
// res.header('Access-Control-Allow-Methods', 'PUT, POST, GET,DELETE, OPTIONS')
|
|
135
|
+
// res.header('X-Powered-By', '3,2,1')
|
|
136
|
+
// res.header('Access-Control-Allow-Credentials', 'true')
|
|
137
|
+
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
138
|
+
// next()
|
|
139
|
+
// })
|
|
140
|
+
|
|
141
|
+
// serve webpack bundle output
|
|
142
|
+
app.use(devMiddleware)
|
|
143
|
+
|
|
144
|
+
// enable hot-reload and state-preserving
|
|
145
|
+
// compilation error display
|
|
146
|
+
app.use(hotMiddleware)
|
|
147
|
+
|
|
148
|
+
// serve pure static assets
|
|
149
|
+
app.use('/static', express.static('./static'))
|
|
150
|
+
|
|
151
|
+
module.exports = app.listen(8089, function (err) {
|
|
152
|
+
if (err) {
|
|
153
|
+
console.log(err)
|
|
154
|
+
return
|
|
155
|
+
}
|
|
156
|
+
console.log('Listening at http://localhost:8089')
|
|
157
|
+
})
|
package/package.json
CHANGED
|
@@ -1,167 +1,167 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="flex: 1.5" class="datapanel">
|
|
3
|
-
<div class="flex" >
|
|
4
|
-
<criteria-paged :model="model" v-ref:paged>
|
|
5
|
-
<criteria partial='criteria' @condition-changed='search' v-ref:cri>
|
|
6
|
-
<div novalidate class="form-inline auto" partial>
|
|
7
|
-
<div class="row">
|
|
8
|
-
<div class="form-group">
|
|
9
|
-
<div class="col-sm-2 form-group">
|
|
10
|
-
<label for="startDate">开始日期:</label>
|
|
11
|
-
<datepicker id="startDate" placeholder="开始日期"
|
|
12
|
-
v-model="model.startDate"
|
|
13
|
-
:value.sync="model.startDate"
|
|
14
|
-
:disabled-days-of-Week="[]"
|
|
15
|
-
:format="'yyyy-MM-dd'"
|
|
16
|
-
condition=""
|
|
17
|
-
:show-reset-button="reset">
|
|
18
|
-
</datepicker>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="col-sm-2 form-group">
|
|
21
|
-
<label for="endDate">结束日期:</label>
|
|
22
|
-
<datepicker id="endDate" placeholder="结束日期"
|
|
23
|
-
v-model="model.endDate"
|
|
24
|
-
:value.sync="model.endDate"
|
|
25
|
-
:disabled-days-of-Week="[]"
|
|
26
|
-
:format="'yyyy-MM-dd'"
|
|
27
|
-
:show-reset-button="reset">
|
|
28
|
-
</datepicker>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="span" style="float:right;">
|
|
31
|
-
<button class="button_search" @click="$parent.$parent.selfSearch()">查询</button>
|
|
32
|
-
<button class="button_search" style="transform: translate(0px, 2px);" @click=" $parent.$parent.splitInfo= true">模板上传</button>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
</criteria>
|
|
38
|
-
<accordion :one-at-atime="true" type="info" partial="list">
|
|
39
|
-
<div class="col-sm-12">
|
|
40
|
-
<div class="col-sm-2" v-for="row in model.rows">
|
|
41
|
-
<div class="row" style="padding-bottom: 8px">
|
|
42
|
-
<img src="../../assets/template.png" style="height: 200px;width: 150px">
|
|
43
|
-
<div class="title">
|
|
44
|
-
<label>模板名称:{{row.f_filename.split("_")[0]}}</label>
|
|
45
|
-
</div>
|
|
46
|
-
<div class="buttion" style="display: flex-row">
|
|
47
|
-
<button class=" button_search" style="transform: translate(0px, 2px);" @click=" $parent.$parent.getFiles(row)">下载模板</button>
|
|
48
|
-
<button class="button_delete" title="权限名称:删除模板" style="transform: translate(0px, 2px);" @click=" $parent.$parent.deleteFiles(row)">删除模板</button>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
</div>
|
|
54
|
-
</accordion>
|
|
55
|
-
</criteria-paged>
|
|
56
|
-
<modal :show.sync="splitInfo" width="480px"
|
|
57
|
-
title="请输入模板类型并选择上传的文件" v-ref:modal large backdrop="false">
|
|
58
|
-
<article slot="modal-body" class="modal-body">
|
|
59
|
-
<div class="col-sm-12" style="display: flex;margin-bottom: 1em">
|
|
60
|
-
<label style="width: 20%">模板名称</label>
|
|
61
|
-
<input type="text" class="form-control _zoom6" v-model="headers.fusetype"
|
|
62
|
-
placeholder='模板名称'>
|
|
63
|
-
</div>
|
|
64
|
-
<file-upload class="my-file-uploader" name="my-file"
|
|
65
|
-
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
|
|
66
|
-
action="rs/file/uploadFile" :headers="headers" tagname="确定" v-ref:file>
|
|
67
|
-
</file-upload>
|
|
68
|
-
</article>
|
|
69
|
-
<footer slot="modal-footer" style="display: none">
|
|
70
|
-
</footer>
|
|
71
|
-
</modal>
|
|
72
|
-
<work-busy :is-busy="iswork"></work-busy>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
</template>
|
|
76
|
-
|
|
77
|
-
<script>
|
|
78
|
-
import {PagedList} from 'vue-client'
|
|
79
|
-
import axios from 'axios'
|
|
80
|
-
import fileDownload from 'js-file-download'
|
|
81
|
-
export default {
|
|
82
|
-
title: '模板管理',
|
|
83
|
-
data () {
|
|
84
|
-
return {
|
|
85
|
-
model: new PagedList('rs/sql/singleTable_OrderBy', 8, {
|
|
86
|
-
items: '"*"',
|
|
87
|
-
tablename: '"t_files"',
|
|
88
|
-
orderitem: '"id"'
|
|
89
|
-
}),
|
|
90
|
-
iswork: false,
|
|
91
|
-
headers: {'username': this.$login.f.name, 'blodid': '模板管理', 'fusetype': ''},
|
|
92
|
-
splitInfo: false
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
ready () {
|
|
96
|
-
},
|
|
97
|
-
events: {
|
|
98
|
-
'onFileError' (file, error) {
|
|
99
|
-
this.iswork = false
|
|
100
|
-
this.$showAlert('文件上传失败请检查格式' + JSON.stringify(error), 'warning', 3000)
|
|
101
|
-
},
|
|
102
|
-
'beforeFileUpload' () {
|
|
103
|
-
this.iswork = true
|
|
104
|
-
},
|
|
105
|
-
'closeFileUpload' () {
|
|
106
|
-
this.iswork = false
|
|
107
|
-
},
|
|
108
|
-
onFileChange: function (file) {
|
|
109
|
-
console.log('onFileChange', file)
|
|
110
|
-
},
|
|
111
|
-
onFileUpload: function (file, res) {
|
|
112
|
-
console.log('上传完毕' + JSON.stringify(res))
|
|
113
|
-
this.headers.f_usetype = ''
|
|
114
|
-
this.iswork = false
|
|
115
|
-
this.splitInfo = false
|
|
116
|
-
console.log(res)
|
|
117
|
-
this.$showMessage('成功上传')
|
|
118
|
-
setTimeout(() => {
|
|
119
|
-
this.selfSearch()
|
|
120
|
-
}, 1000)
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
methods: {
|
|
124
|
-
// 下载文件
|
|
125
|
-
getFiles (row) {
|
|
126
|
-
let data = {filepath: row.f_downloadpath}
|
|
127
|
-
let name = `${row.f_filename.split('_')[0]}.xlsx`
|
|
128
|
-
axios.post('rs/file/getUploadFile', data, {responseType: 'arraybuffer'}).then(res => {
|
|
129
|
-
fileDownload(res.data, name)
|
|
130
|
-
this.iswork = false
|
|
131
|
-
})
|
|
132
|
-
},
|
|
133
|
-
// 删除部分需要调整,这块是删除文件,还需要在t_files中删除记录。目前未完成
|
|
134
|
-
deleteFiles (row) {
|
|
135
|
-
if(this.$login.r.includes('删除模板')){
|
|
136
|
-
row.path = row.f_downloadpath
|
|
137
|
-
row.blobid = row.f_blobid
|
|
138
|
-
this.$resetpost('rs/logic/deletefiles', row).then((res) => {
|
|
139
|
-
setTimeout(() => {
|
|
140
|
-
this.selfSearch()
|
|
141
|
-
}, 1000)
|
|
142
|
-
})
|
|
143
|
-
}else{
|
|
144
|
-
this.$showMessage('当前登录用户没有删除模板权限, 请联系管理员!')
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
// 查询条件这块后面根据需求调整
|
|
148
|
-
selfSearch () {
|
|
149
|
-
this.model.search("f_blobid= '模板管理'")
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
</script>
|
|
154
|
-
<style scoped>
|
|
155
|
-
.title-td{
|
|
156
|
-
font-weight: bold;
|
|
157
|
-
}
|
|
158
|
-
.content-td{
|
|
159
|
-
padding-left: 2em;
|
|
160
|
-
}
|
|
161
|
-
.datapanel {
|
|
162
|
-
color: #333;
|
|
163
|
-
background-color: white;
|
|
164
|
-
padding: 10px 20px;
|
|
165
|
-
border-radius: 15px;
|
|
166
|
-
}
|
|
167
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<div style="flex: 1.5" class="datapanel">
|
|
3
|
+
<div class="flex" >
|
|
4
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
5
|
+
<criteria partial='criteria' @condition-changed='search' v-ref:cri>
|
|
6
|
+
<div novalidate class="form-inline auto" partial>
|
|
7
|
+
<div class="row">
|
|
8
|
+
<div class="form-group">
|
|
9
|
+
<div class="col-sm-2 form-group">
|
|
10
|
+
<label for="startDate">开始日期:</label>
|
|
11
|
+
<datepicker id="startDate" placeholder="开始日期"
|
|
12
|
+
v-model="model.startDate"
|
|
13
|
+
:value.sync="model.startDate"
|
|
14
|
+
:disabled-days-of-Week="[]"
|
|
15
|
+
:format="'yyyy-MM-dd'"
|
|
16
|
+
condition=""
|
|
17
|
+
:show-reset-button="reset">
|
|
18
|
+
</datepicker>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="col-sm-2 form-group">
|
|
21
|
+
<label for="endDate">结束日期:</label>
|
|
22
|
+
<datepicker id="endDate" placeholder="结束日期"
|
|
23
|
+
v-model="model.endDate"
|
|
24
|
+
:value.sync="model.endDate"
|
|
25
|
+
:disabled-days-of-Week="[]"
|
|
26
|
+
:format="'yyyy-MM-dd'"
|
|
27
|
+
:show-reset-button="reset">
|
|
28
|
+
</datepicker>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="span" style="float:right;">
|
|
31
|
+
<button class="button_search" @click="$parent.$parent.selfSearch()">查询</button>
|
|
32
|
+
<button class="button_search" style="transform: translate(0px, 2px);" @click=" $parent.$parent.splitInfo= true">模板上传</button>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</criteria>
|
|
38
|
+
<accordion :one-at-atime="true" type="info" partial="list">
|
|
39
|
+
<div class="col-sm-12">
|
|
40
|
+
<div class="col-sm-2" v-for="row in model.rows">
|
|
41
|
+
<div class="row" style="padding-bottom: 8px">
|
|
42
|
+
<img src="../../assets/template.png" style="height: 200px;width: 150px">
|
|
43
|
+
<div class="title">
|
|
44
|
+
<label>模板名称:{{row.f_filename.split("_")[0]}}</label>
|
|
45
|
+
</div>
|
|
46
|
+
<div class="buttion" style="display: flex-row">
|
|
47
|
+
<button class=" button_search" style="transform: translate(0px, 2px);" @click=" $parent.$parent.getFiles(row)">下载模板</button>
|
|
48
|
+
<button class="button_delete" title="权限名称:删除模板" style="transform: translate(0px, 2px);" @click=" $parent.$parent.deleteFiles(row)">删除模板</button>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
</accordion>
|
|
55
|
+
</criteria-paged>
|
|
56
|
+
<modal :show.sync="splitInfo" width="480px"
|
|
57
|
+
title="请输入模板类型并选择上传的文件" v-ref:modal large backdrop="false">
|
|
58
|
+
<article slot="modal-body" class="modal-body">
|
|
59
|
+
<div class="col-sm-12" style="display: flex;margin-bottom: 1em">
|
|
60
|
+
<label style="width: 20%">模板名称</label>
|
|
61
|
+
<input type="text" class="form-control _zoom6" v-model="headers.fusetype"
|
|
62
|
+
placeholder='模板名称'>
|
|
63
|
+
</div>
|
|
64
|
+
<file-upload class="my-file-uploader" name="my-file"
|
|
65
|
+
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
|
|
66
|
+
action="rs/file/uploadFile" :headers="headers" tagname="确定" v-ref:file>
|
|
67
|
+
</file-upload>
|
|
68
|
+
</article>
|
|
69
|
+
<footer slot="modal-footer" style="display: none">
|
|
70
|
+
</footer>
|
|
71
|
+
</modal>
|
|
72
|
+
<work-busy :is-busy="iswork"></work-busy>
|
|
73
|
+
</div>
|
|
74
|
+
</div>
|
|
75
|
+
</template>
|
|
76
|
+
|
|
77
|
+
<script>
|
|
78
|
+
import {PagedList} from 'vue-client'
|
|
79
|
+
import axios from 'axios'
|
|
80
|
+
import fileDownload from 'js-file-download'
|
|
81
|
+
export default {
|
|
82
|
+
title: '模板管理',
|
|
83
|
+
data () {
|
|
84
|
+
return {
|
|
85
|
+
model: new PagedList('rs/sql/singleTable_OrderBy', 8, {
|
|
86
|
+
items: '"*"',
|
|
87
|
+
tablename: '"t_files"',
|
|
88
|
+
orderitem: '"id"'
|
|
89
|
+
}),
|
|
90
|
+
iswork: false,
|
|
91
|
+
headers: {'username': this.$login.f.name, 'blodid': '模板管理', 'fusetype': ''},
|
|
92
|
+
splitInfo: false
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
ready () {
|
|
96
|
+
},
|
|
97
|
+
events: {
|
|
98
|
+
'onFileError' (file, error) {
|
|
99
|
+
this.iswork = false
|
|
100
|
+
this.$showAlert('文件上传失败请检查格式' + JSON.stringify(error), 'warning', 3000)
|
|
101
|
+
},
|
|
102
|
+
'beforeFileUpload' () {
|
|
103
|
+
this.iswork = true
|
|
104
|
+
},
|
|
105
|
+
'closeFileUpload' () {
|
|
106
|
+
this.iswork = false
|
|
107
|
+
},
|
|
108
|
+
onFileChange: function (file) {
|
|
109
|
+
console.log('onFileChange', file)
|
|
110
|
+
},
|
|
111
|
+
onFileUpload: function (file, res) {
|
|
112
|
+
console.log('上传完毕' + JSON.stringify(res))
|
|
113
|
+
this.headers.f_usetype = ''
|
|
114
|
+
this.iswork = false
|
|
115
|
+
this.splitInfo = false
|
|
116
|
+
console.log(res)
|
|
117
|
+
this.$showMessage('成功上传')
|
|
118
|
+
setTimeout(() => {
|
|
119
|
+
this.selfSearch()
|
|
120
|
+
}, 1000)
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
methods: {
|
|
124
|
+
// 下载文件
|
|
125
|
+
getFiles (row) {
|
|
126
|
+
let data = {filepath: row.f_downloadpath}
|
|
127
|
+
let name = `${row.f_filename.split('_')[0]}.xlsx`
|
|
128
|
+
axios.post('rs/file/getUploadFile', data, {responseType: 'arraybuffer'}).then(res => {
|
|
129
|
+
fileDownload(res.data, name)
|
|
130
|
+
this.iswork = false
|
|
131
|
+
})
|
|
132
|
+
},
|
|
133
|
+
// 删除部分需要调整,这块是删除文件,还需要在t_files中删除记录。目前未完成
|
|
134
|
+
deleteFiles (row) {
|
|
135
|
+
if(this.$login.r.includes('删除模板')){
|
|
136
|
+
row.path = row.f_downloadpath
|
|
137
|
+
row.blobid = row.f_blobid
|
|
138
|
+
this.$resetpost('rs/logic/deletefiles', row).then((res) => {
|
|
139
|
+
setTimeout(() => {
|
|
140
|
+
this.selfSearch()
|
|
141
|
+
}, 1000)
|
|
142
|
+
})
|
|
143
|
+
}else{
|
|
144
|
+
this.$showMessage('当前登录用户没有删除模板权限, 请联系管理员!')
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
// 查询条件这块后面根据需求调整
|
|
148
|
+
selfSearch () {
|
|
149
|
+
this.model.search("f_blobid= '模板管理'")
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
</script>
|
|
154
|
+
<style scoped>
|
|
155
|
+
.title-td{
|
|
156
|
+
font-weight: bold;
|
|
157
|
+
}
|
|
158
|
+
.content-td{
|
|
159
|
+
padding-left: 2em;
|
|
160
|
+
}
|
|
161
|
+
.datapanel {
|
|
162
|
+
color: #333;
|
|
163
|
+
background-color: white;
|
|
164
|
+
padding: 10px 20px;
|
|
165
|
+
border-radius: 15px;
|
|
166
|
+
}
|
|
167
|
+
</style>
|