Merge branch 'master' of http://122.51.230.86:3000/dianliang/lanan-repair-app
This commit is contained in:
commit
db2726043e
@ -140,6 +140,12 @@
|
|||||||
if (currentCount < playCount) {
|
if (currentCount < playCount) {
|
||||||
// 继续播放
|
// 继续播放
|
||||||
innerAudioContext.play();
|
innerAudioContext.play();
|
||||||
|
// 震动
|
||||||
|
uni.vibrateLong({
|
||||||
|
success: function () {
|
||||||
|
console.log('success');
|
||||||
|
}
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
// 播放完成,可以在这里添加额外的逻辑
|
// 播放完成,可以在这里添加额外的逻辑
|
||||||
console.log('播放完成');
|
console.log('播放完成');
|
||||||
|
|||||||
@ -106,6 +106,16 @@
|
|||||||
</view>
|
</view>
|
||||||
<project-picker ref="proj" @confirm="projConfirm"></project-picker>
|
<project-picker ref="proj" @confirm="projConfirm"></project-picker>
|
||||||
<tabBarVue msg="1" @socketSuccess="socketSuccess"></tabBarVue>
|
<tabBarVue msg="1" @socketSuccess="socketSuccess"></tabBarVue>
|
||||||
|
<!-- 提示窗示例 -->
|
||||||
|
<uni-popup ref="alertDialog" type="dialog">
|
||||||
|
<uni-popup-dialog type="success" cancelText="线下告知" confirmText="去签字" title="系统提示" content="客户是否在场进行签字确认?" @confirm="dialogConfirm"
|
||||||
|
@close="dialogClose"></uni-popup-dialog>
|
||||||
|
</uni-popup>
|
||||||
|
<!-- 输入框示例 -->
|
||||||
|
<uni-popup ref="inputDialog" type="dialog">
|
||||||
|
<uni-popup-dialog ref="inputClose" mode="input" title="线下告知" value=""
|
||||||
|
placeholder="请填入告知方式!" @confirm="dialogInputConfirm"></uni-popup-dialog>
|
||||||
|
</uni-popup>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -122,7 +132,8 @@ import {
|
|||||||
getUserInfo,
|
getUserInfo,
|
||||||
getStrData,
|
getStrData,
|
||||||
getTenantId,
|
getTenantId,
|
||||||
setJSONData
|
setJSONData,
|
||||||
|
getJSONData
|
||||||
} from '@/utils/auth'
|
} from '@/utils/auth'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -188,6 +199,8 @@ export default {
|
|||||||
ticketId: null,
|
ticketId: null,
|
||||||
//新加的维修项目
|
//新加的维修项目
|
||||||
selectedProj: [],
|
selectedProj: [],
|
||||||
|
//告知客户的内容
|
||||||
|
tellCusText:"",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(){
|
onLoad(){
|
||||||
@ -225,6 +238,48 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
/**
|
||||||
|
* 保存当前项目
|
||||||
|
*/
|
||||||
|
dialogInputConfirm(val) {
|
||||||
|
// 关闭窗口后,恢复默认内容
|
||||||
|
this.$refs.inputDialog.close()
|
||||||
|
const newData = {itemList:getJSONData("newProject"),remark:val}
|
||||||
|
request({
|
||||||
|
url: '/admin-api/repair/titem/addNewProj',
|
||||||
|
method: 'post',
|
||||||
|
data:newData
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.code == 200) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '添加维修项目成功!',
|
||||||
|
icon: 'success'
|
||||||
|
})
|
||||||
|
uni.navigateTo({
|
||||||
|
url: `/pages-order/orderDetail/orderDetail?id=${res.data}&isDetail=0`
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
uni.showToast({
|
||||||
|
title: '操作失败,请联系管理员',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 去签字
|
||||||
|
*/
|
||||||
|
dialogConfirm() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages-home/service/sign-agin'
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 客户不在场,手动输入
|
||||||
|
*/
|
||||||
|
dialogClose() {
|
||||||
|
this.$refs.inputDialog.open()
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 添加项目
|
* 添加项目
|
||||||
*/
|
*/
|
||||||
@ -238,10 +293,8 @@ export default {
|
|||||||
projConfirm(proj) {
|
projConfirm(proj) {
|
||||||
this.selectedProj = proj
|
this.selectedProj = proj
|
||||||
if(this.selectedProj.length>0){
|
if(this.selectedProj.length>0){
|
||||||
setJSONData("newProject",this.selectedProj)
|
setJSONData("newProject",this.formatItem(this.selectedProj))
|
||||||
uni.navigateTo({
|
this.$refs.alertDialog.open()
|
||||||
url: '/pages-home/service/sign-agin'
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
console.log(this.selectedProj,"selectedProj")
|
console.log(this.selectedProj,"selectedProj")
|
||||||
console.log(this.ticketId,"this.ticketId")
|
console.log(this.ticketId,"this.ticketId")
|
||||||
|
|||||||
@ -433,7 +433,7 @@
|
|||||||
icon: 'success'
|
icon: 'success'
|
||||||
})
|
})
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/pages-order/orderDetail/orderDetail?id=${res.data.id}&isDetail=0`
|
url: `/pages-order/orderDetail/orderDetail?id=${res.data}&isDetail=0`
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
@ -268,6 +268,7 @@ export default {
|
|||||||
id: this.ticketId,
|
id: this.ticketId,
|
||||||
nowRepairId: this.checkedUserId,
|
nowRepairId: this.checkedUserId,
|
||||||
nowRepairName: this.checkedUserName,
|
nowRepairName: this.checkedUserName,
|
||||||
|
operateCode:"sgwczj"
|
||||||
}
|
}
|
||||||
console.log(param)
|
console.log(param)
|
||||||
request({
|
request({
|
||||||
@ -281,8 +282,6 @@ export default {
|
|||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (this.ifDetail) {
|
if (this.ifDetail) {
|
||||||
//记录一下操作记录
|
|
||||||
saveTicketsRecords(this.ticketId, '03',this.itemId,"03","sgwczj","维修完成移交下一班组维修","","01",this.checkedUserName);
|
|
||||||
uni.navigateBack({
|
uni.navigateBack({
|
||||||
delta: 2 // 返回倒数第2页
|
delta: 2 // 返回倒数第2页
|
||||||
})
|
})
|
||||||
|
|||||||
@ -546,6 +546,7 @@ export default {
|
|||||||
if("working"==this.nowChooseOperate){
|
if("working"==this.nowChooseOperate){
|
||||||
//维修中拍照
|
//维修中拍照
|
||||||
const result = await saveTicketsRecords(this.ticketInfo.id,null,this.nowRepair.repairItemId,null,"sgz","施工中拍照记录",fileStr,"","");
|
const result = await saveTicketsRecords(this.ticketInfo.id,null,this.nowRepair.repairItemId,null,"sgz","施工中拍照记录",fileStr,"","");
|
||||||
|
console.log(result)
|
||||||
}else if("done_half"==this.nowChooseOperate){
|
}else if("done_half"==this.nowChooseOperate){
|
||||||
//阶段完成
|
//阶段完成
|
||||||
const result = await saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","阶段完成",fileStr,"","");
|
const result = await saveTicketsRecords(this.ticketInfo.id, '03',this.nowRepair.repairItemId,"03","sgwczj","阶段完成",fileStr,"","");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user