apply-clients 3.3.64 → 3.3.68

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.
@@ -1,237 +0,0 @@
1
- <template>
2
- <div class="form-horizontal select-overspread container-fluid row" style="overflow: scroll">
3
- <validator name='v'>
4
- <!-- 预约单信息 -->
5
- <div class="auto">
6
- <div class="col-sm-12 text-center bg-info pt-8">{{selectdata.f_ordertype}}</div>
7
- <div class="col-sm-6 form-group ">
8
- <label class="font_normal_body">预约来源</label>
9
- <input type="text" class="input_search" style="width: 60%" v-model="selectdata.f_order_source" readonly />
10
- </div>
11
- <div class="col-sm-6 form-group ">
12
- <label class="font_normal_body">处理状态</label>
13
- <input type="text" class="input_search" style="width: 60%" v-model="selectdata.f_orderstate" readonly />
14
- </div>
15
- <div class="col-sm-6 form-group ">
16
- <label class="font_normal_body">用户编号</label>
17
- <input type="text" class="input_search" style="width: 60%" v-model="selectdata.f_userinfo_code" readonly />
18
- </div>
19
- <div class="col-sm-6 form-group ">
20
- <label class="font_normal_body">用户姓名</label>
21
- <input type="text" class="input_search" style="width: 60%" v-model="selectdata.f_user_name" readonly />
22
- </div>
23
- <div class="col-sm-6 form-group ">
24
- <label class="font_normal_body">联系电话</label>
25
- <input type="text" class="input_search" style="width: 60%" v-model="selectdata.f_phone" readonly />
26
- </div>
27
- <div class="col-sm-6 form-group ">
28
- <label class="font_normal_body">预约时间</label>
29
- <input type="text" class="input_search" style="width: 60%" v-model="selectdata.f_orderdate" readonly />
30
- </div>
31
- <div class="col-sm-12 form-group ">
32
- <label class="font_normal_body">预约地址</label>
33
- <input type="text" class="input_search" style="width: 80%" v-model="selectdata.f_address" readonly />
34
- </div>
35
- <div class="col-sm-12 form-group ">
36
- <label class="font_normal_body">预约备注</label>
37
- <textarea
38
- readonly rows="2" style="width: 80%;"
39
- v-model="selectdata.f_orderremark"
40
- ></textarea>
41
- </div>
42
- <div class="col-sm-12" style="min-height: 200px;max-height: 300px;margin: 10px auto" v-if="selectdata.f_fileurl">
43
- <!-- <a href="http://192.168.20.27:8400/zhoukou-oracle/files/2021/9/17/fd2bd8dbe150f1c99d897f3c1ac1db45.jpg" target="_blank">-->
44
- <!-- <img style="min-height: 150px;max-height: 200px;" src="http://192.168.20.27:8400/zhoukou-oracle/files/2021/9/17/fd2bd8dbe150f1c99d897f3c1ac1db45.jpg">-->
45
- <!-- </a>-->
46
- <a :href="selectdata.f_fileurl" target="_blank">
47
- <img style="min-height: 150px;max-height: 200px;" :src="selectdata.f_fileurl">
48
- </a>
49
- <!-- <div class="col-sm-12 form-group" style="height: 200px!important;">-->
50
- <!-- <img style="margin: auto;height: 100%" :src="selectdata.f_fileurl">-->
51
- <!-- {{selectdata.f_fileurl}}-->
52
- </div>
53
- </div>
54
- <!-- 审核信息 -->
55
- <div class="auto" v-if="type === 'check' || selectdata.f_orderstate !== '待审核'">
56
- <div class="col-sm-12 text-center bg-info pt-8">审核信息</div>
57
- <div class="col-sm-6 form-group" :class="[$v.check.required ? 'has-error' : '']">
58
- <label class="font_normal_body">是否合格</label>
59
- <input type="text" v-show="false" v-validate:check = "['required']" v-model="check">
60
- <v-select
61
- v-model="check"
62
- :value.sync="check"
63
- :options='checkOptions'
64
- :value-single="true"
65
- class="select select_list"
66
- :search="false"
67
- width="60%" :disabled="type === 'process' || selectdata.f_orderstate !== '待审核'"
68
- close-on-select ></v-select>
69
- </div>
70
- <div class="col-sm-12 form-group ">
71
- <label class="font_normal_body">审核备注</label>
72
- <textarea
73
- rows="2" style="width: 80%;" :readonly="type === 'process' || selectdata.f_orderstate !== '待审核'"
74
- v-model="selectdata.f_check_remark"
75
- :value="selectdata.f_check_remark"
76
- ></textarea>
77
- </div>
78
- <div class="col-sm-6 form-group" v-if="type === 'process' || selectdata.f_orderstate !== '待审核'">
79
- <label class="font_normal_body">审&ensp;核&ensp;人</label>
80
- <input type="text" class="input_search" style="width: 60%" v-model="selectdata.f_check_user" readonly />
81
- </div>
82
- <div class="col-sm-6 form-group" v-if="type === 'process' || selectdata.f_orderstate !== '待审核'">
83
- <label class="font_normal_body">审核时间</label>
84
- <input type="text" class="input_search" style="width: 60%" v-model="selectdata.f_check_date" readonly />
85
- </div>
86
- </div>
87
- <!-- 项目信息 -->
88
- <div class="auto" v-if="selectdata.f_ordertype !== '预约点火' && (type === 'process' || selectdata.f_orderstate === '预约成功')">
89
- <div class="col-sm-12 text-center bg-info pt-8">项目信息</div>
90
- <div class="col-sm-6 form-group" v-if="selectdata.f_ordertype === '预约报装'" :class="[$v.f_apply_type.required ? 'has-error' : '']">
91
- <label class="font_normal_body">报建类型</label>
92
- <input type="text" v-show="false" v-validate:f_apply_type = "['required']" v-model="apply.f_apply_type">
93
- <v-select
94
- v-model="apply.f_apply_type"
95
- :value.sync="apply.f_apply_type"
96
- :options='applyType'
97
- :value-single="true"
98
- class="select select_list"
99
- :search="false"
100
- width="60%" :disabled="selectdata.f_orderstate === '预约成功'"
101
- close-on-select ></v-select>
102
- </div>
103
- <div class="col-sm-6 form-group" v-if="selectdata.f_ordertype === '预约改管'">
104
- <label class="font_normal_body">报建类型</label>
105
- <input type="text" class="input_search" style="width: 60%" v-model="apply.f_apply_type" value="改管报建" readonly />
106
- </div>
107
- <div class="col-sm-6 form-group" v-if="selectdata.f_ordertype === '预约增容'">
108
- <label class="font_normal_body">报建类型</label>
109
- <input type="text" class="input_search" style="width: 60%" v-model="apply.f_apply_type" value="增容报建" readonly />
110
- </div>
111
- <div class="col-sm-6 form-group" v-if="selectdata.f_orderstate === '预约成功'">
112
- <label class="font_normal_body">办&ensp;理&ensp;人</label>
113
- <input type="text" class="input_search" style="width: 60%" v-model="selectdata.f_dispose_operator" readonly />
114
- </div>
115
- <div class="col-sm-6 form-group" v-if="selectdata.f_orderstate === '预约成功'">
116
- <label class="font_normal_body">办理时间</label>
117
- <input type="text" class="input_search" style="width: 60%" v-model="selectdata.f_disposedate" readonly />
118
- </div>
119
- </div>
120
-
121
- <div class="col-sm-12 text-right button-range auto" style="margin-top: 10px">
122
- <button class="button_search button_spacing" :disabled='!$v.valid'
123
- v-if="type !== 'view' && selectdata.f_orderstate === '待审核'"
124
- @click="checkOrder()">保存</button>
125
- <button class="button_search button_spacing" :disabled='!$v.valid'
126
- v-if="type !== 'view' && selectdata.f_orderstate === '待处理'"
127
- @click="batchApply()">保存</button>
128
- <button class="button_clear button_spacing" @click="cancel()">取消</button>
129
- </div>
130
- </validator>
131
- </div>
132
- </template>
133
- <script>
134
- import Vue from 'vue'
135
- import {HttpResetClass} from 'vue-client'
136
- export default {
137
- title: '预约详情',
138
- props: ['selectdata', 'type'],
139
- data () {
140
- return {
141
- showRight: false,
142
- selectdata: null,
143
- checkOptions: [
144
- {
145
- label: '是',
146
- value: '是'
147
- },
148
- {
149
- label: '否',
150
- value: '否'
151
- }
152
- ],
153
- check: null,
154
- apply: {}
155
- }
156
- },
157
- async ready () {
158
- if (this.selectdata.f_orderstate === '待处理' || this.selectdata.f_orderstate === '预约成功') {
159
- this.check = '是'
160
- }
161
- if (this.selectdata.f_orderstate === '预约失败') {
162
- this.check = '否'
163
- }
164
- if (this.selectdata.f_orderstate === '预约成功') {
165
- let data = {
166
- tablename: 't_apply',
167
- condition: `f_process_id = '${this.selectdata.f_process_id}'`
168
- }
169
- let res = await this.$resetpost(
170
- `rs/sql/singleTable`,
171
- {data: data},
172
- {resolveMsg: null, rejectMsg: '所属项目查询失败!!!'}
173
- )
174
-
175
- this.apply = {
176
- f_entry_name: res.data[0].f_entry_name,
177
- f_apply_type: res.data[0].f_apply_type
178
- }
179
- }
180
- },
181
- methods: {
182
- async batchApply () {
183
- let data = {
184
- selectdata: this.selectdata,
185
- apply: this.apply,
186
- user: this.$login.f
187
- }
188
-
189
- let res = await this.$resetpost(
190
- `rs/logic/initiateOrderApply`,
191
- data,
192
- {resolveMsg: null,rejectMsg: '预约单处理失败!!!'}
193
- )
194
-
195
- this.cancel()
196
- },
197
- async checkOrder () {
198
- let data = {
199
- selectdata: this.selectdata,
200
- check: this.check,
201
- user: this.$login.f
202
- }
203
-
204
- let res = await this.$resetpost(
205
- `rs/logic/checkOrder`,
206
- data,
207
- {resolveMsg: null,rejectMsg: '预约单审核处理失败!!!'}
208
- )
209
-
210
- this.cancel()
211
- },
212
- cancel () {
213
- this.$dispatch('search')
214
- }
215
- },
216
- events: {
217
- },
218
- computed: {
219
- applyType () {
220
- return this.$appdata.getParam("报建类型").filter(item => {
221
- return item.label === '工商户报建' || item.label === '散户报建'
222
- })
223
- }
224
- },
225
- watch: {
226
- }
227
- }
228
- </script>
229
- <style scoped>
230
- input[readonly],textarea[readonly] {
231
- border: 1px solid #DDD!important;
232
- color:#ACA899!important;
233
- }
234
- textarea {
235
- padding: 2px;
236
- }
237
- </style>