manage-client 4.0.71 → 4.0.72

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.0.71",
3
+ "version": "4.0.72",
4
4
  "description": "经营管控模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -0,0 +1,169 @@
1
+ <template>
2
+ <div class="basic-main" style="height: 98%">
3
+ <criteria-paged :model="model" :pager='false' v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:criteria>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial >
6
+ <div class="row">
7
+ <div class="col-sm-2" >
8
+ <label class="font_normal_body" for="startDate">开始日期:</label>
9
+ <datepicker id="startDate" placeholder="开始日期" style="width: 60%"
10
+ v-model="model.startDate"
11
+ :value.sync="model.startDate"
12
+ :disabled-days-of-Week="[]"
13
+ :format="'yyyy-MM-dd HH:mm:ss'"
14
+ :show-reset-button="reset">
15
+ </datepicker>
16
+ </div>
17
+ <div class="col-sm-2" >
18
+ <label class="font_normal_body" for="endDate">结束日期:</label>
19
+ <datepicker id="endDate" placeholder="结束日期" style="width: 60%"
20
+ v-model="model.endDate"
21
+ :value.sync="model.endDate"
22
+ :disabled-days-of-Week="[]"
23
+ :format="'yyyy-MM-dd HH:mm:ss'"
24
+ :show-reset-button="reset">
25
+ </datepicker>
26
+ </div>
27
+ <div class="col-sm-2">
28
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;公司&nbsp;&nbsp;&nbsp; </label>
29
+ <right-tree @re-res="$parent.$parent.getRes"></right-tree>
30
+ </div>
31
+ <div class="col-sm-2">
32
+ <label class="font_normal_body">&nbsp;&nbsp;&nbsp;部门&nbsp;&nbsp;&nbsp; </label>
33
+ <res-select restype='department'
34
+ is-mul="false"
35
+ @res-select="$parent.$parent.getdep"
36
+ :parentresid="$parent.$parent.depresid"
37
+ :initresid='$parent.$parent.depid'>
38
+ </res-select>
39
+
40
+ </div>
41
+ </div>
42
+ <div class="span" style = "float:right;">
43
+ <button class="button_search" @click="$parent.$parent.searchData()">查询</button>
44
+ <report-print id='gasprice' top='1cm' left='0' width='100%' height='100%' :preview="true"></report-print>
45
+ <report-excel id='gasprice'></report-excel>
46
+ </div>
47
+ </div>
48
+ </criteria>
49
+ <div partial='list' v-el:handcollect id='gasprice' style="overflow-y: scroll">
50
+ <table class='tableprint' style="margin: 0px auto">
51
+ <thead>
52
+ <tr>
53
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: left;">
54
+ <h3 style="text-align: center">月报表</h3>
55
+ </th>
56
+ </tr>
57
+ <tr>
58
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
59
+ 开始时间:{{model.model.startDate}}&nbsp;&nbsp;&nbsp;
60
+ 结束时间:{{ model.model.endDate }}&nbsp;&nbsp;
61
+ 打印时间:{{{$parent.printTime}}}
62
+ </th>
63
+ </tr>
64
+ <tr>
65
+ <th :colspan='$parent.spans' style="font-weight: normal; text-align: center;">
66
+ <div>
67
+ <span v-show="$parent.orgname.trim()!=''">公司:{{$parent.orgname}}</span>
68
+ <span v-show="$parent.depname.trim()!=''"> 部门:{{$parent.depname}}</span>
69
+ <span v-show="$parent.operatorname.trim()!=''">人员:{{$parent.operatorname}}</span>
70
+ </div>
71
+ </th>
72
+ </tr>
73
+ </thead>
74
+ <tr>
75
+ <td :colspan='$parent.spans' class="noborder">
76
+ {{{ model.data.substring(26,model.data.length-8) }}}
77
+ </td>
78
+ </tr>
79
+ <tfoot>
80
+ <tr style="text-align: left">
81
+ <th :colspan='Math.floor($parent.spans/3)'>财务审核:</th>
82
+ <th :colspan='Math.floor($parent.spans/3)'>收款审核:</th>
83
+ <th :colspan='Math.floor($parent.spans/3)'>收款员:</th>
84
+ </tr>
85
+ </tfoot>
86
+ </table>
87
+ </div>
88
+ </criteria-paged>
89
+ </div>
90
+ </template>
91
+
92
+ <script>
93
+ import { DataModel } from 'vue-client'
94
+ import co from 'co'
95
+ export default {
96
+ title: '月报表',
97
+ props: ['data'],
98
+ data () {
99
+ return {
100
+ printTime: this.$login.toStandardTimeString(),
101
+ depresid: [],
102
+ userresid: [],
103
+ f_orgid: this.$login.f.orgid,
104
+ f_depid: this.$login.f.depids,
105
+ f_operatorid: this.$login.f.id,
106
+ operatorid: [],
107
+ depid: [],
108
+ orgname: '',
109
+ depname: '',
110
+ operatorname: '',
111
+ orgCondtionStr: '1=1',
112
+ model: new DataModel('api/af-revenue/report/by_MonthlyReport', {startDate: 'this.model.startDate', endDate: 'this.model.endDate',
113
+ f_orgid: 'this.model.f_orgid'}),
114
+ reportStr: null,
115
+ spans: 0
116
+ }
117
+ },
118
+ ready () {
119
+ this.$refs.paged.$refs.criteria.model.startDate = this.$login.toStandardDateString() + ' 00:00:00'
120
+ this.$refs.paged.$refs.criteria.model.endDate = this.$login.toStandardDateString() + ' 23:59:59'
121
+ },
122
+ methods: {
123
+ searchData () {
124
+ this.$refs.paged.$refs.criteria.search()
125
+ },
126
+ selfSearch (args) {
127
+ this.printTime = this.$login.toStandardTimeString()
128
+ let orgcondition = '1=1'
129
+ if (this.f_orgid && this.f_orgid[0]) {
130
+ orgcondition += ` and f_orgid in ('${this.f_orgid}')`
131
+ }
132
+ if (this.f_depid && this.f_depid[0]) {
133
+ orgcondition += ` and f_depid in ('${this.f_depid}')`
134
+ }
135
+ if(this.f_operatorid && this.f_operatorid[0]) {
136
+ orgcondition += ` and f_operatorid in ('${this.f_operatorid}')`
137
+ }
138
+ this.$refs.paged.$refs.criteria.model.f_orgid = orgcondition
139
+ this.$refs.paged.search(args)
140
+ },
141
+ getRes (obj) {
142
+ this.orgname = obj.res[0]
143
+ this.depresid = obj.resids
144
+ this.f_orgid = obj.resids
145
+ },
146
+ getdep (obj, val) {
147
+ this.depname = val[0]
148
+ this.userresid = obj
149
+ this.f_depid = obj
150
+ },
151
+ getuser ( obj, val) {
152
+ this.operatorname = val[0]
153
+ this.f_operatorid = obj
154
+ }
155
+ },
156
+ watch: {
157
+ 'model.data' (val) {
158
+ this.spans = val.split('</tr>').map(item => item.split('</td>').length-1).reduce((x, y) => x > y ? x : y)
159
+ }
160
+ },
161
+ computed: {
162
+ }
163
+ }
164
+ </script>
165
+ <style scoped>
166
+ .noborder{
167
+ border: none;
168
+ }
169
+ </style>
@@ -14,4 +14,8 @@ export default function () {
14
14
  Vue.component('manage-other-charge', (resolve) => {
15
15
  require(['./ManageOtherCharge'], resolve)
16
16
  })
17
+ // 月报表
18
+ Vue.component('monthly-report', (resolve) => {
19
+ require(['./MonthlyReport'], resolve)
20
+ })
17
21
  }