Commit 02cb75aa authored by 郭晓清's avatar 郭晓清

拍照组件接口修改

parent 9ebfd832
...@@ -103,20 +103,25 @@ ...@@ -103,20 +103,25 @@
</view> </view>
<!-- 异常预约 ,现场拍照 这里是调用拍照的两个组件--> <!-- 异常预约 ,现场拍照 这里是调用拍照的两个组件-->
<view class="right"> <view class="right">
<view v-show="allowRight" @click="allowRightClick" class="button"></view> <view v-if="errorSignIn" @click="take" class="button">
<text>异常签到</text>
</view>
<view v-if="scenePhoto" @click="scenePhotoClick" class="button">
<text>现场拍照</text>
</view>
</view> </view>
</view> </view>
<take-photo type="test" v-if="takeStatus" @close="closeTake"></take-photo>
</view> </view>
</template> </template>
<script> <script>
import appointTime from '@/components/appoint/appoint-time.vue' import appointTime from '@/components/appoint/appoint-time.vue'
import { import takePhoto from '@/components/take/index.vue'
getQueryString
} from '@/common/util.js'
export default { export default {
components: { components: {
appointTime appointTime,
'take-photo': takePhoto
}, },
data() { data() {
return { return {
...@@ -141,7 +146,10 @@ ...@@ -141,7 +146,10 @@
showTimeSelect: false, showTimeSelect: false,
submitType: '', submitType: '',
nextUrl:'', nextUrl:'',
btnClass:'appoint-btn' btnClass:'appoint-btn',
takeStatus:false,
errorSignIn:false,
scenePhoto: false
} }
}, },
onLoad(option) { onLoad(option) {
...@@ -155,9 +163,6 @@ ...@@ -155,9 +163,6 @@
this.loadOrderDetail() this.loadOrderDetail()
this.loadOrderRecord() this.loadOrderRecord()
this.getLocation() this.getLocation()
},
created() {
}, },
computed: { computed: {
phoneIcon() { phoneIcon() {
...@@ -172,6 +177,21 @@ ...@@ -172,6 +177,21 @@
} }
}, },
methods: { methods: {
scenePhotoClick() { // 跳转拍照小程序
uni.navigateTo({
url: 'pages/photo/list?orderId='+this.order.orderId+'&brandId='+this.order.lianbaoBrandId+'&brand='+this.order.brandName
+'&systemId='+this.order.partnerCompanyId+'&classifyId='+this.order.categoryId
})
},
take() {
uni.hideTabBar()
this.takeStatus = true
},
closeTake() {
this.takeStatus = false
// 获取返回的图片 ,如果返回的图片存在则直接异常签约,成功后跳转到去完工页面,
},
loadOrderDetail() { // 获取工单详情 loadOrderDetail() { // 获取工单详情
let self = this let self = this
let timestamp = new Date().getTime(); let timestamp = new Date().getTime();
...@@ -265,12 +285,14 @@ ...@@ -265,12 +285,14 @@
this.allowFeedback = true this.allowFeedback = true
this.showCenterBtn = true this.showCenterBtn = true
this.submitType = "maintainWorkerCheckin" this.submitType = "maintainWorkerCheckin"
this.errorSignIn = true
} else if (orderStatus > 31 && orderStatus < 80) { } else if (orderStatus > 31 && orderStatus < 80) {
// 完工 // 完工
this.centerButton = "filish" this.centerButton = "filish"
this.centerButtonText = "去完工" this.centerButtonText = "去完工"
this.allowFeedback = true this.allowFeedback = true
this.showCenterBtn = true this.showCenterBtn = true
this.scenePhoto = true
} else {} } else {}
}, },
handleBtn() { handleBtn() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment