sale-client 3.4.95 → 3.4.99
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/.babelrc +5 -5
- package/.editorconfig +9 -9
- package/.project +11 -11
- package/README.md +38 -38
- package/build/css-loaders.js +34 -34
- package/build/dev-client.js +8 -8
- package/build/dev-server.js +157 -157
- package/build/release.sh +28 -28
- package/build/utils.js +71 -71
- package/build/webpack.dev.conf.js +31 -31
- package/build/webpack.example.conf.js +49 -49
- package/build/webpack.test.conf.js +31 -31
- package/config/dev.env.js +6 -6
- package/config/index.js +38 -38
- package/config/prod.env.js +3 -3
- package/config/test.env.js +6 -6
- package/examples/ReadCard/index.html +11 -11
- package/package.json +3 -3
- package/release.bat +5 -5
- package/sale-client.iml +8 -8
- package/singlepage/{FileUserFiles → page}/App.vue +1 -1
- package/singlepage/{FileUserFiles → page}/index.html +3 -3
- package/singlepage/{FileUserFiles → page}/main.js +3 -0
- package/src/assets/binding.svg +1 -1
- package/src/assets/unbind.svg +1 -1
- package/src/assets//345/205/254/345/221/212.svg +1 -1
- package/src/assets//347/207/203/346/260/224/347/274/264/350/264/271.eps +116 -116
- package/src/assets//350/201/224/347/263/273/346/210/221/344/273/254.svg +1 -1
- package/src/components/FilesManage/UserDeviceInfoTest.vue +51 -5
- package/src/components/Hello.vue +39 -39
- package/src/components/List.vue +51 -51
- package/src/components/SellGasCharge/FakaList.vue +23 -23
- package/src/components/UserFiles/admissibility.vue +46 -46
- package/src/components/charge/ChargeOper.vue +230 -230
- package/src/components/charge/business/IOTMeterCenter.vue +801 -801
- package/src/components/charge/business/NoCardMeterCenter.vue +2 -2
- package/src/components/charge/business/OtherChargeByPay.vue +471 -471
- package/src/components/common/userinfo_detail/UserBaseInfoNew.vue +8 -7
- package/src/components/getNowDate.js +25 -25
- package/src/components/meterBook/MeterManger.vue +61 -61
- package/src/components/revenue/HandManager/MbpeopleList.vue +2 -0
- package/src/components/revenue/HandManager/MeterBookList.vue +12 -1
- package/src/components/revenue/HandManager/MeterBookManage.vue +152 -152
- package/src/components/revenue/HandManager/OverdueSet.vue +45 -45
- package/src/components/revenue/bank/BankDocking.vue +62 -62
- package/src/components/revenue/base/CardServer/CardInfoModal.vue +52 -52
- package/src/components/revenue/base/leftview/Userinfo.vue +1 -0
- package/src/components/revenue/base/rightview/CardList.vue +10 -3
- package/src/components/revenue/base/rightview/RecordCancel.vue +2 -0
- package/src/components/revenue/base/rightview/carddetail/StopApplyDetail.vue +70 -70
- package/src/components/revenue/changeInsurance/InsuranceAdd.vue +48 -12
- package/src/components/revenue/changeInsurance/InsuranceRecord.vue +6 -0
- package/src/components/revenue/comprehen/CardManage/CardManage.vue +83 -83
- package/src/components/revenue/comprehen/ComprehenOperation/ChangeMeter/NoMessage.vue +30 -30
- package/src/components/revenue/comprehen/ComprehenOperation/ComprehenSearch.vue +13 -13
- package/src/components/revenue/comprehen/ComprehenOperation/OtherGas/OtherGas.vue +1 -1
- package/src/components/revenue/comprehen/ComprehenOperation/wallheating/WallheatingInfoAdd.vue +174 -0
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackList.vue +10 -10
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackListList.vue +5 -5
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackModal.vue +211 -0
- package/src/components/revenue/comprehen/TotalSplit/TotalSplitManage.vue +45 -45
- package/src/components/revenue/comprehen/gasbrand/AddGasBrand.vue +0 -4
- package/src/components/revenue/comprehen/gasbrand/AddGasModelInfo.vue +4 -0
- package/src/components/revenue/comprehen/handAudit/MeterReadAudit.vue +342 -342
- package/src/components/revenue/comprehen/insurance/insuranceGuanL.vue +4 -0
- package/src/components/revenue/comprehen/wechatpay/wechatValidateManage.vue +295 -295
- package/src/components/revenue/invoiceuse/CompanyTitleInput.vue +52 -54
- package/src/components/revenue/invoiceuse/InvoiceGoodsInput.vue +1 -1
- package/src/components/revenue/machineHandManage/machineDown.vue +1105 -1105
- package/src/components/revenue/machineHandManage/machineHand.vue +22 -2
- package/src/components/revenue/machineHandManage/machineHandAudit.vue +7 -2
- package/src/filiale/jingwei/CardHand.vue +1 -1
- package/src/filiale/macheng/UserBaseInfoNew.vue +9 -6
- package/src/filiale/qianneng/FilesManage/FileUserFiles.vue +2 -2
- package/src/filiale/qianneng/HandManager.vue +19 -5
- package/src/filiale/qianneng/HighMeter.vue +28 -31
- package/src/filiale/qianneng/HighMeterIdCard.vue +1034 -0
- package/src/filiale/qianneng/MbpeopleList.vue +2 -0
- package/src/filiale/qianneng/js/OcxUtil.js +31 -27
- package/src/filiale/qianneng/js/WsUtil.js +42 -40
- package/src/filiale/qianneng/js/hignmeter.js +454 -0
- package/src/filiale/qianneng/sale.js +1 -0
- package/src/filiale/rongchuang/CardMeterCenter.vue +857 -857
- package/src/filiale/shanggao/FileUserFiles.vue +995 -0
- package/src/filiale/shanggao/MeterinfoTest.vue +902 -0
- package/src/filiale/shanggao/sale.js +3 -1
- 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 +12 -2
- 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/main.js +23 -23
- package/src/plugins/CardListen.js +29 -29
- package/src/plugins/CardManageService.js +21 -21
- package/src/plugins/CardService.js +1 -1
- package/src/plugins/FileManageService.js +2 -0
- package/src/plugins/SelectService.js +41 -41
- package/src/project/ProjectPage.vue +24 -24
- package/src/project/State.js +17 -17
- package/src/sale.js +3 -0
- package/test/e2e/custom-assertions/elementCount.js +26 -26
- package/test/e2e/nightwatch.conf.js +40 -40
- package/test/e2e/runner.js +30 -30
- package/test/e2e/specs/test.js +13 -13
- package/test/unit/.eslintrc +5 -5
- package/test/unit/context.html +20 -20
- package/test/unit/index.js +13 -13
- package/test/unit/init.js +13 -13
- package/test/unit/karma.conf.js +55 -55
- package/test/unit/specs/components/UserFiles/AreaList.spec.js +25 -25
- package/test/unit/specs/components/UserFiles/UserFiles.spec.js +22 -22
- package/test/unit/specs/components/UserFiles/UserGeneralInfo.spec.js +55 -55
- package/test/unit/specs/components/revenue/Common/ReissueBill.spec.js +29 -29
- package/test/unit/specs/components/revenue/base/CardServer/ReadCard.spec.js +23 -23
- package/test/unit/specs/components/revenue/base/UserList.spec.js +21 -21
- package/test/unit/specs/components/revenue/base/rightview/CardList.spec.js +29 -29
- package/test/unit/specs/components/revenue/todoList/ToDoListManage.spec.js +20 -20
- package/test/unit/specs/service/delete.spec.js +8 -8
- package/test/unit/specs/service/getSaleInitData.spec.js +16 -16
- package/test/unit/specs/service/uploadFile.spec.js +8 -8
- package/.gradle/3.5/file-changes/last-build.bin +0 -0
- package/.gradle/3.5/taskHistory/taskHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/built.bin +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
package/.babelrc
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"presets": ["es2015", "stage-2"],
|
|
3
|
-
"plugins": ["transform-runtime"],
|
|
4
|
-
"comments": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"presets": ["es2015", "stage-2"],
|
|
3
|
+
"plugins": ["transform-runtime"],
|
|
4
|
+
"comments": false
|
|
5
|
+
}
|
package/.editorconfig
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
root = true
|
|
2
|
-
|
|
3
|
-
[*]
|
|
4
|
-
charset = utf-8
|
|
5
|
-
indent_style = space
|
|
6
|
-
indent_size = 2
|
|
7
|
-
end_of_line = lf
|
|
8
|
-
insert_final_newline = true
|
|
9
|
-
trim_trailing_whitespace = true
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
charset = utf-8
|
|
5
|
+
indent_style = space
|
|
6
|
+
indent_size = 2
|
|
7
|
+
end_of_line = lf
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
package/.project
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<projectDescription>
|
|
3
|
-
<name>SaleClient</name>
|
|
4
|
-
<comment></comment>
|
|
5
|
-
<projects>
|
|
6
|
-
</projects>
|
|
7
|
-
<buildSpec>
|
|
8
|
-
</buildSpec>
|
|
9
|
-
<natures>
|
|
10
|
-
</natures>
|
|
11
|
-
</projectDescription>
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<projectDescription>
|
|
3
|
+
<name>SaleClient</name>
|
|
4
|
+
<comment></comment>
|
|
5
|
+
<projects>
|
|
6
|
+
</projects>
|
|
7
|
+
<buildSpec>
|
|
8
|
+
</buildSpec>
|
|
9
|
+
<natures>
|
|
10
|
+
</natures>
|
|
11
|
+
</projectDescription>
|
package/README.md
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
# sale-client
|
|
2
|
-
|
|
3
|
-
#### 项目介绍
|
|
4
|
-
{**以下是码云平台说明,您可以替换为您的项目简介**
|
|
5
|
-
码云是开源中国推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
|
6
|
-
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
|
7
|
-
|
|
8
|
-
#### 软件架构
|
|
9
|
-
软件架构说明
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
#### 安装教程
|
|
13
|
-
|
|
14
|
-
1. xxxx
|
|
15
|
-
2. xxxx
|
|
16
|
-
3. xxxx
|
|
17
|
-
|
|
18
|
-
#### 使用说明
|
|
19
|
-
|
|
20
|
-
1. xxxx
|
|
21
|
-
2. xxxx
|
|
22
|
-
3. xxxx
|
|
23
|
-
|
|
24
|
-
#### 参与贡献
|
|
25
|
-
|
|
26
|
-
1. Fork 本项目
|
|
27
|
-
2. 新建 Feat_xxx 分支
|
|
28
|
-
3. 提交代码
|
|
29
|
-
4. 新建 Pull Request
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
#### 码云特技
|
|
33
|
-
|
|
34
|
-
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
35
|
-
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
36
|
-
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
37
|
-
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
38
|
-
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
1
|
+
# sale-client
|
|
2
|
+
|
|
3
|
+
#### 项目介绍
|
|
4
|
+
{**以下是码云平台说明,您可以替换为您的项目简介**
|
|
5
|
+
码云是开源中国推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
|
6
|
+
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
|
7
|
+
|
|
8
|
+
#### 软件架构
|
|
9
|
+
软件架构说明
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
#### 安装教程
|
|
13
|
+
|
|
14
|
+
1. xxxx
|
|
15
|
+
2. xxxx
|
|
16
|
+
3. xxxx
|
|
17
|
+
|
|
18
|
+
#### 使用说明
|
|
19
|
+
|
|
20
|
+
1. xxxx
|
|
21
|
+
2. xxxx
|
|
22
|
+
3. xxxx
|
|
23
|
+
|
|
24
|
+
#### 参与贡献
|
|
25
|
+
|
|
26
|
+
1. Fork 本项目
|
|
27
|
+
2. 新建 Feat_xxx 分支
|
|
28
|
+
3. 提交代码
|
|
29
|
+
4. 新建 Pull Request
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
#### 码云特技
|
|
33
|
+
|
|
34
|
+
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
35
|
+
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
36
|
+
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
37
|
+
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
38
|
+
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
39
39
|
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
package/build/css-loaders.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
var ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
2
|
-
|
|
3
|
-
module.exports = function (options) {
|
|
4
|
-
// generate loader string to be used with extract text plugin
|
|
5
|
-
function generateLoaders (loaders) {
|
|
6
|
-
var sourceLoader = loaders.map(function (loader) {
|
|
7
|
-
var extraParamChar
|
|
8
|
-
if (/\?/.test(loader)) {
|
|
9
|
-
loader = loader.replace(/\?/, '-loader?')
|
|
10
|
-
extraParamChar = '&'
|
|
11
|
-
} else {
|
|
12
|
-
loader = loader + '-loader'
|
|
13
|
-
extraParamChar = '?'
|
|
14
|
-
}
|
|
15
|
-
return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '')
|
|
16
|
-
}).join('!')
|
|
17
|
-
|
|
18
|
-
if (options.extract) {
|
|
19
|
-
return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
|
|
20
|
-
} else {
|
|
21
|
-
return ['vue-style-loader', sourceLoader].join('!')
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// http://vuejs.github.io/vue-loader/configurations/extract-css.html
|
|
26
|
-
return {
|
|
27
|
-
css: generateLoaders(['css']),
|
|
28
|
-
less: generateLoaders(['css', 'less']),
|
|
29
|
-
sass: generateLoaders(['css', 'sass?indentedSyntax']),
|
|
30
|
-
scss: generateLoaders(['css', 'sass']),
|
|
31
|
-
stylus: generateLoaders(['css', 'stylus']),
|
|
32
|
-
styl: generateLoaders(['css', 'stylus'])
|
|
33
|
-
}
|
|
34
|
-
}
|
|
1
|
+
var ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
2
|
+
|
|
3
|
+
module.exports = function (options) {
|
|
4
|
+
// generate loader string to be used with extract text plugin
|
|
5
|
+
function generateLoaders (loaders) {
|
|
6
|
+
var sourceLoader = loaders.map(function (loader) {
|
|
7
|
+
var extraParamChar
|
|
8
|
+
if (/\?/.test(loader)) {
|
|
9
|
+
loader = loader.replace(/\?/, '-loader?')
|
|
10
|
+
extraParamChar = '&'
|
|
11
|
+
} else {
|
|
12
|
+
loader = loader + '-loader'
|
|
13
|
+
extraParamChar = '?'
|
|
14
|
+
}
|
|
15
|
+
return loader + (options.sourceMap ? extraParamChar + 'sourceMap' : '')
|
|
16
|
+
}).join('!')
|
|
17
|
+
|
|
18
|
+
if (options.extract) {
|
|
19
|
+
return ExtractTextPlugin.extract('vue-style-loader', sourceLoader)
|
|
20
|
+
} else {
|
|
21
|
+
return ['vue-style-loader', sourceLoader].join('!')
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// http://vuejs.github.io/vue-loader/configurations/extract-css.html
|
|
26
|
+
return {
|
|
27
|
+
css: generateLoaders(['css']),
|
|
28
|
+
less: generateLoaders(['css', 'less']),
|
|
29
|
+
sass: generateLoaders(['css', 'sass?indentedSyntax']),
|
|
30
|
+
scss: generateLoaders(['css', 'sass']),
|
|
31
|
+
stylus: generateLoaders(['css', 'stylus']),
|
|
32
|
+
styl: generateLoaders(['css', 'stylus'])
|
|
33
|
+
}
|
|
34
|
+
}
|
package/build/dev-client.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
require('eventsource-polyfill')
|
|
2
|
-
var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
|
|
3
|
-
|
|
4
|
-
hotClient.subscribe(function (event) {
|
|
5
|
-
if (event.action === 'reload') {
|
|
6
|
-
window.location.reload()
|
|
7
|
-
}
|
|
8
|
-
})
|
|
1
|
+
require('eventsource-polyfill')
|
|
2
|
+
var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true')
|
|
3
|
+
|
|
4
|
+
hotClient.subscribe(function (event) {
|
|
5
|
+
if (event.action === 'reload') {
|
|
6
|
+
window.location.reload()
|
|
7
|
+
}
|
|
8
|
+
})
|
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://127.0.0.1:8080/',bendi1 = 'http://119.146.1.106:8300/'
|
|
14
|
-
// 公司测试服务
|
|
15
|
-
var fuwu = 'http://192.168.50.4: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:
|
|
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
|
-
})
|
|
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://127.0.0.1:8080/',bendi1 = 'http://119.146.1.106:8300/'
|
|
14
|
+
// 公司测试服务
|
|
15
|
+
var fuwu = 'http://192.168.50.4: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/build/release.sh
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
set -e
|
|
2
|
-
echo "Enter release version: "
|
|
3
|
-
read VERSION
|
|
4
|
-
|
|
5
|
-
read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
|
|
6
|
-
echo # (optional) move to a new line
|
|
7
|
-
if [[ $REPLY =~ ^[Yy]$ ]]
|
|
8
|
-
then
|
|
9
|
-
echo "Releasing $VERSION ..."
|
|
10
|
-
|
|
11
|
-
# lint
|
|
12
|
-
npm run lint 2>/dev/null
|
|
13
|
-
|
|
14
|
-
# e2e
|
|
15
|
-
npm run e2e 2>/dev/null
|
|
16
|
-
|
|
17
|
-
#build
|
|
18
|
-
npm run build
|
|
19
|
-
|
|
20
|
-
# commit
|
|
21
|
-
git add -A
|
|
22
|
-
git commit -m "[build] $VERSION"
|
|
23
|
-
npm version $VERSION --message "[release] $VERSION"
|
|
24
|
-
|
|
25
|
-
# publish
|
|
26
|
-
git push origin refs/tags/v$VERSION
|
|
27
|
-
git push
|
|
28
|
-
fi
|
|
1
|
+
set -e
|
|
2
|
+
echo "Enter release version: "
|
|
3
|
+
read VERSION
|
|
4
|
+
|
|
5
|
+
read -p "Releasing $VERSION - are you sure? (y/n)" -n 1 -r
|
|
6
|
+
echo # (optional) move to a new line
|
|
7
|
+
if [[ $REPLY =~ ^[Yy]$ ]]
|
|
8
|
+
then
|
|
9
|
+
echo "Releasing $VERSION ..."
|
|
10
|
+
|
|
11
|
+
# lint
|
|
12
|
+
npm run lint 2>/dev/null
|
|
13
|
+
|
|
14
|
+
# e2e
|
|
15
|
+
npm run e2e 2>/dev/null
|
|
16
|
+
|
|
17
|
+
#build
|
|
18
|
+
npm run build
|
|
19
|
+
|
|
20
|
+
# commit
|
|
21
|
+
git add -A
|
|
22
|
+
git commit -m "[build] $VERSION"
|
|
23
|
+
npm version $VERSION --message "[release] $VERSION"
|
|
24
|
+
|
|
25
|
+
# publish
|
|
26
|
+
git push origin refs/tags/v$VERSION
|
|
27
|
+
git push
|
|
28
|
+
fi
|