apply-clients 6.0.1 → 6.0.4

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.
Files changed (43) hide show
  1. package/build/dev-server.js +72 -72
  2. package/package.json +1 -1
  3. package/src/apply.js +219 -219
  4. package/src/components/apply/base/rightview/InstallCardList2.vue +267 -268
  5. package/src/components/apply/base/rightview/carddetail/BuildFeeDetail2.vue +77 -77
  6. package/src/components/apply/base/rightview/carddetail/ChangeFeeDetail2.vue +116 -116
  7. package/src/components/apply/base/rightview/carddetail/ReduceFeeDetail2.vue +77 -77
  8. package/src/components/build/Install/ExplorationSelect.vue +308 -308
  9. package/src/components/build/Install/ExplorationUser.vue +315 -315
  10. package/src/components/build/Install/InstallFee/AddContract.vue +257 -257
  11. package/src/components/build/Install/InstallFee/InstallFee.vue +929 -929
  12. package/src/components/build/Install/InstallFee/InstallInfoSelect.vue +232 -232
  13. package/src/components/build/Install/InstallFee/PreparationFee.vue +223 -223
  14. package/src/components/build/Install/InstallFee/PrestoreFee.vue +630 -630
  15. package/src/components/build/Install/Process/CustomerBuildingMessage.vue +251 -251
  16. package/src/components/build/Install/Process/CustomerEquipmentMessage.vue +172 -172
  17. package/src/components/build/Install/Process/CustomerEssentialInfo.vue +1 -1
  18. package/src/components/build/Install/Process/CustomerFile.vue +423 -423
  19. package/src/components/build/Install/Process/CustomerMaterialMessage.vue +414 -414
  20. package/src/components/build/Install/Process/CustomerRecordMessage.vue +10 -10
  21. package/src/components/build/Install/Process/FeeNormeAndContratSigne.vue +376 -376
  22. package/src/components/build/Install/Process/MeterType.vue +379 -379
  23. package/src/components/build/Install/Process/PlaceControler.vue +304 -304
  24. package/src/components/build/Install/Process/boneng/qbj_placecontroler.vue +1 -1
  25. package/src/components/build/Install/Process/zhongran/ZR_Construction.vue +388 -388
  26. package/src/components/build/Install/Process/zhongran/ZR_CustomerEssentialInfo.vue +1 -1
  27. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlan.vue +259 -259
  28. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlanExamine.vue +243 -243
  29. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler.vue +426 -426
  30. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler_print.vue +187 -187
  31. package/src/components/build/Install/Process/zhongran/ZR_TestDesign.vue +441 -441
  32. package/src/components/build/Install/ProcessInfo/ApplyRecordCancel.vue +135 -135
  33. package/src/components/build/Install/bill/BillGZKMakeInfo.vue +58 -58
  34. package/src/components/build/Install/bill/BillQRKMakeInfo.vue +79 -79
  35. package/src/components/build/Install/bill/BillXSDMakeInfo.vue +206 -206
  36. package/src/components/build/Install/monitor/SupervisoryControl.vue +178 -178
  37. package/src/main.js +25 -25
  38. package/.gradle/3.5.1/file-changes/last-build.bin +0 -0
  39. package/.gradle/3.5.1/taskHistory/taskHistory.lock +0 -0
  40. package/.gradle/buildOutputCleanup/built.bin +0 -0
  41. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  42. package/.gradle/buildOutputCleanup/cache.properties.lock +0 -1
  43. package/yarn.lock +0 -8074
@@ -1,304 +1,304 @@
1
- <template xmlns="http://www.w3.org/1999/xhtml" xmlns:v-validate="http://www.w3.org/1999/xhtml">
2
- <div class="auto" style="overflow: hidden">
3
- <div class="panel panel-info">
4
- <div class="panel-heading">
5
- <h3 class="panel-title">现场勘探</h3>
6
- </div>
7
- </div>
8
- <validator name="v">
9
- <form class="form-horizontal">
10
- <div class="form-group col-sm-11">
11
- <div class="form-group col-sm-4" :class="[$v.f_install_num.required ? 'has-error':'']">
12
- <label for="f_install_num" class=" col-sm-6 control-label">实际可安装用户:</label>
13
- <div class="col-sm-6" id="f_install_num">
14
- <input class="form-control" type="text" v-model="model.f_install_num"
15
- v-validate:f_install_num='{required: true}'>
16
- </div>
17
- </div>
18
- <div class="form-group col-sm-4" :class="[$v.f_payfee_num.required ? 'has-error':'']">
19
- <label for="f_payfee_num" class=" col-sm-6 control-label">缴费户数:</label>
20
- <div class="col-sm-6" id="f_payfee_num">
21
- <input class="form-control" type="text" v-model="model.f_payfee_num"
22
- v-validate:f_payfee_num='{required: true}'>
23
- </div>
24
- </div>
25
- <div class="form-group col-sm-4" :class="[$v.gastype.required ? 'has-error select-error' : '' ]">
26
- <label for="f_gas_type" class="col-sm-6 control-label">用气类型:</label>
27
- <div class="col-sm-6" id="f_gas_type">
28
- <input type="text" v-show="false" v-model="$refs.gastype.value[0]" v-validate:gastype='{required: true}'/>
29
- <v-select :is-all-line="true" v-ref:gastype
30
- v-model="model.f_gas_type"
31
- placeholder="全部"
32
- :value.sync="model.f_gas_type"
33
- :options='fgastype'
34
- close-on-select>
35
- </v-select>
36
- </div>
37
- </div>
38
- </div>
39
- <div class="col-sm-11">
40
- <div class="form-group col-sm-4" :class="[$v.surveyname.required ? 'select-error has-error' : '']">
41
- <label for="f_meter_brand" class="col-sm-6 control-label">勘查人员:</label>
42
- <div class="col-sm-6" id="f_survey_name">
43
- <input type="text" v-show="false" v-model="$refs.surveyname.value[0]"
44
- v-validate:surveyname='{required: true}'>
45
- <v-select :is-all-line="true" v-ref:surveyname
46
- v-model="model.f_survey_name"
47
- placeholder="全部"
48
- :value.sync="model.f_survey_name"
49
- :options='fsurveyname'
50
- close-on-select>
51
- </v-select>
52
- <!--<select v-model="employeetemplate" class="form-control">-->
53
- <!--<option v-if="employeetemplate" :value="employeetemplate" selected>{{employeetemplate}}</option>-->
54
- <!--<option v-else selected value="">请选择</option>-->
55
- <!--<option :value="coupon.value" v-for="coupon in employees">{{coupon.lable}}</option>-->
56
- <!--</select>-->
57
-
58
- </div>
59
- </div>
60
- <div class="form-group col-sm-4" :class="[$v.surveytime.required ? 'has-error' : '']">
61
- <label for="f_survey_time" class="col-sm-6 control-label">勘查日期:</label>
62
- <div class="col-sm-6" id="f_survey_time">
63
- <input type="text" v-show="false" v-model="$refs.surveytime.value"
64
- v-validate:surveytime='{required: true}'/>
65
- <datepicker id="f_survey_time" width="200.72px;" v-ref:surveytime
66
- :value.sync="model.f_survey_time"
67
- :disabled-days-of-Week="[]"
68
- :format="'yyyy-MM-dd'"
69
- v-model="model.f_survey_time"
70
- :show-reset-button="reset" readonly="readonly">
71
- </datepicker>
72
- </div>
73
- </div>
74
- <div class="form-group col-sm-4">
75
- <div class="col-sm-3"></div>
76
- <div class="col-sm-6">
77
- <input type="checkbox" class="" id="checkbox" v-model="model.f_isdesign"
78
- v-validate:f_isdesign='{required: true }'/>
79
- <label for="checkbox" class="font-size">是否设计出图</label>
80
- </div>
81
- </div>
82
- </div>
83
- <div class="form-group col-sm-11">
84
- <label class="col-sm-2" for="f_survey_remarks">勘查意见:</label>
85
- <div class="col-sm-10" id="f_survey_remarks">
86
- <textarea class="form-control" v-model="model.f_survey_remarks" rows="3"></textarea>
87
- </div>
88
- </div>
89
- <div class="form-group col-sm-11">
90
- <div class="form-group col-sm-6">
91
- <label for="f_survey_departmen" class=" col-sm-4 control-label">部门:</label>
92
- <div class="col-sm-6" id="f_survey_departmen">
93
- <input class="form-control" type="text" v-model="model.f_survey_department" disabled>
94
- </div>
95
- </div>
96
- <div class="form-group col-sm-6">
97
- <label for="f_survey_operator" class="col-sm-6 control-label">执行人:</label>
98
- <div class="col-sm-6" id="f_survey_operator">
99
- <input class="form-control" type="text" v-model="model.f_survey_operator" disabled>
100
- </div>
101
- </div>
102
- <!--<div class="form-group col-sm-3 form-input-group">-->
103
- <!--<label class="control-label">派发给:</label>-->
104
- <!--<div class="col-sm-5">-->
105
-
106
- <!--</div>-->
107
- <!--</div>-->
108
- </div>
109
- <div class="form-group col-sm-11">
110
- <div class="form-group col-sm-6">
111
- <label class=" col-sm-4 control-label" for="f_filiale">分公司:</label>
112
- <div class="col-sm-6" id="f_filiale">
113
- <input class="form-control" type="text" v-model="model.f_filiale" disabled>
114
- </div>
115
- </div>
116
- <div class="form-group col-sm-6">
117
- <label class=" col-sm-6 control-label">操作日期:</label>
118
- <div class="col-sm-6" id="f_survey_date">
119
- <input class="form-control" type="text" v-model="model.f_survey_date" disabled>
120
- </div>
121
- </div>
122
- </div>
123
- </form>
124
- </validator>
125
- <div class="from-group col-sm-11">
126
- <center>
127
- <button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:40px;">
128
- 保存
129
- </button>
130
- <button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:40px;">
131
- 提交
132
- </button>
133
- <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
134
- 取消
135
- </button>
136
- </center>
137
- </div>
138
- </div>
139
- </template>
140
- <script>
141
- import co from 'co'
142
- import {HttpResetClass} from 'vue-client'
143
- import * as Util from '../../../Util'
144
- let gen = function* (self, val) {
145
- val.f_survey_name = self.employeetemplate // 勘察人员保存
146
- val.f_sub_state = ''
147
- val.f_temp_date = Util.toStandardTimeString()
148
- val.f_gas_type = val.f_gas_type[0] ? val.f_gas_type[0] : ''
149
- val.f_gas_type = val.f_survey_name[0] ? val.f_survey_name[0] : ''
150
- let data ={
151
- tablename:'t_apply',
152
- parameters:val
153
- }
154
- yield self.$resetpost('rs/logic/save', {data:data})
155
- data = {
156
- model: {
157
- f_processid: self.selectdata.f_process_id,
158
- },
159
- loginUser: {
160
- id: self.$login.f.id,
161
- name: self.$login.f.name,
162
- ename: self.$login.f.ename
163
- },
164
- employeetemplate: self.employeetemplate,// 指派勘察人员
165
- subdep: '提交'
166
- }
167
- self.$resetpost(`rs/logic/grantnext`,
168
- {data: data})
169
- .then(() => {
170
- self.reset()
171
- })
172
- }
173
- export default {
174
- title: '现场勘探',
175
- data() {
176
- return {
177
- fgastype: this.$appdata.getParam('用气类型'),
178
- fsurveyname : this.$appdata.getParam('勘查人员'),
179
- employees: [], // 部门人员数组
180
- employeetemplate: '', // 选定部门人员
181
- model: {
182
- f_filiale: this.$login.f.f_filiale,
183
- f_survey_date: Util.toStandardTimeString(),
184
- f_survey_department: this.$login.f.f_parentname,
185
- f_survey_operator: this.$login.f.name
186
- }
187
- }
188
- },
189
- props: ['selectdata'],
190
- ready() {
191
- this.selectdata.f_gas_type = this.selectdata.f_gas_type ? [this.selectdata.f_gas_type] : this.model.f_gas_type
192
- this.selectdata.f_survey_name = this.selectdata.f_survey_name ? [this.selectdata.f_survey_name] : this.model.f_survey_name
193
- this.model = Object.assign({}, this.model, this.selectdata)
194
- // this.loademployees() // 获取派发人
195
- // this.$nextTick(() => {
196
- // this.setselect()
197
- // })
198
- },
199
- methods: {
200
- // 退回则默认值为已存储的人
201
- toemployees() {
202
- if (this.temploader == '技术组长' && this.model.f_survey_name) {
203
- this.employeetemplate = this.model.f_survey_name
204
- }
205
- },
206
- // 获取部门领导角色
207
- async loademployees() {
208
- let http = new HttpResetClass()
209
- if (this.selectdata.actdefid != '1') {
210
- await http.load('POST','rs/sql/singleTable', {
211
- data: {
212
- tablename: 't_actorperson',
213
- condition: " userseq='" + this.$login.f.id + "' order by id desc"
214
- }
215
- }, {resolveMsg: null, rejectMsg: "角色人员是(登陆人)信息查询失败"}, {silent: true})
216
- .then((res) => {
217
- console.log("取得部门领导的角色" + res.data[0].actorid)
218
- if (res.data[0].actorid.startsWith("R") && (res.data[0].actorid.includes("部门负责人") || res.data[0].actorid.includes("部经理")|| res.data[0].actorid.includes("部门领导") || res.data[0].actorid.includes("部负责人") || res.data[0].actorid.includes("部领导")||res.data[0].actorid.includes("组长"))) {
219
- let loaderstr = res.data[0].actorid.substring(2, res.data[0].actorid.length - 1)
220
- this.temploader = loaderstr
221
- // 如果是退回的就用已经保存的人员,保证下发的是同一个人
222
- this.toemployees()
223
- let loademployeestr = null
224
- if (loaderstr.includes("部门")) {
225
- loademployeestr = 'R(' + loaderstr.split("部门")[0] + '部门人员)'
226
- } else if (loaderstr.includes("部")) {
227
- loademployeestr = 'R(' + loaderstr.split("部")[0] + '部人员)'
228
- } else if (loaderstr.includes("组长")) {
229
- loademployeestr = 'R(' + loaderstr.split("组长")[0] + '人员)'
230
- }
231
- console.log(loademployeestr)
232
- let http2 = new HttpResetClass()
233
- http2.load('POST','rs/sql/singleTable', {
234
- data: {
235
- tablename: 't_role',
236
- condition: " name='" + loademployeestr.substring(2, loademployeestr.length - 1) + "'"
237
- // condition: " name='" + loaderstr.split("部")[0] + '部人员' + "'"
238
- }
239
- }, {resolveMsg: null, rejectMsg: "角色人员(部门人员)id信息查询失败"}, {silent: true}).then((res) => {
240
- console.log("取得角色人员(部门人员)id" + JSON.stringify(res.data[0].id))
241
- let strid = res.data[0].id
242
- let http3 = new HttpResetClass()
243
- http3.load('POST','rs/sql/singleTable', {
244
- data: {
245
- tablename: 't_user',
246
- condition: "roles like '%" + strid + "%'"
247
- }
248
- }, {resolveMsg: null, rejectMsg: "角色人员(部门人员)信息查询失败"}, {silent: true}).then((res) => {
249
- console.log("角色人员(部门人员)信息成功")
250
- for (var i = 0; i < res.data.length; i++) {
251
- this.employees.push({lable: res.data[i].name, value: res.data[i].name})
252
- }
253
- })
254
- })
255
- }
256
- })
257
- }
258
- },
259
- confirm() {
260
- // this.model.f_sub_state = '完成'
261
- this.model.f_gas_type = this.model.f_gas_type[0] ? this.model.f_gas_type[0] : ''
262
- // this.model.f_survey_name = this.employeetemplate?this.employeetemplate:''
263
- let data ={
264
- tablename:'t_apply',
265
- parameters:this.model
266
- }
267
- this.$resetpost('rs/logic/save', {data:data})
268
- .then(() => {
269
- this.reset()
270
- })
271
- },
272
- commit() {
273
- // if(this.employeetemplate){
274
- let getGen = gen(this, this.model)
275
- co(getGen)
276
- // }else {
277
- // this.$showMessage("请选择被派发人")
278
- // }
279
-
280
- },
281
- reset() {
282
- this.$dispatch('close')
283
- this.$dispatch('selfsearch')
284
- },
285
- setselect() {
286
- this.selectdata.f_gas_type = this.selectdata.f_gas_type ? this.selectdata.f_gas_type : this.model.f_gas_type
287
- // if (!this.selectdata.f_gas_type)
288
- // this.selectdata.f_gas_type = this.model.f_gas_type
289
- this.selectdata.f_survey_name = this.selectdata.f_survey_name ? this.selectdata.f_survey_name : this.model.f_survey_name
290
- this.model = Object.assign({}, this.model, this.selectdata)
291
- this.model.f_survey_date = this.$login.toStandardDateString()
292
- this.model.f_survey_department = this.$login.f.f_parentname
293
- this.model.f_survey_operator = this.$login.f.name
294
- }
295
- },
296
- watch: {
297
- // 'selectdata'() {
298
- // // this.$nextTick(() => {
299
- // this.setselect()
300
- // // })
301
- // }
302
- }
303
- }
304
- </script>
1
+ <template xmlns="http://www.w3.org/1999/xhtml" xmlns:v-validate="http://www.w3.org/1999/xhtml">
2
+ <div class="auto" style="overflow: hidden">
3
+ <div class="panel panel-info">
4
+ <div class="panel-heading">
5
+ <h3 class="panel-title">现场勘探</h3>
6
+ </div>
7
+ </div>
8
+ <validator name="v">
9
+ <form class="form-horizontal">
10
+ <div class="form-group col-sm-11">
11
+ <div class="form-group col-sm-4" :class="[$v.f_install_num.required ? 'has-error':'']">
12
+ <label for="f_install_num" class=" col-sm-6 control-label">实际可安装用户:</label>
13
+ <div class="col-sm-6" id="f_install_num">
14
+ <input class="form-control" type="text" v-model="model.f_install_num"
15
+ v-validate:f_install_num='{required: true}'>
16
+ </div>
17
+ </div>
18
+ <div class="form-group col-sm-4" :class="[$v.f_payfee_num.required ? 'has-error':'']">
19
+ <label for="f_payfee_num" class=" col-sm-6 control-label">缴费户数:</label>
20
+ <div class="col-sm-6" id="f_payfee_num">
21
+ <input class="form-control" type="text" v-model="model.f_payfee_num"
22
+ v-validate:f_payfee_num='{required: true}'>
23
+ </div>
24
+ </div>
25
+ <div class="form-group col-sm-4" :class="[$v.gastype.required ? 'has-error select-error' : '' ]">
26
+ <label for="f_gas_type" class="col-sm-6 control-label">用气类型:</label>
27
+ <div class="col-sm-6" id="f_gas_type">
28
+ <input type="text" v-show="false" v-model="$refs.gastype.value[0]" v-validate:gastype='{required: true}'/>
29
+ <v-select :is-all-line="true" v-ref:gastype
30
+ v-model="model.f_gas_type"
31
+ placeholder="全部"
32
+ :value.sync="model.f_gas_type"
33
+ :options='fgastype'
34
+ close-on-select>
35
+ </v-select>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ <div class="col-sm-11">
40
+ <div class="form-group col-sm-4" :class="[$v.surveyname.required ? 'select-error has-error' : '']">
41
+ <label for="f_meter_brand" class="col-sm-6 control-label">勘查人员:</label>
42
+ <div class="col-sm-6" id="f_survey_name">
43
+ <input type="text" v-show="false" v-model="$refs.surveyname.value[0]"
44
+ v-validate:surveyname='{required: true}'>
45
+ <v-select :is-all-line="true" v-ref:surveyname
46
+ v-model="model.f_survey_name"
47
+ placeholder="全部"
48
+ :value.sync="model.f_survey_name"
49
+ :options='fsurveyname'
50
+ close-on-select>
51
+ </v-select>
52
+ <!--<select v-model="employeetemplate" class="form-control">-->
53
+ <!--<option v-if="employeetemplate" :value="employeetemplate" selected>{{employeetemplate}}</option>-->
54
+ <!--<option v-else selected value="">请选择</option>-->
55
+ <!--<option :value="coupon.value" v-for="coupon in employees">{{coupon.lable}}</option>-->
56
+ <!--</select>-->
57
+
58
+ </div>
59
+ </div>
60
+ <div class="form-group col-sm-4" :class="[$v.surveytime.required ? 'has-error' : '']">
61
+ <label for="f_survey_time" class="col-sm-6 control-label">勘查日期:</label>
62
+ <div class="col-sm-6" id="f_survey_time">
63
+ <input type="text" v-show="false" v-model="$refs.surveytime.value"
64
+ v-validate:surveytime='{required: true}'/>
65
+ <datepicker id="f_survey_time" width="200.72px;" v-ref:surveytime
66
+ :value.sync="model.f_survey_time"
67
+ :disabled-days-of-Week="[]"
68
+ :format="'yyyy-MM-dd'"
69
+ v-model="model.f_survey_time"
70
+ :show-reset-button="reset" readonly="readonly">
71
+ </datepicker>
72
+ </div>
73
+ </div>
74
+ <div class="form-group col-sm-4">
75
+ <div class="col-sm-3"></div>
76
+ <div class="col-sm-6">
77
+ <input type="checkbox" class="" id="checkbox" v-model="model.f_isdesign"
78
+ v-validate:f_isdesign='{required: true }'/>
79
+ <label for="checkbox" class="font-size">是否设计出图</label>
80
+ </div>
81
+ </div>
82
+ </div>
83
+ <div class="form-group col-sm-11">
84
+ <label class="col-sm-2" for="f_survey_remarks">勘查意见:</label>
85
+ <div class="col-sm-10" id="f_survey_remarks">
86
+ <textarea class="form-control" v-model="model.f_survey_remarks" rows="3"></textarea>
87
+ </div>
88
+ </div>
89
+ <div class="form-group col-sm-11">
90
+ <div class="form-group col-sm-6">
91
+ <label for="f_survey_departmen" class=" col-sm-4 control-label">部门:</label>
92
+ <div class="col-sm-6" id="f_survey_departmen">
93
+ <input class="form-control" type="text" v-model="model.f_survey_department" disabled>
94
+ </div>
95
+ </div>
96
+ <div class="form-group col-sm-6">
97
+ <label for="f_survey_operator" class="col-sm-6 control-label">执行人:</label>
98
+ <div class="col-sm-6" id="f_survey_operator">
99
+ <input class="form-control" type="text" v-model="model.f_survey_operator" disabled>
100
+ </div>
101
+ </div>
102
+ <!--<div class="form-group col-sm-3 form-input-group">-->
103
+ <!--<label class="control-label">派发给:</label>-->
104
+ <!--<div class="col-sm-5">-->
105
+
106
+ <!--</div>-->
107
+ <!--</div>-->
108
+ </div>
109
+ <div class="form-group col-sm-11">
110
+ <div class="form-group col-sm-6">
111
+ <label class=" col-sm-4 control-label" for="f_filiale">分公司:</label>
112
+ <div class="col-sm-6" id="f_filiale">
113
+ <input class="form-control" type="text" v-model="model.f_filiale" disabled>
114
+ </div>
115
+ </div>
116
+ <div class="form-group col-sm-6">
117
+ <label class=" col-sm-6 control-label">操作日期:</label>
118
+ <div class="col-sm-6" id="f_survey_date">
119
+ <input class="form-control" type="text" v-model="model.f_survey_date" disabled>
120
+ </div>
121
+ </div>
122
+ </div>
123
+ </form>
124
+ </validator>
125
+ <div class="from-group col-sm-11">
126
+ <center>
127
+ <button type="button" @click="confirm()" class="btn btn-primary" style="width:80px; margin-left:40px;">
128
+ 保存
129
+ </button>
130
+ <button type="button" @click="commit()" class="btn btn-primary" style="width:80px; margin-left:40px;">
131
+ 提交
132
+ </button>
133
+ <button type="button" @click="reset()" class="btn btn-warning" style="width:80px; margin-left:40px;">
134
+ 取消
135
+ </button>
136
+ </center>
137
+ </div>
138
+ </div>
139
+ </template>
140
+ <script>
141
+ import co from 'co'
142
+ import {HttpResetClass} from 'vue-client'
143
+ import * as Util from '../../../Util'
144
+ let gen = function* (self, val) {
145
+ val.f_survey_name = self.employeetemplate // 勘察人员保存
146
+ val.f_sub_state = ''
147
+ val.f_temp_date = Util.toStandardTimeString()
148
+ val.f_gas_type = val.f_gas_type[0] ? val.f_gas_type[0] : ''
149
+ val.f_gas_type = val.f_survey_name[0] ? val.f_survey_name[0] : ''
150
+ let data ={
151
+ tablename:'t_apply',
152
+ parameters:val
153
+ }
154
+ yield self.$resetpost('rs/logic/save', {data:data})
155
+ data = {
156
+ model: {
157
+ f_processid: self.selectdata.f_process_id,
158
+ },
159
+ loginUser: {
160
+ id: self.$login.f.id,
161
+ name: self.$login.f.name,
162
+ ename: self.$login.f.ename
163
+ },
164
+ employeetemplate: self.employeetemplate,// 指派勘察人员
165
+ subdep: '提交'
166
+ }
167
+ self.$resetpost(`rs/logic/grantnext`,
168
+ {data: data})
169
+ .then(() => {
170
+ self.reset()
171
+ })
172
+ }
173
+ export default {
174
+ title: '现场勘探',
175
+ data() {
176
+ return {
177
+ fgastype: this.$appdata.getParam('用气类型'),
178
+ fsurveyname : this.$appdata.getParam('勘查人员'),
179
+ employees: [], // 部门人员数组
180
+ employeetemplate: '', // 选定部门人员
181
+ model: {
182
+ f_filiale: this.$login.f.f_filiale,
183
+ f_survey_date: Util.toStandardTimeString(),
184
+ f_survey_department: this.$login.f.f_parentname,
185
+ f_survey_operator: this.$login.f.name
186
+ }
187
+ }
188
+ },
189
+ props: ['selectdata'],
190
+ ready() {
191
+ this.selectdata.f_gas_type = this.selectdata.f_gas_type ? [this.selectdata.f_gas_type] : this.model.f_gas_type
192
+ this.selectdata.f_survey_name = this.selectdata.f_survey_name ? [this.selectdata.f_survey_name] : this.model.f_survey_name
193
+ this.model = Object.assign({}, this.model, this.selectdata)
194
+ // this.loademployees() // 获取派发人
195
+ // this.$nextTick(() => {
196
+ // this.setselect()
197
+ // })
198
+ },
199
+ methods: {
200
+ // 退回则默认值为已存储的人
201
+ toemployees() {
202
+ if (this.temploader == '技术组长' && this.model.f_survey_name) {
203
+ this.employeetemplate = this.model.f_survey_name
204
+ }
205
+ },
206
+ // 获取部门领导角色
207
+ async loademployees() {
208
+ let http = new HttpResetClass()
209
+ if (this.selectdata.actdefid != '1') {
210
+ await http.load('POST','rs/sql/applysingleTable', {
211
+ data: {
212
+ tablename: 't_actorperson',
213
+ condition: " userseq='" + this.$login.f.id + "' order by id desc"
214
+ }
215
+ }, {resolveMsg: null, rejectMsg: "角色人员是(登陆人)信息查询失败"}, {silent: true})
216
+ .then((res) => {
217
+ console.log("取得部门领导的角色" + res.data[0].actorid)
218
+ if (res.data[0].actorid.startsWith("R") && (res.data[0].actorid.includes("部门负责人") || res.data[0].actorid.includes("部经理")|| res.data[0].actorid.includes("部门领导") || res.data[0].actorid.includes("部负责人") || res.data[0].actorid.includes("部领导")||res.data[0].actorid.includes("组长"))) {
219
+ let loaderstr = res.data[0].actorid.substring(2, res.data[0].actorid.length - 1)
220
+ this.temploader = loaderstr
221
+ // 如果是退回的就用已经保存的人员,保证下发的是同一个人
222
+ this.toemployees()
223
+ let loademployeestr = null
224
+ if (loaderstr.includes("部门")) {
225
+ loademployeestr = 'R(' + loaderstr.split("部门")[0] + '部门人员)'
226
+ } else if (loaderstr.includes("部")) {
227
+ loademployeestr = 'R(' + loaderstr.split("部")[0] + '部人员)'
228
+ } else if (loaderstr.includes("组长")) {
229
+ loademployeestr = 'R(' + loaderstr.split("组长")[0] + '人员)'
230
+ }
231
+ console.log(loademployeestr)
232
+ let http2 = new HttpResetClass()
233
+ http2.load('POST','rs/sql/applysingleTable', {
234
+ data: {
235
+ tablename: 't_role',
236
+ condition: " name='" + loademployeestr.substring(2, loademployeestr.length - 1) + "'"
237
+ // condition: " name='" + loaderstr.split("部")[0] + '部人员' + "'"
238
+ }
239
+ }, {resolveMsg: null, rejectMsg: "角色人员(部门人员)id信息查询失败"}, {silent: true}).then((res) => {
240
+ console.log("取得角色人员(部门人员)id" + JSON.stringify(res.data[0].id))
241
+ let strid = res.data[0].id
242
+ let http3 = new HttpResetClass()
243
+ http3.load('POST','rs/sql/applysingleTable', {
244
+ data: {
245
+ tablename: 't_user',
246
+ condition: "roles like '%" + strid + "%'"
247
+ }
248
+ }, {resolveMsg: null, rejectMsg: "角色人员(部门人员)信息查询失败"}, {silent: true}).then((res) => {
249
+ console.log("角色人员(部门人员)信息成功")
250
+ for (var i = 0; i < res.data.length; i++) {
251
+ this.employees.push({lable: res.data[i].name, value: res.data[i].name})
252
+ }
253
+ })
254
+ })
255
+ }
256
+ })
257
+ }
258
+ },
259
+ confirm() {
260
+ // this.model.f_sub_state = '完成'
261
+ this.model.f_gas_type = this.model.f_gas_type[0] ? this.model.f_gas_type[0] : ''
262
+ // this.model.f_survey_name = this.employeetemplate?this.employeetemplate:''
263
+ let data ={
264
+ tablename:'t_apply',
265
+ parameters:this.model
266
+ }
267
+ this.$resetpost('rs/logic/save', {data:data})
268
+ .then(() => {
269
+ this.reset()
270
+ })
271
+ },
272
+ commit() {
273
+ // if(this.employeetemplate){
274
+ let getGen = gen(this, this.model)
275
+ co(getGen)
276
+ // }else {
277
+ // this.$showMessage("请选择被派发人")
278
+ // }
279
+
280
+ },
281
+ reset() {
282
+ this.$dispatch('close')
283
+ this.$dispatch('selfsearch')
284
+ },
285
+ setselect() {
286
+ this.selectdata.f_gas_type = this.selectdata.f_gas_type ? this.selectdata.f_gas_type : this.model.f_gas_type
287
+ // if (!this.selectdata.f_gas_type)
288
+ // this.selectdata.f_gas_type = this.model.f_gas_type
289
+ this.selectdata.f_survey_name = this.selectdata.f_survey_name ? this.selectdata.f_survey_name : this.model.f_survey_name
290
+ this.model = Object.assign({}, this.model, this.selectdata)
291
+ this.model.f_survey_date = this.$login.toStandardDateString()
292
+ this.model.f_survey_department = this.$login.f.f_parentname
293
+ this.model.f_survey_operator = this.$login.f.name
294
+ }
295
+ },
296
+ watch: {
297
+ // 'selectdata'() {
298
+ // // this.$nextTick(() => {
299
+ // this.setselect()
300
+ // // })
301
+ // }
302
+ }
303
+ }
304
+ </script>
@@ -273,7 +273,7 @@
273
273
  this.$showMessage("请选择用户类型")
274
274
  }
275
275
  else {
276
- this.model.f_apply_type = this.model.f_apply_type + "流程"
276
+ this.model.f_apply_type = this.model.f_apply_type
277
277
  let fileInfoData = this.$parent.$parent.$parent.$parent.$refs.file.fileInfoData
278
278
  let recordmessage = this.$parent.$parent.$parent.$parent.$refs.record.model.rows
279
279
  let materialmessage = this.$parent.$parent.$parent.$parent.$refs.material.model.rows