sale-client 3.4.73 → 3.4.74
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 → 5.4.1}/fileChanges/last-build.bin +0 -0
- package/.gradle/5.4.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/{5.2.1 → 5.4.1}/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/build/dev-server.js +10 -22
- package/package.json +1 -1
- package/src/components/FilesManage/TemplateManage.vue +167 -167
- package/src/components/FilesManage/UserFireInfo.vue +429 -429
- package/src/components/FilesManage/UserGeneralInfoTest.vue +628 -628
- package/src/components/FilesManage/UserMeterInfoTest.vue +151 -151
- package/src/components/charge/business/IOTMeterCenter.vue +800 -800
- package/src/components/charge/business/OtherChargeNew.vue +589 -589
- package/src/components/charge/business/ShowCardSellGas.vue +867 -867
- package/src/components/charge/business/depositCharge/DepositCharge.vue +452 -452
- package/src/components/charge/business/machine/MachineMeterCenter.vue +721 -721
- package/src/components/charge/gasloss/gasLossOperate.vue +354 -354
- package/src/components/chargeBatch/ChargeGroupList.vue +267 -0
- package/src/components/chargeBatch/ChargeManageGroup.vue +2 -2
- package/src/components/revenue/Common/EticketModal.vue +90 -90
- package/src/components/revenue/Common/EticketPrint.vue +367 -367
- package/src/components/revenue/Common/EticketPrintAsync.vue +184 -184
- package/src/components/revenue/Common/PaymentCode.vue +149 -149
- package/src/components/revenue/HandManager/MbpeopleList.vue +490 -490
- package/src/components/revenue/HandManager/MeterBookUser.vue +609 -609
- package/src/components/revenue/comprehen/Bill/Eticket/EticketOpenCard.vue +305 -305
- package/src/components/revenue/comprehen/Bill/Eticket/EticketOpenJBPage.vue +307 -307
- package/src/components/revenue/comprehen/Bill/Eticket/EticketOpenPage.vue +305 -305
- package/src/components/revenue/comprehen/ComprehenOperation/ReplaceCard/ReplaceCardManage.vue +413 -413
- package/src/components/revenue/comprehen/Maintenance/bill/billOperate.vue +266 -266
- package/src/components/revenue/comprehen/Maintenance/changeMeter/changemeterOperate.vue +296 -296
- package/src/components/revenue/comprehen/Maintenance/fillgas/fillgasSpecific.vue +293 -293
- package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +407 -407
- package/src/components/revenue/comprehen/Maintenance/otherRecords/specificInformation.vue +388 -388
- package/src/components/revenue/comprehen/Maintenance/revenue/MeterOperatemain.vue +382 -382
- package/src/components/revenue/comprehen/replacement/replacementSingleInfoOperation.vue +293 -293
- package/src/filiale/gaomi/components/IOTMeterCenter.vue +723 -723
- package/src/filiale/qianneng/GasPrice.vue +526 -526
- package/src/filiale/qianneng/GasPriceList.vue +18 -7
- package/src/filiale/qianneng/MbpeopleList.vue +475 -475
- package/src/filiale/rongchuang/CardMeterCenter.vue +831 -831
- package/src/filiale/rongchuang/DepositCharge.vue +373 -373
- package/src/filiale/rongchuang/EticketRecordList.vue +265 -265
- package/src/filiale/rongchuang/IOTMeterCenter.vue +773 -773
- package/src/filiale/rongchuang/NoCardMeterCenter.vue +467 -467
- package/src/filiale/rongchuang/OtherChargeNew.vue +443 -443
- package/src/filiale/rongchuang/OverUseCharge.vue +435 -435
- package/src/filiale/rongchuang/ReplaceCardManage.vue +412 -412
- package/src/filiale/rongchuang/ShowCardSellGas.vue +805 -805
- package/src/filiale/rongchuang/bill/CustQueryEticket.vue +243 -243
- package/src/filiale/rongchuang/bill/EticketOpenCard.vue +260 -260
- package/src/filiale/rongchuang/bill/EticketOpenJBPage.vue +257 -257
- package/src/filiale/rongchuang/bill/EticketOpenPage.vue +245 -245
- package/src/filiale/rongchuang/bill/EticketRecordList.vue +278 -278
- package/src/filiale/rongchuang/sale.js +41 -41
- package/src/filiale/tongchuan/IOTMeterCenter.vue +800 -800
- package/src/filiale/tongchuan/bill/CustQueryEticket.vue +304 -304
- package/src/main.js +1 -1
- package/src/plugins/LogicService.js +474 -474
- package/src/sale.js +2 -0
- package/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/6.1.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/6.1.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/6.1.1/fileChanges/last-build.bin +0 -0
- package/.gradle/6.1.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/6.1.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/6.1.1/gc.properties +0 -0
- package/.gradle/7.1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.1/dependencies-accessors/gc.properties +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.1/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.1/fileChanges/last-build.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/7.1/gc.properties +0 -0
- package/.gradle/checksums/checksums.lock +0 -0
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#
|
|
2
|
-
gradle.version=5.
|
|
1
|
+
#Thu Jul 01 23:29:31 CST 2021
|
|
2
|
+
gradle.version=5.4.1
|
package/build/dev-server.js
CHANGED
|
@@ -10,12 +10,12 @@ var compiler = webpack(config)
|
|
|
10
10
|
|
|
11
11
|
// Define HTTP proxies to your custom API backend
|
|
12
12
|
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
-
var bendi = 'http://
|
|
13
|
+
var bendi = 'http://127.0.0.1:8080'
|
|
14
14
|
// 公司测试服务
|
|
15
|
-
var fuwu = 'http://
|
|
16
|
-
|
|
17
|
-
//
|
|
18
|
-
|
|
15
|
+
var fuwu = 'http://192.168.50.4:8402'
|
|
16
|
+
//融创
|
|
17
|
+
// var fuwu = 'http://219.153.176.6:8400'
|
|
18
|
+
// var fuwu = 'http://203.57.101.233:8400'
|
|
19
19
|
// var fuwu = 'http://61.134.55.234:9999/'
|
|
20
20
|
// var fuwu = 'http://60.222.250.39:8300/'
|
|
21
21
|
//韶关
|
|
@@ -35,6 +35,9 @@ var proxyTable = {
|
|
|
35
35
|
'/rs/logic/saleGetExportProgress': {
|
|
36
36
|
target: fuwu
|
|
37
37
|
},
|
|
38
|
+
'/invoice': {
|
|
39
|
+
target: fuwu
|
|
40
|
+
},
|
|
38
41
|
'/files': {
|
|
39
42
|
target: fuwu
|
|
40
43
|
},
|
|
@@ -53,9 +56,6 @@ var proxyTable = {
|
|
|
53
56
|
'/rs/logic/getSaleInitData': {
|
|
54
57
|
target: fuwu
|
|
55
58
|
},
|
|
56
|
-
'/invoice':{
|
|
57
|
-
target: fuwu
|
|
58
|
-
},
|
|
59
59
|
// 用户登录服务地址
|
|
60
60
|
'/rs/user': {
|
|
61
61
|
target: fuwu
|
|
@@ -88,22 +88,15 @@ var proxyTable = {
|
|
|
88
88
|
target: fuwu
|
|
89
89
|
},
|
|
90
90
|
'/rs/report': {
|
|
91
|
-
target: 'http://127.0.0.1:8079'
|
|
92
|
-
},
|
|
93
|
-
'/rs/sal/saleGetMeterBookUser': {
|
|
94
|
-
target: fuwu
|
|
95
|
-
},
|
|
96
|
-
'/rs/logic/exportfile': {
|
|
97
91
|
target: fuwu
|
|
98
92
|
},
|
|
99
|
-
|
|
100
93
|
'/rs/vue': {
|
|
101
94
|
target: fuwu
|
|
102
95
|
},
|
|
103
96
|
'/rs': {
|
|
104
97
|
// target: 'http://192.168.30.63:8081/'
|
|
105
|
-
target:
|
|
106
|
-
// target:fuwu
|
|
98
|
+
target: bendi
|
|
99
|
+
// target: fuwu
|
|
107
100
|
}
|
|
108
101
|
}
|
|
109
102
|
|
|
@@ -132,7 +125,6 @@ Object.keys(proxyTable).forEach(function (context) {
|
|
|
132
125
|
}
|
|
133
126
|
app.use(proxyMiddleware(context, options))
|
|
134
127
|
})
|
|
135
|
-
|
|
136
128
|
// handle fallback for HTML5 history API
|
|
137
129
|
app.use(require('connect-history-api-fallback')())
|
|
138
130
|
// app.use(function (req, res, next) {
|
|
@@ -144,17 +136,13 @@ app.use(require('connect-history-api-fallback')())
|
|
|
144
136
|
// res.header('Content-Type', 'application/json;charset=utf-8')
|
|
145
137
|
// next()
|
|
146
138
|
// })
|
|
147
|
-
|
|
148
139
|
// serve webpack bundle output
|
|
149
140
|
app.use(devMiddleware)
|
|
150
|
-
|
|
151
141
|
// enable hot-reload and state-preserving
|
|
152
142
|
// compilation error display
|
|
153
143
|
app.use(hotMiddleware)
|
|
154
|
-
|
|
155
144
|
// serve pure static assets
|
|
156
145
|
app.use('/static', express.static('./static'))
|
|
157
|
-
|
|
158
146
|
module.exports = app.listen(8089, function (err) {
|
|
159
147
|
if (err) {
|
|
160
148
|
console.log(err)
|
package/package.json
CHANGED
|
@@ -1,167 +1,167 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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
|
-
|
|
154
|
-
|
|
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
|
-
|
|
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>-->
|