sale-client 3.4.194 → 3.4.197
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 +2 -2
- package/build/webpack.base.conf.js +0 -1
- package/build/webpack.prod.conf.js +88 -40
- package/package.json +5 -3
- package/src/components/FilesManage/MeterinfoTest.vue +24 -1
- package/src/components/FilesManage/UserGeneralInfoTest.vue +2 -1
- package/src/components/FilesManageNew/FileUserFiles.vue +743 -743
- package/src/components/FilesManageNew/UserEssentialInfoTest.vue +5 -0
- package/src/components/charge/ChargeManage.vue +1 -4
- package/src/components/charge/business/OtherChargeNew.vue +1 -1
- package/src/components/charge/business/ShowCardSellGas.vue +8 -1
- package/src/components/charge/gasloss/gasLossOperate.vue +5 -1
- package/src/components/chargeNew/thirdSurplus.vue +309 -309
- package/src/components/common/userinfo_detail/UserBaseInfo.vue +1 -1
- package/src/components/common/userinfo_detail/UserBaseInfoNew.vue +2 -2
- package/src/components/revenue/Common/PaymentCode.vue +1 -1
- package/src/components/revenue/HandManager/HandManagerCard.vue +1163 -1163
- package/src/components/revenue/base/leftview/MixPriceInfo.vue +60 -60
- package/src/components/revenue/base/leftview/meterinfodetail.vue +1 -1
- package/src/components/revenue/comprehen/ComprehenOperation/BankPayment/BankPayment.vue +38 -16
- package/src/components/revenue/comprehen/ComprehenOperation/ChangeAccount/TransferManage.vue +2 -2
- package/src/components/revenue/comprehen/ComprehenOperation/ChangeAccount/TransferRecords.vue +26 -26
- package/src/components/revenue/comprehen/Maintenance/otherRecords/OtherMaintenanceLists.vue +28 -1
- package/src/components/revenue/comprehen/Maintenance/otherRecords/Otherrecordmaintenance.vue +0 -1
- package/src/components/revenue/comprehen/Maintenance/otherRecords/specificInformation.vue +38 -11
- package/src/components/revenue/comprehen/Message/AllUserNew.vue +17 -1
- package/src/components/revenue/comprehen/Message/MessageManage.vue +136 -136
- package/src/components/revenue/comprehen/common/ImportExcel.vue +20 -22
- package/src/components/revenue/concentrator/archivesuserfilesmanage.vue +113 -116
- package/src/components/revenue/concentrator/ncArchivesList.vue +33 -33
- package/src/components/revenue/concentrator/ncUserfilesList.vue +218 -188
- package/src/components/revenue/concentrator/ncUserfilesList2.vue +240 -196
- package/src/components/revenue/concentrator/ncarchivesmanage.vue +48 -49
- package/src/components/revenue/machineHandManage/machineDown.vue +1112 -1112
- package/src/components/revenue/machineHandManage/machineHand.vue +12 -0
- package/src/components/webMeter/MeterManage/WebMeterBatchOperate.vue +1 -1
- package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +6 -6
- package/src/components/webMeter/WebBalanceQuery.vue +6 -6
- package/src/components/webMeter/approvalHandleList.vue +6 -6
- package/src/components/webMeter/common/MeterMsg.vue +2 -2
- package/src/components/webMeter/common/NewWatchMsg.vue +3 -3
- package/src/components/webMeter/common/SignParameter.vue +1 -1
- package/src/components/webMeter/webInfo/WebMeterList.vue +1 -1
- package/src/components/webMeter/webInfo/qinhua/WebMeterList.vue +1 -1
- package/src/filiale/WEINAN/UserBaseInfoNew.vue +1 -1
- package/src/filiale/gongyi/common/userinfo_detail/UserBaseInfo.vue +1 -1
- package/src/filiale/gongyi/common/userinfo_detail/UserBaseInfoNew.vue +1 -1
- package/src/filiale/macheng/MessageList.vue +420 -420
- package/src/filiale/macheng/UserBaseInfoNew.vue +1 -1
- package/src/filiale/meihekou/HandManager.vue +25 -5
- package/src/filiale/meihekou/MessageList.vue +631 -0
- package/src/filiale/meihekou/sale.js +2 -0
- package/src/filiale/qianneng/ChangeMeter.vue +13 -7
- package/src/filiale/qianneng/FilesManage/FileUserFiles.vue +15 -13
- package/src/filiale/qianneng/HandManager.vue +1838 -1838
- package/src/filiale/qianneng/OtherChargeNew.vue +13 -62
- package/src/filiale/qianneng/eticket/EticketModal.vue +90 -0
- package/src/filiale/qianneng/eticket/EticketPrint.vue +367 -0
- package/src/filiale/qianneng/machine/MachineMeterCenter.vue +4 -58
- package/src/filiale/qianneng/revenue/ChargeManage.vue +3 -6
- package/src/filiale/qianneng/sale.js +6 -1
- package/src/filiale/rizhao/ChargeList.vue +2 -2
- package/src/filiale/shanggao/HighMeterIdCard.vue +1061 -0
- package/src/filiale/shanggao/sale.js +1 -0
- package/src/filiale/tongchuan/UserBaseInfoNew.vue +1 -1
- package/src/filiale/tongchuan/feeDeduction.vue +168 -168
- package/src/filiale/zhongsheng/wechatpay/WeChatPayDetail.vue +469 -469
- package/src/main.js +2 -7
- package/src/sale.js +1062 -1058
package/build/dev-server.js
CHANGED
|
@@ -10,7 +10,7 @@ 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',bendi1 = 'http://121.36.106.17:8400/'
|
|
14
14
|
// 公司测试服务
|
|
15
15
|
var fuwu = 'http://192.168.50.4:8400'
|
|
16
16
|
// var fuwu = 'http://121.36.106.17:8400/'
|
|
@@ -100,7 +100,7 @@ var proxyTable = {
|
|
|
100
100
|
'/rs': {
|
|
101
101
|
// target: 'http://192.168.30.63:8081/'
|
|
102
102
|
// target: 'http://121.36.106.17:8400/'
|
|
103
|
-
target:
|
|
103
|
+
target: fuwu
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
@@ -1,42 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const webpack = require('webpack')
|
|
2
|
+
const merge = require('webpack-merge')
|
|
3
|
+
const baseConfig = require('./webpack.base.conf')
|
|
4
|
+
const cssLoaders = require('./css-loaders')
|
|
5
|
+
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
6
|
+
// const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
7
|
+
const FileManagerPlugin = require('filemanager-webpack-plugin')
|
|
8
|
+
const ParallelUglifyPlugin = require('webpack-parallel-uglify-plugin')
|
|
9
|
+
const path = require('path')
|
|
10
|
+
|
|
11
|
+
// 将日期时间进行格式化
|
|
12
|
+
function formatDate (date, format) {
|
|
13
|
+
// name="date" type="Date" 要格式化的日期时间
|
|
14
|
+
// name="format" type="String" 格式类型,形如 yyyy-MM-dd hh:mm:ss
|
|
15
|
+
var o = {
|
|
16
|
+
'M+': date.getMonth() + 1,
|
|
17
|
+
// 月份
|
|
18
|
+
'd+': date.getDate(),
|
|
19
|
+
// 日
|
|
20
|
+
'h+': date.getHours(),
|
|
21
|
+
// 小时
|
|
22
|
+
'm+': date.getMinutes(),
|
|
23
|
+
// 分
|
|
24
|
+
's+': date.getSeconds() // 秒
|
|
25
|
+
}
|
|
26
|
+
if (/(y+)/.test(format)) format = format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
|
|
27
|
+
for (var k in o) if (new RegExp('(' + k + ')').test(format)) format = format.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)))
|
|
28
|
+
return format
|
|
29
|
+
}
|
|
30
|
+
const timeStamp = formatDate(new Date(), 'yyyy-MM-dd-hh-mm-ss')
|
|
31
|
+
console.log('开始打包:', timeStamp)
|
|
8
32
|
|
|
9
33
|
// whether to generate source map for production files.
|
|
10
34
|
// disabling this can speed up the build.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// 把examples下所有的index.html转换成测试例子.html
|
|
14
|
-
fs.readdirSync('./examples').forEach((file) => {
|
|
15
|
-
baseConfig.plugins.push(
|
|
16
|
-
new HtmlWebpackPlugin({
|
|
17
|
-
filename: file + '.html',
|
|
18
|
-
template: `examples/${file}/index.html`,
|
|
19
|
-
inject: false
|
|
20
|
-
})
|
|
21
|
-
)
|
|
22
|
-
})
|
|
23
|
-
// 把examples下子目录的main.js打包成对应组件名的App.js
|
|
24
|
-
baseConfig.entry = {}
|
|
25
|
-
fs.readdirSync('./examples').forEach((file) => {
|
|
26
|
-
baseConfig.entry[file + 'App'] = `./examples/${file}/main.js`
|
|
27
|
-
})
|
|
35
|
+
const SOURCE_MAP = false
|
|
28
36
|
|
|
29
37
|
module.exports = merge(baseConfig, {
|
|
38
|
+
externals: {
|
|
39
|
+
'vue-client': 'vue-client',
|
|
40
|
+
'system-clients': 'system-clients',
|
|
41
|
+
'vue': 'vue'
|
|
42
|
+
},
|
|
30
43
|
stats: {
|
|
31
44
|
children: false
|
|
32
45
|
},
|
|
33
46
|
devtool: SOURCE_MAP ? '#source-map' : false,
|
|
47
|
+
entry: {
|
|
48
|
+
app: './src/sale.js'
|
|
49
|
+
},
|
|
34
50
|
output: {
|
|
35
51
|
// naming output files with hashes for better caching.
|
|
36
52
|
// dist/index.html will be auto-generated with correct URLs.
|
|
37
|
-
publicPath: '
|
|
38
|
-
|
|
39
|
-
|
|
53
|
+
publicPath: 'library/sale/lib/',
|
|
54
|
+
path: path.resolve(__dirname, '../lib/lib'),
|
|
55
|
+
filename: 'lib.js',
|
|
56
|
+
libraryTarget: 'umd' // 不管在commonJS环境还是在AMD环境,能让任何形式引入都可以引入
|
|
40
57
|
},
|
|
41
58
|
vue: {
|
|
42
59
|
loaders: cssLoaders({
|
|
@@ -51,27 +68,58 @@ module.exports = merge(baseConfig, {
|
|
|
51
68
|
NODE_ENV: '"production"'
|
|
52
69
|
}
|
|
53
70
|
}),
|
|
54
|
-
new
|
|
55
|
-
|
|
56
|
-
|
|
71
|
+
new ParallelUglifyPlugin({
|
|
72
|
+
// 用作缓存的可选绝对路径。如果未提供,则不使用缓存。
|
|
73
|
+
cacheDir: '.cache/',
|
|
74
|
+
uglifyJS: {
|
|
75
|
+
output: {
|
|
76
|
+
// 是否保留代码中的注释,默认为保留
|
|
77
|
+
comments: false
|
|
78
|
+
},
|
|
79
|
+
// 是否在UglifyJS删除没有用到的代码时输出警告信息,默认为false
|
|
80
|
+
warnings: false,
|
|
81
|
+
compress: {
|
|
82
|
+
// 是否删除代码中所有的console语句,默认为false
|
|
83
|
+
drop_console: true,
|
|
84
|
+
// 是否内嵌虽然已经定义了,但是只用到一次的变量, 默认值false
|
|
85
|
+
collapse_vars: true,
|
|
86
|
+
// 是否提取出现了多次但是没有定义成变量去引用的静态值,默认为false
|
|
87
|
+
reduce_vars: true
|
|
88
|
+
}
|
|
57
89
|
}
|
|
58
90
|
}),
|
|
91
|
+
// new webpack.optimize.UglifyJsPlugin({
|
|
92
|
+
// compress: {
|
|
93
|
+
// warnings: false
|
|
94
|
+
// }
|
|
95
|
+
// }),
|
|
59
96
|
new webpack.optimize.OccurenceOrderPlugin(),
|
|
60
97
|
// extract css into its own file
|
|
61
98
|
new ExtractTextPlugin('[name].css'),
|
|
62
99
|
// generate dist index.html with correct asset hash for caching.
|
|
63
100
|
// you can customize output by editing /index.html
|
|
64
101
|
// see https://github.com/ampedandwired/html-webpack-plugin
|
|
65
|
-
new HtmlWebpackPlugin({
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
102
|
+
// new HtmlWebpackPlugin({
|
|
103
|
+
// filename: '../index.html',
|
|
104
|
+
// template: 'index.html',
|
|
105
|
+
// inject: true,
|
|
106
|
+
// minify: {
|
|
107
|
+
// removeComments: true,
|
|
108
|
+
// collapseWhitespace: true,
|
|
109
|
+
// removeAttributeQuotes: true
|
|
110
|
+
// // more options:
|
|
111
|
+
// // https://github.com/kangax/html-minifier#options-quick-reference
|
|
112
|
+
// }
|
|
113
|
+
// }),
|
|
114
|
+
// 打包文件压缩
|
|
115
|
+
new FileManagerPlugin({
|
|
116
|
+
onEnd: {
|
|
117
|
+
copy: [
|
|
118
|
+
{source: './package.json', destination: './lib/package_' + timeStamp + '.json'}
|
|
119
|
+
],
|
|
120
|
+
archive: [
|
|
121
|
+
{ source: './lib', destination: './sale_lib' + timeStamp + '.zip' }
|
|
122
|
+
]
|
|
75
123
|
}
|
|
76
124
|
})
|
|
77
125
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sale-client",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.197",
|
|
4
4
|
"description": "收费模块前台组件",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dev": "node build/dev-server.js",
|
|
9
9
|
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
|
10
10
|
"unit": "karma start test/unit/karma.conf.js",
|
|
11
|
-
"build": "rimraf
|
|
11
|
+
"build": "rimraf lib && mkdirp lib && cross-env webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
12
12
|
"e2e": "node test/e2e/runner.js",
|
|
13
13
|
"release": "bash build/release.sh"
|
|
14
14
|
},
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"babel-preset-stage-2": "^6.0.0",
|
|
35
35
|
"chai": "^3.5.0",
|
|
36
36
|
"co": "^4.6.0",
|
|
37
|
-
"connect-history-api-fallback": "^1.1.0",
|
|
38
37
|
"compression-webpack-plugin": "1.1.2",
|
|
38
|
+
"connect-history-api-fallback": "^1.1.0",
|
|
39
39
|
"cross-env": "^1.0.7",
|
|
40
40
|
"cross-spawn": "^2.1.5",
|
|
41
41
|
"css-loader": "^0.23.0",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"express": "^4.13.3",
|
|
54
54
|
"extract-text-webpack-plugin": "^1.0.1",
|
|
55
55
|
"file-loader": "^0.8.4",
|
|
56
|
+
"filemanager-webpack-plugin": "^2.0.5",
|
|
56
57
|
"function-bind": "^1.0.2",
|
|
57
58
|
"html-webpack-plugin": "^2.8.1",
|
|
58
59
|
"http-proxy-middleware": "^0.11.0",
|
|
@@ -101,6 +102,7 @@
|
|
|
101
102
|
"webpack-dev-middleware": "^1.4.0",
|
|
102
103
|
"webpack-hot-middleware": "^2.6.0",
|
|
103
104
|
"webpack-merge": "^0.8.3",
|
|
105
|
+
"webpack-parallel-uglify-plugin": "^1.0.0",
|
|
104
106
|
"weixin-js-sdk": "^1.2.0"
|
|
105
107
|
},
|
|
106
108
|
"keywords": [
|
|
@@ -106,6 +106,13 @@
|
|
|
106
106
|
<v-select :value.sync="row.f_open_way" :options='openWay' value-single placeholder='开户方式' close-on-select v-else
|
|
107
107
|
search v-model='row.f_open_way' :disabled="false"></v-select>
|
|
108
108
|
</div>
|
|
109
|
+
<div class="col-sm-4 form-group" v-show="row.gasbrand.length > 0 && row.gasbrand[0].f_meter_brand.indexOf('集中器') !== -1">
|
|
110
|
+
<label class="font_normal_body" title="集中器">集 中 器</label>
|
|
111
|
+
<v-select :value.sync="row.f_concentrator_id" :options='concentrators' value-single placeholder='集中器' close-on-select v-if="row.f_userfiles_id"
|
|
112
|
+
search v-model='row.f_concentrator_id' :disabled="true"></v-select>
|
|
113
|
+
<v-select :value.sync="row.f_concentrator_id" :options='concentrators' value-single placeholder='集中器' close-on-select v-else
|
|
114
|
+
search v-model='row.f_concentrator_id' :disabled="false"></v-select>
|
|
115
|
+
</div>
|
|
109
116
|
</div>
|
|
110
117
|
<div>
|
|
111
118
|
<a style="font-size: 16px;font-weight: 500;">气价信息</a> <a style="color: #999999;text-decoration: none"></a>
|
|
@@ -548,6 +555,7 @@
|
|
|
548
555
|
pricetypes: this.$appdata.getParam('气价类型'),
|
|
549
556
|
industrycomments: this.$appdata.getParam('工业备注'),
|
|
550
557
|
openWay: [{label: '指令开户', value: '指令开户'}, {label: '发卡开户', value: '发卡开户'}],
|
|
558
|
+
concentrators: [],
|
|
551
559
|
meterbookoptions: [], // 抄表册选项
|
|
552
560
|
opteratormetrbook: false, // 抄表册操作
|
|
553
561
|
oldrow: [],
|
|
@@ -558,7 +566,7 @@
|
|
|
558
566
|
}
|
|
559
567
|
},
|
|
560
568
|
props: ['f_filialeid', 'meter', 'isdecimal', 'valid', 'f_userinfo_id','overdueset'],
|
|
561
|
-
ready () {
|
|
569
|
+
async ready () {
|
|
562
570
|
console.log('看看meter里面的数据', this.meter, this.row)
|
|
563
571
|
this.row = Object.assign(this.row, this.meter, {})
|
|
564
572
|
if(this.row.f_meter_classify){
|
|
@@ -574,9 +582,24 @@
|
|
|
574
582
|
if (this.row.pricetype === '混合气价') {
|
|
575
583
|
this.ratioshow = true
|
|
576
584
|
}
|
|
585
|
+
await this.getConcentrators()
|
|
577
586
|
co(meterBookGen(this))
|
|
578
587
|
},
|
|
579
588
|
methods: {
|
|
589
|
+
// 获取集中器下拉框
|
|
590
|
+
async getConcentrators () {
|
|
591
|
+
let condition = {
|
|
592
|
+
items: 'id,f_mpc_alias',
|
|
593
|
+
tablename: 't_concentrator',
|
|
594
|
+
condition: `f_mpc_state !='删除'`,
|
|
595
|
+
orderitem: 'id'
|
|
596
|
+
}
|
|
597
|
+
let data = await this.$resetpost('rs/sql/saleSingleTable', {data: condition}, {resolveMsg: null, rejectMsg: '获取集中器失败!'})
|
|
598
|
+
this.concentrators = []
|
|
599
|
+
for (let row of data.data) {
|
|
600
|
+
this.concentrators.push({label: row.f_mpc_alias, value: row.id})
|
|
601
|
+
}
|
|
602
|
+
},
|
|
580
603
|
async confirmUserfiles () {
|
|
581
604
|
if (this.$refs.addparamlist.confirm()) {
|
|
582
605
|
var paramlist = this.$refs.addparamlist.addGasParameter
|
|
@@ -639,7 +639,8 @@ export default {
|
|
|
639
639
|
f_position: row.f_position,
|
|
640
640
|
f_install_date: row.f_install_date,
|
|
641
641
|
f_inputtor: row.f_inputtor,
|
|
642
|
-
f_hand_month: row.f_hand_month
|
|
642
|
+
f_hand_month: row.f_hand_month,
|
|
643
|
+
f_usetype: ''
|
|
643
644
|
}
|
|
644
645
|
Object.assign(this.data.meterinfo[0], this.data.meterinfo[0], temp)
|
|
645
646
|
console.log('====1.=====', temp, row)
|