manage-client 1.22.15-ca → 1.22.18-ca

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/.npmignore ADDED
@@ -0,0 +1,10 @@
1
+ src/bootstrap
2
+ .idea/
3
+ .DS_Store
4
+ node_modules/
5
+ dist/static/*.map
6
+ npm-debug.log
7
+ selenium-debug.log
8
+ test/unit/coverage
9
+ test/e2e/reports
10
+ yarn.locknp
@@ -0,0 +1 @@
1
+
package/client.iml CHANGED
@@ -1,15 +1,15 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="JAVA_MODULE" version="4">
3
- <component name="EclipseModuleManager">
4
- <conelement value="org.springsource.ide.eclipse.gradle.classpathcontainer" />
5
- <src_description expected_position="0" />
6
- </component>
7
- <component name="NewModuleRootManager">
8
- <output url="file://$MODULE_DIR$/bin" />
9
- <exclude-output />
10
- <content url="file://$MODULE_DIR$" />
11
- <orderEntry type="sourceFolder" forTests="false" />
12
- <orderEntry type="inheritedJdk" />
13
- <orderEntry type="library" exported="" name="org.springsource.ide.eclipse.gradle.classpathcontainer" level="application" />
14
- </component>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="JAVA_MODULE" version="4">
3
+ <component name="EclipseModuleManager">
4
+ <conelement value="org.springsource.ide.eclipse.gradle.classpathcontainer" />
5
+ <src_description expected_position="0" />
6
+ </component>
7
+ <component name="NewModuleRootManager">
8
+ <output url="file://$MODULE_DIR$/bin" />
9
+ <exclude-output />
10
+ <content url="file://$MODULE_DIR$" />
11
+ <orderEntry type="sourceFolder" forTests="false" />
12
+ <orderEntry type="inheritedJdk" />
13
+ <orderEntry type="library" exported="" name="org.springsource.ide.eclipse.gradle.classpathcontainer" level="application" />
14
+ </component>
15
15
  </module>
package/package.json CHANGED
@@ -1,96 +1,96 @@
1
- {
2
- "name": "manage-client",
3
- "version": "1.22.15-ca",
4
- "description": "经营管控模块前台组件",
5
- "main": "src/index.js",
6
- "directories": {
7
- "test": "test"
8
- },
9
- "dependencies": {},
10
- "devDependencies": {
11
- "babel-core": "^6.0.0",
12
- "babel-loader": "^6.0.0",
13
- "babel-plugin-transform-runtime": "^6.0.0",
14
- "babel-preset-es2015": "^6.0.0",
15
- "babel-preset-stage-2": "^6.0.0",
16
- "chai": "^3.5.0",
17
- "co": "^4.6.0",
18
- "connect-history-api-fallback": "^1.1.0",
19
- "cross-env": "^1.0.7",
20
- "cross-spawn": "^2.1.5",
21
- "css-loader": "^0.23.0",
22
- "echarts": "^4.1.0",
23
- "eslint": "^2.0.0",
24
- "eslint-config-standard": "^5.1.0",
25
- "eslint-friendly-formatter": "^1.2.2",
26
- "eslint-loader": "^1.3.0",
27
- "eslint-plugin-html": "^1.3.0",
28
- "eslint-plugin-promise": "^1.0.8",
29
- "eslint-plugin-standard": "^1.3.2",
30
- "eslint-plugin-vue": "^0.1.1",
31
- "eventsource-polyfill": "^0.9.6",
32
- "express": "^4.13.3",
33
- "extract-text-webpack-plugin": "^1.0.1",
34
- "file-loader": "^0.8.4",
35
- "function-bind": "^1.0.2",
36
- "html-webpack-plugin": "^2.8.1",
37
- "http-proxy-middleware": "^0.11.0",
38
- "inject-loader": "^2.0.1",
39
- "isparta-loader": "^2.0.0",
40
- "jasmine-core": "^2.4.1",
41
- "jquery": "^3.3.1",
42
- "json-loader": "^0.5.4",
43
- "karma": "^1.4.1",
44
- "karma-chrome-launcher": "^2.2.0",
45
- "karma-coverage": "^1.1.1",
46
- "karma-mocha": "^1.3.0",
47
- "karma-sinon-chai": "^1.3.1",
48
- "karma-sourcemap-loader": "^0.3.7",
49
- "karma-spec-reporter": "0.0.31",
50
- "karma-webpack": "^2.0.2",
51
- "less": "^2.7.3",
52
- "mkdirp": "^0.5.1",
53
- "mocha": "^3.2.0",
54
- "ncp": "^2.0.0",
55
- "rimraf": "^2.5.0",
56
- "sale-clients": "0.0.6",
57
- "selenium-server": "2.52.0",
58
- "sinon": "^2.1.0",
59
- "sinon-chai": "^2.8.0",
60
- "style": "0.0.3",
61
- "style-loader": "^0.20.3",
62
- "system-clients": "1.7.6",
63
- "url-loader": "^0.5.7",
64
- "vue-client": "^1.21.1",
65
- "vue-hot-reload-api": "^1.2.0",
66
- "vue-html-loader": "^1.0.0",
67
- "vue-loader": "8.2.1",
68
- "vue-resource": "^1.5.0",
69
- "vue-router": "^0.7.13",
70
- "vue-strap": "^1.0.9",
71
- "vue-style-loader": "^1.0.0",
72
- "vue-validator": "2.1.7",
73
- "webpack": "1.12.2",
74
- "webpack-dev-middleware": "^1.4.0",
75
- "webpack-hot-middleware": "^2.6.0",
76
- "webpack-merge": "^0.8.3"
77
- },
78
- "scripts": {
79
- "unit": "karma start test/unit/karma.conf.js --single-run",
80
- "example": "node build/example-server.js",
81
- "dev": "node build/dev-server.js",
82
- "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
83
- "build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
84
- "e2e": "node test/e2e/runner.js",
85
- "release": "bash build/release.sh"
86
- },
87
- "repository": {
88
- "type": "git",
89
- "url": "https://gitee.com/aote/management_modules.git"
90
- },
91
- "keywords": [
92
- "manage"
93
- ],
94
- "author": "liuxudong",
95
- "license": "ISC"
96
- }
1
+ {
2
+ "name": "manage-client",
3
+ "version": "1.22.18-ca",
4
+ "description": "经营管控模块前台组件",
5
+ "main": "src/index.js",
6
+ "directories": {
7
+ "test": "test"
8
+ },
9
+ "dependencies": {},
10
+ "devDependencies": {
11
+ "babel-core": "^6.0.0",
12
+ "babel-loader": "^6.0.0",
13
+ "babel-plugin-transform-runtime": "^6.0.0",
14
+ "babel-preset-es2015": "^6.0.0",
15
+ "babel-preset-stage-2": "^6.0.0",
16
+ "chai": "^3.5.0",
17
+ "co": "^4.6.0",
18
+ "connect-history-api-fallback": "^1.1.0",
19
+ "cross-env": "^1.0.7",
20
+ "cross-spawn": "^2.1.5",
21
+ "css-loader": "^0.23.0",
22
+ "echarts": "^4.1.0",
23
+ "eslint": "^2.0.0",
24
+ "eslint-config-standard": "^5.1.0",
25
+ "eslint-friendly-formatter": "^1.2.2",
26
+ "eslint-loader": "^1.3.0",
27
+ "eslint-plugin-html": "^1.3.0",
28
+ "eslint-plugin-promise": "^1.0.8",
29
+ "eslint-plugin-standard": "^1.3.2",
30
+ "eslint-plugin-vue": "^0.1.1",
31
+ "eventsource-polyfill": "^0.9.6",
32
+ "express": "^4.13.3",
33
+ "extract-text-webpack-plugin": "^1.0.1",
34
+ "file-loader": "^0.8.4",
35
+ "function-bind": "^1.0.2",
36
+ "html-webpack-plugin": "^2.8.1",
37
+ "http-proxy-middleware": "^0.11.0",
38
+ "inject-loader": "^2.0.1",
39
+ "isparta-loader": "^2.0.0",
40
+ "jasmine-core": "^2.4.1",
41
+ "jquery": "^3.3.1",
42
+ "json-loader": "^0.5.4",
43
+ "karma": "^1.4.1",
44
+ "karma-chrome-launcher": "^2.2.0",
45
+ "karma-coverage": "^1.1.1",
46
+ "karma-mocha": "^1.3.0",
47
+ "karma-sinon-chai": "^1.3.1",
48
+ "karma-sourcemap-loader": "^0.3.7",
49
+ "karma-spec-reporter": "0.0.31",
50
+ "karma-webpack": "^2.0.2",
51
+ "less": "^2.7.3",
52
+ "mkdirp": "^0.5.1",
53
+ "mocha": "^3.2.0",
54
+ "ncp": "^2.0.0",
55
+ "rimraf": "^2.5.0",
56
+ "sale-clients": "0.0.6",
57
+ "selenium-server": "2.52.0",
58
+ "sinon": "^2.1.0",
59
+ "sinon-chai": "^2.8.0",
60
+ "style": "0.0.3",
61
+ "style-loader": "^0.20.3",
62
+ "system-clients": "1.7.6",
63
+ "url-loader": "^0.5.7",
64
+ "vue-client": "^1.21.1",
65
+ "vue-hot-reload-api": "^1.2.0",
66
+ "vue-html-loader": "^1.0.0",
67
+ "vue-loader": "8.2.1",
68
+ "vue-resource": "^1.5.0",
69
+ "vue-router": "^0.7.13",
70
+ "vue-strap": "^1.0.9",
71
+ "vue-style-loader": "^1.0.0",
72
+ "vue-validator": "2.1.7",
73
+ "webpack": "1.12.2",
74
+ "webpack-dev-middleware": "^1.4.0",
75
+ "webpack-hot-middleware": "^2.6.0",
76
+ "webpack-merge": "^0.8.3"
77
+ },
78
+ "scripts": {
79
+ "unit": "karma start test/unit/karma.conf.js --single-run",
80
+ "example": "node build/example-server.js",
81
+ "dev": "node build/dev-server.js",
82
+ "lint": "eslint src/**.js test/e2e/**.js test/unit/specs/** build/**.js",
83
+ "build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
84
+ "e2e": "node test/e2e/runner.js",
85
+ "release": "bash build/release.sh"
86
+ },
87
+ "repository": {
88
+ "type": "git",
89
+ "url": "https://gitee.com/aote/management_modules.git"
90
+ },
91
+ "keywords": [
92
+ "manage"
93
+ ],
94
+ "author": "liuxudong",
95
+ "license": "ISC"
96
+ }
@@ -1,169 +1,169 @@
1
- <template >
2
- <div id="stand-work-list" class="flex bg-white p-10">
3
- <criteria-paged :model="model" v-ref:paged >
4
- <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row" width="100%">
7
- <div class="col-sm-4" >
8
- <label class="font_normal_body" style="width: 40%;">&nbsp;开始时间</label>
9
- <datepicker placeholder="起始时间" style="width:60%"
10
- :value.sync="model.f_start_date"
11
- v-model="model.f_start_date"
12
- :format="'yyyy-MM-dd'"
13
- condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')"
14
- ></datepicker>
15
- </div>
16
- <div class="col-sm-4" >
17
- <label class="font_normal_body" style="width: 40%;">结束时间</label>
18
- <datepicker placeholder="结束时间" style="width:60%"
19
- :value.sync="model.f_end_date"
20
- v-model="model.f_end_date"
21
- :format="'yyyy-MM-dd'"
22
- condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')"
23
- ></datepicker>
24
- </div>
25
- <div class=" col-sm-4">
26
- <label class="font_normal_body " style="width: 40%;" >售气公司</label>
27
- <v-select :value.sync="model.f_filiale"
28
- v-model="model.f_filiale"
29
- style="width:60%"
30
- :options='$parent.$parent.f_filiale' placeholder='请选择'
31
- condition="f_filiale = '{}'"
32
- close-on-select></v-select>
33
- <!--<input-->
34
- <!--type="text"-->
35
- <!--class="form-control" style="width: 60%"-->
36
- <!--v-model="model.f_filiale"-->
37
- <!--condition="f_filiale like '%{}%'"-->
38
- <!--placeholder="售气公司"-->
39
- <!--/>-->
40
- </div>
41
- <div class="col-sm-4">
42
- <label class="font_normal_body " style="width: 40%;">售气部门</label>
43
- <v-select :value.sync="model.f_outlets"
44
- v-model="model.f_outlets"
45
- style="width:60%"
46
- :options='$parent.$parent.selldep' placeholder='请选择'
47
- condition="f_outlets = '{}'"
48
- close-on-select></v-select>
49
- <!--<input-->
50
- <!--type="text"-->
51
- <!--class="form-control" style="width: 60%"-->
52
- <!--v-model="model.f_outlets"-->
53
- <!--condition="f_outlets like '%{}%'"-->
54
- <!--placeholder="售气部门"-->
55
- <!--/>-->
56
- </div>
57
- <div class="span" style="float:right;">
58
- <button class="btn btn-success" @click="search()" v-el:cba>查询</button>
59
- </div>
60
- </div>
61
- </div>
62
- </criteria>
63
- <data-grid :model="model" partial='list' v-ref:grid>
64
- <template partial='head'>
65
- <tr>
66
- <th><nobr>业务操作</nobr></th>
67
- <th><nobr>业务类型</nobr></th>
68
- <th><nobr>气量</nobr></th>
69
- <th><nobr>金额</nobr></th>
70
- <th><nobr>操作人</nobr></th>
71
- <th><nobr>操作站点</nobr></th>
72
- <th><nobr>操作时间</nobr></th>
73
- <th><nobr>售气公司</nobr></th>
74
- <th><nobr>售气部门</nobr></th>
75
- <!--<th><nobr>写卡状态</nobr></th>-->
76
- <!--<th><nobr>指令执行</nobr></th>-->
77
- <th><nobr>备注</nobr></th>
78
- </tr>
79
- </template>
80
- <template partial='body' partial='list' v-ref:grid>
81
- <tr >
82
- <td style="text-align:center">{{row.f_operat_type}}</td>
83
- <td style="text-align:center">{{row.type}}</td>
84
- <td style="text-align:center">{{row.gas}}</td>
85
- <td style="text-align:center">{{row.fee}}</td>
86
- <td style="text-align:center">{{row.f_operator}}</td>
87
- <td style="text-align:center">{{row.op_spot}}</td>
88
- <td style="text-align:center">{{row.f_operate_date}}</td>
89
- <td style="text-align:center">{{row.f_filiale}}</td>
90
- <td style="text-align:center">{{row.f_outlets}}</td>
91
- <td style="text-align:center">{{row.note}}</td>
92
- </tr>
93
- </template>
94
- <template partial='foot'></template>
95
- </data-grid>
96
- </criteria-paged>
97
- <table class="table-hover">
98
- <tr class="table-bordered">
99
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
100
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">换表后气量合计:&emsp;{{sumsmodel.gas1}}</td>
101
- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">换表后金额合计:&emsp;{{sumsmodel.fee}}</td>
102
- </tr>
103
- </table>
104
- </div>
105
- </template>
106
-
107
- <script>
108
- import {PagedList} from 'vue-client'
109
-
110
- export default {
111
- title: '流水查询',
112
- data () {
113
- return {
114
- condition: '1=1',
115
- f_filiale: this.$appdata.getParam('售气单位') ? [{label: '全部', value: ''},...this.$appdata.getParam('售气单位')] : [],
116
- model: new PagedList('rs/sql/sale_RecordQuery', 20,
117
- null,{gas1: 0,fee:0}),
118
- row: null,
119
- isdeal: true,
120
- show: false,
121
- sumsmodel: {}
122
- }
123
- },
124
- props:
125
- {
126
- searchdata: {},
127
- isdeal: {},
128
- args:{}
129
- },
130
- ready () {
131
- this.$refs.paged.$refs.criteria.search()
132
- },
133
- computed:{
134
- selldep () {
135
- let rs = []
136
- if(this.$refs.paged.$refs.criteria.model.f_filiale){
137
- this.$refs.paged.$refs.criteria.model.f_outlets = ''
138
- return [{label: '全部', value: ''}, ...this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_filiale) ]
139
- }
140
- else {
141
- return [{label: '全部', value: ''}]
142
- }
143
- },
144
- },
145
- methods: {
146
- search(args){
147
- if(this.args && this.args.model) {
148
- if(this.searchdata.f_user_id) {
149
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.searchdata.f_user_id}'`
150
- } else if(this.searchdata.f_card_id){
151
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_card_id = '${this.searchdata.f_card_id}'`
152
- }else if(this.searchdata.f_userinfo_id) {
153
- this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_userinfo_id = '${this.searchdata.f_userinfo_id}'`
154
- }else {
155
- return
156
- }
157
- this.model.search(this.condition, this.args.model)
158
- this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
159
- }
160
- }
161
- },
162
- watch:{
163
- args(val){
164
- this.search()
165
- }
166
- }
167
- }
168
- </script>
169
-
1
+ <template >
2
+ <div id="stand-work-list" class="flex bg-white p-10">
3
+ <criteria-paged :model="model" v-ref:paged >
4
+ <criteria partial='criteria' v-ref:criteria @condition-changed='$parent.search'>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row" width="100%">
7
+ <div class="col-sm-4" >
8
+ <label class="font_normal_body" style="width: 40%;">&nbsp;开始时间</label>
9
+ <datepicker placeholder="起始时间" style="width:60%"
10
+ :value.sync="model.f_start_date"
11
+ v-model="model.f_start_date"
12
+ :format="'yyyy-MM-dd'"
13
+ condition="f_operate_date >= to_date('{} 00:00:00','yyyy-mm-dd hh24:mi:ss')"
14
+ ></datepicker>
15
+ </div>
16
+ <div class="col-sm-4" >
17
+ <label class="font_normal_body" style="width: 40%;">结束时间</label>
18
+ <datepicker placeholder="结束时间" style="width:60%"
19
+ :value.sync="model.f_end_date"
20
+ v-model="model.f_end_date"
21
+ :format="'yyyy-MM-dd'"
22
+ condition="f_operate_date <= to_date('{} 23:59:59','yyyy-mm-dd hh24:mi:ss')"
23
+ ></datepicker>
24
+ </div>
25
+ <div class=" col-sm-4">
26
+ <label class="font_normal_body " style="width: 40%;" >售气公司</label>
27
+ <v-select :value.sync="model.f_filiale"
28
+ v-model="model.f_filiale"
29
+ style="width:60%"
30
+ :options='$parent.$parent.f_filiale' placeholder='请选择'
31
+ condition="f_filiale = '{}'"
32
+ close-on-select></v-select>
33
+ <!--<input-->
34
+ <!--type="text"-->
35
+ <!--class="form-control" style="width: 60%"-->
36
+ <!--v-model="model.f_filiale"-->
37
+ <!--condition="f_filiale like '%{}%'"-->
38
+ <!--placeholder="售气公司"-->
39
+ <!--/>-->
40
+ </div>
41
+ <div class="col-sm-4">
42
+ <label class="font_normal_body " style="width: 40%;">售气部门</label>
43
+ <v-select :value.sync="model.f_outlets"
44
+ v-model="model.f_outlets"
45
+ style="width:60%"
46
+ :options='$parent.$parent.selldep' placeholder='请选择'
47
+ condition="f_outlets = '{}'"
48
+ close-on-select></v-select>
49
+ <!--<input-->
50
+ <!--type="text"-->
51
+ <!--class="form-control" style="width: 60%"-->
52
+ <!--v-model="model.f_outlets"-->
53
+ <!--condition="f_outlets like '%{}%'"-->
54
+ <!--placeholder="售气部门"-->
55
+ <!--/>-->
56
+ </div>
57
+ <div class="span" style="float:right;">
58
+ <button class="btn btn-success" @click="search()" v-el:cba>查询</button>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </criteria>
63
+ <data-grid :model="model" partial='list' v-ref:grid>
64
+ <template partial='head'>
65
+ <tr>
66
+ <th><nobr>业务操作</nobr></th>
67
+ <th><nobr>业务类型</nobr></th>
68
+ <th><nobr>气量</nobr></th>
69
+ <th><nobr>金额</nobr></th>
70
+ <th><nobr>操作人</nobr></th>
71
+ <th><nobr>操作站点</nobr></th>
72
+ <th><nobr>操作时间</nobr></th>
73
+ <th><nobr>售气公司</nobr></th>
74
+ <th><nobr>售气部门</nobr></th>
75
+ <!--<th><nobr>写卡状态</nobr></th>-->
76
+ <!--<th><nobr>指令执行</nobr></th>-->
77
+ <th><nobr>备注</nobr></th>
78
+ </tr>
79
+ </template>
80
+ <template partial='body' partial='list' v-ref:grid>
81
+ <tr >
82
+ <td style="text-align:center">{{row.f_operat_type}}</td>
83
+ <td style="text-align:center">{{row.type}}</td>
84
+ <td style="text-align:center">{{row.gas}}</td>
85
+ <td style="text-align:center">{{row.fee}}</td>
86
+ <td style="text-align:center">{{row.f_operator}}</td>
87
+ <td style="text-align:center">{{row.op_spot}}</td>
88
+ <td style="text-align:center">{{row.f_operate_date}}</td>
89
+ <td style="text-align:center">{{row.f_filiale}}</td>
90
+ <td style="text-align:center">{{row.f_outlets}}</td>
91
+ <td style="text-align:center">{{row.note}}</td>
92
+ </tr>
93
+ </template>
94
+ <template partial='foot'></template>
95
+ </data-grid>
96
+ </criteria-paged>
97
+ <table class="table-hover">
98
+ <tr class="table-bordered">
99
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">汇总信息</td>
100
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">换表后气量合计:&emsp;{{sumsmodel.gas1}}</td>
101
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px">换表后金额合计:&emsp;{{sumsmodel.fee}}</td>
102
+ </tr>
103
+ </table>
104
+ </div>
105
+ </template>
106
+
107
+ <script>
108
+ import {PagedList} from 'vue-client'
109
+
110
+ export default {
111
+ title: '流水查询',
112
+ data () {
113
+ return {
114
+ condition: '1=1',
115
+ f_filiale: this.$appdata.getParam('售气单位') ? [{label: '全部', value: ''},...this.$appdata.getParam('售气单位')] : [],
116
+ model: new PagedList('rs/sql/sale_RecordQuery', 20,
117
+ null,{gas1: 0,fee:0}),
118
+ row: null,
119
+ isdeal: true,
120
+ show: false,
121
+ sumsmodel: {}
122
+ }
123
+ },
124
+ props:
125
+ {
126
+ searchdata: {},
127
+ isdeal: {},
128
+ args:{}
129
+ },
130
+ ready () {
131
+ this.$refs.paged.$refs.criteria.search()
132
+ },
133
+ computed:{
134
+ selldep () {
135
+ let rs = []
136
+ if(this.$refs.paged.$refs.criteria.model.f_filiale){
137
+ this.$refs.paged.$refs.criteria.model.f_outlets = ''
138
+ return [{label: '全部', value: ''}, ...this.$appdata.getParam(this.$refs.paged.$refs.criteria.model.f_filiale) ]
139
+ }
140
+ else {
141
+ return [{label: '全部', value: ''}]
142
+ }
143
+ },
144
+ },
145
+ methods: {
146
+ search(args){
147
+ if(this.args && this.args.model) {
148
+ if(this.searchdata.f_user_id) {
149
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_user_id = '${this.searchdata.f_user_id}'`
150
+ } else if(this.searchdata.f_card_id){
151
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_card_id = '${this.searchdata.f_card_id}'`
152
+ }else if(this.searchdata.f_userinfo_id) {
153
+ this.condition = `${this.$refs.paged.$refs.criteria.condition} and f_userinfo_id = '${this.searchdata.f_userinfo_id}'`
154
+ }else {
155
+ return
156
+ }
157
+ this.model.search(this.condition, this.args.model)
158
+ this.sumsmodel = this.$refs.paged.$refs.grid.model.sums
159
+ }
160
+ }
161
+ },
162
+ watch:{
163
+ args(val){
164
+ this.search()
165
+ }
166
+ }
167
+ }
168
+ </script>
169
+