manage-client 4.1.140 → 4.1.141

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "manage-client",
3
- "version": "4.1.140",
3
+ "version": "4.1.141",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -26,30 +26,38 @@
26
26
  :show-reset-button="reset">
27
27
  </datepicker>
28
28
  </div>
29
- <res-select-group :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
30
- <div class="col-sm-3 form-group">
31
- <label class="font_normal_body" for="dep" >部&emsp;&emsp;门:</label>
32
- <v-select id="dep" style="width: 60%"
33
- :multiple="true"
34
- @change="$parent.$parent.getDep"
35
- :value.sync="model.f_depid"
36
- v-model="model.f_depid"
37
- :options='$parent.$parent.depresid' placeholder='请选择'
38
- condition="f_depid in {}">
39
- </v-select>
29
+ <res-select-user-group
30
+ :operator-initres="$parent.$parent.initres"
31
+ :user-initres="$parent.$parent.userInitres"
32
+ :show-component="['company','department','operator','slicearea','user_company','user_department']"
33
+ @re-res="$parent.$parent.getRes"
34
+ @re-us-res="$parent.$parent.getUserRes"
35
+ v-ref:usersel>
36
+ </res-select-user-group>
37
+ <!-- <res-select-group :show-component="['company']" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>-->
38
+ <!-- <div class="col-sm-3 form-group">-->
39
+ <!-- <label class="font_normal_body" for="dep" >部&emsp;&emsp;门:</label>-->
40
+ <!-- <v-select id="dep" style="width: 60%"-->
41
+ <!-- :multiple="true"-->
42
+ <!-- @change="$parent.$parent.getDep"-->
43
+ <!-- :value.sync="model.f_depid"-->
44
+ <!-- v-model="model.f_depid"-->
45
+ <!-- :options='$parent.$parent.depresid' placeholder='请选择'-->
46
+ <!-- condition="f_depid in {}">-->
47
+ <!-- </v-select>-->
40
48
 
41
- </div>
42
- <div class="col-sm-3 form-group">
43
- <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>
44
- <v-select id="oper" style="width: 60%"
45
- :multiple="true"
46
- @change="$parent.$parent.getOpe"
47
- :value.sync="model.f_operatorid"
48
- v-model="model.f_operatorid"
49
- :options='$parent.$parent.userresid' placeholder='请选择'
50
- condition="f_operatorid in {}">
51
- </v-select>
52
- </div>
49
+ <!-- </div>-->
50
+ <!-- <div class="col-sm-3 form-group">-->
51
+ <!-- <label class="font_normal_body" for="oper">人&emsp;&emsp;员:</label>-->
52
+ <!-- <v-select id="oper" style="width: 60%"-->
53
+ <!-- :multiple="true"-->
54
+ <!-- @change="$parent.$parent.getOpe"-->
55
+ <!-- :value.sync="model.f_operatorid"-->
56
+ <!-- v-model="model.f_operatorid"-->
57
+ <!-- :options='$parent.$parent.userresid' placeholder='请选择'-->
58
+ <!-- condition="f_operatorid in {}">-->
59
+ <!-- </v-select>-->
60
+ <!-- </div>-->
53
61
  <div class="col-sm-3 form-group">
54
62
  <label class="font_normal_body" title="参数:付款方式查询">付款方式</label>
55
63
  <v-select :value.sync="model.f_payment" multiple
@@ -83,9 +91,9 @@
83
91
  <tr>
84
92
  <th :colspan='$parent.tablen' style="font-weight: normal; text-align: center;">
85
93
  <div>
86
- <span v-show="$parent.orgname[0]">公司:{{$parent.orgname}}</span>
87
- <span v-show="$parent.depname[0]"> 部门:{{$parent.depname}}</span>
88
- <span v-show="$parent.operatorname[0]">人员:{{$parent.operatorname}}</span>
94
+ <span v-show="$parent.orgname[0]">操作人公司:{{$parent.orgname}}</span>
95
+ <span v-show="$parent.depname[0]"> 操作人部门:{{$parent.depname}}</span>
96
+ <span v-show="$parent.operatorname[0]">操作人:{{$parent.operatorname}}</span>
89
97
  </div>
90
98
  </th>
91
99
  </tr>
@@ -125,6 +133,7 @@
125
133
 
126
134
  <script>
127
135
  import {DataModel, HttpResetClass} from 'vue-client'
136
+ import ResSelectUserGroup from './ResSelectUserGroup.vue'
128
137
  import co from 'co'
129
138
  let saveFile = function * (self) {
130
139
  // 线验证文件是否重名
@@ -175,6 +184,9 @@ import {DataModel, HttpResetClass} from 'vue-client'
175
184
  export default {
176
185
  title: '营业厅收款结账单',
177
186
  props: ['data'],
187
+ components: {
188
+ 'res-select-user-group': ResSelectUserGroup
189
+ },
178
190
  data () {
179
191
  return {
180
192
  initres: {
@@ -182,6 +194,13 @@ import {DataModel, HttpResetClass} from 'vue-client'
182
194
  dep: [],
183
195
  user: []
184
196
  },
197
+ userInitres: {
198
+ org: [],
199
+ dep: [],
200
+ user: []
201
+ },
202
+ operatornames: [],
203
+ userOrgConditionStr: '1=1',
185
204
  printTime: this.$login.toStandardTimeString(),
186
205
  depresid: [],
187
206
  userresid: [],
@@ -195,8 +214,10 @@ import {DataModel, HttpResetClass} from 'vue-client'
195
214
  depname: '',
196
215
  operatorname: '',
197
216
  orgCondtionStr: '1=1',
217
+ userOrgname: '',
218
+ userDepname: '',
198
219
  model: new DataModel('api/af-revenue/report/DepPrick', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
199
- f_orgid: 'this.model.f_orgid'}),
220
+ f_orgid: 'this.model.f_orgid', u_orgid: 'this.model.u_orgid'}),
200
221
  reportStr: null,
201
222
  show: false,
202
223
  }
@@ -222,12 +243,14 @@ import {DataModel, HttpResetClass} from 'vue-client'
222
243
  selfSearch (args) {
223
244
  this.printTime = this.$login.toStandardTimeString()
224
245
  let orgcondition = '1=1'
246
+ let usercondition = '1=1'
225
247
  let orgstr = this.orgCondtionStr
226
248
  if (this.f_orgid[0]) {
227
249
  orgcondition += orgstr
228
250
  }
229
-
251
+ usercondition += this.userOrgConditionStr
230
252
  this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
253
+ this.$refs.paged.$refs.criteria.model.u_orgid = usercondition
231
254
  this.$refs.paged.search(args)
232
255
  },
233
256
  // 根据文件路径获取储存的报表内容
@@ -251,6 +274,12 @@ import {DataModel, HttpResetClass} from 'vue-client'
251
274
  this.orgCondtionStr = condition
252
275
  this.orgname = obj.orgnames[0]
253
276
  this.depname = obj.depnames[0]
277
+ this.operatorname = obj.operatornames[0]
278
+ },
279
+ getUserRes (condition, obj) {
280
+ this.userOrgname = obj.orgnames[0]
281
+ this.userDepname = obj.depnames[0]
282
+ this.userOrgConditionStr = condition
254
283
  },
255
284
  // 将报表保存成文件
256
285
  confirmReport () {