sale-client 3.6.256 → 3.6.258
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/package.json +120 -120
- package/src/components/FilesManage/AddHostMeterUserList.vue +185 -0
- package/src/components/FilesManage/AddSubMeterUserList.vue +185 -0
- package/src/components/FilesManage/HostMeterAdd.vue +219 -0
- package/src/components/FilesManage/HostMeterList.vue +323 -0
- package/src/components/FilesManage/HostMeterManage.vue +100 -0
- package/src/components/FilesManage/HostMeterUserList.vue +270 -0
- package/src/components/charge/ChargeOper.vue +9 -7
- package/src/components/common/userinfo_detail/iot_detail/QueryInstruct.vue +1 -0
- package/src/filiale/yangchun/CardMeterCenter.vue +2 -2
- package/src/filiale/yangchun/Overdue/OverdueSetList.vue +274 -282
- package/src/filiale/yangchun/machineHandAudit.vue +782 -0
- package/src/filiale/yangchun/meterinfodetail.vue +247 -0
- package/src/filiale/yangchun/sale.js +4 -0
- package/src/sale.js +7 -0
package/package.json
CHANGED
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sale-client",
|
|
3
|
-
"version": "3.6.
|
|
4
|
-
"description": "收费模块前台组件",
|
|
5
|
-
"main": "src/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"example": "node build/example-server.js",
|
|
8
|
-
"dev": "webpack-dev-server --config ./build/dev-server.js",
|
|
9
|
-
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
|
10
|
-
"unit": "karma start test/unit/karma.conf.js",
|
|
11
|
-
"build": "rimraf lib && mkdirp lib && cross-env webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
12
|
-
"e2e": "node test/e2e/runner.js",
|
|
13
|
-
"release": "bash build/release.sh"
|
|
14
|
-
},
|
|
15
|
-
"repository": {
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "https://gitee.com/aote/product.git"
|
|
18
|
-
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"crypto-js": "^4.1.1",
|
|
21
|
-
"examples": "^0.1.0",
|
|
22
|
-
"js-file-download": "0.4.12",
|
|
23
|
-
"less-loader": "^2.2.3",
|
|
24
|
-
"qrcodejs2": "0.0.2",
|
|
25
|
-
"vue": "^1.0.17",
|
|
26
|
-
"webpack-dev-server": "^2.11.5",
|
|
27
|
-
"vue-client": "1.24.137",
|
|
28
|
-
"yarn": "^1.22.10"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"address-client": "3.2.56",
|
|
32
|
-
"axios": "0.15.3",
|
|
33
|
-
"babel-core": "^6.0.0",
|
|
34
|
-
"babel-loader": "^6.0.0",
|
|
35
|
-
"babel-plugin-transform-runtime": "^6.0.0",
|
|
36
|
-
"babel-preset-es2015": "^6.0.0",
|
|
37
|
-
"babel-preset-stage-2": "^6.0.0",
|
|
38
|
-
"chai": "^3.5.0",
|
|
39
|
-
"co": "^4.6.0",
|
|
40
|
-
"compression-webpack-plugin": "1.1.2",
|
|
41
|
-
"connect-history-api-fallback": "^1.1.0",
|
|
42
|
-
"cross-env": "^1.0.7",
|
|
43
|
-
"cross-spawn": "^2.1.5",
|
|
44
|
-
"css-loader": "^0.23.0",
|
|
45
|
-
"echarts": "^4.1.0",
|
|
46
|
-
"eslint": "^3.19.0",
|
|
47
|
-
"eslint-config-standard": "^10.2.1",
|
|
48
|
-
"eslint-friendly-formatter": "^3.0.0",
|
|
49
|
-
"eslint-loader": "^1.7.1",
|
|
50
|
-
"eslint-plugin-html": "^3.0.0",
|
|
51
|
-
"eslint-plugin-import": "^2.7.0",
|
|
52
|
-
"eslint-plugin-node": "^5.2.0",
|
|
53
|
-
"eslint-plugin-promise": "^3.4.0",
|
|
54
|
-
"eslint-plugin-standard": "^3.0.1",
|
|
55
|
-
"eventsource-polyfill": "^0.9.6",
|
|
56
|
-
"express": "^4.13.3",
|
|
57
|
-
"extract-text-webpack-plugin": "^3.0.2",
|
|
58
|
-
"terser-webpack-plugin-legacy": "^1.2.5",
|
|
59
|
-
"file-loader": "^0.8.4",
|
|
60
|
-
"filemanager-webpack-plugin": "^2.0.5",
|
|
61
|
-
"function-bind": "^1.0.2",
|
|
62
|
-
"html-webpack-plugin": "^2.8.1",
|
|
63
|
-
"http-proxy-middleware": "^0.11.0",
|
|
64
|
-
"inject-loader": "^2.0.1",
|
|
65
|
-
"isparta-loader": "^2.0.0",
|
|
66
|
-
"jasmine-core": "^2.4.1",
|
|
67
|
-
"jquery": "^3.3.1",
|
|
68
|
-
"jsencrypt": "3.0.0-rc.1",
|
|
69
|
-
"json-loader": "^0.5.4",
|
|
70
|
-
"karma": "^1.4.1",
|
|
71
|
-
"karma-chrome-launcher": "^2.2.0",
|
|
72
|
-
"karma-coverage": "^1.1.1",
|
|
73
|
-
"karma-mocha": "^1.3.0",
|
|
74
|
-
"karma-sinon-chai": "^1.3.1",
|
|
75
|
-
"karma-sourcemap-loader": "^0.3.7",
|
|
76
|
-
"karma-spec-reporter": "0.0.31",
|
|
77
|
-
"karma-webpack": "^2.0.2",
|
|
78
|
-
"ldap-clients": "3.0.62",
|
|
79
|
-
"less": "^2.7.3",
|
|
80
|
-
"manage-client": "3.1.8-88",
|
|
81
|
-
"mkdirp": "^0.5.1",
|
|
82
|
-
"mocha": "^3.2.0",
|
|
83
|
-
"moment": "2.24.0",
|
|
84
|
-
"ncp": "^2.0.0",
|
|
85
|
-
"nightwatch": "^0.8.18",
|
|
86
|
-
"qrcodejs2": "0.0.2",
|
|
87
|
-
"rimraf": "^2.5.0",
|
|
88
|
-
"selenium-server": "2.52.0",
|
|
89
|
-
"sinon": "^2.1.0",
|
|
90
|
-
"sinon-chai": "^2.8.0",
|
|
91
|
-
"style": "0.0.3",
|
|
92
|
-
"style-loader": "^0.20.3",
|
|
93
|
-
"system-clients": "3.2.61",
|
|
94
|
-
"url-loader": "^0.5.7",
|
|
95
|
-
"vue-clipboard2": "0.3.1",
|
|
96
|
-
"vue-hot-reload-api": "^1.2.0",
|
|
97
|
-
"vue-html-loader": "^1.0.0",
|
|
98
|
-
"vue-loader": "^8.2.1",
|
|
99
|
-
"vue-resource": "^1.5.0",
|
|
100
|
-
"vue-router": "^0.7.13",
|
|
101
|
-
"vue-strap": "^1.0.9",
|
|
102
|
-
"vue-style-loader": "^1.0.0",
|
|
103
|
-
"vue-validator": "2.1.7",
|
|
104
|
-
"webpack": "^3.12.0",
|
|
105
|
-
"webpack-dev-middleware": "^1.4.0",
|
|
106
|
-
"webpack-hot-middleware": "^2.6.0",
|
|
107
|
-
"webpack-merge": "^0.8.3",
|
|
108
|
-
"webpack-parallel-uglify-plugin": "^1.0.0",
|
|
109
|
-
"weixin-js-sdk": "^1.2.0"
|
|
110
|
-
},
|
|
111
|
-
"keywords": [
|
|
112
|
-
"selling-clients"
|
|
113
|
-
],
|
|
114
|
-
"author": "张桥",
|
|
115
|
-
"license": "ISC",
|
|
116
|
-
"directories": {
|
|
117
|
-
"example": "examples",
|
|
118
|
-
"test": "test"
|
|
119
|
-
}
|
|
120
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "sale-client",
|
|
3
|
+
"version": "3.6.258",
|
|
4
|
+
"description": "收费模块前台组件",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"example": "node build/example-server.js",
|
|
8
|
+
"dev": "webpack-dev-server --config ./build/dev-server.js",
|
|
9
|
+
"lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
|
|
10
|
+
"unit": "karma start test/unit/karma.conf.js",
|
|
11
|
+
"build": "rimraf lib && mkdirp lib && cross-env webpack --progress --hide-modules --config build/webpack.prod.conf.js",
|
|
12
|
+
"e2e": "node test/e2e/runner.js",
|
|
13
|
+
"release": "bash build/release.sh"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://gitee.com/aote/product.git"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"crypto-js": "^4.1.1",
|
|
21
|
+
"examples": "^0.1.0",
|
|
22
|
+
"js-file-download": "0.4.12",
|
|
23
|
+
"less-loader": "^2.2.3",
|
|
24
|
+
"qrcodejs2": "0.0.2",
|
|
25
|
+
"vue": "^1.0.17",
|
|
26
|
+
"webpack-dev-server": "^2.11.5",
|
|
27
|
+
"vue-client": "1.24.137",
|
|
28
|
+
"yarn": "^1.22.10"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"address-client": "3.2.56",
|
|
32
|
+
"axios": "0.15.3",
|
|
33
|
+
"babel-core": "^6.0.0",
|
|
34
|
+
"babel-loader": "^6.0.0",
|
|
35
|
+
"babel-plugin-transform-runtime": "^6.0.0",
|
|
36
|
+
"babel-preset-es2015": "^6.0.0",
|
|
37
|
+
"babel-preset-stage-2": "^6.0.0",
|
|
38
|
+
"chai": "^3.5.0",
|
|
39
|
+
"co": "^4.6.0",
|
|
40
|
+
"compression-webpack-plugin": "1.1.2",
|
|
41
|
+
"connect-history-api-fallback": "^1.1.0",
|
|
42
|
+
"cross-env": "^1.0.7",
|
|
43
|
+
"cross-spawn": "^2.1.5",
|
|
44
|
+
"css-loader": "^0.23.0",
|
|
45
|
+
"echarts": "^4.1.0",
|
|
46
|
+
"eslint": "^3.19.0",
|
|
47
|
+
"eslint-config-standard": "^10.2.1",
|
|
48
|
+
"eslint-friendly-formatter": "^3.0.0",
|
|
49
|
+
"eslint-loader": "^1.7.1",
|
|
50
|
+
"eslint-plugin-html": "^3.0.0",
|
|
51
|
+
"eslint-plugin-import": "^2.7.0",
|
|
52
|
+
"eslint-plugin-node": "^5.2.0",
|
|
53
|
+
"eslint-plugin-promise": "^3.4.0",
|
|
54
|
+
"eslint-plugin-standard": "^3.0.1",
|
|
55
|
+
"eventsource-polyfill": "^0.9.6",
|
|
56
|
+
"express": "^4.13.3",
|
|
57
|
+
"extract-text-webpack-plugin": "^3.0.2",
|
|
58
|
+
"terser-webpack-plugin-legacy": "^1.2.5",
|
|
59
|
+
"file-loader": "^0.8.4",
|
|
60
|
+
"filemanager-webpack-plugin": "^2.0.5",
|
|
61
|
+
"function-bind": "^1.0.2",
|
|
62
|
+
"html-webpack-plugin": "^2.8.1",
|
|
63
|
+
"http-proxy-middleware": "^0.11.0",
|
|
64
|
+
"inject-loader": "^2.0.1",
|
|
65
|
+
"isparta-loader": "^2.0.0",
|
|
66
|
+
"jasmine-core": "^2.4.1",
|
|
67
|
+
"jquery": "^3.3.1",
|
|
68
|
+
"jsencrypt": "3.0.0-rc.1",
|
|
69
|
+
"json-loader": "^0.5.4",
|
|
70
|
+
"karma": "^1.4.1",
|
|
71
|
+
"karma-chrome-launcher": "^2.2.0",
|
|
72
|
+
"karma-coverage": "^1.1.1",
|
|
73
|
+
"karma-mocha": "^1.3.0",
|
|
74
|
+
"karma-sinon-chai": "^1.3.1",
|
|
75
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
76
|
+
"karma-spec-reporter": "0.0.31",
|
|
77
|
+
"karma-webpack": "^2.0.2",
|
|
78
|
+
"ldap-clients": "3.0.62",
|
|
79
|
+
"less": "^2.7.3",
|
|
80
|
+
"manage-client": "3.1.8-88",
|
|
81
|
+
"mkdirp": "^0.5.1",
|
|
82
|
+
"mocha": "^3.2.0",
|
|
83
|
+
"moment": "2.24.0",
|
|
84
|
+
"ncp": "^2.0.0",
|
|
85
|
+
"nightwatch": "^0.8.18",
|
|
86
|
+
"qrcodejs2": "0.0.2",
|
|
87
|
+
"rimraf": "^2.5.0",
|
|
88
|
+
"selenium-server": "2.52.0",
|
|
89
|
+
"sinon": "^2.1.0",
|
|
90
|
+
"sinon-chai": "^2.8.0",
|
|
91
|
+
"style": "0.0.3",
|
|
92
|
+
"style-loader": "^0.20.3",
|
|
93
|
+
"system-clients": "3.2.61",
|
|
94
|
+
"url-loader": "^0.5.7",
|
|
95
|
+
"vue-clipboard2": "0.3.1",
|
|
96
|
+
"vue-hot-reload-api": "^1.2.0",
|
|
97
|
+
"vue-html-loader": "^1.0.0",
|
|
98
|
+
"vue-loader": "^8.2.1",
|
|
99
|
+
"vue-resource": "^1.5.0",
|
|
100
|
+
"vue-router": "^0.7.13",
|
|
101
|
+
"vue-strap": "^1.0.9",
|
|
102
|
+
"vue-style-loader": "^1.0.0",
|
|
103
|
+
"vue-validator": "2.1.7",
|
|
104
|
+
"webpack": "^3.12.0",
|
|
105
|
+
"webpack-dev-middleware": "^1.4.0",
|
|
106
|
+
"webpack-hot-middleware": "^2.6.0",
|
|
107
|
+
"webpack-merge": "^0.8.3",
|
|
108
|
+
"webpack-parallel-uglify-plugin": "^1.0.0",
|
|
109
|
+
"weixin-js-sdk": "^1.2.0"
|
|
110
|
+
},
|
|
111
|
+
"keywords": [
|
|
112
|
+
"selling-clients"
|
|
113
|
+
],
|
|
114
|
+
"author": "张桥",
|
|
115
|
+
"license": "ISC",
|
|
116
|
+
"directories": {
|
|
117
|
+
"example": "examples",
|
|
118
|
+
"test": "test"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<modal :show.sync="show" v-ref:modal large backdrop="false">
|
|
4
|
+
<header slot="modal-header" class="modal-header">
|
|
5
|
+
<button type="button" class="close" @click="closeModal()"><span>×</span></button>
|
|
6
|
+
<h4 class="modal-title">选择用户档案</h4>
|
|
7
|
+
</header>
|
|
8
|
+
<article slot="modal-body" class="modal-body">
|
|
9
|
+
<div style="height: 600px">
|
|
10
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
11
|
+
<criteria partial='criteria' @condition-changed='$parent.$parent.selfSearch' v-ref:cri>
|
|
12
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
13
|
+
<div class="row">
|
|
14
|
+
<div class="col-sm-4 form-group">
|
|
15
|
+
<label class="font_normal_body">客户编号</label>
|
|
16
|
+
<input type="text"
|
|
17
|
+
class="input_search"
|
|
18
|
+
style="width:60%"
|
|
19
|
+
v-model="model.f_userinfo_code"
|
|
20
|
+
condition="f_userinfo_code = '{}'"
|
|
21
|
+
placeholder="客户编号"/>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="col-sm-4 form-group">
|
|
24
|
+
<label class="font_normal_body">客户名称</label>
|
|
25
|
+
<input type="text"
|
|
26
|
+
class="input_search"
|
|
27
|
+
style="width:60%"
|
|
28
|
+
v-model="model.f_user_name"
|
|
29
|
+
condition="f_user_name like '%{}%'"
|
|
30
|
+
placeholder="客户名称"/>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div class="col-sm-4 form-group button-range">
|
|
34
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
35
|
+
<div
|
|
36
|
+
:class="{'button_shrink_top':$parent.$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.$parent.criteriaShow}"
|
|
37
|
+
@click="$parent.$parent.$parent.hidden()"
|
|
38
|
+
class="button_spacing"
|
|
39
|
+
style="float: right">
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="row" v-if="$parent.$parent.$parent.criteriaShow">
|
|
44
|
+
<div class="col-sm-4 form-group">
|
|
45
|
+
<label class="font_normal_body">详细地址</label>
|
|
46
|
+
<input class="input_search"
|
|
47
|
+
condition="f_address like '%{}%'"
|
|
48
|
+
placeholder='详细地址'
|
|
49
|
+
style="width:60%"
|
|
50
|
+
type="text"
|
|
51
|
+
v-model="model.f_address">
|
|
52
|
+
</div>
|
|
53
|
+
<div class="col-sm-4 form-group">
|
|
54
|
+
<label class="font_normal_body">表 号</label>
|
|
55
|
+
<input class="input_search"
|
|
56
|
+
condition="f_meternumber ='{}'"
|
|
57
|
+
placeholder='表号'
|
|
58
|
+
style="width:60%"
|
|
59
|
+
type="text"
|
|
60
|
+
v-model="model.f_meternumber" />
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</criteria>
|
|
65
|
+
<data-grid :model="model" partial='list' style="overflow: auto"
|
|
66
|
+
class="list_area table_sy" v-ref:grid>
|
|
67
|
+
<template partial='head'>
|
|
68
|
+
<th>
|
|
69
|
+
<nobr>用户编号</nobr>
|
|
70
|
+
</th>
|
|
71
|
+
<th>
|
|
72
|
+
<nobr>用户姓名</nobr>
|
|
73
|
+
</th>
|
|
74
|
+
<th>
|
|
75
|
+
<nobr>表号</nobr>
|
|
76
|
+
</th>
|
|
77
|
+
<th>
|
|
78
|
+
<nobr>详细地址</nobr>
|
|
79
|
+
</th>
|
|
80
|
+
<th>
|
|
81
|
+
<nobr>气表品牌</nobr>
|
|
82
|
+
</th>
|
|
83
|
+
<th>
|
|
84
|
+
<nobr>气表型号</nobr>
|
|
85
|
+
</th>
|
|
86
|
+
<th>
|
|
87
|
+
<nobr>操作</nobr>
|
|
88
|
+
</th>
|
|
89
|
+
</template>
|
|
90
|
+
<template partial='body'>
|
|
91
|
+
<td style="text-align:center">
|
|
92
|
+
<nobr>{{ row.f_userinfo_code }}</nobr>
|
|
93
|
+
</td>
|
|
94
|
+
<td style="text-align:center">
|
|
95
|
+
<nobr>{{ row.f_user_name }}</nobr>
|
|
96
|
+
</td>
|
|
97
|
+
<td style="text-align:center">
|
|
98
|
+
<nobr>{{ row.f_meternumber }}</nobr>
|
|
99
|
+
</td>
|
|
100
|
+
<td style="text-align:center">
|
|
101
|
+
<nobr>{{ row.f_address }}</nobr>
|
|
102
|
+
</td>
|
|
103
|
+
<td style="text-align:center">
|
|
104
|
+
<nobr>{{ row.f_meter_brand }}</nobr>
|
|
105
|
+
</td>
|
|
106
|
+
<td style="text-align:center">
|
|
107
|
+
<nobr>{{ row.f_meter_style }}</nobr>
|
|
108
|
+
</td>
|
|
109
|
+
<td style="text-align:center">
|
|
110
|
+
<button type="button" name="button" class="button_search-2 button_spacing width-60"
|
|
111
|
+
@click.stop="$parent.$parent.$parent.$parent.confirm(row)">确认
|
|
112
|
+
</button>
|
|
113
|
+
</td>
|
|
114
|
+
</template>
|
|
115
|
+
<template partial='foot'></template>
|
|
116
|
+
</data-grid>
|
|
117
|
+
</criteria-paged>
|
|
118
|
+
</div>
|
|
119
|
+
</article>
|
|
120
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
121
|
+
</footer>
|
|
122
|
+
</modal>
|
|
123
|
+
</div>
|
|
124
|
+
</template>
|
|
125
|
+
|
|
126
|
+
<script>
|
|
127
|
+
import {PagedList} from 'vue-client'
|
|
128
|
+
|
|
129
|
+
export default {
|
|
130
|
+
data () {
|
|
131
|
+
return {
|
|
132
|
+
criteriaShow: false,
|
|
133
|
+
batchRowList: [],
|
|
134
|
+
selectRowLen: 0,
|
|
135
|
+
f_reason: '',
|
|
136
|
+
operateTitle: '',
|
|
137
|
+
selectRow: null,
|
|
138
|
+
operateShow: false,
|
|
139
|
+
showOptional: false,
|
|
140
|
+
batchUpdateAreaShow: false,
|
|
141
|
+
model: new PagedList('rs/sql/sale_getUnboundHostMeter', 20)
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
title: '添加总表用户档案列表',
|
|
145
|
+
props: ['show', 'f_filialeids'],
|
|
146
|
+
ready () {
|
|
147
|
+
this.search()
|
|
148
|
+
},
|
|
149
|
+
methods: {
|
|
150
|
+
confirm (row) {
|
|
151
|
+
console.log('选中总表档案了', row)
|
|
152
|
+
this.$dispatch('selectUser', row)
|
|
153
|
+
},
|
|
154
|
+
closeModal () {
|
|
155
|
+
this.show = false
|
|
156
|
+
},
|
|
157
|
+
hidden () {
|
|
158
|
+
this.criteriaShow = !this.criteriaShow
|
|
159
|
+
},
|
|
160
|
+
cancel () {
|
|
161
|
+
this.$dispatch('cancel')
|
|
162
|
+
},
|
|
163
|
+
search () {
|
|
164
|
+
this.$refs.paged.$refs.cri.search()
|
|
165
|
+
},
|
|
166
|
+
selfSearch (args) {
|
|
167
|
+
if (this.f_filialeids) {
|
|
168
|
+
args.condition = `${args.condition} and f_orgid = '${this.f_filialeids}'`
|
|
169
|
+
} else {
|
|
170
|
+
args.condition = `${args.condition} and f_orgid = '${this.$login.f.orgid}'`
|
|
171
|
+
}
|
|
172
|
+
this.model.search(args.condition, args.model)
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
events: {},
|
|
176
|
+
computed: {},
|
|
177
|
+
watch: {
|
|
178
|
+
'data' (val) {
|
|
179
|
+
if (val) {
|
|
180
|
+
this.search()
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
</script>
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="auto">
|
|
3
|
+
<modal :show.sync="show" v-ref:modal large backdrop="false">
|
|
4
|
+
<header slot="modal-header" class="modal-header">
|
|
5
|
+
<button type="button" class="close" @click="closeModal()"><span>×</span></button>
|
|
6
|
+
<h4 class="modal-title">添加分表</h4>
|
|
7
|
+
</header>
|
|
8
|
+
<article slot="modal-body" class="modal-body">
|
|
9
|
+
<div style="height: 600px">
|
|
10
|
+
<criteria-paged :model="model" v-ref:paged>
|
|
11
|
+
<criteria partial='criteria' @condition-changed='$parent.$parent.selfSearch' v-ref:cri>
|
|
12
|
+
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
|
|
13
|
+
<div class="row">
|
|
14
|
+
<div class="col-sm-4 form-group">
|
|
15
|
+
<label class="font_normal_body">客户编号</label>
|
|
16
|
+
<input type="text"
|
|
17
|
+
class="input_search"
|
|
18
|
+
style="width:60%"
|
|
19
|
+
v-model="model.f_userinfo_code"
|
|
20
|
+
condition="f_userinfo_code = '{}'"
|
|
21
|
+
placeholder="客户编号"/>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="col-sm-4 form-group">
|
|
24
|
+
<label class="font_normal_body">客户名称</label>
|
|
25
|
+
<input type="text"
|
|
26
|
+
class="input_search"
|
|
27
|
+
style="width:60%"
|
|
28
|
+
v-model="model.f_user_name"
|
|
29
|
+
condition="f_user_name like '%{}%'"
|
|
30
|
+
placeholder="客户名称"/>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div class="col-sm-4 form-group button-range">
|
|
34
|
+
<button class="button_search button_spacing" @click="search()">查询</button>
|
|
35
|
+
<div
|
|
36
|
+
:class="{'button_shrink_top':$parent.$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.$parent.criteriaShow}"
|
|
37
|
+
@click="$parent.$parent.$parent.hidden()"
|
|
38
|
+
class="button_spacing"
|
|
39
|
+
style="float: right">
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="row" v-if="$parent.$parent.$parent.criteriaShow">
|
|
44
|
+
<div class="col-sm-4 form-group">
|
|
45
|
+
<label class="font_normal_body">详细地址</label>
|
|
46
|
+
<input class="input_search"
|
|
47
|
+
condition="f_address like '%{}%'"
|
|
48
|
+
placeholder='详细地址'
|
|
49
|
+
style="width:60%"
|
|
50
|
+
type="text"
|
|
51
|
+
v-model="model.f_address">
|
|
52
|
+
</div>
|
|
53
|
+
<div class="col-sm-4 form-group">
|
|
54
|
+
<label class="font_normal_body">表 号</label>
|
|
55
|
+
<input class="input_search"
|
|
56
|
+
condition="f_meternumber ='{}'"
|
|
57
|
+
placeholder='表号'
|
|
58
|
+
style="width:60%"
|
|
59
|
+
type="text"
|
|
60
|
+
v-model="model.f_meternumber" />
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</criteria>
|
|
65
|
+
<data-grid :model="model" partial='list' :optional="true" style="overflow: auto"
|
|
66
|
+
class="list_area table_sy" v-ref:grid>
|
|
67
|
+
<template partial='head'>
|
|
68
|
+
<th>
|
|
69
|
+
<nobr>用户编号</nobr>
|
|
70
|
+
</th>
|
|
71
|
+
<th>
|
|
72
|
+
<nobr>用户姓名</nobr>
|
|
73
|
+
</th>
|
|
74
|
+
<th>
|
|
75
|
+
<nobr>表号</nobr>
|
|
76
|
+
</th>
|
|
77
|
+
<th>
|
|
78
|
+
<nobr>详细地址</nobr>
|
|
79
|
+
</th>
|
|
80
|
+
<th>
|
|
81
|
+
<nobr>气表品牌</nobr>
|
|
82
|
+
</th>
|
|
83
|
+
<th>
|
|
84
|
+
<nobr>气表型号</nobr>
|
|
85
|
+
</th>
|
|
86
|
+
</template>
|
|
87
|
+
<template partial='body'>
|
|
88
|
+
<td style="text-align:center">
|
|
89
|
+
<nobr>{{ row.f_userinfo_code }}</nobr>
|
|
90
|
+
</td>
|
|
91
|
+
<td style="text-align:center">
|
|
92
|
+
<nobr>{{ row.f_user_name }}</nobr>
|
|
93
|
+
</td>
|
|
94
|
+
<td style="text-align:center">
|
|
95
|
+
<nobr>{{ row.f_meternumber }}</nobr>
|
|
96
|
+
</td>
|
|
97
|
+
<td style="text-align:center">
|
|
98
|
+
<nobr>{{ row.f_address }}</nobr>
|
|
99
|
+
</td>
|
|
100
|
+
<td style="text-align:center">
|
|
101
|
+
<nobr>{{ row.f_meter_brand }}</nobr>
|
|
102
|
+
</td>
|
|
103
|
+
<td style="text-align:center">
|
|
104
|
+
<nobr>{{ row.f_meter_style }}</nobr>
|
|
105
|
+
</td>
|
|
106
|
+
</template>
|
|
107
|
+
<template partial='foot'></template>
|
|
108
|
+
</data-grid>
|
|
109
|
+
</criteria-paged>
|
|
110
|
+
</div>
|
|
111
|
+
</article>
|
|
112
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
113
|
+
<button type="button" class="btn btn-success" @click='confirm()'>确认添加到总表</button>
|
|
114
|
+
</footer>
|
|
115
|
+
</modal>
|
|
116
|
+
</div>
|
|
117
|
+
</template>
|
|
118
|
+
|
|
119
|
+
<script>
|
|
120
|
+
import {PagedList} from 'vue-client'
|
|
121
|
+
|
|
122
|
+
export default {
|
|
123
|
+
data () {
|
|
124
|
+
return {
|
|
125
|
+
criteriaShow: false,
|
|
126
|
+
batchRowList: [],
|
|
127
|
+
selectRowLen: 0,
|
|
128
|
+
f_reason: '',
|
|
129
|
+
operateTitle: '',
|
|
130
|
+
selectRow: null,
|
|
131
|
+
operateShow: false,
|
|
132
|
+
showOptional: false,
|
|
133
|
+
batchUpdateAreaShow: false,
|
|
134
|
+
model: new PagedList('rs/sql/sale_getHostMeterAllUser', 20)
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
title: '添加总表用户档案列表',
|
|
138
|
+
props: ['show', 'f_filialeids'],
|
|
139
|
+
ready () {
|
|
140
|
+
this.search()
|
|
141
|
+
},
|
|
142
|
+
methods: {
|
|
143
|
+
confirm () {
|
|
144
|
+
if (this.$refs.paged.$refs.grid.getRowData().length > 0) {
|
|
145
|
+
this.batchRowList = this.$refs.paged.$refs.grid.getRowData()
|
|
146
|
+
this.$dispatch('batchMove', this.batchRowList)
|
|
147
|
+
this.$refs.paged.$refs.grid.selectInit()
|
|
148
|
+
this.show = false
|
|
149
|
+
} else {
|
|
150
|
+
this.$showAlert('请至少选择一项!', 'warning', 2000)
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
closeModal () {
|
|
154
|
+
this.show = false
|
|
155
|
+
},
|
|
156
|
+
hidden () {
|
|
157
|
+
this.criteriaShow = !this.criteriaShow
|
|
158
|
+
},
|
|
159
|
+
cancel () {
|
|
160
|
+
this.$dispatch('cancel')
|
|
161
|
+
},
|
|
162
|
+
search () {
|
|
163
|
+
this.$refs.paged.$refs.cri.search()
|
|
164
|
+
},
|
|
165
|
+
selfSearch (args) {
|
|
166
|
+
if (this.f_filialeids) {
|
|
167
|
+
args.condition = `${args.condition} and f_orgid = '${this.f_filialeids}'`
|
|
168
|
+
} else {
|
|
169
|
+
args.condition = `${args.condition} and f_orgid = '${this.$login.f.orgid}'`
|
|
170
|
+
}
|
|
171
|
+
args.condition = `${args.condition} and (f_host_meter_id is null or f_host_meter_id = '')`
|
|
172
|
+
this.model.search(args.condition, args.model)
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
events: {},
|
|
176
|
+
computed: {},
|
|
177
|
+
watch: {
|
|
178
|
+
'data' (val) {
|
|
179
|
+
if (val) {
|
|
180
|
+
this.search()
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
</script>
|