apply-clients 5.0.35-2 → 5.0.35-20
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/.eslintrc.js +16 -16
- package/package.json +2 -2
- package/src/android.js +18 -18
- package/src/apply.js +2 -0
- package/src/assets//347/224/250/346/210/267/345/234/260/345/235/200.png +0 -0
- package/src/assets//347/224/250/346/210/267/345/247/223/345/220/215.png +0 -0
- package/src/assets//347/224/250/346/210/267/347/224/265/350/257/235.png +0 -0
- package/src/components/app_apply/ApplyDownList.vue +9 -5
- package/src/components/app_apply/ApplyInfo.vue +56 -56
- package/src/components/app_apply/ApplyListUpload.vue +1 -1
- package/src/components/app_apply/ApplyToDoList.vue +2690 -51
- package/src/components/app_apply/PlaceControler.vue +217 -186
- package/src/components/app_apply/ServiceControl.vue +18 -5
- package/src/components/app_apply/ServiceView.vue +2 -2
- package/src/components/app_apply/ezhou/ServiceView.vue +336 -195
- package/src/components/product/Function/functions/InstallFee.vue +500 -339
- package/src/components/product/Process/ExplorationSelect.vue +2 -2
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +25 -27
- package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
- package/src/components/product/ServiceView.vue +1 -1
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +6 -5
- package/src/components/product/Supervisory/SupervisoryList.vue +1 -1
- package/src/ezhouAndroid.js +44 -45
- package/src/main.js +32 -32
- package/src/plugins/commonService.js +11 -7
- package/static/newStyle/clear.png +0 -0
- package/static/newStyle/fife.png +0 -0
- package/static/newStyle/hidden.png +0 -0
- package/static/newStyle/label-clear.png +0 -0
- package/static/newStyle/left-img.png +0 -0
- package/static/newStyle/list_ok.png +0 -0
- package/static/newStyle/login-check.png +0 -0
- package/static/newStyle/login-con.png +0 -0
- package/static/newStyle/login-do.gif +0 -0
- package/static/newStyle/login-f.png +0 -0
- package/static/newStyle/login-info.png +0 -0
- package/static/newStyle/login-left.png +0 -0
- package/static/newStyle/login-org.png +0 -0
- package/static/newStyle/login-pwd.png +0 -0
- package/static/newStyle/login-user.png +0 -0
- package/static/newStyle/loginbg.gif +0 -0
- package/static/newStyle/loginbg1280.gif +0 -0
- package/static/newStyle/loginbg1366.gif +0 -0
- package/static/newStyle/loginbg_1.gif +0 -0
- package/static/newStyle/searchin.png +0 -0
- package/static/newStyle/searchout.png +0 -0
- package/static/newStyle/setting.png +0 -0
- package/static/newStyle/setting1.png +0 -0
- package/static/newStyle/shirk.png +0 -0
- package/static/newStyle/stretch_bottom.png +0 -0
- package/static/newStyle/stretch_left.png +0 -0
- package/static/newStyle/stretch_right.png +0 -0
- package/static/newStyle/stretch_top.png +0 -0
- package/static/newStyle/system-off.png +0 -0
- package/static/newStyle//350/261/252/344/275/263/347/207/203/346/260/224.png +0 -0
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="auto select-overspread">
|
|
3
|
-
<div
|
|
4
|
-
<span style="color: red"> 请注意被退回原因为:{{data.back_reason}}</span>
|
|
3
|
+
<div v-if="data.back_reason" class="panel panel-info">
|
|
4
|
+
<span style="color: red"> 请注意被退回原因为:{{ data.back_reason }}</span>
|
|
5
5
|
</div>
|
|
6
6
|
<validator name="v">
|
|
7
7
|
<form class="form-horizontal">
|
|
8
8
|
<div class="col-sm-11 form-group">
|
|
9
9
|
<div v-for="(index,item) in data.fields">
|
|
10
10
|
<!--input-->
|
|
11
|
-
<div v-if="item.type==='input'" v-show="!item.hidden"
|
|
12
|
-
|
|
13
|
-
<
|
|
11
|
+
<div v-if="item.type==='input'" v-show="!item.hidden"
|
|
12
|
+
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
|
|
13
|
+
<label
|
|
14
|
+
:class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-6'">{{
|
|
15
|
+
item.label
|
|
16
|
+
}}:</label>
|
|
17
|
+
<div :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'">
|
|
14
18
|
<input class="form-control"
|
|
15
19
|
:type="item.type"
|
|
16
20
|
v-model="data.fields[index].value"
|
|
@@ -19,14 +23,18 @@
|
|
|
19
23
|
:readonly="item.readonly"
|
|
20
24
|
:disable="item.disable"
|
|
21
25
|
@change="disabled_check(index,data.fields[index].required,data.fields[index].value)"
|
|
22
|
-
@blur
|
|
26
|
+
@blur="check_disable"
|
|
23
27
|
/>
|
|
24
28
|
</div>
|
|
25
29
|
</div>
|
|
26
30
|
<!--number-->
|
|
27
|
-
<div v-if="item.type==='number'" v-show="!item.hidden"
|
|
28
|
-
|
|
29
|
-
<
|
|
31
|
+
<div v-if="item.type==='number'" v-show="!item.hidden"
|
|
32
|
+
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
|
|
33
|
+
<label
|
|
34
|
+
:class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-6'">{{
|
|
35
|
+
item.label
|
|
36
|
+
}}:</label>
|
|
37
|
+
<div :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'">
|
|
30
38
|
<input class="form-control"
|
|
31
39
|
:type="item.type"
|
|
32
40
|
v-model="data.fields[index].value"
|
|
@@ -35,15 +43,19 @@
|
|
|
35
43
|
:readonly="item.readonly"
|
|
36
44
|
:disable="item.disable"
|
|
37
45
|
@change="disabled_check(index,data.fields[index].required,data.fields[index].value)"
|
|
38
|
-
@blur
|
|
46
|
+
@blur="check_disable"
|
|
39
47
|
/>
|
|
40
48
|
</div>
|
|
41
49
|
</div>
|
|
42
50
|
|
|
43
51
|
<!--时间datepicker-->
|
|
44
|
-
<div v-if="item.type==='datepicker'"
|
|
45
|
-
|
|
46
|
-
<
|
|
52
|
+
<div v-if="item.type==='datepicker'"
|
|
53
|
+
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-xs-12 form-group']">
|
|
54
|
+
<label style="margin-top: 0.7em"
|
|
55
|
+
:class="item.label_bootstraped?item.label_bootstraped +' control-label':'control-label col-sm-6'">{{
|
|
56
|
+
item.label
|
|
57
|
+
}}:</label>
|
|
58
|
+
<div :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'">
|
|
47
59
|
<datepicker
|
|
48
60
|
:placeholder="item.placeholder"
|
|
49
61
|
:value.sync="data.fields[index].value"
|
|
@@ -53,7 +65,7 @@
|
|
|
53
65
|
class="form-control"
|
|
54
66
|
:readonly="item.readonly"
|
|
55
67
|
:disabled="item.disabled"
|
|
56
|
-
@blur
|
|
68
|
+
@blur="check_disable"
|
|
57
69
|
:show-reset-button="reset">
|
|
58
70
|
</datepicker>
|
|
59
71
|
</div>
|
|
@@ -61,9 +73,13 @@
|
|
|
61
73
|
|
|
62
74
|
|
|
63
75
|
<!--textarea-->
|
|
64
|
-
<div v-if="item.type==='textarea'"
|
|
65
|
-
|
|
66
|
-
<
|
|
76
|
+
<div v-if="item.type==='textarea'"
|
|
77
|
+
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-12 form-group']">
|
|
78
|
+
<label
|
|
79
|
+
:class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-2'">{{
|
|
80
|
+
item.label
|
|
81
|
+
}}:</label>
|
|
82
|
+
<div :class="item.value_bootstraped?item.value_bootstraped:'col-sm-10'">
|
|
67
83
|
<textarea
|
|
68
84
|
:readonly="item.readonly"
|
|
69
85
|
:disabled="item.disabled"
|
|
@@ -71,57 +87,86 @@
|
|
|
71
87
|
:rows="item.rows"
|
|
72
88
|
v-model="data.fields[index].value"
|
|
73
89
|
@change="disabled_check(index,data.fields[index].required,data.fields[index].value)"
|
|
74
|
-
@blur
|
|
90
|
+
@blur="check_disable"
|
|
75
91
|
>
|
|
76
92
|
</textarea>
|
|
77
93
|
</div>
|
|
78
94
|
</div>
|
|
79
95
|
|
|
80
96
|
<!--radio-->
|
|
81
|
-
<div v-if="item.type==='radio'"
|
|
82
|
-
|
|
97
|
+
<div v-if="item.type==='radio'"
|
|
98
|
+
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-12 form-group']">
|
|
99
|
+
<label v-if="item.label"
|
|
100
|
+
:class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-2'">{{
|
|
101
|
+
item.label
|
|
102
|
+
}}:</label>
|
|
83
103
|
<div class="col-xs-12">
|
|
84
|
-
<div
|
|
85
|
-
|
|
86
|
-
|
|
104
|
+
<div
|
|
105
|
+
:class="item.value_bootstraped?item.value_bootstraped:item.items.length%2 == 0?'col-xs-5': 'col-xs-3'"
|
|
106
|
+
v-for="(index2,row) in item.items">
|
|
107
|
+
<label style="margin-top: 0.7em" for="row.label"
|
|
108
|
+
:class="item.items.length%2 == 0?'col-xs-4': 'col-xs-2'">{{ row.label }}</label>
|
|
109
|
+
<input @blur="check_disable" :class="item.items.length%2 == 0?'col-xs-1': 'col-xs-1'"
|
|
110
|
+
:readonly="item.readonly" :disabled="item.disabled" style="margin-top: 10px" type="radio"
|
|
111
|
+
:name="index" :id="row.label" v-bind:value="data.fields[index].items[index2].value"
|
|
112
|
+
v-model="data.fields[index].value">
|
|
87
113
|
</div>
|
|
88
114
|
</div>
|
|
89
115
|
</div>
|
|
90
116
|
|
|
91
117
|
<!--select-->
|
|
92
|
-
<div v-if="item.type==='select'"
|
|
93
|
-
|
|
94
|
-
<
|
|
118
|
+
<div v-if="item.type==='select'"
|
|
119
|
+
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
|
|
120
|
+
<label
|
|
121
|
+
:class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-6'">{{
|
|
122
|
+
item.label
|
|
123
|
+
}}:</label>
|
|
124
|
+
<input-select :class="item.value_bootstraped?item.value_bootstraped:'col-sm-6'" @blur="check_disable"
|
|
125
|
+
@change="select_change(index),disabled_check(index,data.fields[index].required,data.fields[index].value)"
|
|
126
|
+
:readonly="item.readonly" :disable="item.disabled" :value.sync="data.fields[index].value"
|
|
127
|
+
v-model="data.fields[index].value"
|
|
95
128
|
:options='item.options' :valueSingle="true"></input-select>
|
|
96
129
|
|
|
97
130
|
</div>
|
|
98
131
|
|
|
99
132
|
<!--checkbox-->
|
|
100
|
-
<div v-if="item.type==='checkbox'"
|
|
101
|
-
|
|
102
|
-
<
|
|
103
|
-
|
|
104
|
-
|
|
133
|
+
<div v-if="item.type==='checkbox'"
|
|
134
|
+
:class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-12 form-group']">
|
|
135
|
+
<label v-if="item.label"
|
|
136
|
+
:class="item.label_bootstraped?item.label_bootstraped+' control-label':'control-label col-sm-2'">{{
|
|
137
|
+
item.label
|
|
138
|
+
}}:</label>
|
|
139
|
+
<div style="margin-top: 0.7em"
|
|
140
|
+
:class="item.value_bootstraped?item.value_bootstraped:'control-label col-sm-2'"
|
|
141
|
+
v-for="(index2,row) in item.items">
|
|
142
|
+
<label class="font-size form-group col-sm-6">{{ row.label }}</label>
|
|
143
|
+
<input :readonly="item.readonly" :disabled="item.disabled" type="checkbox" class="col-sm-6"
|
|
144
|
+
:id="row.label" v-model="data.fields[index].items[index2].value">
|
|
105
145
|
</div>
|
|
106
146
|
</div>
|
|
107
147
|
|
|
108
148
|
|
|
109
149
|
</div>
|
|
110
150
|
</div>
|
|
111
|
-
<div class="form-group col-sm-11"
|
|
151
|
+
<div class="form-group col-sm-11">
|
|
112
152
|
<label class="text-left font">现场照片</label>
|
|
113
153
|
|
|
114
154
|
<div class="auto">
|
|
115
155
|
<div class="panel" style="padding: 10px 10px 5px 10px;">
|
|
116
|
-
<div class="panel-body panel-self"
|
|
117
|
-
|
|
118
|
-
|
|
156
|
+
<div class="panel-body panel-self"
|
|
157
|
+
style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
|
158
|
+
<div class="row" style="height: 240px;overflow: scroll;top: 1px">
|
|
159
|
+
<div class="col-xs-4 col-sm-3 col-md-2" style="margin-bottom: 35px"
|
|
160
|
+
v-for="(index,img) in model.f_overall_imgs">
|
|
119
161
|
<img-self :src="img.f_overall_path" alt="现场照片" :width="140" :height="170"></img-self>
|
|
120
|
-
<img src="../../../assets/删除.png" @click="delfile('f_overall_path', img.f_overall_path,index)"
|
|
162
|
+
<img src="../../../assets/删除.png" @click="delfile('f_overall_path', img.f_overall_path,index)"
|
|
163
|
+
style="width: 15px;margin-top: -80px" alt="">
|
|
121
164
|
</div>
|
|
122
165
|
</div>
|
|
123
166
|
<div class="row text-right div-photo">
|
|
124
|
-
<button type="button" name="button" class="btn btn-photo" @click="takePic('f_overall_path', '现场照片')"
|
|
167
|
+
<button type="button" name="button" class="btn btn-photo" @click="takePic('f_overall_path', '现场照片')">
|
|
168
|
+
拍照
|
|
169
|
+
</button>
|
|
125
170
|
<!--<button type="button" name="button" class="btn btn-primary btn-photo" @click="takePic('f_overall_path', '总体安检照片1')">拍照</button>-->
|
|
126
171
|
<!-- <img src="../../../assets/remove.png" :class="style__" @click="delfile('f_overall_path', img.f_overall_path)" style="width: 25%;"></img>-->
|
|
127
172
|
</div>
|
|
@@ -133,10 +178,11 @@
|
|
|
133
178
|
<label class="text-left font">用户签名</label>
|
|
134
179
|
<div class="auto">
|
|
135
180
|
<div class="panel">
|
|
136
|
-
<div class="panel-body panel-self"
|
|
181
|
+
<div class="panel-body panel-self"
|
|
182
|
+
style="background-color: #F8F8F8;width: 100%;height: 260px;position: relative">
|
|
137
183
|
<div class="row" style="height: 240px;overflow: scroll;top: 1px">
|
|
138
184
|
<div class="col-sm-4">
|
|
139
|
-
<img
|
|
185
|
+
<img :src="model.f_sign_path" :width="200" :height="150"/>
|
|
140
186
|
</div>
|
|
141
187
|
</div>
|
|
142
188
|
<div class="row text-right div-photo">
|
|
@@ -146,16 +192,21 @@
|
|
|
146
192
|
</div>
|
|
147
193
|
</div>
|
|
148
194
|
</div>
|
|
149
|
-
|
|
150
|
-
|
|
195
|
+
|
|
196
|
+
<!-- <input @click="gotohetong('民用')" type="checkbox" v-model="model.f_hege"/><label class="text-left font">我已阅读<a href="#" @click="gotohetong('民用')">居民天然气供用气合同</a></label>-->
|
|
197
|
+
<div class="form-group col-sm-11" v-show="kchege&&data.f_user_type=='民用'&&data.title!='现场勘查'">
|
|
198
|
+
<input type="checkbox" v-model="model.f_hege"/><label class="text-left font">我已阅读<a href="#"
|
|
199
|
+
@click="gotohetong('民用')">居民天然气供用气合同</a></label>
|
|
151
200
|
</div>
|
|
152
|
-
<div class="form-group col-sm-11" v-show="kchege&&
|
|
153
|
-
<input type="checkbox" v-model="model.f_hege"/><label class="text-left font">我已阅读<a href="#"
|
|
201
|
+
<div class="form-group col-sm-11" v-show="kchege&&(data.f_user_type=='非民用'||data.title=='现场勘查')">
|
|
202
|
+
<input type="checkbox" v-model="model.f_hege"/><label class="text-left font">我已阅读<a href="#"
|
|
203
|
+
@click="gotohetong('非民用1')">天然气工程建设安装合同</a>,<a
|
|
204
|
+
href="#" @click="gotohetong('非民用2')">管道燃气供用气合同</a></label>
|
|
154
205
|
</div>
|
|
155
206
|
<div class="form-group col-sm-11" v-show="kcbuhege">
|
|
156
|
-
<div
|
|
157
|
-
<label
|
|
158
|
-
<div
|
|
207
|
+
<div class="col-sm-12 form-group">
|
|
208
|
+
<label class="control-label col-sm-2">不合格原因:</label>
|
|
209
|
+
<div class="col-sm-10">
|
|
159
210
|
<textarea
|
|
160
211
|
class="form-control"
|
|
161
212
|
v-model="model.f_buhege_reason">
|
|
@@ -169,7 +220,7 @@
|
|
|
169
220
|
<div class="form-group col-sm-6">
|
|
170
221
|
<label class=" col-sm-4 control-label">分公司:</label>
|
|
171
222
|
<div class="col-sm-5">
|
|
172
|
-
<input class="form-control" type="text" v-model="model.f_filiale"
|
|
223
|
+
<input class="form-control" type="text" v-model="model.f_filiale" disabled>
|
|
173
224
|
</div>
|
|
174
225
|
</div>
|
|
175
226
|
<div class="col-sm-6 form-group">
|
|
@@ -198,32 +249,36 @@
|
|
|
198
249
|
</validator>
|
|
199
250
|
<div class="from-group col-xs-12">
|
|
200
251
|
<center>
|
|
201
|
-
<div v-for="(index,button) in data.buttons"
|
|
252
|
+
<div v-for="(index,button) in data.buttons"
|
|
253
|
+
:class="[data.buttons.length==4?'col-xs-3':'',data.buttons.length==3?'col-xs-4':'',data.buttons.length==2?'col-xs-6':'']">
|
|
202
254
|
<!-- 按钮组 -->
|
|
203
|
-
<button
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
{{button.button_name}}
|
|
255
|
+
<button :disabled="(button.button_name==='提交'||button.button_name==='下发')&&disable_button"
|
|
256
|
+
type="button" @click="clicked(index,button)" style="border-radius:5px; "
|
|
257
|
+
:class="[(button.button_name==='提交'||button.button_name==='下发')&&disable_button?'btn btn-default':'btn btn-primary',data.buttons.length==4 ? 'col-xs-2 col-xs-offset-1':'',data.buttons.length==3 ? 'col-xs-2 col-xs-offset-2':'',data.buttons.length==2 ? 'col-xs-4 col-xs-offset-2':'']">
|
|
258
|
+
{{ button.button_name }}
|
|
207
259
|
</button>
|
|
208
260
|
</div>
|
|
209
261
|
</center>
|
|
210
262
|
</div>
|
|
211
|
-
<div class="form-group col-xs-12" style="height:
|
|
263
|
+
<div class="form-group col-xs-12" style="height: 50px;width: 100%"></div>
|
|
212
264
|
<!-- 模态框 -->
|
|
213
265
|
<modal v-if="showmodal" :show.sync="showmodal" v-ref:modal backdrop="false">
|
|
214
266
|
<header slot="modal-header" class="modal-header">
|
|
215
267
|
<button type="button" class="close" @click="closemodal"><span>×</span></button>
|
|
216
|
-
<h4 class="modal-title">{{model.button.button_name}}</h4>
|
|
268
|
+
<h4 class="modal-title">{{ model.button.button_name }}</h4>
|
|
217
269
|
</header>
|
|
218
|
-
<article
|
|
219
|
-
<div
|
|
220
|
-
<label
|
|
221
|
-
<div
|
|
270
|
+
<article slot="modal-body" class="modal-body">
|
|
271
|
+
<div class="col-sm-12" v-for="(index,button_field) in data.buttons[model.button.button_index].button_fields">
|
|
272
|
+
<label class="control-label col-sm-3" style="margin-top: 10px">{{ button_field.label }}:</label>
|
|
273
|
+
<div class="col-sm-7">
|
|
222
274
|
<!--select-->
|
|
223
|
-
<input-select v-if="button_field.type=='select'"
|
|
275
|
+
<input-select v-if="button_field.type=='select'"
|
|
276
|
+
:value.sync="data.buttons[model.button.button_index].button_fields[index].value"
|
|
277
|
+
v-model="data.buttons[model.button.button_index].button_fields[index].value"
|
|
224
278
|
:options='button_field.options'></input-select>
|
|
225
279
|
<!-- input -->
|
|
226
|
-
<input v-else type="text" class="form-control"
|
|
280
|
+
<input v-else type="text" class="form-control"
|
|
281
|
+
v-model="data.buttons[model.button.button_index].button_fields[index].value"/>
|
|
227
282
|
</div>
|
|
228
283
|
</div>
|
|
229
284
|
</article>
|
|
@@ -236,6 +291,8 @@
|
|
|
236
291
|
<script>
|
|
237
292
|
|
|
238
293
|
// Date格式化
|
|
294
|
+
|
|
295
|
+
|
|
239
296
|
Date.prototype.Format = function (fmt) {
|
|
240
297
|
var o = {
|
|
241
298
|
"M+": this.getMonth() + 1, //月份
|
|
@@ -254,80 +311,59 @@ Date.prototype.Format = function (fmt) {
|
|
|
254
311
|
|
|
255
312
|
import Vue from 'vue'
|
|
256
313
|
import * as Util from '../../Util'
|
|
314
|
+
import {HttpResetClass} from 'vue-client'
|
|
257
315
|
export default {
|
|
258
316
|
title: '报建业务通用组件',
|
|
259
|
-
props: ['data'],
|
|
317
|
+
props: ['data', 'model'],
|
|
260
318
|
|
|
261
|
-
data
|
|
319
|
+
data() {
|
|
262
320
|
return {
|
|
263
|
-
isshow:true,
|
|
264
|
-
kchege:false,
|
|
265
|
-
kcbuhege:false,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
button_index:null
|
|
271
|
-
},
|
|
272
|
-
f_filiale:null,
|
|
273
|
-
f_parentname:null,
|
|
274
|
-
f_operate_date:null,
|
|
275
|
-
f_operator:null
|
|
276
|
-
},
|
|
277
|
-
countmoney:[0,0,0],
|
|
278
|
-
data:null,
|
|
279
|
-
showmodal:false,
|
|
280
|
-
disable_button:true
|
|
321
|
+
isshow: true,
|
|
322
|
+
kchege: false,
|
|
323
|
+
kcbuhege: false,
|
|
324
|
+
countmoney: [0, 0, 0],
|
|
325
|
+
data: null,
|
|
326
|
+
showmodal: false,
|
|
327
|
+
disable_button: true
|
|
281
328
|
}
|
|
282
329
|
},
|
|
283
|
-
created(){
|
|
330
|
+
created() {
|
|
284
331
|
|
|
285
332
|
// 初始化数据
|
|
286
333
|
this.initializtion()
|
|
287
334
|
},
|
|
288
335
|
methods: {
|
|
289
|
-
gotohetong(val){
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
title: '合同',
|
|
294
|
-
safe: true
|
|
295
|
-
}
|
|
296
|
-
_this.$dispatch('gotoson',pardate)
|
|
297
|
-
if (val=='民用'){
|
|
298
|
-
_this.$goto('minyong', {},'self')
|
|
299
|
-
}else if (val=='非民用1'){
|
|
300
|
-
_this.$goto('feiminyongv', {},'self')
|
|
301
|
-
}else {
|
|
302
|
-
_this.$goto('feiminyongvv', {},'self')
|
|
303
|
-
}
|
|
336
|
+
gotohetong(val) {
|
|
337
|
+
console.log(val)
|
|
338
|
+
console.log("进入goto")
|
|
339
|
+
this.$dispatch('gotonewpage', val)
|
|
304
340
|
},
|
|
305
341
|
cameraCallBack(prop, fileName) {
|
|
306
|
-
if(prop == 'f_overall_path'){
|
|
342
|
+
if (prop == 'f_overall_path') {
|
|
307
343
|
let f_overall_path = fileName + '?' + Math.random()
|
|
308
344
|
HostApp.__this__.model.f_overall_imgs.push({
|
|
309
|
-
f_overall_path:f_overall_path,
|
|
310
|
-
f_overall_name:this.data.title
|
|
345
|
+
f_overall_path: f_overall_path,
|
|
346
|
+
f_overall_name: this.data.title
|
|
311
347
|
})
|
|
312
|
-
}else{
|
|
348
|
+
} else {
|
|
313
349
|
HostApp.__this__.model[prop] = fileName + '?' + Math.random()
|
|
314
350
|
}
|
|
315
351
|
HostApp.__callback__ = null
|
|
316
352
|
HostApp.__this__ = null
|
|
317
353
|
},
|
|
318
|
-
takePic(prop, title,index) {
|
|
354
|
+
takePic(prop, title, index) {
|
|
319
355
|
HostApp.__callback__ = this.cameraCallBack
|
|
320
356
|
HostApp.__this__ = this
|
|
321
357
|
console.log("prop:" + prop)
|
|
322
358
|
console.log("this.prop:" + this.model[prop])
|
|
323
359
|
let fileName
|
|
324
|
-
if(prop == 'f_overall_path'){
|
|
360
|
+
if (prop == 'f_overall_path') {
|
|
325
361
|
if (!this.model.f_overall_imgs[index] || this.model.f_overall_imgs[index].f_overall_path.includes("nopic.png")) {
|
|
326
362
|
fileName = Util.guid() + '-' + prop + '.jpg'
|
|
327
363
|
} else {
|
|
328
364
|
fileName = Util.getFileName(this.model.f_overall_imgs[index].f_overall_path)
|
|
329
365
|
}
|
|
330
|
-
}else{
|
|
366
|
+
} else {
|
|
331
367
|
if (!this.model[prop] || this.model[prop].includes("nopic.png")) {
|
|
332
368
|
fileName = Util.guid() + '-' + prop + '.jpg'
|
|
333
369
|
} else {
|
|
@@ -361,10 +397,6 @@ export default {
|
|
|
361
397
|
}
|
|
362
398
|
},
|
|
363
399
|
sign() {
|
|
364
|
-
// if(!this.model.f_read_instructions){
|
|
365
|
-
// this.$showMessage('请先阅读并勾选用户须知内容后进行签名!')
|
|
366
|
-
// return
|
|
367
|
-
// }
|
|
368
400
|
this.delAudioFile('f_sign_path', this.model.f_sign_path)
|
|
369
401
|
let prop = 'f_sign_path'
|
|
370
402
|
let idx = 'aofeng'
|
|
@@ -382,53 +414,98 @@ export default {
|
|
|
382
414
|
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
|
|
383
415
|
})
|
|
384
416
|
},
|
|
385
|
-
delfile(prop, fileName,index) {
|
|
417
|
+
delfile(prop, fileName, index) {
|
|
386
418
|
if (fileName == Vue.nopic)
|
|
387
419
|
return
|
|
388
420
|
else {
|
|
389
|
-
if(prop == 'f_overall_path'){
|
|
390
|
-
this.model.f_overall_imgs.splice(index,1)
|
|
421
|
+
if (prop == 'f_overall_path') {
|
|
422
|
+
this.model.f_overall_imgs.splice(index, 1)
|
|
391
423
|
HostApp.delfile(fileName)
|
|
392
|
-
}else{
|
|
424
|
+
} else {
|
|
393
425
|
HostApp.delfile(fileName)
|
|
394
426
|
this.model[prop] = Vue.nopic
|
|
395
427
|
}
|
|
396
428
|
}
|
|
397
429
|
},
|
|
398
430
|
// 初始化数据
|
|
399
|
-
initializtion(){
|
|
400
|
-
|
|
401
|
-
|
|
431
|
+
initializtion() {
|
|
432
|
+
|
|
433
|
+
if (this.data.title == '现场勘查' || this.data.title == '现场勘查定价') {
|
|
434
|
+
this.isshow = false
|
|
402
435
|
}
|
|
403
436
|
console.log("5555555555555")
|
|
437
|
+
console.log(this.data.f_user_type)
|
|
404
438
|
console.log(this.isshow)
|
|
405
439
|
Vue.nopic = 'file:///android_asset/nopic.png'
|
|
406
440
|
if (!this.model.f_sign_path)
|
|
407
441
|
this.$set('model.f_sign_path', Vue.nopic)
|
|
408
|
-
console.log('!this.model.f_overall_imgs==>'
|
|
409
|
-
if (!this.model.f_overall_imgs){
|
|
442
|
+
console.log('!this.model.f_overall_imgs==>' + !this.model.f_overall_imgs)
|
|
443
|
+
if (!this.model.f_overall_imgs) {
|
|
410
444
|
let imgs = []
|
|
411
|
-
// imgs.push({f_overall_path:Vue.nopic})
|
|
412
445
|
this.$set('model.f_overall_imgs', imgs)
|
|
413
446
|
console.log('进入setmodel.f_overall_imgs')
|
|
414
447
|
}
|
|
415
448
|
console.log('进入serviceview的initializtion方法')
|
|
416
449
|
console.log(JSON.stringify(this.data))
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
if (this.data.fields[i].value){
|
|
424
|
-
if (this.data.fields[i].value=='null'){
|
|
425
|
-
console.log("看看为空的字段名"+this.data.fields[i].label)
|
|
426
|
-
this.data.fields[i].value=null
|
|
450
|
+
if (this.data.fields) {
|
|
451
|
+
for (let i = 0; i < this.data.fields.length; i++) {
|
|
452
|
+
if (this.data.fields[i].value) {
|
|
453
|
+
if (this.data.fields[i].value == 'null') {
|
|
454
|
+
console.log("看看为空的字段名" + this.data.fields[i].label)
|
|
455
|
+
this.data.fields[i].value = null
|
|
427
456
|
console.log("赋值完成")
|
|
428
457
|
}
|
|
429
458
|
}
|
|
430
|
-
if(this.data.fields[i].type==='datepicker'
|
|
431
|
-
this.data.fields[i].value=new Date().Format("yyyy-MM-dd HH:mm:ss")
|
|
459
|
+
if (this.data.fields[i].type === 'datepicker' && !this.data.fields[i].value) {
|
|
460
|
+
this.data.fields[i].value = new Date().Format("yyyy-MM-dd HH:mm:ss")
|
|
461
|
+
}
|
|
462
|
+
if (this.data.fields[i].label==='气价名称'){
|
|
463
|
+
console.log(this.data.fields[i].options)
|
|
464
|
+
let data={
|
|
465
|
+
items:"f_price_name",
|
|
466
|
+
tablename:"t_stairprice",
|
|
467
|
+
condition:`f_filialeids = '${Vue.user.f_orgids}' and f_state= '有效' and getdate()>=f_perform_date and getdate()<=f_end_date `,
|
|
468
|
+
orderitem:'id'
|
|
469
|
+
}
|
|
470
|
+
let qijia=[]
|
|
471
|
+
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
|
472
|
+
console.log("66666666666666666666")
|
|
473
|
+
console.log(JSON.stringify(res))
|
|
474
|
+
console.log(typeof res)
|
|
475
|
+
//console.log(JSON.stringify(res.data[0]))
|
|
476
|
+
let result=res.data
|
|
477
|
+
result.forEach(ress=>{
|
|
478
|
+
qijia.push({
|
|
479
|
+
label:ress.f_price_name,
|
|
480
|
+
value:ress.f_price_name
|
|
481
|
+
})
|
|
482
|
+
})
|
|
483
|
+
this.data.fields[i].options=qijia
|
|
484
|
+
})
|
|
485
|
+
}
|
|
486
|
+
if (this.data.fields[i].label==='气表品牌'){
|
|
487
|
+
console.log(this.data.fields[i].options)
|
|
488
|
+
let data={
|
|
489
|
+
items:"f_meter_brand",
|
|
490
|
+
tablename:"t_gasbrand",
|
|
491
|
+
condition:`f_filialeids = '${Vue.user.f_orgids}'`,
|
|
492
|
+
orderitem:'id'
|
|
493
|
+
}
|
|
494
|
+
let pinpai=[]
|
|
495
|
+
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
|
496
|
+
console.log("666666666666666666662")
|
|
497
|
+
console.log(JSON.stringify(res))
|
|
498
|
+
console.log(typeof res)
|
|
499
|
+
//console.log(JSON.stringify(res.data[0]))
|
|
500
|
+
let result=res.data
|
|
501
|
+
result.forEach(ress=>{
|
|
502
|
+
pinpai.push({
|
|
503
|
+
label:ress.f_meter_brand,
|
|
504
|
+
value:ress.f_meter_brand
|
|
505
|
+
})
|
|
506
|
+
})
|
|
507
|
+
this.data.fields[i].options=pinpai
|
|
508
|
+
})
|
|
432
509
|
}
|
|
433
510
|
}
|
|
434
511
|
}
|
|
@@ -459,36 +536,61 @@ export default {
|
|
|
459
536
|
}
|
|
460
537
|
},
|
|
461
538
|
// 模态框点击确定按钮
|
|
462
|
-
acknowledge(){
|
|
463
|
-
for(let i=0;i<this.data.buttons[this.model.button.button_index].button_fields.length;i++){
|
|
539
|
+
acknowledge() {
|
|
540
|
+
for (let i = 0; i < this.data.buttons[this.model.button.button_index].button_fields.length; i++) {
|
|
464
541
|
this.model.button.button_fields[this.data.buttons[this.model.button.button_index].button_fields[i].field] = this.data.buttons[this.model.button.button_index].button_fields[i].value
|
|
465
542
|
}
|
|
466
|
-
this.showmodal=false
|
|
467
|
-
this.$dispatch('button',this.model)
|
|
543
|
+
this.showmodal = false
|
|
544
|
+
this.$dispatch('button', this.model)
|
|
468
545
|
},
|
|
469
546
|
// 关闭模态框
|
|
470
|
-
closemodal(){
|
|
471
|
-
this.showmodal=false
|
|
547
|
+
closemodal() {
|
|
548
|
+
this.showmodal = false
|
|
472
549
|
},
|
|
473
|
-
watchmoney(val1,val2) {
|
|
550
|
+
watchmoney(val1, val2) {
|
|
474
551
|
console.log("监听改变的值")
|
|
475
552
|
console.log(val1)
|
|
476
553
|
console.log(val2)
|
|
477
554
|
},
|
|
478
555
|
// 点击按钮
|
|
479
|
-
clicked(index,button){
|
|
556
|
+
clicked(index, button) {
|
|
480
557
|
console.log(`点击了按钮index:${index}+button:${JSON.stringify(button)}`);
|
|
558
|
+
if (this.data.title != '现场勘查' && this.data.title != '现场勘查定价' && button.button_name=='提交') {
|
|
559
|
+
if (!this.model.f_overall_imgs || this.model.f_overall_imgs.length == 0){
|
|
560
|
+
this.$showMessage("必须有现场照片")
|
|
561
|
+
return;
|
|
562
|
+
}
|
|
563
|
+
if(!this.model.f_sign_path){
|
|
564
|
+
this.$showMessage("必须有签名照片")
|
|
565
|
+
return;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
if ((this.data.title == '现场勘查' || this.data.title == '现场勘查定价') && button.button_name=='提交') {
|
|
571
|
+
if (!this.model.f_overall_imgs || this.model.f_overall_imgs.length == 0){
|
|
572
|
+
this.$showMessage("必须有现场照片")
|
|
573
|
+
return;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
if (this.kchege == 'true') {
|
|
577
|
+
console.log(this.model.f_hege)
|
|
578
|
+
if (this.model.f_hege != 'true') {
|
|
579
|
+
this.$showMessage("请勾选阅读合同")
|
|
580
|
+
return
|
|
581
|
+
}
|
|
582
|
+
}
|
|
481
583
|
// 组织model.fields数据
|
|
482
584
|
let modeldatas = {}
|
|
483
|
-
for(let i=0;i<this.data.fields.length;i++){
|
|
585
|
+
for (let i = 0; i < this.data.fields.length; i++) {
|
|
484
586
|
console.log(JSON.stringify(this.data.fields[i]))
|
|
485
587
|
// checkbox特殊处理
|
|
486
|
-
if(this.data.fields[i].type==='checkbox'){
|
|
487
|
-
for(let j=0;j<this.data.fields[i].items.length;j++){
|
|
488
|
-
modeldatas[this.data.fields[i].items[j].field]=this.data.fields[i].items[j].value
|
|
588
|
+
if (this.data.fields[i].type === 'checkbox') {
|
|
589
|
+
for (let j = 0; j < this.data.fields[i].items.length; j++) {
|
|
590
|
+
modeldatas[this.data.fields[i].items[j].field] = this.data.fields[i].items[j].value
|
|
489
591
|
}
|
|
490
|
-
}else{
|
|
491
|
-
modeldatas[this.data.fields[i].field]=this.data.fields[i].value
|
|
592
|
+
} else {
|
|
593
|
+
modeldatas[this.data.fields[i].field] = this.data.fields[i].value
|
|
492
594
|
}
|
|
493
595
|
}
|
|
494
596
|
modeldatas.f_process_id = this.data.f_process_id
|
|
@@ -502,69 +604,108 @@ export default {
|
|
|
502
604
|
this.model = modeldatas
|
|
503
605
|
// 初始化model.button数据
|
|
504
606
|
let buttondatas = {
|
|
505
|
-
button_fields:{}
|
|
607
|
+
button_fields: {}
|
|
506
608
|
}
|
|
507
|
-
buttondatas.button_name=button.button_name
|
|
508
|
-
buttondatas.button_index=index
|
|
509
|
-
if(button.button_fields){
|
|
510
|
-
for(let i=0;i<button.button_fields.length;i++){
|
|
511
|
-
buttondatas.button_fields[button.button_fields[i].field]=button.button_fields[i].value
|
|
609
|
+
buttondatas.button_name = button.button_name
|
|
610
|
+
buttondatas.button_index = index
|
|
611
|
+
if (button.button_fields) {
|
|
612
|
+
for (let i = 0; i < button.button_fields.length; i++) {
|
|
613
|
+
buttondatas.button_fields[button.button_fields[i].field] = button.button_fields[i].value
|
|
512
614
|
}
|
|
513
615
|
}
|
|
514
|
-
this.model.button =buttondatas
|
|
616
|
+
this.model.button = buttondatas
|
|
515
617
|
|
|
516
|
-
if(button.button_name==='退回'){
|
|
517
|
-
this.showmodal=true
|
|
518
|
-
}else if(button.button_name==='下发'){
|
|
519
|
-
this.showmodal=true
|
|
520
|
-
}else{
|
|
521
|
-
this.$dispatch('button',this.model)
|
|
618
|
+
if (button.button_name === '退回') {
|
|
619
|
+
this.showmodal = true
|
|
620
|
+
} else if (button.button_name === '下发') {
|
|
621
|
+
this.showmodal = true
|
|
622
|
+
} else {
|
|
623
|
+
this.$dispatch('button', this.model)
|
|
522
624
|
}
|
|
523
625
|
},
|
|
524
626
|
// 级联操作预留
|
|
525
|
-
select_change(index){
|
|
526
|
-
this.$dispatch('select_cascade',index)
|
|
627
|
+
select_change(index) {
|
|
628
|
+
this.$dispatch('select_cascade', index)
|
|
527
629
|
},
|
|
528
630
|
// 检测按钮的disable
|
|
529
|
-
disabled_check(index,required,value){
|
|
631
|
+
disabled_check(index, required, value) {
|
|
530
632
|
console.log("被检测到的值是什么")
|
|
531
633
|
console.log(index)
|
|
532
634
|
console.log(required)
|
|
533
635
|
console.log(value)
|
|
534
636
|
console.log(this.data.title)
|
|
535
|
-
if (this.data.
|
|
536
|
-
|
|
537
|
-
|
|
637
|
+
if (this.data.fields[index].label=='气表品牌'){
|
|
638
|
+
console.log("进入改变气表型号")
|
|
639
|
+
console.log(this.data.fields[index+1].options)
|
|
640
|
+
this.data.fields[index+1].options=[]
|
|
641
|
+
let data={
|
|
642
|
+
items:"gm.f_meter_style",
|
|
643
|
+
tablename:"t_gasmodel gm left join t_gasbrand gb on gm.f_gasbrand_id=gb.id",
|
|
644
|
+
condition:`gb.f_filialeids = '${Vue.user.f_orgids}' and gb.f_meter_brand='${value}'`,
|
|
645
|
+
orderitem:'gm.id'
|
|
646
|
+
}
|
|
647
|
+
let xinghao=[]
|
|
648
|
+
new HttpResetClass().load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {data: data}, {resolveMsg: null, rejectMsg: null}).then(res=>{
|
|
649
|
+
console.log("66666666666666666666")
|
|
650
|
+
console.log(JSON.stringify(res))
|
|
651
|
+
console.log(typeof res)
|
|
652
|
+
//console.log(JSON.stringify(res.data[0]))
|
|
653
|
+
let result=res.data
|
|
654
|
+
result.forEach(ress=>{
|
|
655
|
+
xinghao.push({
|
|
656
|
+
label:ress.f_meter_style,
|
|
657
|
+
value:ress.f_meter_style
|
|
658
|
+
})
|
|
659
|
+
})
|
|
660
|
+
this.data.fields[index+1].options=xinghao
|
|
661
|
+
})
|
|
662
|
+
}
|
|
663
|
+
if (this.data.title == '现场勘查') {
|
|
664
|
+
if (index == 4) {
|
|
665
|
+
if (value == '合格') {
|
|
666
|
+
this.kchege = true
|
|
667
|
+
this.kcbuhege = false
|
|
668
|
+
console.log("1111111111" + this.kchege)
|
|
669
|
+
} else if (value == '不合格') {
|
|
670
|
+
this.kcbuhege = true
|
|
671
|
+
this.kchege = false
|
|
672
|
+
console.log("1111111111" + this.kcbuhege)
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
if (this.data.title == '现场勘查定价') {
|
|
677
|
+
if (index == 6 || index == 7 || index == 5) {
|
|
678
|
+
this.countmoney[index - 5] = parseInt(this.data.fields[index].value)
|
|
538
679
|
console.log(this.data.fields[index].value)
|
|
539
680
|
console.log("做出了改变")
|
|
540
681
|
}
|
|
541
682
|
console.log(JSON.stringify(this.countmoney))
|
|
542
|
-
let money=0
|
|
683
|
+
let money = 0
|
|
543
684
|
for (let i = 0; i < this.countmoney.length; i++) {
|
|
544
|
-
money+=this.countmoney[i]
|
|
685
|
+
money += this.countmoney[i]
|
|
545
686
|
}
|
|
546
|
-
this.$set('data.fields[8].value',money)
|
|
547
|
-
this.$set('data.fields[9].value',money)
|
|
548
|
-
if (index==10){
|
|
549
|
-
console.log("1111111111"+value)
|
|
550
|
-
if (value=='合格'){
|
|
551
|
-
this.kchege=true
|
|
552
|
-
this.kcbuhege=false
|
|
553
|
-
console.log("1111111111"+this.kchege)
|
|
554
|
-
}else if (value=='不合格'){
|
|
555
|
-
this.kcbuhege=true
|
|
556
|
-
this.kchege=false
|
|
557
|
-
console.log("1111111111"+this.kcbuhege)
|
|
687
|
+
this.$set('data.fields[8].value', money)
|
|
688
|
+
this.$set('data.fields[9].value', money)
|
|
689
|
+
if (index == 10) {
|
|
690
|
+
console.log("1111111111" + value)
|
|
691
|
+
if (value == '合格') {
|
|
692
|
+
this.kchege = true
|
|
693
|
+
this.kcbuhege = false
|
|
694
|
+
console.log("1111111111" + this.kchege)
|
|
695
|
+
} else if (value == '不合格') {
|
|
696
|
+
this.kcbuhege = true
|
|
697
|
+
this.kchege = false
|
|
698
|
+
console.log("1111111111" + this.kcbuhege)
|
|
558
699
|
}
|
|
559
700
|
}
|
|
560
701
|
}
|
|
561
|
-
if(required&&value){
|
|
702
|
+
if (required && value) {
|
|
562
703
|
this.disable_button = false
|
|
563
704
|
|
|
564
705
|
let fields = this.data.fields
|
|
565
706
|
let flag = false
|
|
566
|
-
for(let i = 0;i<fields.length;i++){
|
|
567
|
-
if(fields[i].type!=='checkbox'&&fields[i].required
|
|
707
|
+
for (let i = 0; i < fields.length; i++) {
|
|
708
|
+
if (fields[i].type !== 'checkbox' && fields[i].required && !fields[i].value) {
|
|
568
709
|
flag = true
|
|
569
710
|
}
|
|
570
711
|
}
|
|
@@ -572,44 +713,44 @@ export default {
|
|
|
572
713
|
}
|
|
573
714
|
}
|
|
574
715
|
},
|
|
575
|
-
watch:{
|
|
576
|
-
'data.filed[12].value'(val){
|
|
716
|
+
watch: {
|
|
717
|
+
'data.filed[12].value'(val) {
|
|
577
718
|
console.log("变动")
|
|
578
|
-
if (this.data.title=='现场勘查定价'){
|
|
719
|
+
if (this.data.title == '现场勘查定价') {
|
|
579
720
|
|
|
580
721
|
}
|
|
581
722
|
},
|
|
582
|
-
'data.operate_date'(){
|
|
583
|
-
if(this.data.filiale){
|
|
723
|
+
'data.operate_date'() {
|
|
724
|
+
if (this.data.filiale) {
|
|
584
725
|
this.model.f_filiale = this.data.filiale
|
|
585
|
-
}else{
|
|
726
|
+
} else {
|
|
586
727
|
this.model.f_filiale = Vue.user.f_parentname
|
|
587
728
|
}
|
|
588
|
-
if(this.data.f_parentname){
|
|
729
|
+
if (this.data.f_parentname) {
|
|
589
730
|
this.model.f_parentname = this.data.f_parentname
|
|
590
|
-
}else{
|
|
731
|
+
} else {
|
|
591
732
|
this.model.f_parentname = Vue.user.f_parentname
|
|
592
733
|
}
|
|
593
|
-
if(this.data.operate_date){
|
|
734
|
+
if (this.data.operate_date) {
|
|
594
735
|
this.model.f_operate_date = this.data.operate_date
|
|
595
|
-
}else{
|
|
736
|
+
} else {
|
|
596
737
|
this.model.f_operate_date = new Date().Format("yyyy-MM-dd HH:mm:ss")
|
|
597
738
|
}
|
|
598
|
-
if(this.data.operator){
|
|
739
|
+
if (this.data.operator) {
|
|
599
740
|
this.model.f_operator = this.data.operator
|
|
600
|
-
}else{
|
|
741
|
+
} else {
|
|
601
742
|
this.model.f_operator = Vue.user.name
|
|
602
743
|
}
|
|
603
744
|
},
|
|
604
|
-
deep:true
|
|
745
|
+
deep: true
|
|
605
746
|
},
|
|
606
747
|
computed: {
|
|
607
748
|
// 输入后按钮检测
|
|
608
|
-
check_disable: function (){
|
|
749
|
+
check_disable: function () {
|
|
609
750
|
let fields = this.data.fields
|
|
610
751
|
let flag = false
|
|
611
|
-
for(let i = 0;i<fields.length;i++){
|
|
612
|
-
if(fields[i].type!=='checkbox'&&fields[i].required
|
|
752
|
+
for (let i = 0; i < fields.length; i++) {
|
|
753
|
+
if (fields[i].type !== 'checkbox' && fields[i].required && !fields[i].value) {
|
|
613
754
|
flag = true
|
|
614
755
|
}
|
|
615
756
|
}
|