manage-client-xy 3.1.99 → 3.2.1
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 +8 -5
- package/package.json +101 -101
- package/src/components/ManageHome/ImportSupplygas/UpdateSupply.vue +187 -187
- package/src/components/ManageHomeCS/ImportSupplygas/UpdateSupply.vue +187 -187
- package/src/components/sale/businessquery/AttachmentViewer.vue +252 -0
- package/src/components/sale/businessquery/BusinessManage.vue +3 -0
- package/src/components/sale/businessquery/ChangeMeterQuery.vue +22 -0
- package/src/components/sale/businessquery/ChargeQuery.vue +28 -4
- package/src/components/sale/businessquery/DisableQuery.vue +22 -0
- package/src/components/sale/businessquery/EnableQuery.vue +22 -0
- package/src/components/sale/businessquery/FillCardQuery.vue +22 -0
- package/src/components/sale/businessquery/FillGasQuery.vue +22 -0
- package/src/components/sale/businessquery/MoveQuery.vue +22 -3
- package/src/components/sale/businessquery/OtherChargeQuery.vue +20 -3
- package/src/components/sale/businessquery/RecordQuery.vue +22 -0
- package/src/components/sale/businessquery/TransferQuery.vue +549 -528
- package/src/components/sale/businessquery/cancelAccountQuery.vue +488 -0
- package/src/components/sale/report/aode/DayReport.vue +50 -50
- package/src/components/sale/report/aode/DayReportSummary.vue +75 -75
- package/src/components/sale/report/aode/widget/LifeDayReportListPrint.vue +189 -189
- package/src/components/sale/report/aode/widget/LifeMonthPrint.vue +153 -153
- package/src/components/sale/report/aode/widget/LifeYearPrint.vue +143 -143
- package/src/components/sale/report/aode/widget/MonthByChargePrint.vue +236 -236
- package/src/components/sale/report/aode/widget/MonthByUserPrint.vue +232 -232
- package/src/plugins/FileDownloadR.js +61 -0
- package/src/saleManage.js +43 -40
- package/static/qh.json +2410 -2410
- package/webstorm.config.js +13 -13
- package/.gradle/8.0/checksums/checksums.lock +0 -0
- package/.gradle/8.0/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/8.0/dependencies-accessors/gc.properties +0 -0
- package/.gradle/8.0/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.0/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.0/fileChanges/last-build.bin +0 -0
- package/.gradle/8.0/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.0/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.0/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/.gradle/vcs-1/gc.properties +0 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +0 -6
- package/gradlew +0 -244
- package/gradlew.bat +0 -92
package/build/dev-server.js
CHANGED
|
@@ -11,10 +11,13 @@ var compiler = webpack(config)
|
|
|
11
11
|
// Define HTTP proxies to your custom API backend
|
|
12
12
|
// https://github.com/chimurai/http-proxy-middleware
|
|
13
13
|
// var bendi = 'http://127.0.0.1:8089/manage', fuwu = 'http://36.103.224.217:6300/'
|
|
14
|
-
var bendi = 'http://
|
|
15
|
-
,fuwu ='http://
|
|
14
|
+
var bendi = 'http://192.168.13.135:8300/'
|
|
15
|
+
, fuwu = 'http://192.168.13.135:8300/'
|
|
16
16
|
// ,fuwu = 'http://172.16.16.163:8300/'
|
|
17
17
|
var proxyTable = {
|
|
18
|
+
'/resource': {
|
|
19
|
+
target: 'http://192.168.13.135:31577/'
|
|
20
|
+
},
|
|
18
21
|
|
|
19
22
|
'/rs/logic/exportfile': {
|
|
20
23
|
target: bendi
|
|
@@ -37,7 +40,7 @@ var proxyTable = {
|
|
|
37
40
|
'/rs/logic/getInitData': {
|
|
38
41
|
target: fuwu
|
|
39
42
|
},
|
|
40
|
-
'/rs/logic/getSaleInitData':{
|
|
43
|
+
'/rs/logic/getSaleInitData': {
|
|
41
44
|
target: fuwu
|
|
42
45
|
},
|
|
43
46
|
// 用户登录服务地址
|
|
@@ -74,11 +77,11 @@ var proxyTable = {
|
|
|
74
77
|
'/rs/file': {
|
|
75
78
|
target: fuwu
|
|
76
79
|
},
|
|
77
|
-
'/rs/logic/SumSettleFileImport':{
|
|
80
|
+
'/rs/logic/SumSettleFileImport': {
|
|
78
81
|
target: 'http://127.0.0.1:8087'
|
|
79
82
|
},
|
|
80
83
|
'/rs': {
|
|
81
|
-
|
|
84
|
+
target: fuwu
|
|
82
85
|
}
|
|
83
86
|
}
|
|
84
87
|
|
package/package.json
CHANGED
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "manage-client-xy",
|
|
3
|
-
"version": "3.1
|
|
4
|
-
"description": "经营管控模块前台组件",
|
|
5
|
-
"main": "src/index.js",
|
|
6
|
-
"directories": {
|
|
7
|
-
"test": "test"
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"examples": "^0.1.0",
|
|
11
|
-
"less-loader": "^2.2.3",
|
|
12
|
-
"vue": "^1.0.17"
|
|
13
|
-
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"babel-core": "^6.0.0",
|
|
16
|
-
"babel-loader": "^6.0.0",
|
|
17
|
-
"babel-plugin-transform-runtime": "^6.0.0",
|
|
18
|
-
"babel-preset-es2015": "^6.0.0",
|
|
19
|
-
"babel-preset-stage-2": "^6.0.0",
|
|
20
|
-
"chai": "^3.5.0",
|
|
21
|
-
"co": "^4.6.0",
|
|
22
|
-
"connect-history-api-fallback": "^1.1.0",
|
|
23
|
-
"cross-env": "^1.0.7",
|
|
24
|
-
"cross-spawn": "^2.1.5",
|
|
25
|
-
"css-loader": "^0.23.0",
|
|
26
|
-
"echarts": "^4.1.0",
|
|
27
|
-
"eslint": "^2.0.0",
|
|
28
|
-
"eslint-config-standard": "^5.1.0",
|
|
29
|
-
"eslint-friendly-formatter": "^1.2.2",
|
|
30
|
-
"eslint-loader": "^1.3.0",
|
|
31
|
-
"eslint-plugin-html": "^1.3.0",
|
|
32
|
-
"eslint-plugin-promise": "^1.0.8",
|
|
33
|
-
"eslint-plugin-standard": "^1.3.2",
|
|
34
|
-
"eslint-plugin-vue": "^0.1.1",
|
|
35
|
-
"eventsource-polyfill": "^0.9.6",
|
|
36
|
-
"express": "^4.13.3",
|
|
37
|
-
"extract-text-webpack-plugin": "^1.0.1",
|
|
38
|
-
"file-loader": "^0.8.4",
|
|
39
|
-
"function-bind": "^1.0.2",
|
|
40
|
-
"html-webpack-plugin": "^2.8.1",
|
|
41
|
-
"http-proxy-middleware": "^0.11.0",
|
|
42
|
-
"inject-loader": "^2.0.1",
|
|
43
|
-
"isparta-loader": "^2.0.0",
|
|
44
|
-
"jasmine-core": "^2.4.1",
|
|
45
|
-
"jquery": "^3.3.1",
|
|
46
|
-
"json-loader": "^0.5.4",
|
|
47
|
-
"karma": "^1.4.1",
|
|
48
|
-
"karma-chrome-launcher": "^2.2.0",
|
|
49
|
-
"karma-coverage": "^1.1.1",
|
|
50
|
-
"karma-mocha": "^1.3.0",
|
|
51
|
-
"karma-sinon-chai": "^1.3.1",
|
|
52
|
-
"karma-sourcemap-loader": "^0.3.7",
|
|
53
|
-
"karma-spec-reporter": "0.0.31",
|
|
54
|
-
"karma-webpack": "^2.0.2",
|
|
55
|
-
"less": "^2.7.3",
|
|
56
|
-
"mkdirp": "^0.5.1",
|
|
57
|
-
"mocha": "^3.2.0",
|
|
58
|
-
"ncp": "^2.0.0",
|
|
59
|
-
"rimraf": "^2.5.0",
|
|
60
|
-
"sale-client": "3.1.0-22",
|
|
61
|
-
"selenium-server": "2.52.0",
|
|
62
|
-
"sinon": "^2.1.0",
|
|
63
|
-
"sinon-chai": "^2.8.0",
|
|
64
|
-
"style": "0.0.3",
|
|
65
|
-
"style-loader": "^0.20.3",
|
|
66
|
-
"system-clients": "3.1.85-xianyang",
|
|
67
|
-
"url-loader": "^0.5.7",
|
|
68
|
-
"vue-amap": "0.5.10",
|
|
69
|
-
"vue-client": "1.22.38-xy",
|
|
70
|
-
"vue-hot-reload-api": "^1.2.0",
|
|
71
|
-
"vue-html-loader": "^1.0.0",
|
|
72
|
-
"vue-loader": "8.2.1",
|
|
73
|
-
"vue-resource": "^1.5.0",
|
|
74
|
-
"vue-router": "^0.7.13",
|
|
75
|
-
"vue-strap": "^1.0.9",
|
|
76
|
-
"vue-style-loader": "^1.0.0",
|
|
77
|
-
"vue-validator": "2.1.7",
|
|
78
|
-
"webpack": "1.12.2",
|
|
79
|
-
"webpack-dev-middleware": "^1.4.0",
|
|
80
|
-
"webpack-hot-middleware": "^2.6.0",
|
|
81
|
-
"webpack-merge": "^0.8.3"
|
|
82
|
-
},
|
|
83
|
-
"scripts": {
|
|
84
|
-
"unit": "karma start test/unit/karma.conf.js --single-run",
|
|
85
|
-
"example": "node build/example-server.js",
|
|
86
|
-
"dev": "node build/dev-server.js",
|
|
87
|
-
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
|
88
|
-
"build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
89
|
-
"e2e": "node test/e2e/runner.js",
|
|
90
|
-
"release": "bash build/release.sh"
|
|
91
|
-
},
|
|
92
|
-
"repository": {
|
|
93
|
-
"type": "git",
|
|
94
|
-
"url": "https://gitee.com/aote/management_modules.git"
|
|
95
|
-
},
|
|
96
|
-
"keywords": [
|
|
97
|
-
"manage"
|
|
98
|
-
],
|
|
99
|
-
"author": "liuxudong",
|
|
100
|
-
"license": "ISC"
|
|
101
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "manage-client-xy",
|
|
3
|
+
"version": "3.2.1",
|
|
4
|
+
"description": "经营管控模块前台组件",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"directories": {
|
|
7
|
+
"test": "test"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"examples": "^0.1.0",
|
|
11
|
+
"less-loader": "^2.2.3",
|
|
12
|
+
"vue": "^1.0.17"
|
|
13
|
+
},
|
|
14
|
+
"devDependencies": {
|
|
15
|
+
"babel-core": "^6.0.0",
|
|
16
|
+
"babel-loader": "^6.0.0",
|
|
17
|
+
"babel-plugin-transform-runtime": "^6.0.0",
|
|
18
|
+
"babel-preset-es2015": "^6.0.0",
|
|
19
|
+
"babel-preset-stage-2": "^6.0.0",
|
|
20
|
+
"chai": "^3.5.0",
|
|
21
|
+
"co": "^4.6.0",
|
|
22
|
+
"connect-history-api-fallback": "^1.1.0",
|
|
23
|
+
"cross-env": "^1.0.7",
|
|
24
|
+
"cross-spawn": "^2.1.5",
|
|
25
|
+
"css-loader": "^0.23.0",
|
|
26
|
+
"echarts": "^4.1.0",
|
|
27
|
+
"eslint": "^2.0.0",
|
|
28
|
+
"eslint-config-standard": "^5.1.0",
|
|
29
|
+
"eslint-friendly-formatter": "^1.2.2",
|
|
30
|
+
"eslint-loader": "^1.3.0",
|
|
31
|
+
"eslint-plugin-html": "^1.3.0",
|
|
32
|
+
"eslint-plugin-promise": "^1.0.8",
|
|
33
|
+
"eslint-plugin-standard": "^1.3.2",
|
|
34
|
+
"eslint-plugin-vue": "^0.1.1",
|
|
35
|
+
"eventsource-polyfill": "^0.9.6",
|
|
36
|
+
"express": "^4.13.3",
|
|
37
|
+
"extract-text-webpack-plugin": "^1.0.1",
|
|
38
|
+
"file-loader": "^0.8.4",
|
|
39
|
+
"function-bind": "^1.0.2",
|
|
40
|
+
"html-webpack-plugin": "^2.8.1",
|
|
41
|
+
"http-proxy-middleware": "^0.11.0",
|
|
42
|
+
"inject-loader": "^2.0.1",
|
|
43
|
+
"isparta-loader": "^2.0.0",
|
|
44
|
+
"jasmine-core": "^2.4.1",
|
|
45
|
+
"jquery": "^3.3.1",
|
|
46
|
+
"json-loader": "^0.5.4",
|
|
47
|
+
"karma": "^1.4.1",
|
|
48
|
+
"karma-chrome-launcher": "^2.2.0",
|
|
49
|
+
"karma-coverage": "^1.1.1",
|
|
50
|
+
"karma-mocha": "^1.3.0",
|
|
51
|
+
"karma-sinon-chai": "^1.3.1",
|
|
52
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
53
|
+
"karma-spec-reporter": "0.0.31",
|
|
54
|
+
"karma-webpack": "^2.0.2",
|
|
55
|
+
"less": "^2.7.3",
|
|
56
|
+
"mkdirp": "^0.5.1",
|
|
57
|
+
"mocha": "^3.2.0",
|
|
58
|
+
"ncp": "^2.0.0",
|
|
59
|
+
"rimraf": "^2.5.0",
|
|
60
|
+
"sale-client": "3.1.0-22",
|
|
61
|
+
"selenium-server": "2.52.0",
|
|
62
|
+
"sinon": "^2.1.0",
|
|
63
|
+
"sinon-chai": "^2.8.0",
|
|
64
|
+
"style": "0.0.3",
|
|
65
|
+
"style-loader": "^0.20.3",
|
|
66
|
+
"system-clients": "3.1.85-xianyang",
|
|
67
|
+
"url-loader": "^0.5.7",
|
|
68
|
+
"vue-amap": "0.5.10",
|
|
69
|
+
"vue-client": "1.22.38-xy",
|
|
70
|
+
"vue-hot-reload-api": "^1.2.0",
|
|
71
|
+
"vue-html-loader": "^1.0.0",
|
|
72
|
+
"vue-loader": "8.2.1",
|
|
73
|
+
"vue-resource": "^1.5.0",
|
|
74
|
+
"vue-router": "^0.7.13",
|
|
75
|
+
"vue-strap": "^1.0.9",
|
|
76
|
+
"vue-style-loader": "^1.0.0",
|
|
77
|
+
"vue-validator": "2.1.7",
|
|
78
|
+
"webpack": "1.12.2",
|
|
79
|
+
"webpack-dev-middleware": "^1.4.0",
|
|
80
|
+
"webpack-hot-middleware": "^2.6.0",
|
|
81
|
+
"webpack-merge": "^0.8.3"
|
|
82
|
+
},
|
|
83
|
+
"scripts": {
|
|
84
|
+
"unit": "karma start test/unit/karma.conf.js --single-run",
|
|
85
|
+
"example": "node build/example-server.js",
|
|
86
|
+
"dev": "node build/dev-server.js",
|
|
87
|
+
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
|
88
|
+
"build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
89
|
+
"e2e": "node test/e2e/runner.js",
|
|
90
|
+
"release": "bash build/release.sh"
|
|
91
|
+
},
|
|
92
|
+
"repository": {
|
|
93
|
+
"type": "git",
|
|
94
|
+
"url": "https://gitee.com/aote/management_modules.git"
|
|
95
|
+
},
|
|
96
|
+
"keywords": [
|
|
97
|
+
"manage"
|
|
98
|
+
],
|
|
99
|
+
"author": "liuxudong",
|
|
100
|
+
"license": "ISC"
|
|
101
|
+
}
|
|
@@ -1,187 +1,187 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="auto select-overspread">
|
|
3
|
-
<div class="panel panel-info">
|
|
4
|
-
<div class="panel-heading">
|
|
5
|
-
<h3 class="panel-title">修改用户信息</h3>
|
|
6
|
-
</div>
|
|
7
|
-
</div>
|
|
8
|
-
<validator name="v">
|
|
9
|
-
<form class="form-horizontal">
|
|
10
|
-
<div class="col-sm-12 form-group" style="margin-top: 100px;">
|
|
11
|
-
<div class="col-sm-4" :class="[$v.f_gasmun.required ? 'has-error': '']">
|
|
12
|
-
<label class="col-sm-6 control-label">供气量:</label>
|
|
13
|
-
<div class="col-sm-4">
|
|
14
|
-
<input type="text" onkeyup="value=value.replace(/[^\.\d]/g,'')" onblur="value=value.replace(/[^\.\d]/g,'')" onblur="this.v();" class="form-control" v-model="model.f_gasmun" v-validate:f_gasmun='{required: true }'/>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="col-sm-4" :class="[$v.f_gasunits.required ? 'has-error': '']">
|
|
18
|
-
<label class="col-sm-6 control-label">供气单位:</label>
|
|
19
|
-
<div class="col-sm-4">
|
|
20
|
-
<input type="text" class="form-control" v-model="model.f_gasunits" v-validate:f_gasunits='{required: true }'/>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
<!--<div class="col-sm-4" :class="[$v.fcredentials.required ? 'has-error select-error': '']">-->
|
|
24
|
-
<!--<label class="col-sm-6 control-label">证件类型:</label>-->
|
|
25
|
-
<!--<div class="col-sm-4">-->
|
|
26
|
-
<!--<input type="text" v-show="false" v-model="$refs.fcredentials.value[0]" v-validate:fcredentials='{required: true }'>-->
|
|
27
|
-
<!--<v-select :value.sync="model.f_credentials" v-model="model.f_credentials" v-ref:fcredentials :options='credentials'-->
|
|
28
|
-
<!--placeholder='请选择' close-on-select></v-select>-->
|
|
29
|
-
<!--</div>-->
|
|
30
|
-
<!--</div>-->
|
|
31
|
-
<!--//<div class="col-sm-4" :class="[$v.f_gasdate.required ? 'has-error select-error': '']"></div>-->
|
|
32
|
-
<div class="col-sm-4">
|
|
33
|
-
<label for="startDate" class="col-sm-6 control-label">供气时间:</label>
|
|
34
|
-
<div class="col-sm-4" >
|
|
35
|
-
<datepicker id="startDate" placeholder="开始日期"
|
|
36
|
-
v-model="model.f_gasdate"
|
|
37
|
-
:value.sync="model.f_gasdate"
|
|
38
|
-
:disabled-days-of-Week="[]"
|
|
39
|
-
:format="'yyyy-MM-dd'"
|
|
40
|
-
:show-reset-button="reset">
|
|
41
|
-
</datepicker>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</div>
|
|
47
|
-
<div class="col-sm-12 form-group">
|
|
48
|
-
|
|
49
|
-
<div class="col-sm-4" :class="[$v.f_department.required ? 'has-error': '']">
|
|
50
|
-
<label class="col-sm-6 control-label">操作部门:</label>
|
|
51
|
-
<div class="col-sm-4">
|
|
52
|
-
<input type="text" class="form-control" v-model="model.f_department" v-validate:f_department='{required: true }'/>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
<!--<div class="col-sm-4" :class="[$v.f_password.required ? 'has-error': '']">-->
|
|
56
|
-
<!--<label class="col-sm-6 control-label">密码:</label>-->
|
|
57
|
-
<!--<div class="col-sm-4">-->
|
|
58
|
-
<!--<input type="text" class="form-control" v-model="model.f_password" v-validate:f_password='{required: true }'/>-->
|
|
59
|
-
<!--</div>-->
|
|
60
|
-
<!--</div>-->
|
|
61
|
-
</div>
|
|
62
|
-
<div class="col-sm-12 form-group">
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
</div>
|
|
66
|
-
<div class="col-sm-12 form-group">
|
|
67
|
-
<div class="col-sm-4">
|
|
68
|
-
<label class="col-sm-6 control-label">分公司:</label>
|
|
69
|
-
<div class="col-sm-4">
|
|
70
|
-
<input type="text" class="form-control" v-model="model.f_filiale" disabled/>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
<div class="col-sm-4">
|
|
74
|
-
<label class="col-sm-6 control-label">操作时间:</label>
|
|
75
|
-
<div class="col-sm-4">
|
|
76
|
-
<input type="text" class="form-control" v-model="model.f_date" disabled/>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
<div class="col-sm-4">
|
|
80
|
-
<label class="col-sm-6 control-label">操作人:</label>
|
|
81
|
-
<div class="col-sm-4">
|
|
82
|
-
<input type="text" class="form-control" v-model="model.f_operator" disabled/>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</form>
|
|
87
|
-
</validator>
|
|
88
|
-
<div class="col-sm-12 form-group" style="margin-top: 40px;">
|
|
89
|
-
<center>
|
|
90
|
-
<button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:40px;" :disabled='$v.invalid'>
|
|
91
|
-
保存
|
|
92
|
-
</button>
|
|
93
|
-
<button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
|
|
94
|
-
撤销
|
|
95
|
-
</button>
|
|
96
|
-
</center>
|
|
97
|
-
</div>
|
|
98
|
-
</div>
|
|
99
|
-
</template>
|
|
100
|
-
<script>
|
|
101
|
-
import * as Util from '../../../stores/Util'
|
|
102
|
-
//import AppData from '../../../../stores/AppData'
|
|
103
|
-
export default {
|
|
104
|
-
title: '添加人员信息',
|
|
105
|
-
data () {
|
|
106
|
-
return {
|
|
107
|
-
model: {
|
|
108
|
-
//f_filiale: Util. f.f_fengongsi,
|
|
109
|
-
//id: 185,
|
|
110
|
-
f_filiale: null,
|
|
111
|
-
f_date: Util.toStandardDateString(),
|
|
112
|
-
// f_operator: Util.f.name,
|
|
113
|
-
f_operator: null,
|
|
114
|
-
f_gasdate: Util.toStandardDateString(),
|
|
115
|
-
f_gasmun : null,
|
|
116
|
-
f_gasunits : null,
|
|
117
|
-
f_department : null
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
props: ['upperson'],
|
|
122
|
-
ready () {
|
|
123
|
-
this.$nextTick(() => {
|
|
124
|
-
this.$dispatch('hiddenpaged')
|
|
125
|
-
// this.upperson.f_credentials = this.upperson.f_credentials ? this.upperson.f_credentials : this.model.f_credentials
|
|
126
|
-
// this.upperson.f_inputtor_type = this.upperson.f_inputtor_type ? this.upperson.f_inputtor_type : this.model.f_inputtor_type
|
|
127
|
-
// this.upperson.f_parentname = this.upperson.f_parentname ? this.upperson.f_parentname : this.model.f_parentname
|
|
128
|
-
// this.model = Object.assign({}, this.model, this.upperson)
|
|
129
|
-
// this.model.f_credentials = [this.model.f_credentials]
|
|
130
|
-
// this.model.f_inputtor_type = [this.model.f_inputtor_type]
|
|
131
|
-
// this.model.f_parentname = [this.model.f_parentname]
|
|
132
|
-
console.log("组件之间的传值 f_gasmun,f_gasunits,f_department")
|
|
133
|
-
this.model = Object.assign({}, this.model, this.upperson) //添加id,识别是否为更新操作
|
|
134
|
-
console.log(this.upperson.f_gasmun);
|
|
135
|
-
console.log(this.model.f_gasmun);
|
|
136
|
-
console.log(this.upperson.f_gasunits);
|
|
137
|
-
console.log(this.upperson.f_department)
|
|
138
|
-
//thi.model.id = this.upperson.id
|
|
139
|
-
this.model.f_gasmun = this.upperson.f_gasmun //? this.upperson.f_gasmun :this.model.f_gasmun;
|
|
140
|
-
this.model.f_gasunits = this.upperson.f_gasunits //? this.upperson.f_gasunits :this.model.f_gasunits;
|
|
141
|
-
this.model.f_department = this.upperson.f_department //? this.upperson.f_department :this.model.f_department;
|
|
142
|
-
})
|
|
143
|
-
},
|
|
144
|
-
methods: {
|
|
145
|
-
confirm() {
|
|
146
|
-
console.log(this.model),
|
|
147
|
-
this.model.f_gasdate //= this.model.startDate;//供气时间赋值
|
|
148
|
-
//姓名相同所以不需要赋值
|
|
149
|
-
this.model.f_department=this.model.f_department;//操作部门
|
|
150
|
-
this.model.f_filiale //= this.model.f_fengongsi;//分公司赋值
|
|
151
|
-
this.model.f_date //= this.model.f_operator_date;//操作日期赋值
|
|
152
|
-
this.$resetpost('rs/entity/t_supplygas', this.model).then(() => {
|
|
153
|
-
this.reset()
|
|
154
|
-
})
|
|
155
|
-
},
|
|
156
|
-
reset () {
|
|
157
|
-
this.$dispatch('close')
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
watch: {
|
|
161
|
-
'upperson' () {
|
|
162
|
-
this.$nextTick(() => {
|
|
163
|
-
this.$dispatch('hiddenpaged')
|
|
164
|
-
// this.upperson.f_credentials = this.upperson.f_credentials ? this.upperson.f_credentials : this.model.f_credentials
|
|
165
|
-
// this.upperson.f_inputtor_type = this.upperson.f_inputtor_type ? this.upperson.f_inputtor_type : this.model.f_inputtor_type
|
|
166
|
-
// this.upperson.f_parentname = this.upperson.f_parentname ? this.upperson.f_parentname : this.model.f_parentname
|
|
167
|
-
// this.model = Object.assign({}, this.model, this.upperson)
|
|
168
|
-
this.model.f_gasmun = [this.model.f_gasmun]
|
|
169
|
-
this.model.f_gasunits = [this.model.f_gasunits]
|
|
170
|
-
this.model.f_date = [this.model.f_date]
|
|
171
|
-
})
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
computed: {
|
|
175
|
-
// credentials (){
|
|
176
|
-
// return AppData.getParam("证件类型")
|
|
177
|
-
// },
|
|
178
|
-
// inputtortype () {
|
|
179
|
-
// return AppData.getParam("角色类型")
|
|
180
|
-
// },
|
|
181
|
-
// parentname () {
|
|
182
|
-
// return AppData.getParam("营业网点")
|
|
183
|
-
// }
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
</script>
|
|
187
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto select-overspread">
|
|
3
|
+
<div class="panel panel-info">
|
|
4
|
+
<div class="panel-heading">
|
|
5
|
+
<h3 class="panel-title">修改用户信息</h3>
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
<validator name="v">
|
|
9
|
+
<form class="form-horizontal">
|
|
10
|
+
<div class="col-sm-12 form-group" style="margin-top: 100px;">
|
|
11
|
+
<div class="col-sm-4" :class="[$v.f_gasmun.required ? 'has-error': '']">
|
|
12
|
+
<label class="col-sm-6 control-label">供气量:</label>
|
|
13
|
+
<div class="col-sm-4">
|
|
14
|
+
<input type="text" onkeyup="value=value.replace(/[^\.\d]/g,'')" onblur="value=value.replace(/[^\.\d]/g,'')" onblur="this.v();" class="form-control" v-model="model.f_gasmun" v-validate:f_gasmun='{required: true }'/>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="col-sm-4" :class="[$v.f_gasunits.required ? 'has-error': '']">
|
|
18
|
+
<label class="col-sm-6 control-label">供气单位:</label>
|
|
19
|
+
<div class="col-sm-4">
|
|
20
|
+
<input type="text" class="form-control" v-model="model.f_gasunits" v-validate:f_gasunits='{required: true }'/>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<!--<div class="col-sm-4" :class="[$v.fcredentials.required ? 'has-error select-error': '']">-->
|
|
24
|
+
<!--<label class="col-sm-6 control-label">证件类型:</label>-->
|
|
25
|
+
<!--<div class="col-sm-4">-->
|
|
26
|
+
<!--<input type="text" v-show="false" v-model="$refs.fcredentials.value[0]" v-validate:fcredentials='{required: true }'>-->
|
|
27
|
+
<!--<v-select :value.sync="model.f_credentials" v-model="model.f_credentials" v-ref:fcredentials :options='credentials'-->
|
|
28
|
+
<!--placeholder='请选择' close-on-select></v-select>-->
|
|
29
|
+
<!--</div>-->
|
|
30
|
+
<!--</div>-->
|
|
31
|
+
<!--//<div class="col-sm-4" :class="[$v.f_gasdate.required ? 'has-error select-error': '']"></div>-->
|
|
32
|
+
<div class="col-sm-4">
|
|
33
|
+
<label for="startDate" class="col-sm-6 control-label">供气时间:</label>
|
|
34
|
+
<div class="col-sm-4" >
|
|
35
|
+
<datepicker id="startDate" placeholder="开始日期"
|
|
36
|
+
v-model="model.f_gasdate"
|
|
37
|
+
:value.sync="model.f_gasdate"
|
|
38
|
+
:disabled-days-of-Week="[]"
|
|
39
|
+
:format="'yyyy-MM-dd'"
|
|
40
|
+
:show-reset-button="reset">
|
|
41
|
+
</datepicker>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</div>
|
|
47
|
+
<div class="col-sm-12 form-group">
|
|
48
|
+
|
|
49
|
+
<div class="col-sm-4" :class="[$v.f_department.required ? 'has-error': '']">
|
|
50
|
+
<label class="col-sm-6 control-label">操作部门:</label>
|
|
51
|
+
<div class="col-sm-4">
|
|
52
|
+
<input type="text" class="form-control" v-model="model.f_department" v-validate:f_department='{required: true }'/>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
<!--<div class="col-sm-4" :class="[$v.f_password.required ? 'has-error': '']">-->
|
|
56
|
+
<!--<label class="col-sm-6 control-label">密码:</label>-->
|
|
57
|
+
<!--<div class="col-sm-4">-->
|
|
58
|
+
<!--<input type="text" class="form-control" v-model="model.f_password" v-validate:f_password='{required: true }'/>-->
|
|
59
|
+
<!--</div>-->
|
|
60
|
+
<!--</div>-->
|
|
61
|
+
</div>
|
|
62
|
+
<div class="col-sm-12 form-group">
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</div>
|
|
66
|
+
<div class="col-sm-12 form-group">
|
|
67
|
+
<div class="col-sm-4">
|
|
68
|
+
<label class="col-sm-6 control-label">分公司:</label>
|
|
69
|
+
<div class="col-sm-4">
|
|
70
|
+
<input type="text" class="form-control" v-model="model.f_filiale" disabled/>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
<div class="col-sm-4">
|
|
74
|
+
<label class="col-sm-6 control-label">操作时间:</label>
|
|
75
|
+
<div class="col-sm-4">
|
|
76
|
+
<input type="text" class="form-control" v-model="model.f_date" disabled/>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="col-sm-4">
|
|
80
|
+
<label class="col-sm-6 control-label">操作人:</label>
|
|
81
|
+
<div class="col-sm-4">
|
|
82
|
+
<input type="text" class="form-control" v-model="model.f_operator" disabled/>
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</form>
|
|
87
|
+
</validator>
|
|
88
|
+
<div class="col-sm-12 form-group" style="margin-top: 40px;">
|
|
89
|
+
<center>
|
|
90
|
+
<button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:40px;" :disabled='$v.invalid'>
|
|
91
|
+
保存
|
|
92
|
+
</button>
|
|
93
|
+
<button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
|
|
94
|
+
撤销
|
|
95
|
+
</button>
|
|
96
|
+
</center>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</template>
|
|
100
|
+
<script>
|
|
101
|
+
import * as Util from '../../../stores/Util'
|
|
102
|
+
//import AppData from '../../../../stores/AppData'
|
|
103
|
+
export default {
|
|
104
|
+
title: '添加人员信息',
|
|
105
|
+
data () {
|
|
106
|
+
return {
|
|
107
|
+
model: {
|
|
108
|
+
//f_filiale: Util. f.f_fengongsi,
|
|
109
|
+
//id: 185,
|
|
110
|
+
f_filiale: null,
|
|
111
|
+
f_date: Util.toStandardDateString(),
|
|
112
|
+
// f_operator: Util.f.name,
|
|
113
|
+
f_operator: null,
|
|
114
|
+
f_gasdate: Util.toStandardDateString(),
|
|
115
|
+
f_gasmun : null,
|
|
116
|
+
f_gasunits : null,
|
|
117
|
+
f_department : null
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
props: ['upperson'],
|
|
122
|
+
ready () {
|
|
123
|
+
this.$nextTick(() => {
|
|
124
|
+
this.$dispatch('hiddenpaged')
|
|
125
|
+
// this.upperson.f_credentials = this.upperson.f_credentials ? this.upperson.f_credentials : this.model.f_credentials
|
|
126
|
+
// this.upperson.f_inputtor_type = this.upperson.f_inputtor_type ? this.upperson.f_inputtor_type : this.model.f_inputtor_type
|
|
127
|
+
// this.upperson.f_parentname = this.upperson.f_parentname ? this.upperson.f_parentname : this.model.f_parentname
|
|
128
|
+
// this.model = Object.assign({}, this.model, this.upperson)
|
|
129
|
+
// this.model.f_credentials = [this.model.f_credentials]
|
|
130
|
+
// this.model.f_inputtor_type = [this.model.f_inputtor_type]
|
|
131
|
+
// this.model.f_parentname = [this.model.f_parentname]
|
|
132
|
+
console.log("组件之间的传值 f_gasmun,f_gasunits,f_department")
|
|
133
|
+
this.model = Object.assign({}, this.model, this.upperson) //添加id,识别是否为更新操作
|
|
134
|
+
console.log(this.upperson.f_gasmun);
|
|
135
|
+
console.log(this.model.f_gasmun);
|
|
136
|
+
console.log(this.upperson.f_gasunits);
|
|
137
|
+
console.log(this.upperson.f_department)
|
|
138
|
+
//thi.model.id = this.upperson.id
|
|
139
|
+
this.model.f_gasmun = this.upperson.f_gasmun //? this.upperson.f_gasmun :this.model.f_gasmun;
|
|
140
|
+
this.model.f_gasunits = this.upperson.f_gasunits //? this.upperson.f_gasunits :this.model.f_gasunits;
|
|
141
|
+
this.model.f_department = this.upperson.f_department //? this.upperson.f_department :this.model.f_department;
|
|
142
|
+
})
|
|
143
|
+
},
|
|
144
|
+
methods: {
|
|
145
|
+
confirm() {
|
|
146
|
+
console.log(this.model),
|
|
147
|
+
this.model.f_gasdate //= this.model.startDate;//供气时间赋值
|
|
148
|
+
//姓名相同所以不需要赋值
|
|
149
|
+
this.model.f_department=this.model.f_department;//操作部门
|
|
150
|
+
this.model.f_filiale //= this.model.f_fengongsi;//分公司赋值
|
|
151
|
+
this.model.f_date //= this.model.f_operator_date;//操作日期赋值
|
|
152
|
+
this.$resetpost('rs/entity/t_supplygas', this.model).then(() => {
|
|
153
|
+
this.reset()
|
|
154
|
+
})
|
|
155
|
+
},
|
|
156
|
+
reset () {
|
|
157
|
+
this.$dispatch('close')
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
watch: {
|
|
161
|
+
'upperson' () {
|
|
162
|
+
this.$nextTick(() => {
|
|
163
|
+
this.$dispatch('hiddenpaged')
|
|
164
|
+
// this.upperson.f_credentials = this.upperson.f_credentials ? this.upperson.f_credentials : this.model.f_credentials
|
|
165
|
+
// this.upperson.f_inputtor_type = this.upperson.f_inputtor_type ? this.upperson.f_inputtor_type : this.model.f_inputtor_type
|
|
166
|
+
// this.upperson.f_parentname = this.upperson.f_parentname ? this.upperson.f_parentname : this.model.f_parentname
|
|
167
|
+
// this.model = Object.assign({}, this.model, this.upperson)
|
|
168
|
+
this.model.f_gasmun = [this.model.f_gasmun]
|
|
169
|
+
this.model.f_gasunits = [this.model.f_gasunits]
|
|
170
|
+
this.model.f_date = [this.model.f_date]
|
|
171
|
+
})
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
computed: {
|
|
175
|
+
// credentials (){
|
|
176
|
+
// return AppData.getParam("证件类型")
|
|
177
|
+
// },
|
|
178
|
+
// inputtortype () {
|
|
179
|
+
// return AppData.getParam("角色类型")
|
|
180
|
+
// },
|
|
181
|
+
// parentname () {
|
|
182
|
+
// return AppData.getParam("营业网点")
|
|
183
|
+
// }
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
</script>
|
|
187
|
+
|