task#10950,记账界面,显示一个查看照片的按钮。
This commit is contained in:
@ -51,7 +51,11 @@
|
||||
<span class="titleLeft">扣除责任险费:</span>
|
||||
<span class="content">{{orderInfo.policyAmount}} {{orderInfo.cutInsuranceAmount}}</span>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<span class="leftTitle fontColor">工单照片:</span><span class="rightContent">
|
||||
<span class="driverPoiBtn" @click="checkPhoto">查看照片</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="supplierData common" v-show="!auditFormShow">
|
||||
<div class="title">供应商数据:</div>
|
||||
@ -379,6 +383,25 @@ export default {
|
||||
},
|
||||
},
|
||||
methods:{
|
||||
checkPhoto(){
|
||||
let isAllowImage = 1
|
||||
let data = {
|
||||
"action": "orderPhoto",
|
||||
"params": {
|
||||
"userOrderId": this.orderInfo.userOrderId,
|
||||
"orderCode": this.orderInfo.orderCode,
|
||||
"taskOrderId": this.orderInfo.taskOrderId,
|
||||
"isAllowImage":isAllowImage,
|
||||
}
|
||||
}
|
||||
var u = navigator.userAgent;
|
||||
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
||||
if(isiOS){
|
||||
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
||||
}else {
|
||||
window.android.sendMessage("orderPhoto,"+this.userOrderId+","+this.orderCode+","+this.taskOrderId+","+isAllowImage);
|
||||
}
|
||||
},
|
||||
previewPhoto(index) {
|
||||
let url=[]
|
||||
this.auditPhotoList.forEach((item)=>{
|
||||
@ -470,6 +493,7 @@ export default {
|
||||
})
|
||||
if(res.code === 200){
|
||||
this.orderInfo=res.data
|
||||
console.log("this.orderInfo",this.orderInfo)
|
||||
this.serviceType=this.orderInfo.serviceName
|
||||
this.taskFlowId=this.orderInfo.taskFlowId
|
||||
this.settleType=this.orderInfo.settleType?.label
|
||||
@ -741,6 +765,33 @@ export default {
|
||||
opacity: .5;
|
||||
line-height: 27px;
|
||||
}
|
||||
.leftTitle{
|
||||
opacity: .5;
|
||||
@include wh(60px,189px);
|
||||
}
|
||||
.rightContent{
|
||||
height: 189px;
|
||||
width: calc(100% - 60px);
|
||||
}
|
||||
.fontColor{
|
||||
@include fontWeightSize(400,12px);
|
||||
color: #000000;
|
||||
line-height: 24px;
|
||||
}
|
||||
.rightContent{
|
||||
width: calc(100% - 90px);
|
||||
@include fontWeightSize(bold,12px);
|
||||
.driverPoiBtn{
|
||||
display: inline-block;
|
||||
padding: 3px 8px;
|
||||
@include bgFontColor(#FFFFFF,#354D93);
|
||||
opacity: .7;
|
||||
border-radius: 3px;
|
||||
text-align: center;
|
||||
//margin-left: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
img{
|
||||
@include wh(35px,15px);
|
||||
@ -753,7 +804,7 @@ img{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.baseInfo{
|
||||
@include wh(100%,276px);
|
||||
@include wh(100%,286px);
|
||||
|
||||
}
|
||||
.supplierData{
|
||||
|
Reference in New Issue
Block a user