telephone-clients 3.0.104-80 → 3.0.104-81
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,61 +1,36 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="select-overspread repair-bg auto" style="padding-bottom:5px;">
|
|
3
3
|
<validator name="v">
|
|
4
|
-
<!-- 费用 -->
|
|
5
|
-
|
|
6
4
|
<div class="bq-parent" v-if="shutype == 'heng'">
|
|
7
5
|
<blockquote class="blockquote">
|
|
8
|
-
<p>费用<a
|
|
6
|
+
<p>费用<a @click="mute()" style="float:right" href="javascript:void(0)" class="repair-mute-class"><img
|
|
7
|
+
src="../../../assets/novoice.png" width="25px;" alt=""><span
|
|
8
|
+
style="margin-left:10px;color: #304A66">关闭声音</span></a></p>
|
|
9
9
|
</blockquote>
|
|
10
10
|
</div>
|
|
11
11
|
<div class="auto repair-info-content compatible" v-if="materialsumshow">
|
|
12
12
|
<div class="row auto">
|
|
13
|
-
<!--<div class="col-xs-12 col-sm-6 col-md-6 form-input-group mg8" :class="$v.f_cost_person.pattern ? 'has-error' : ''">-->
|
|
14
|
-
<!--<label class="text-justify lb-left" for="f_cost_person">人工费:</label>-->
|
|
15
|
-
<!--<span v-if="show">{{model.f_cost_person}}元</span>-->
|
|
16
|
-
<!--<template v-if="!show">-->
|
|
17
|
-
<!--<input type="text" class="form-control" id="f_cost_person" v-model="model.f_cost_person" v-validate:f_cost_person="{pattern:'/^[+]{0,1}(\\d+)$|^[+]{0,1}(\\d+\\.\\d+)$/'}">-->
|
|
18
|
-
<!--</template>-->
|
|
19
|
-
<!--</div>-->
|
|
20
|
-
<!--<div class="col-xs-12 col-sm-6 col-md-6 form-input-group">-->
|
|
21
|
-
<!--<label class="text-justify lb-left" for="costmatter">材料费:</label>-->
|
|
22
|
-
<!--<span v-if="show">{{model.f_cost_material}}元</span>-->
|
|
23
|
-
<!--<input type="text" class="form-control" id="costmatter" v-model="model.f_cost_material" v-if="!show">-->
|
|
24
|
-
<!--<!–<button type="button" name="button" class="btn btn-primary" @click="sumshow">明细</button>–>-->
|
|
25
|
-
<!--</div>-->
|
|
26
|
-
<!--<div class="col-xs-12 col-sm-6 col-md-6 form-input-group">-->
|
|
27
|
-
<!--<label class="text-justify lb-left">操作员:</label>-->
|
|
28
|
-
<!--<span v-if="show" style="font-weight:bold">{{model.f_order_man}}</span>-->
|
|
29
|
-
<!--<input type="text" class="form-control" v-model="model.f_order_man" v-if="!show" :disabled="issee">-->
|
|
30
|
-
<!--</div>-->
|
|
31
|
-
<!--<div class="col-xs-12 col-sm-6 col-md-6 form-input-group">-->
|
|
32
|
-
<!--<label class="text-justify lb-left">派单员:</label>-->
|
|
33
|
-
<!--<span v-if="show" style="font-weight:bold">{{f_single_man}}</span>-->
|
|
34
|
-
<!--<input type="text" class="form-control" v-model="f_single_man" v-if="!show" readonly >-->
|
|
35
|
-
<!--</div>-->
|
|
36
|
-
<!--<div class="col-xs-12 col-sm-12 col-md-12 form-input-group">-->
|
|
37
|
-
<!--<label class="text-justify lb-left">反馈建议:</label>-->
|
|
38
|
-
<!--<span v-if="show" style="font-weight:bold">{{model.f_service_idea}}</span>-->
|
|
39
|
-
<!--<textarea class="form-control" cols="30" rows="4" style="resize: vertical;" v-model="model.f_service_idea" v-if="!show" :disabled="issee"></textarea>-->
|
|
40
|
-
<!--</div>-->
|
|
41
13
|
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group">
|
|
42
14
|
<label class="text-justify lb-left">备注:</label>
|
|
43
|
-
<span v-if="show" style="font-weight:bold">{{model.f_remarks}}</span>
|
|
44
|
-
<textarea class="form-control" cols="30" rows="4" style="resize: vertical;" v-model="model.f_remarks"
|
|
15
|
+
<span v-if="show" style="font-weight:bold">{{ model.f_remarks }}</span>
|
|
16
|
+
<textarea class="form-control" cols="30" rows="4" style="resize: vertical;" v-model="model.f_remarks"
|
|
17
|
+
v-if="!show" :disabled="issee"></textarea>
|
|
45
18
|
</div>
|
|
46
19
|
</div>
|
|
47
20
|
<div class="row auto" v-if="imgtpe">
|
|
48
|
-
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group"
|
|
49
|
-
<label class="text-justify lb-left">{{row.title}}</label>
|
|
50
|
-
<img-area
|
|
21
|
+
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group" v-for="row in imgstype">
|
|
22
|
+
<label class="text-justify lb-left">{{ row.title }}</label>
|
|
23
|
+
<img-area :model="model.imgs" :sutitle="getsutitle(row.title)"></img-area>
|
|
51
24
|
</div>
|
|
52
25
|
</div>
|
|
53
|
-
<img-area
|
|
54
|
-
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group"
|
|
26
|
+
<img-area :model="model.imgs" :sutitle="'总体照片'" v-if="!imgtpe"></img-area>
|
|
27
|
+
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group"
|
|
28
|
+
v-show="service.f_user_type == '民用' && service.f_workorder_type == '置换通气单'">
|
|
55
29
|
<label class="text-justify lb-left">安全告知:</label>
|
|
56
30
|
<span style="font-weight:bold">已告知气密5000Pa15分钟合格、安全提示贴已张贴、安全宣传页已发放、安全用气常识已讲解、保持24小时开窗通风、通气后严禁拆卸推拉门</span>
|
|
57
31
|
</div>
|
|
58
|
-
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group"
|
|
32
|
+
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group"
|
|
33
|
+
v-show="service.f_user_type == '非民用' && service.f_workorder_type == '置换通气单'">
|
|
59
34
|
<label class="text-justify lb-left">安全告知:</label>
|
|
60
35
|
<span style="font-weight:bold">岗位职责、阀门开关巡检登记表</span>
|
|
61
36
|
</div>
|
|
@@ -67,11 +42,12 @@
|
|
|
67
42
|
<new-sign :value="model.f_signname" @input="getSignValue"></new-sign>
|
|
68
43
|
</div>
|
|
69
44
|
<div v-if="show && model.f_sign_imgid">
|
|
70
|
-
<img :src="'rs/file/getfile/' + model.f_sign_imgid" :width="150" :height="200"
|
|
45
|
+
<img :src="'rs/file/getfile/' + model.f_sign_imgid" :width="150" :height="200">
|
|
71
46
|
</div>
|
|
72
47
|
</div>
|
|
73
48
|
<material-sum v-if="!materialsumshow" v-on:sumchange="sumchange"
|
|
74
|
-
v-on:back="showchenge" :material="model.material" :f_cost_material="model.f_cost_material"
|
|
49
|
+
v-on:back="showchenge" :material="model.material" :f_cost_material="model.f_cost_material"
|
|
50
|
+
:show="show">
|
|
75
51
|
</material-sum>
|
|
76
52
|
</validator>
|
|
77
53
|
</div>
|
|
@@ -80,10 +56,10 @@
|
|
|
80
56
|
<script>
|
|
81
57
|
import Vue from 'vue'
|
|
82
58
|
import * as Util from '../../../components/Util'
|
|
59
|
+
|
|
83
60
|
export default {
|
|
84
61
|
title: '费用',
|
|
85
62
|
props: {
|
|
86
|
-
// 本次维修, 包含照片数组 材料数组
|
|
87
63
|
model: {
|
|
88
64
|
type: Object
|
|
89
65
|
},
|
|
@@ -99,46 +75,40 @@
|
|
|
99
75
|
},
|
|
100
76
|
system: '',
|
|
101
77
|
shutype: 'heng',
|
|
102
|
-
issee:''
|
|
78
|
+
issee: ''
|
|
103
79
|
},
|
|
104
|
-
data
|
|
80
|
+
data() {
|
|
105
81
|
return {
|
|
106
|
-
signType:{
|
|
82
|
+
signType: {
|
|
107
83
|
type: Boolean,
|
|
108
84
|
default: true
|
|
109
85
|
},
|
|
110
|
-
// 拍照时的文件名
|
|
111
86
|
imgurl: 'http://192.168.2.77:8081',
|
|
112
87
|
fileName: '',
|
|
113
|
-
materialsumshow: {
|
|
88
|
+
materialsumshow: {
|
|
114
89
|
type: Boolean,
|
|
115
90
|
default: true
|
|
116
91
|
},
|
|
117
|
-
imgtpe:false,
|
|
118
|
-
imgstype:[]
|
|
92
|
+
imgtpe: false,
|
|
93
|
+
imgstype: []
|
|
119
94
|
}
|
|
120
95
|
},
|
|
121
96
|
methods: {
|
|
122
|
-
getSignValue(fileName){
|
|
123
|
-
//tag
|
|
124
|
-
//tag
|
|
97
|
+
getSignValue(fileName) {
|
|
125
98
|
this.model.f_signname = fileName
|
|
126
99
|
this.model.f_sign_path = this.$androidUtil.getFullFileName(fileName)
|
|
127
100
|
},
|
|
128
|
-
getsutitle(val){
|
|
101
|
+
getsutitle(val) {
|
|
129
102
|
return val
|
|
130
103
|
},
|
|
131
|
-
mute
|
|
104
|
+
mute() {
|
|
132
105
|
HostApp.mute()
|
|
133
106
|
},
|
|
134
|
-
// 签名回调
|
|
135
107
|
signCallback(prop, fileName) {
|
|
136
|
-
// HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
|
|
137
108
|
HostApp.__this__.$set('model.f_signname', fileName)
|
|
138
109
|
HostApp.__callback__ = null
|
|
139
110
|
HostApp.__this__ = null
|
|
140
111
|
},
|
|
141
|
-
// 用户签名
|
|
142
112
|
sign() {
|
|
143
113
|
this.delAudioFile('f_signname', this.model.f_signname)
|
|
144
114
|
let prop = 'f_signname'
|
|
@@ -160,20 +130,15 @@
|
|
|
160
130
|
this.model[prop] = null
|
|
161
131
|
}
|
|
162
132
|
},
|
|
163
|
-
|
|
164
|
-
remove (row) {
|
|
133
|
+
remove(row) {
|
|
165
134
|
this.$androidUtil.delfile(row.android_file)
|
|
166
135
|
let pos = this.model.imgs.findIndex((value) => {
|
|
167
136
|
return value === row
|
|
168
137
|
})
|
|
169
138
|
this.model.imgs.splice(pos, 1)
|
|
170
139
|
},
|
|
171
|
-
// fileName: 回传文件名,传入的带安卓路径url
|
|
172
|
-
// prop: 传入的字段名,没做改动
|
|
173
140
|
cameraCallBack(prop, fileName) {
|
|
174
|
-
// 当前this只能通过HostApp.__tis__获取
|
|
175
141
|
let self = this.$androidUtil.getCallBack(this)
|
|
176
|
-
// 添加新图片
|
|
177
142
|
self.model.imgs.push({
|
|
178
143
|
android_file: self.fileName,
|
|
179
144
|
path: fileName
|
|
@@ -185,53 +150,45 @@
|
|
|
185
150
|
this.fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
|
|
186
151
|
this.$androidUtil.takePic(this, this.cameraCallBack, this.fileName)
|
|
187
152
|
},
|
|
188
|
-
|
|
189
|
-
sumshow(){
|
|
153
|
+
sumshow() {
|
|
190
154
|
this.materialsumshow = false
|
|
191
155
|
},
|
|
192
|
-
|
|
193
|
-
sumchange(val){
|
|
156
|
+
sumchange(val) {
|
|
194
157
|
this.model.f_cost_material = val
|
|
195
158
|
},
|
|
196
|
-
|
|
197
|
-
showchenge(val){
|
|
159
|
+
showchenge(val) {
|
|
198
160
|
this.materialsumshow = true
|
|
199
|
-
if(!isNaN(val)) {
|
|
161
|
+
if (!isNaN(val)) {
|
|
200
162
|
this.model.f_cost_material = val
|
|
201
163
|
}
|
|
202
164
|
}
|
|
203
165
|
},
|
|
204
|
-
ready(){
|
|
205
|
-
if(Vue.config.telephone.Outlay.data != undefined){
|
|
206
|
-
|
|
207
|
-
//tag)
|
|
208
|
-
if(this.service.f_user_type == '民用'){
|
|
166
|
+
ready() {
|
|
167
|
+
if (Vue.config.telephone.Outlay.data != undefined) {
|
|
168
|
+
if (this.service.f_user_type == '民用') {
|
|
209
169
|
this.imgstype = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.Outlay.data[this.service.f_workorder_type].civil)))
|
|
210
|
-
}else{
|
|
170
|
+
} else {
|
|
211
171
|
this.imgstype = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.Outlay.data[this.service.f_workorder_type].nocivil)))
|
|
212
172
|
}
|
|
213
|
-
if(this.imgstype.length>0){
|
|
173
|
+
if (this.imgstype.length > 0) {
|
|
214
174
|
this.imgtpe = true
|
|
215
175
|
}
|
|
216
176
|
}
|
|
217
|
-
if(navigator.userAgent.match('iPad') || navigator.userAgent.match('iPhone')){
|
|
177
|
+
if (navigator.userAgent.match('iPad') || navigator.userAgent.match('iPhone')) {
|
|
218
178
|
this.signType = false
|
|
219
179
|
}
|
|
220
|
-
if(this.model && this.model.f_single_man){
|
|
180
|
+
if (this.model && this.model.f_single_man) {
|
|
221
181
|
this.model.f_single_man = this.f_single_man
|
|
222
182
|
}
|
|
223
|
-
if(!this.show&&this.model){
|
|
224
|
-
if(Vue.user == undefined)
|
|
183
|
+
if (!this.show && this.model) {
|
|
184
|
+
if (Vue.user == undefined)
|
|
225
185
|
return
|
|
226
186
|
this.model.f_order_man = Vue.user.name
|
|
227
187
|
this.model.f_order_man_id = Vue.user.id
|
|
228
188
|
}
|
|
229
|
-
//tag
|
|
230
|
-
//tag
|
|
231
|
-
//tag
|
|
232
189
|
},
|
|
233
|
-
computed:{
|
|
234
|
-
Detail(){
|
|
190
|
+
computed: {
|
|
191
|
+
Detail() {
|
|
235
192
|
if (this.model.imgs && this.model.servicerepair.length > 0) {
|
|
236
193
|
let result = this.model.servicerepair.find((row) => {
|
|
237
194
|
return row.f_type === this.repairitem.header
|