apply-clients 7.1.11 → 7.1.15

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.
@@ -0,0 +1,242 @@
1
+ <template>
2
+ <div class="col-sm-12">
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria partial='criteria' @condition-changed='search' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <!-- <div class="form-group col-sm-3">-->
8
+ <!-- <label class="font_normal_body">组织机构:</label>-->
9
+ <!-- <res-select-->
10
+ <!-- restype='organization'-->
11
+ <!-- :initresid='$parent.$parent.curorgid'-->
12
+ <!-- @res-select="$parent.$parent.getorg"-->
13
+ <!-- is-mul="false"-->
14
+ <!-- ></res-select>-->
15
+ <!-- </div>-->
16
+ <div class="form-group col-sm-3">
17
+ <label class="font_normal_body">项目名称:</label>
18
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_entry_name"
19
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_entry_name like '%{}%'" placeholder='项目名称'>
20
+ </div>
21
+ <div class="form-group col-sm-3">
22
+ <label class="font_normal_body">办卡状态:</label>
23
+ <v-select
24
+ v-model="model.f_whether_hairpin"
25
+ placeholder='办卡状态'
26
+ condition="f_whether_hairpin like '%{}%'"
27
+ :value.sync="model.f_whether_hairpin"
28
+ :options='$parent.$parent.orderState'
29
+ class="select select_list"
30
+ :value-single="true"
31
+ close-on-select ></v-select>
32
+ </div>
33
+ <div class="form-group col-sm-3">
34
+ <label class="font_normal_body">报建类型:</label>
35
+ <v-select
36
+ placeholder='报建类型'
37
+ v-model="model.f_apply_type"
38
+ :value.sync="model.f_apply_type"
39
+ condition="f_apply_type like '%{}%'"
40
+ :options='$parent.$parent.applyType'
41
+ class="select select_list"
42
+ :value-single="true"
43
+ close-on-select ></v-select>
44
+ </div>
45
+ <div class="form-group col-sm-2 button-range">
46
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
47
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
48
+ </div>
49
+ </div>
50
+ <div class="row" v-show="$parent.$parent.criteriaShow">
51
+
52
+ <div class="form-group col-sm-3">
53
+ <label class="font_normal_body">客户名称:</label>
54
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
55
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_name like '%{}%'" placeholder='客户名称'>
56
+ </div>
57
+ <div class="form-group col-sm-3">
58
+ <label class="font_normal_body">联系电话:</label>
59
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_phone"
60
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_user_phone like '%{}%'" placeholder='联系电话'>
61
+ </div>
62
+ <div class="form-group col-sm-3">
63
+ <label class="font_normal_body">详细地址:</label>
64
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
65
+ v-on:keyup.enter="$parent.$parent.search()" condition="f_address like '%{}%'" placeholder='详细地址'>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ </criteria>
70
+ <data-grid :model="model" partial='list' v-ref:grid class="list_area table_sy">
71
+ <template partial='head'>
72
+ <tr>
73
+ <!-- <th style="white-space: nowrap;">选择</th>-->
74
+ <th style="white-space: nowrap;">序号</th>
75
+ <th style="white-space: nowrap;">项目名称</th>
76
+ <th style="white-space: nowrap;">报建类型</th>
77
+ <th style="white-space: nowrap;">办卡状态</th>
78
+ <th style="white-space: nowrap;">客户编号</th>
79
+ <th style="white-space: nowrap;">客户名称</th>
80
+ <th style="white-space: nowrap;">联系电话</th>
81
+ <th style="white-space: nowrap;">地址</th>
82
+ <th style="white-space: nowrap;">证件类型</th>
83
+ <th style="white-space: nowrap;">证件号码</th>
84
+ <!-- <th style="white-space: nowrap;">详细信息</th>-->
85
+ </tr>
86
+ </template>
87
+ <template partial='body'>
88
+ <tr>
89
+ <!-- <td style="text-align: center;">-->
90
+ <!-- <input type='checkbox' style="width: 22px;height: 22px;"-->
91
+ <!-- v-if="$parent.$parent.$parent.showCheck(row)"-->
92
+ <!-- :checked="$parent.$parent.$parent.ischecked(row)"-->
93
+ <!-- @change="$parent.$parent.$parent.selectOne(row)"/>-->
94
+ <!-- </td>-->
95
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
96
+ <nobr>{{$index+1}}</nobr>
97
+ </td>
98
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
99
+ <nobr>{{row.f_entry_name}}</nobr>
100
+ </td>
101
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
102
+ <nobr>{{row.f_apply_type}}</nobr>
103
+ </td>
104
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
105
+ <nobr>{{row.f_whether_hairpin}}</nobr>
106
+ </td>
107
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
108
+ <nobr>{{row.f_userinfo_code}}</nobr>
109
+ </td>
110
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
111
+ <nobr>{{row.f_user_name}}</nobr>
112
+ </td>
113
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
114
+ <nobr>{{row.f_user_phone}}</nobr>
115
+ </td>
116
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
117
+ <nobr>{{row.f_address}}</nobr>
118
+ </td>
119
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
120
+ <nobr>{{row.f_credentials}}</nobr>
121
+ </td>
122
+ <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">
123
+ <nobr>{{row.f_idnumber}}</nobr>
124
+ </td>
125
+ <!-- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">-->
126
+ <!-- <nobr>{{row.bz}}</nobr>-->
127
+ <!-- </td>-->
128
+ <!-- <td style="text-align: center;" @click="$parent.$parent.$parent.selectOne(row)">-->
129
+ <!-- <nobr>{{row.f_orderstate}}</nobr>-->
130
+ <!-- </td>-->
131
+ <!-- <td style="text-align: center;">-->
132
+ <!-- <button class="button_search button_spacing width-60" @click="$parent.$parent.$parent.viewOrder(row)">查看</button>-->
133
+ <!-- </td>-->
134
+ </tr>
135
+ </template>
136
+ </data-grid>
137
+ </criteria-paged>
138
+ </div>
139
+ </template>
140
+ <script>
141
+ import {PagedList} from 'vue-client'
142
+ export default {
143
+ title: '通气点火报表',
144
+ // props: ['showData'],
145
+ data () {
146
+ return {
147
+ model: new PagedList('rs/sql/getGasInfo', 20, {
148
+ data: {
149
+ f_orgids: this.$login.f.f_orgids
150
+ }
151
+ }),
152
+ // curorgid: [this.$login.f.f_orgids],
153
+ criteriaShow: false,
154
+ selectedData: [],
155
+ orderState: [
156
+ {'label': '未发', 'value': '未发'},
157
+ {'label': '已发', 'value': '已发'},
158
+ {'label': '无卡', 'value': '无卡'},
159
+ {'label': '正常', 'value': '正常'}
160
+ ],
161
+ applyType: [
162
+ {'label': '散户集体报装', 'value': '散户集体报装'},
163
+ {'label': '开发商集体报装', 'value': '开发商集体报装'},
164
+ {'label': '工商户报装', 'value': '工商户报装'}
165
+ ],
166
+ userNature: [
167
+ {'label': '民用', 'value': '民用'},
168
+ {'label': '非民用', 'value': '非民用'}
169
+ ]
170
+ }
171
+ },
172
+ ready () {
173
+ // 调用查询
174
+ this.search()
175
+ },
176
+ events: {
177
+ },
178
+ methods: {
179
+ // viewOrder (row) {
180
+ // this.$dispatch('viewOrder', row)
181
+ // },
182
+ // handleOrder (type) {
183
+ // if (this.selectedData.length > 1) {
184
+ // this.$showMessage('选择数量只能为1个,请重新选择后在试!')
185
+ // } else {
186
+ // this.$dispatch('handleOrder', type, this.selectedData)
187
+ // }
188
+ // },
189
+ // 选择
190
+ // selectOne (row) {
191
+ // if (row.f_orderstate === '预约成功' || row.f_orderstate === '预约失败') {
192
+ // return
193
+ // }
194
+ // if (this.selectedData.length > 0 && this.selectedData[0].f_orderstate !== row.f_orderstate) {
195
+ // return
196
+ // }
197
+ // if (this.ischecked(row)) {
198
+ // this.selectedData.splice(this.selectedData.indexOf(row),1)
199
+ // } else {
200
+ // this.selectedData.push(row)
201
+ // }
202
+ // },
203
+ // 查询
204
+ search () {
205
+ this.$refs.cp.$refs.cri.search()
206
+ },
207
+ clear () {
208
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
209
+ this.$refs.cp.$refs.cri.model[key] = null
210
+ })
211
+ },
212
+ getorg (val) {
213
+ if (val.length <= 0) {
214
+ return
215
+ }
216
+ this.model.params.data.f_orgids = val[0]
217
+ }
218
+ },
219
+ computed: {
220
+ // 是否显示
221
+ showCheck () {
222
+ return function (row) {
223
+ if (row.f_orderstate === '预约成功' || row.f_orderstate === '预约失败') {
224
+ return false
225
+ }
226
+ if (!this.selectedData.length > 0) {
227
+ return true
228
+ }
229
+ return this.selectedData[0].f_orderstate === row.f_orderstate
230
+ }
231
+ },
232
+ // 检查是否选中
233
+ ischecked () {
234
+ return function (row) {
235
+ return this.selectedData.includes(row)
236
+ }
237
+ }
238
+ }
239
+ }
240
+ </script>
241
+ <style scoped>
242
+ </style>