telephone-clients 3.0.102 → 3.0.103
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 +1 -1
- package/src/App.vue +56 -52
- package/src/components/MaterialsManage/MaterialsBase.vue +177 -177
- package/src/components/Util/RightTreeSafe.vue +346 -346
- package/src/components/pc/NewRepairPaper.vue +370 -370
- package/src/components/pc/SiteSend.vue +281 -281
- package/src/components/pc/WorkCenterList.vue +292 -292
- package/src/components/pc/WorkListAllNew.vue +700 -700
- package/src/components/temp/ChangemeterInfo.vue +87 -87
- package/src/components/temp/DeviceInfo.vue +82 -82
- package/src/components/workorder/FaultAll.vue +826 -826
- package/src/components/workorder/PhoneStandWork.vue +354 -354
- package/src/components/workorder/RepairOrderV.vue +1446 -1446
- package/src/filiale/furuike/pc/ComplainWork.vue +348 -348
- package/src/filiale/furuike/pc/Seekwork.vue +352 -352
- package/src/filiale/gongyi/android/RepairOrderV.vue +1415 -1415
- package/src/filiale/liaoyuan/android/RepairOrderV.vue +831 -831
- package/src/filiale/qianneng/android/FaultAll.vue +883 -883
- package/src/filiale/qianneng/android/MaterIialOne.vue +123 -123
- package/src/filiale/qianneng/android/RepairOrderV.vue +874 -874
- package/src/filiale/qianneng/android/chargesList.vue +161 -161
- package/src/filiale/qianneng/pc/NewRepairPaper.vue +467 -467
- package/src/filiale/qianneng/pc/RepairsWork.vue +982 -982
- package/src/filiale/qianneng/pc/WorkListAllNew.vue +701 -701
- package/src/filiale/shanxian/pc/WorkList.vue +823 -823
- package/src/filiale/shanxian/telephone.js +12 -12
- package/src/filiale/shexian/android/AddMyTask.vue +347 -0
- package/src/filiale/shexian/android/Outlay.vue +249 -249
- package/src/filiale/shexian/pc/WorkList.vue +740 -0
- package/src/filiale/shexian/telephone.js +18 -17
- package/src/filiale/shexian/telephoneAndroid.js +26 -23
- package/src/filiale/tongchuan/pc/UserWork.vue +805 -805
- package/src/filiale/wenxi/android/RepairOrderV.vue +1419 -1419
- package/src/filiale/wuan/android/RepairOrderV.vue +1384 -1384
- package/src/filiale/zhongsheng/android/RepairOrderV.vue +1430 -1430
- package/src/filiale/zhongsheng/pc/RepairsWork.vue +775 -775
- package/src/filiale/zhongsheng/telephone.js +23 -23
- package/src/main.js +1 -1
- package/yarn-error.log +7872 -0
|
@@ -1,249 +1,249 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="select-overspread repair-bg auto" style="padding-bottom:5px;">
|
|
3
|
-
<validator name="v">
|
|
4
|
-
<!-- 费用 -->
|
|
5
|
-
|
|
6
|
-
<div class="bq-parent" v-if="shutype == 'heng'">
|
|
7
|
-
<blockquote class="blockquote">
|
|
8
|
-
<p>费用<a @click="mute()" style="float:right" href="javascript:void(0)" class="repair-mute-class"><img src="../../../assets/novoice.png" width="25px;" alt=""><span style="margin-left:10px;color: #304A66">关闭声音</span></a></p>
|
|
9
|
-
</blockquote>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="auto repair-info-content compatible" v-if="materialsumshow">
|
|
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
|
-
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group">
|
|
42
|
-
<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" v-if="!show" :disabled="issee"></textarea>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
<div class="row auto" v-if="imgtpe">
|
|
48
|
-
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group" v-for="row in imgstype">
|
|
49
|
-
<label class="text-justify lb-left">{{row.title}}</label>
|
|
50
|
-
<img-area :model="model.imgs" :sutitle="getsutitle(row.title)"></img-area>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
<img-area :model="model.imgs" :sutitle="'总体照片'" v-if="!imgtpe" ></img-area>
|
|
54
|
-
<div v-if="check" style="margin: 15px 10px; display: flex; flex-direction: column; gap: 10px">
|
|
55
|
-
<div style="border-left: 5px solid #a9beeb;padding-left: 10px;">请确认并勾选以下事项然后进行签名</div>
|
|
56
|
-
<div>
|
|
57
|
-
<input style="margin-right: 5px" type="checkbox" v-model="isCheck" :value.sync="isCheck">
|
|
58
|
-
{{check}}
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
<p style="font-size: 15px;font-weight: bold" v-if="model.f_sign_imgid">客户签名:</p>
|
|
62
|
-
<div v-if="!show && signType">
|
|
63
|
-
<Sign :signname="model.f_signname" @input="getSignValue"></Sign>
|
|
64
|
-
</div>
|
|
65
|
-
<div v-if="!show && !signType">
|
|
66
|
-
<new-sign :value="model.f_signname" @input="getSignValue"></new-sign>
|
|
67
|
-
</div>
|
|
68
|
-
<div v-if="show && model.f_sign_imgid">
|
|
69
|
-
<img :src="'rs/file/getfile/' + model.f_sign_imgid" :width="150" :height="200" >
|
|
70
|
-
</div>
|
|
71
|
-
</div>
|
|
72
|
-
<material-sum v-if="!materialsumshow" v-on:sumchange="sumchange"
|
|
73
|
-
v-on:back="showchenge" :material="model.material" :f_cost_material="model.f_cost_material" :show="show">
|
|
74
|
-
</material-sum>
|
|
75
|
-
</validator>
|
|
76
|
-
</div>
|
|
77
|
-
</template>
|
|
78
|
-
|
|
79
|
-
<script>
|
|
80
|
-
import Vue from 'vue'
|
|
81
|
-
import * as Util from '../../../components/Util'
|
|
82
|
-
export default {
|
|
83
|
-
title: '费用',
|
|
84
|
-
props: {
|
|
85
|
-
// 本次维修, 包含照片数组 材料数组
|
|
86
|
-
model: {
|
|
87
|
-
type: Object
|
|
88
|
-
},
|
|
89
|
-
service: {
|
|
90
|
-
type: Object
|
|
91
|
-
},
|
|
92
|
-
show: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
default: false
|
|
95
|
-
},
|
|
96
|
-
f_single_man: {
|
|
97
|
-
type: Object
|
|
98
|
-
},
|
|
99
|
-
system: '',
|
|
100
|
-
shutype: 'heng',
|
|
101
|
-
issee:''
|
|
102
|
-
},
|
|
103
|
-
data () {
|
|
104
|
-
return {
|
|
105
|
-
signType:{
|
|
106
|
-
type: Boolean,
|
|
107
|
-
default: true
|
|
108
|
-
},
|
|
109
|
-
// 拍照时的文件名
|
|
110
|
-
imgurl: 'http://192.168.2.77:8081',
|
|
111
|
-
fileName: '',
|
|
112
|
-
materialsumshow: { // 控制明细组件和费用层的 显示 fasle 明细组建显示
|
|
113
|
-
type: Boolean,
|
|
114
|
-
default: true
|
|
115
|
-
},
|
|
116
|
-
imgtpe:false,
|
|
117
|
-
imgstype:[],
|
|
118
|
-
check: '',
|
|
119
|
-
isCheck: false
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
methods: {
|
|
123
|
-
getSignValue(fileName){
|
|
124
|
-
//tag
|
|
125
|
-
//tag
|
|
126
|
-
this.model.f_signname = fileName
|
|
127
|
-
this.model.f_sign_path = this.$androidUtil.getFullFileName(fileName)
|
|
128
|
-
},
|
|
129
|
-
getsutitle(val){
|
|
130
|
-
return val
|
|
131
|
-
},
|
|
132
|
-
mute () {
|
|
133
|
-
HostApp.mute()
|
|
134
|
-
},
|
|
135
|
-
// 签名回调
|
|
136
|
-
signCallback(prop, fileName) {
|
|
137
|
-
// HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
|
|
138
|
-
HostApp.__this__.$set('model.f_signname', fileName)
|
|
139
|
-
HostApp.__callback__ = null
|
|
140
|
-
HostApp.__this__ = null
|
|
141
|
-
},
|
|
142
|
-
// 用户签名
|
|
143
|
-
sign() {
|
|
144
|
-
this.delAudioFile('f_signname', this.model.f_signname)
|
|
145
|
-
let prop = 'f_signname'
|
|
146
|
-
let idx = 'aofeng'
|
|
147
|
-
let fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
|
|
148
|
-
HostApp.__callback__ = this.signCallback
|
|
149
|
-
HostApp.__this__ = this
|
|
150
|
-
HostApp.getSignature({
|
|
151
|
-
file: fileName,
|
|
152
|
-
requestCode: 111,
|
|
153
|
-
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
|
|
154
|
-
})
|
|
155
|
-
},
|
|
156
|
-
delAudioFile(prop, fileName) {
|
|
157
|
-
if (!fileName)
|
|
158
|
-
return
|
|
159
|
-
else {
|
|
160
|
-
HostApp.delfile(fileName)
|
|
161
|
-
this.model[prop] = null
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
// 从图片中删除
|
|
165
|
-
remove (row) {
|
|
166
|
-
this.$androidUtil.delfile(row.android_file)
|
|
167
|
-
let pos = this.model.imgs.findIndex((value) => {
|
|
168
|
-
return value === row
|
|
169
|
-
})
|
|
170
|
-
this.model.imgs.splice(pos, 1)
|
|
171
|
-
},
|
|
172
|
-
// fileName: 回传文件名,传入的带安卓路径url
|
|
173
|
-
// prop: 传入的字段名,没做改动
|
|
174
|
-
cameraCallBack(prop, fileName) {
|
|
175
|
-
// 当前this只能通过HostApp.__tis__获取
|
|
176
|
-
let self = this.$androidUtil.getCallBack(this)
|
|
177
|
-
// 添加新图片
|
|
178
|
-
self.model.imgs.push({
|
|
179
|
-
android_file: self.fileName,
|
|
180
|
-
path: fileName
|
|
181
|
-
})
|
|
182
|
-
},
|
|
183
|
-
takePic() {
|
|
184
|
-
let prop = 'repair'
|
|
185
|
-
let idx = 'aofeng'
|
|
186
|
-
this.fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
|
|
187
|
-
this.$androidUtil.takePic(this, this.cameraCallBack, this.fileName)
|
|
188
|
-
},
|
|
189
|
-
// 明细组件显示
|
|
190
|
-
sumshow(){
|
|
191
|
-
this.materialsumshow = false
|
|
192
|
-
},
|
|
193
|
-
// 当材料明细发生变化 材料费随之变化
|
|
194
|
-
sumchange(val){
|
|
195
|
-
this.model.f_cost_material = val
|
|
196
|
-
},
|
|
197
|
-
// 返回 总材料费 关闭材料费详情界面
|
|
198
|
-
showchenge(val){
|
|
199
|
-
this.materialsumshow = true
|
|
200
|
-
if(!isNaN(val)) {
|
|
201
|
-
this.model.f_cost_material = val
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
ready(){
|
|
206
|
-
if(Vue.config.telephone.Outlay.data != undefined){
|
|
207
|
-
this.check = Vue.config.telephone.Outlay.data.check
|
|
208
|
-
if (!this.check){
|
|
209
|
-
this.isCheck = true
|
|
210
|
-
}
|
|
211
|
-
//tag
|
|
212
|
-
//tag)
|
|
213
|
-
if(this.service.f_user_type == '民用'){
|
|
214
|
-
this.imgstype = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.Outlay.data[this.service.f_workorder_type].civil)))
|
|
215
|
-
}else{
|
|
216
|
-
this.imgstype = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.Outlay.data[this.service.f_workorder_type].nocivil)))
|
|
217
|
-
}
|
|
218
|
-
if(this.imgstype.length>0){
|
|
219
|
-
this.imgtpe = true
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
if(navigator.userAgent.match('iPad') || navigator.userAgent.match('iPhone')){
|
|
223
|
-
this.signType = false
|
|
224
|
-
}
|
|
225
|
-
if(this.model && this.model.f_single_man){
|
|
226
|
-
this.model.f_single_man = this.f_single_man
|
|
227
|
-
}
|
|
228
|
-
if(!this.show&&this.model){
|
|
229
|
-
if(Vue.user == undefined)
|
|
230
|
-
return
|
|
231
|
-
this.model.f_order_man = Vue.user.name
|
|
232
|
-
this.model.f_order_man_id = Vue.user.id
|
|
233
|
-
}
|
|
234
|
-
//tag
|
|
235
|
-
//tag
|
|
236
|
-
//tag
|
|
237
|
-
},
|
|
238
|
-
computed:{
|
|
239
|
-
Detail(){
|
|
240
|
-
if (this.model.imgs && this.model.servicerepair.length > 0) {
|
|
241
|
-
let result = this.model.servicerepair.find((row) => {
|
|
242
|
-
return row.f_type === this.repairitem.header
|
|
243
|
-
})
|
|
244
|
-
return result
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="select-overspread repair-bg auto" style="padding-bottom:5px;">
|
|
3
|
+
<validator name="v">
|
|
4
|
+
<!-- 费用 -->
|
|
5
|
+
|
|
6
|
+
<div class="bq-parent" v-if="shutype == 'heng'">
|
|
7
|
+
<blockquote class="blockquote">
|
|
8
|
+
<p>费用<a @click="mute()" style="float:right" href="javascript:void(0)" class="repair-mute-class"><img src="../../../assets/novoice.png" width="25px;" alt=""><span style="margin-left:10px;color: #304A66">关闭声音</span></a></p>
|
|
9
|
+
</blockquote>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="auto repair-info-content compatible" v-if="materialsumshow">
|
|
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
|
+
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group">
|
|
42
|
+
<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" v-if="!show" :disabled="issee"></textarea>
|
|
45
|
+
</div>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="row auto" v-if="imgtpe">
|
|
48
|
+
<div class="col-xs-12 col-sm-12 col-md-12 form-input-group" v-for="row in imgstype">
|
|
49
|
+
<label class="text-justify lb-left">{{row.title}}</label>
|
|
50
|
+
<img-area :model="model.imgs" :sutitle="getsutitle(row.title)"></img-area>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
<img-area :model="model.imgs" :sutitle="'总体照片'" v-if="!imgtpe" ></img-area>
|
|
54
|
+
<div v-if="check" style="margin: 15px 10px; display: flex; flex-direction: column; gap: 10px">
|
|
55
|
+
<div style="border-left: 5px solid #a9beeb;padding-left: 10px;">请确认并勾选以下事项然后进行签名</div>
|
|
56
|
+
<div>
|
|
57
|
+
<input style="margin-right: 5px" type="checkbox" v-model="isCheck" :value.sync="isCheck">
|
|
58
|
+
{{check}}
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<p style="font-size: 15px;font-weight: bold" v-if="model.f_sign_imgid">客户签名:</p>
|
|
62
|
+
<div v-if="!show && signType">
|
|
63
|
+
<Sign :signname="model.f_signname" @input="getSignValue"></Sign>
|
|
64
|
+
</div>
|
|
65
|
+
<div v-if="!show && !signType">
|
|
66
|
+
<new-sign :value="model.f_signname" @input="getSignValue"></new-sign>
|
|
67
|
+
</div>
|
|
68
|
+
<div v-if="show && model.f_sign_imgid">
|
|
69
|
+
<img :src="'rs/file/getfile/' + model.f_sign_imgid" :width="150" :height="200" >
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
<material-sum v-if="!materialsumshow" v-on:sumchange="sumchange"
|
|
73
|
+
v-on:back="showchenge" :material="model.material" :f_cost_material="model.f_cost_material" :show="show">
|
|
74
|
+
</material-sum>
|
|
75
|
+
</validator>
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|
|
78
|
+
|
|
79
|
+
<script>
|
|
80
|
+
import Vue from 'vue'
|
|
81
|
+
import * as Util from '../../../components/Util'
|
|
82
|
+
export default {
|
|
83
|
+
title: '费用',
|
|
84
|
+
props: {
|
|
85
|
+
// 本次维修, 包含照片数组 材料数组
|
|
86
|
+
model: {
|
|
87
|
+
type: Object
|
|
88
|
+
},
|
|
89
|
+
service: {
|
|
90
|
+
type: Object
|
|
91
|
+
},
|
|
92
|
+
show: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false
|
|
95
|
+
},
|
|
96
|
+
f_single_man: {
|
|
97
|
+
type: Object
|
|
98
|
+
},
|
|
99
|
+
system: '',
|
|
100
|
+
shutype: 'heng',
|
|
101
|
+
issee:''
|
|
102
|
+
},
|
|
103
|
+
data () {
|
|
104
|
+
return {
|
|
105
|
+
signType:{
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: true
|
|
108
|
+
},
|
|
109
|
+
// 拍照时的文件名
|
|
110
|
+
imgurl: 'http://192.168.2.77:8081',
|
|
111
|
+
fileName: '',
|
|
112
|
+
materialsumshow: { // 控制明细组件和费用层的 显示 fasle 明细组建显示
|
|
113
|
+
type: Boolean,
|
|
114
|
+
default: true
|
|
115
|
+
},
|
|
116
|
+
imgtpe:false,
|
|
117
|
+
imgstype:[],
|
|
118
|
+
check: '',
|
|
119
|
+
isCheck: false
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
methods: {
|
|
123
|
+
getSignValue(fileName){
|
|
124
|
+
//tag
|
|
125
|
+
//tag
|
|
126
|
+
this.model.f_signname = fileName
|
|
127
|
+
this.model.f_sign_path = this.$androidUtil.getFullFileName(fileName)
|
|
128
|
+
},
|
|
129
|
+
getsutitle(val){
|
|
130
|
+
return val
|
|
131
|
+
},
|
|
132
|
+
mute () {
|
|
133
|
+
HostApp.mute()
|
|
134
|
+
},
|
|
135
|
+
// 签名回调
|
|
136
|
+
signCallback(prop, fileName) {
|
|
137
|
+
// HostApp.alert('绑定属性:' + prop + ' 文件全路径如file:///storage/sdcard0/safecheck/abc.jpg:' + fullFileName)
|
|
138
|
+
HostApp.__this__.$set('model.f_signname', fileName)
|
|
139
|
+
HostApp.__callback__ = null
|
|
140
|
+
HostApp.__this__ = null
|
|
141
|
+
},
|
|
142
|
+
// 用户签名
|
|
143
|
+
sign() {
|
|
144
|
+
this.delAudioFile('f_signname', this.model.f_signname)
|
|
145
|
+
let prop = 'f_signname'
|
|
146
|
+
let idx = 'aofeng'
|
|
147
|
+
let fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
|
|
148
|
+
HostApp.__callback__ = this.signCallback
|
|
149
|
+
HostApp.__this__ = this
|
|
150
|
+
HostApp.getSignature({
|
|
151
|
+
file: fileName,
|
|
152
|
+
requestCode: 111,
|
|
153
|
+
callback: 'javascript:HostApp.__callback__("' + prop + '", "%s");'
|
|
154
|
+
})
|
|
155
|
+
},
|
|
156
|
+
delAudioFile(prop, fileName) {
|
|
157
|
+
if (!fileName)
|
|
158
|
+
return
|
|
159
|
+
else {
|
|
160
|
+
HostApp.delfile(fileName)
|
|
161
|
+
this.model[prop] = null
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
// 从图片中删除
|
|
165
|
+
remove (row) {
|
|
166
|
+
this.$androidUtil.delfile(row.android_file)
|
|
167
|
+
let pos = this.model.imgs.findIndex((value) => {
|
|
168
|
+
return value === row
|
|
169
|
+
})
|
|
170
|
+
this.model.imgs.splice(pos, 1)
|
|
171
|
+
},
|
|
172
|
+
// fileName: 回传文件名,传入的带安卓路径url
|
|
173
|
+
// prop: 传入的字段名,没做改动
|
|
174
|
+
cameraCallBack(prop, fileName) {
|
|
175
|
+
// 当前this只能通过HostApp.__tis__获取
|
|
176
|
+
let self = this.$androidUtil.getCallBack(this)
|
|
177
|
+
// 添加新图片
|
|
178
|
+
self.model.imgs.push({
|
|
179
|
+
android_file: self.fileName,
|
|
180
|
+
path: fileName
|
|
181
|
+
})
|
|
182
|
+
},
|
|
183
|
+
takePic() {
|
|
184
|
+
let prop = 'repair'
|
|
185
|
+
let idx = 'aofeng'
|
|
186
|
+
this.fileName = Util.guid() + '-valve-' + idx + '-' + prop + '.jpg'
|
|
187
|
+
this.$androidUtil.takePic(this, this.cameraCallBack, this.fileName)
|
|
188
|
+
},
|
|
189
|
+
// 明细组件显示
|
|
190
|
+
sumshow(){
|
|
191
|
+
this.materialsumshow = false
|
|
192
|
+
},
|
|
193
|
+
// 当材料明细发生变化 材料费随之变化
|
|
194
|
+
sumchange(val){
|
|
195
|
+
this.model.f_cost_material = val
|
|
196
|
+
},
|
|
197
|
+
// 返回 总材料费 关闭材料费详情界面
|
|
198
|
+
showchenge(val){
|
|
199
|
+
this.materialsumshow = true
|
|
200
|
+
if(!isNaN(val)) {
|
|
201
|
+
this.model.f_cost_material = val
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
ready(){
|
|
206
|
+
if(Vue.config.telephone.Outlay.data != undefined){
|
|
207
|
+
this.check = Vue.config.telephone.Outlay.data.check
|
|
208
|
+
if (!this.check){
|
|
209
|
+
this.isCheck = true
|
|
210
|
+
}
|
|
211
|
+
//tag
|
|
212
|
+
//tag)
|
|
213
|
+
if(this.service.f_user_type == '民用'){
|
|
214
|
+
this.imgstype = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.Outlay.data[this.service.f_workorder_type].civil)))
|
|
215
|
+
}else{
|
|
216
|
+
this.imgstype = Object.assign([], JSON.parse(JSON.stringify(Vue.config.telephone.Outlay.data[this.service.f_workorder_type].nocivil)))
|
|
217
|
+
}
|
|
218
|
+
if(this.imgstype.length>0){
|
|
219
|
+
this.imgtpe = true
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
if(navigator.userAgent.match('iPad') || navigator.userAgent.match('iPhone')){
|
|
223
|
+
this.signType = false
|
|
224
|
+
}
|
|
225
|
+
if(this.model && this.model.f_single_man){
|
|
226
|
+
this.model.f_single_man = this.f_single_man
|
|
227
|
+
}
|
|
228
|
+
if(!this.show&&this.model){
|
|
229
|
+
if(Vue.user == undefined)
|
|
230
|
+
return
|
|
231
|
+
this.model.f_order_man = Vue.user.name
|
|
232
|
+
this.model.f_order_man_id = Vue.user.id
|
|
233
|
+
}
|
|
234
|
+
//tag
|
|
235
|
+
//tag
|
|
236
|
+
//tag
|
|
237
|
+
},
|
|
238
|
+
computed:{
|
|
239
|
+
Detail(){
|
|
240
|
+
if (this.model.imgs && this.model.servicerepair.length > 0) {
|
|
241
|
+
let result = this.model.servicerepair.find((row) => {
|
|
242
|
+
return row.f_type === this.repairitem.header
|
|
243
|
+
})
|
|
244
|
+
return result
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
</script>
|