manage-client 3.2.80 → 3.2.81
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 +1 -1
- package/src/components/SellReport/ReportComponrnt/TieAnAccount.vue +26 -27
- package/src/components/SellReport/SellDepReport.vue +47 -44
- package/src/components/sale/businessquery/CollectManage.vue +3 -0
- package/src/components/sale/businessquery/HandplanQuery.vue +1332 -1327
- package/src/components/sale/businessquery/UnhandBusiness.vue +324 -0
- package/src/filiale/qianneng/ChargeQuery.vue +1289 -0
- package/src/filiale/qianneng/HandplanQuery.vue +1344 -0
- package/src/filiale/qianneng/OtherChargeQuery.vue +13 -1
- package/src/filiale/qianneng/exportConfig.js +34 -0
- package/src/filiale/qianneng/sale.js +3 -1
- package/src/saleManage.js +2 -0
package/package.json
CHANGED
|
@@ -103,40 +103,36 @@
|
|
|
103
103
|
<validator name='v'>
|
|
104
104
|
<form class="form-horizontal select-overspread">
|
|
105
105
|
<div class="row">
|
|
106
|
-
<div v-for="(key, value) in org" v-if ="value.trim()!=''" class="col-sm-
|
|
107
|
-
<label class="font_normal_body">{{ key == 'f_orgname' ? '
|
|
106
|
+
<div v-for="(key, value) in org" v-if ="value.trim()!=''" class="col-sm-4 form-group">
|
|
107
|
+
<label class="font_normal_body">{{ key == 'f_orgname' ? '    公司' : key == 'f_depname' ? '    部门' : '    人员' }}</label>
|
|
108
108
|
<input type="text" style="width:60%" class="input_search" :value="value"
|
|
109
109
|
disabled="disabled">
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
112
112
|
<div class="row">
|
|
113
113
|
<div class="col-sm-4 form-group" v-for="item in affirmDate">
|
|
114
|
-
<label class="
|
|
114
|
+
<label class="font_normal_body">    {{item.name}}</label>
|
|
115
115
|
<input type="text" style="width:60%" class="input_search" :value="item.val"
|
|
116
116
|
disabled="disabled">
|
|
117
117
|
</div>
|
|
118
|
-
</div>
|
|
119
|
-
<div class="row">
|
|
120
118
|
<div class="col-sm-4 form-group" >
|
|
121
|
-
<label class="
|
|
119
|
+
<label class="font_normal_body" for="startDate">上次扎帐日期</label>
|
|
122
120
|
<datepicker id="startDate" placeholder="上次扎帐日期" style="width: 60%"
|
|
123
121
|
v-model="startDate"
|
|
124
122
|
:value.sync="startDate"
|
|
125
123
|
:disabled-days-of-Week="[]"
|
|
126
|
-
:format="'yyyy-MM-dd'"
|
|
124
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
127
125
|
:disabled="true"
|
|
128
126
|
:show-reset-button="reset">
|
|
129
127
|
</datepicker>
|
|
130
128
|
</div>
|
|
131
|
-
</div>
|
|
132
|
-
<div class="row" >
|
|
133
129
|
<div class="col-sm-4 form-group" >
|
|
134
|
-
<label class="
|
|
130
|
+
<label class="font_normal_body" for="endDate">本次扎帐日期</label>
|
|
135
131
|
<datepicker id="endDate" placeholder="本次扎帐日期" style="width: 60%"
|
|
136
132
|
v-model="endDate"
|
|
137
|
-
:value.sync="endDate
|
|
133
|
+
:value.sync="endDate"
|
|
138
134
|
:disabled-days-of-Week="[]"
|
|
139
|
-
:format="'yyyy-MM-dd'"
|
|
135
|
+
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
140
136
|
:disabled="true"
|
|
141
137
|
:show-reset-button="reset">
|
|
142
138
|
</datepicker>
|
|
@@ -144,26 +140,23 @@
|
|
|
144
140
|
</div>
|
|
145
141
|
<div class="row">
|
|
146
142
|
<div class="col-sm-4 form-group" >
|
|
147
|
-
<label class="
|
|
143
|
+
<label class="font_normal_body"> 系统总金额</label>
|
|
148
144
|
<input type="text" style="width:60%" class="input_search" v-model="reportstr"
|
|
149
145
|
disabled="disabled" placeholder="系统金额">
|
|
150
146
|
</div>
|
|
151
|
-
</div>
|
|
152
|
-
<div class="row">
|
|
153
147
|
<div class="col-sm-4 form-group" >
|
|
154
|
-
<label class="
|
|
148
|
+
<label class="font_normal_body"> 扎帐总金额</label>
|
|
155
149
|
<input type="text" style="width:60%" class="input_search" v-model="f_fee"
|
|
156
150
|
placeholder="扎帐金额">
|
|
157
151
|
</div>
|
|
158
|
-
</div
|
|
152
|
+
</div>
|
|
159
153
|
<div class="row">
|
|
160
154
|
<div class="col-sm-11 form-group">
|
|
161
|
-
<label class="
|
|
162
|
-
<textarea style="resize:none;width:
|
|
155
|
+
<label class="font_normal_body"><nobr>    备注</nobr></label>
|
|
156
|
+
<textarea style="resize:none;width:95%;" class="input_search"
|
|
163
157
|
v-model='f_remarks' ></textarea>
|
|
164
158
|
</div>
|
|
165
159
|
</div>
|
|
166
|
-
|
|
167
160
|
</form>
|
|
168
161
|
</validator>
|
|
169
162
|
</article>
|
|
@@ -275,6 +268,9 @@ export default {
|
|
|
275
268
|
let querys= await this.$resetpost('rs/sql/PrickBillQuery?pageNo=1&pageSize=7',
|
|
276
269
|
{data:{condition:condition}},{resolveMsg:null,rejectMsg:'查询出错'})
|
|
277
270
|
this.models.rows = querys.data
|
|
271
|
+
if (querys.data.length === 0){
|
|
272
|
+
this.$dispatch('update', '')
|
|
273
|
+
}
|
|
278
274
|
},
|
|
279
275
|
history() {
|
|
280
276
|
this.isHistory = !this.isHistory
|
|
@@ -293,7 +289,9 @@ export default {
|
|
|
293
289
|
{data:data},
|
|
294
290
|
{resolveMsg:null,rejectMsg:null}).then(res =>{
|
|
295
291
|
switch (res.data) {
|
|
296
|
-
case 200 :
|
|
292
|
+
case 200 :
|
|
293
|
+
this.$showAlert('撤销成功', 'success', 3000)
|
|
294
|
+
this.getStartDate()
|
|
297
295
|
this.isHistory = !this.isHistory
|
|
298
296
|
break
|
|
299
297
|
case 201 : this.$showAlert('撤销失败', 'warning', 3000)
|
|
@@ -345,6 +343,7 @@ export default {
|
|
|
345
343
|
}
|
|
346
344
|
// 本部门只能扎本部门的
|
|
347
345
|
if (this.config.isDepname && this.f_depname !== this.org.f_depname) {
|
|
346
|
+
console.log('本公司只能扎本部门的', this.config.isDepname, this.f_depname, this.org.f_depname[0])
|
|
348
347
|
this.$showAlert('禁止跨部门扎帐', 'warning', 4000)
|
|
349
348
|
return
|
|
350
349
|
}
|
|
@@ -376,21 +375,18 @@ export default {
|
|
|
376
375
|
let rep = this.rep
|
|
377
376
|
let moneys = val.toString().match(regex)
|
|
378
377
|
let titles = val.toString().match(this.titRegex)
|
|
379
|
-
console.log('---titles---|||||||', titles)
|
|
380
378
|
if (titles && titles.length > 0) {
|
|
381
379
|
for (let i = 0; i < titles.length; i++) {
|
|
382
380
|
let name = titles[i].toString().replace(rep, '').trim()
|
|
383
381
|
let value = moneys[i].toString().replace(rep, '').trim()
|
|
384
382
|
item.push({name: name, val: value})
|
|
385
383
|
}
|
|
386
|
-
console.log('=======itme==========>>>>>>>', item)
|
|
387
384
|
}
|
|
388
385
|
this.tieData = item
|
|
389
386
|
},
|
|
390
387
|
sumMoney (obj, conf) {
|
|
391
388
|
this.affirmDate = obj.filter(x => conf.includes(x.name))
|
|
392
389
|
let option = obj.filter(x => conf.includes(x.name)).map(x => parseFloat(x.val)).reduce((x, y) => x + y, 0)
|
|
393
|
-
console.log('>>>>', option)
|
|
394
390
|
return option.toFixed(2)
|
|
395
391
|
},
|
|
396
392
|
|
|
@@ -430,12 +426,13 @@ export default {
|
|
|
430
426
|
}
|
|
431
427
|
info.saveData.push(xx)
|
|
432
428
|
}
|
|
433
|
-
console.log('xxzz', info)
|
|
434
429
|
let HttpReset = new HttpResetClass()
|
|
435
430
|
HttpReset.load('POST', 'rs/logic/SaveTieAnAccount', info,
|
|
436
431
|
{resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
437
432
|
switch (res.data) {
|
|
438
|
-
case 200 :
|
|
433
|
+
case 200 :
|
|
434
|
+
this.$showAlert('保存成功', 'success', 3000)
|
|
435
|
+
this.getStartDate()
|
|
439
436
|
break
|
|
440
437
|
case 201 : this.$showAlert('重复扎帐', 'warning', 3000)
|
|
441
438
|
break
|
|
@@ -484,7 +481,9 @@ export default {
|
|
|
484
481
|
},
|
|
485
482
|
'models.rows' (val) {
|
|
486
483
|
if (val && val.length > 0) {
|
|
487
|
-
this.startDate = val.map(x => x.f_end_date
|
|
484
|
+
this.startDate = val.map(x => x.f_end_date)[0].toString() // 获取 上次扎帐时间
|
|
485
|
+
console.log('opopopopopo:', this.startDate)
|
|
486
|
+
this.$dispatch('update', this.startDate)
|
|
488
487
|
}
|
|
489
488
|
}
|
|
490
489
|
},
|
|
@@ -6,17 +6,18 @@
|
|
|
6
6
|
<div class="form-group" v-if="!$parent.$parent.data.f_files_path"></div>
|
|
7
7
|
<div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
|
|
8
8
|
<div class="row">
|
|
9
|
-
<div class="col-sm-
|
|
9
|
+
<div class="col-sm-2" >
|
|
10
10
|
<label class="font_normal_body" for="startDate">开始日期:</label>
|
|
11
11
|
<datepicker id="startDate" placeholder="开始日期" style="width: 60%"
|
|
12
12
|
v-model="model.startDate"
|
|
13
13
|
:value.sync="model.startDate"
|
|
14
14
|
:disabled-days-of-Week="[]"
|
|
15
15
|
:format="'yyyy-MM-dd HH:mm:ss'"
|
|
16
|
-
:show-reset-button="reset"
|
|
16
|
+
:show-reset-button="reset"
|
|
17
|
+
:disabled="$parent.$parent.noshow">
|
|
17
18
|
</datepicker>
|
|
18
19
|
</div>
|
|
19
|
-
<div class="col-sm-
|
|
20
|
+
<div class="col-sm-2" >
|
|
20
21
|
<label class="font_normal_body" for="endDate">结束日期:</label>
|
|
21
22
|
<datepicker id="endDate" placeholder="结束日期" style="width: 60%"
|
|
22
23
|
v-model="model.endDate"
|
|
@@ -26,34 +27,21 @@
|
|
|
26
27
|
:show-reset-button="reset">
|
|
27
28
|
</datepicker>
|
|
28
29
|
</div>
|
|
29
|
-
<div class="col-sm-
|
|
30
|
-
<label class="font_normal_body"
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
is-mul="false"
|
|
37
|
-
@res-select="$parent.$parent.getdep"
|
|
38
|
-
:parentresid="$parent.$parent.depresid"
|
|
39
|
-
:initresid='$parent.$parent.depid' >
|
|
40
|
-
</res-select>
|
|
41
|
-
|
|
42
|
-
</div>
|
|
43
|
-
<div class="col-sm-4 form-group">
|
|
44
|
-
<label class="font_normal_body" for="oper">人  员:</label>
|
|
45
|
-
<res-select id="oper" restype='user' style="width: 60%"
|
|
46
|
-
is-mul="false"
|
|
47
|
-
@res-select="$parent.$parent.getuser"
|
|
48
|
-
:parentresid="$parent.$parent.userresid"
|
|
49
|
-
:initresid='$parent.$parent.operatorid'>
|
|
50
|
-
</res-select>
|
|
30
|
+
<div class="col-sm-2">
|
|
31
|
+
<label class="font_normal_body" title="参数:付款方式查询">付款方式:</label>
|
|
32
|
+
<v-select :value.sync="model.f_payment" multiple
|
|
33
|
+
v-model="model.f_payment"
|
|
34
|
+
:options='$parent.$parent.payment' placeholder='请选择'
|
|
35
|
+
condition="f_payment in {}"
|
|
36
|
+
close-on-select></v-select>
|
|
51
37
|
</div>
|
|
38
|
+
<res-select-group :show-component="$parent.$parent.resshow" :selectin="true" :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
|
|
52
39
|
</div>
|
|
53
40
|
<div class="span" style = "float:right;">
|
|
54
41
|
<button class="button_search" @click="$parent.$parent.searchData()">查询</button>
|
|
55
42
|
<tie-an-account v-if="this.$login.r.includes('报表扎帐')"
|
|
56
43
|
:org="$parent.$parent.org"
|
|
44
|
+
@update="$parent.$parent.update"
|
|
57
45
|
:model="$parent.$parent.data"
|
|
58
46
|
:fee-str="$parent.model.data"
|
|
59
47
|
:end-date="model.endDate" ></tie-an-account>
|
|
@@ -161,6 +149,7 @@
|
|
|
161
149
|
f_operator: ''
|
|
162
150
|
},
|
|
163
151
|
tablen:0,
|
|
152
|
+
noshow: false,
|
|
164
153
|
datas: '',
|
|
165
154
|
orgname: '',
|
|
166
155
|
depname: '',
|
|
@@ -169,12 +158,19 @@
|
|
|
169
158
|
model: new DataModel('rs/report/sellDepReport', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
|
|
170
159
|
f_orgid: 'this.model.f_orgid'}),
|
|
171
160
|
reportStr: null,
|
|
161
|
+
resshow:['company','department','operator'],
|
|
172
162
|
show: false,
|
|
163
|
+
spans: 0,
|
|
164
|
+
initres: {
|
|
165
|
+
org: [this.$login.f.orgid],
|
|
166
|
+
dep: [],
|
|
167
|
+
user: []
|
|
168
|
+
}
|
|
173
169
|
}
|
|
174
170
|
},
|
|
175
171
|
ready () {
|
|
176
|
-
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
177
|
-
this.$refs.paged.$refs.criteria.model.endDate = this.$login.
|
|
172
|
+
// this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
173
|
+
this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardTimeString()
|
|
178
174
|
console.log(this.$login.f)
|
|
179
175
|
},
|
|
180
176
|
methods: {
|
|
@@ -182,30 +178,34 @@
|
|
|
182
178
|
this.$refs.paged.$refs.criteria.search()
|
|
183
179
|
},
|
|
184
180
|
selfSearch (args) {
|
|
185
|
-
|
|
186
181
|
this.printTime = this.$login.toStandardTimeString()
|
|
187
182
|
let orgcondition = '1=1'
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
if(this.f_operatorid[0]) {
|
|
195
|
-
orgcondition += ' and f_operatorid in (' + this.f_operatorid + ')'
|
|
196
|
-
}
|
|
197
|
-
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
|
|
183
|
+
let orgstr = this.orgCondtionStr
|
|
184
|
+
this.org.f_depname = this.depname
|
|
185
|
+
this.org.f_operator = this.operatorname
|
|
186
|
+
orgcondition = orgcondition + orgstr
|
|
187
|
+
this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition + ' and ' + this.$refs.paged.$refs.criteria.condition
|
|
198
188
|
this.$refs.paged.search(args)
|
|
199
189
|
},
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
190
|
+
update (val) {
|
|
191
|
+
if (val !== ''){
|
|
192
|
+
this.$refs.paged.$refs.criteria.model.startDate = val
|
|
193
|
+
this.noshow = true
|
|
194
|
+
} else {
|
|
195
|
+
this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
|
|
196
|
+
this.noshow = false
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
getRes (condition, obj) {
|
|
200
|
+
this.orgCondtionStr = condition
|
|
201
|
+
this.org.f_orgname = obj.orgnames[0]
|
|
202
|
+
this.orgname = obj.orgnames[0]
|
|
203
|
+
this.depname = obj.depnames[0]
|
|
204
|
+
this.operatorname = obj.operatornames[0]
|
|
205
205
|
},
|
|
206
206
|
getdep (obj, val) {
|
|
207
207
|
this.org.f_depname = this.depname = val[0]
|
|
208
|
-
|
|
208
|
+
this.userresid = obj
|
|
209
209
|
this.f_depid = obj
|
|
210
210
|
},
|
|
211
211
|
getuser ( obj, val) {
|
|
@@ -256,6 +256,9 @@
|
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
computed: {
|
|
259
|
+
payment() {
|
|
260
|
+
return [...this.$appdata.getParam('付款方式查询')]
|
|
261
|
+
}
|
|
259
262
|
}
|
|
260
263
|
}
|
|
261
264
|
</script>
|
|
@@ -84,6 +84,9 @@
|
|
|
84
84
|
<tabs header="操作员日结列表" v-if="permission('操作员日结列表')">
|
|
85
85
|
<proceeds-oper v-if="show.includes('操作员日结列表')" @deal-msg="dealMsg"></proceeds-oper>
|
|
86
86
|
</tabs>
|
|
87
|
+
<tabs header="未抄表用户报表" v-if="permission('未抄表用户报表')">
|
|
88
|
+
<unhand-business @deal-msg="dealMsg"></unhand-business>
|
|
89
|
+
</tabs>
|
|
87
90
|
</tab-button>
|
|
88
91
|
|
|
89
92
|
</template>
|