This commit is contained in:
PQZ 2024-11-04 18:44:07 +08:00
commit db2726043e
5 changed files with 67 additions and 8 deletions

View File

@ -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('播放完成');

View File

@ -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")

View File

@ -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({

View File

@ -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
}) })

View File

@ -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,"","");