删除打印
This commit is contained in:
parent
1cf1f44ea5
commit
14fdbcb067
|
|
@ -219,7 +219,6 @@
|
|||
}
|
||||
const firstgetqueryCgdList = () => {
|
||||
queryOrderList(form).then(res => {
|
||||
console.log(res)
|
||||
plsbuy.value.push(...res.result.records);
|
||||
status.value = res.result.total == plsbuy.value.length ? 'nomore' : 'loadmore';
|
||||
if(form.pageNo==1){
|
||||
|
|
@ -232,7 +231,6 @@
|
|||
const leftscrolltop = ref(0);
|
||||
const cardarr = ref([])
|
||||
const clickLeftMenu = (index : any, item : object) => {
|
||||
console.log(item)
|
||||
if (lefttarget.value != index) {
|
||||
middletarget.value = sctop.value;
|
||||
nextTick(()=>{
|
||||
|
|
@ -243,7 +241,6 @@
|
|||
leftscrolltop.value = (num - 2) * 186;
|
||||
lefttarget.value = index;
|
||||
queryOrderInfoList({ mainId: item.id }).then(res => {
|
||||
console.log(res)
|
||||
cardarr.value = res.result
|
||||
})
|
||||
}
|
||||
|
|
@ -253,7 +250,6 @@
|
|||
}
|
||||
const start = (v) =>{
|
||||
startOrder({id:v.id}).then(res=>{
|
||||
console.log(res)
|
||||
if(res.success){
|
||||
v.izStart = "Y";
|
||||
plsbuy.value[lefttarget.value].izStart = 'Y';
|
||||
|
|
|
|||
|
|
@ -721,7 +721,6 @@
|
|||
electricityMeterListArray(rizhivalue.value).then((element : any) => {
|
||||
if (element.code == 200) {
|
||||
relrule.value = element.result.records;
|
||||
// console.log("????111",relrule.value)
|
||||
openrizhi.value = true
|
||||
}
|
||||
})
|
||||
|
|
@ -733,7 +732,6 @@
|
|||
humidDevicejgList(rizhivalue.value).then((element : any) => {
|
||||
if (element.code == 200) {
|
||||
relrule.value = element.result.records
|
||||
// console.log("aaaa",relrule.value)
|
||||
openrizhi.value = true
|
||||
}
|
||||
})
|
||||
|
|
@ -973,7 +971,6 @@
|
|||
duration: 1500,
|
||||
mask: false
|
||||
})
|
||||
console.log("!1", res)
|
||||
|
||||
setTimeout(() => {
|
||||
init()
|
||||
|
|
@ -987,7 +984,6 @@
|
|||
duration: 1500,
|
||||
mask: false
|
||||
})
|
||||
console.log("!1", res)
|
||||
setTimeout(() => {
|
||||
init()
|
||||
}, 4000)
|
||||
|
|
@ -1409,7 +1405,6 @@
|
|||
});
|
||||
const allArray = ref([]);
|
||||
const yulan = () => {
|
||||
// console.log("?????")
|
||||
setTimeout(() => {
|
||||
typeNowtarget.value = 0
|
||||
changeallmessage()
|
||||
|
|
|
|||
|
|
@ -620,7 +620,6 @@
|
|||
}
|
||||
queryEmpList({id:uni.getStorageSync('userInfo').id}).then(res=>{
|
||||
zdxzarr.value = res.result;
|
||||
console.log(res)
|
||||
zdxzarr.value.forEach(item=>{
|
||||
item.flag = false
|
||||
})
|
||||
|
|
@ -708,7 +707,6 @@
|
|||
beforeBy:indexmessage.value.employeeId,
|
||||
beforeByName:indexmessage.value.employeeName
|
||||
}
|
||||
console.log(obj)
|
||||
assistOrder(obj).then(res=>{
|
||||
if(res.success){
|
||||
clickLeftMenu(0,{id:indexmessage.value.mainId})
|
||||
|
|
@ -722,7 +720,6 @@
|
|||
const plsbuy = ref([])
|
||||
const firstgetqueryCgdList = (nuId) => {
|
||||
form.nuId = nuId;
|
||||
console.log(form)
|
||||
queryOrderList(form).then(res => {
|
||||
if(res.result.records.length>0){
|
||||
clickLeftMenu(0,res.result.records[0])
|
||||
|
|
@ -733,7 +730,6 @@
|
|||
}
|
||||
const clickLeftMenu = (index : any, item : object) => {
|
||||
queryOrderInfoList({ mainId: item.id }).then(res => {
|
||||
console.log(res)
|
||||
if(res.result.length>0){
|
||||
indexmessage.value = res.result[0]
|
||||
}else{
|
||||
|
|
@ -780,7 +776,6 @@
|
|||
success: res => {
|
||||
sxdupld(res.tempFilePath)
|
||||
// v.picPatharr.push(res.tempFilePath);
|
||||
// console.log(v.picPatharr)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
@ -798,7 +793,6 @@
|
|||
success: res => {
|
||||
sxdupld(res.tempFilePath)
|
||||
// v.picPatharr.push(res.tempFilePath);
|
||||
// console.log(v.picPatharr)
|
||||
}
|
||||
})
|
||||
// sxdupld(res.tempFilePath )
|
||||
|
|
@ -860,7 +854,6 @@
|
|||
let u = []
|
||||
arr.forEach(e => {
|
||||
u.push(serverUrl.value + e)
|
||||
console.log(serverUrl.value + e)
|
||||
})
|
||||
uni.previewImage({
|
||||
current: i,
|
||||
|
|
@ -960,7 +953,6 @@
|
|||
elderId:elderId
|
||||
}
|
||||
queryCountByType(data).then(res=>{
|
||||
// console.log(res)
|
||||
hldyobj.value = res.result
|
||||
})
|
||||
}
|
||||
|
|
@ -990,7 +982,6 @@
|
|||
if(e==2){
|
||||
fwzlarr.value = zlarr.value.logistics
|
||||
}
|
||||
console.log(fwzlarr.value)
|
||||
}
|
||||
const zldex = (e) =>{
|
||||
if(e>-1&&e==fwzldex.value){
|
||||
|
|
@ -1011,7 +1002,6 @@
|
|||
triggerMode:1,
|
||||
orderType:code
|
||||
}
|
||||
console.log(obj)
|
||||
generateInstant(obj).then(res=>{
|
||||
if(res.success){
|
||||
jszlshow.value = false
|
||||
|
|
@ -1039,9 +1029,7 @@
|
|||
const severcards = ref<InstanceType<typeof ChildComponent>>()
|
||||
const start = (v) =>{
|
||||
if(v.izStart!='N'){return}
|
||||
console.log(v)
|
||||
startOrder({id:v.id}).then(res=>{
|
||||
console.log(res)
|
||||
if(res.success){
|
||||
v.izStart = "Y";
|
||||
severcards.value.firstgetqueryCgdList()
|
||||
|
|
@ -1203,9 +1191,7 @@
|
|||
// workType: 5
|
||||
// }
|
||||
// queryWorkOrderList(data).then((res : any) => {
|
||||
// console.log("看看图",res)
|
||||
// indexmessage.value = res.result.records[0];
|
||||
// console.log("看看图",'https://www.focusnu.com/media/upFiles/'+indexmessage.value.previewFile)
|
||||
// })
|
||||
}
|
||||
const lanjie = ref(false);
|
||||
|
|
@ -1251,7 +1237,6 @@
|
|||
})
|
||||
// emotionTagList.value = res.result.emotionTagList;
|
||||
// bodyTagList.value = res.result.bodyTagList;
|
||||
console.log(res.result)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -587,7 +587,6 @@
|
|||
watch(
|
||||
() => props.isshow,
|
||||
(newVal, oldVal) => {
|
||||
// console.log(1111)
|
||||
// 只有当新旧值不相同时才执行
|
||||
if (newVal !== oldVal) {
|
||||
bottomisShaking.value = false
|
||||
|
|
@ -757,7 +756,6 @@
|
|||
function onTap(e) {
|
||||
const now = Date.now()
|
||||
thirdmenuIndex.value = e
|
||||
// console.log("????",thirdmenuIndex.value)
|
||||
if (now - lastTap.value < DOUBLE_TAP_DELAY) {
|
||||
// 双击成立
|
||||
thirdmenuIndex.value = e
|
||||
|
|
@ -1174,10 +1172,8 @@
|
|||
summary: "九泰护理日程测试",
|
||||
imageUrl: "https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/uni@2x.png",
|
||||
success: function (res) {
|
||||
console.log("success:");
|
||||
},
|
||||
fail: function (err) {
|
||||
console.log("fail:");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -1221,7 +1217,6 @@
|
|||
|
||||
showDetail.value[0] = index0;
|
||||
showDetail.value[1] = index1;
|
||||
// console.log("shaa",timearr.value[showDetail.value[0]]?.children[showDetail.value[1]]?.izPackage)
|
||||
isopacity.value = false;
|
||||
//加动画
|
||||
setTimeout(() => {
|
||||
|
|
@ -1238,7 +1233,6 @@
|
|||
const reldata = ref([]);
|
||||
const deleteRuler = (index0 : number, index1 : number) => {
|
||||
deleteDirective(timearr.value[index0].children[index1]).then((res : any) => {
|
||||
console.log("删除",res)
|
||||
if (res.success) {
|
||||
geteverything()
|
||||
}
|
||||
|
|
@ -1459,7 +1453,6 @@
|
|||
// 实现即时指令动画
|
||||
cleansettimeout.value = setTimeout(() => {
|
||||
bottomItems.value[0].target = `#fff`;
|
||||
console.log("即时指令看看进入了啥", pushValue)
|
||||
addInstant(pushValue).then((res : any) => {
|
||||
if (res.success) {
|
||||
geteverything()
|
||||
|
|
@ -1664,9 +1657,7 @@
|
|||
const emotionTagList = ref([]);
|
||||
const bodyTagList = ref([]);
|
||||
const geteverything = () => {
|
||||
// console.log("有没有",uni.getStorageSync('nuId'),uni.getStorageSync('elderId'))
|
||||
getNclist(uni.getStorageSync('nuId'),uni.getStorageSync('elderId')).then((res : any) => {
|
||||
console.log("啥啊",res)
|
||||
timearr.value = Array.from({ length: 24 }, (_, hour) => ({
|
||||
positioning: hour.toString(),
|
||||
children: minuteArr.map(time => ({
|
||||
|
|
@ -1696,7 +1687,6 @@
|
|||
})
|
||||
// if (uni.getStorageSync('nuId') && uni.getStorageSync('elderId')) {
|
||||
// getNclist(uni.getStorageSync('nuId'), uni.getStorageSync('elderId')).then((res : any) => {
|
||||
// console.log("啥啊",res)
|
||||
// timearr.value = Array.from({ length: 24 }, (_, hour) => ({
|
||||
// positioning: hour.toString(),
|
||||
// children: minuteArr.map(time => ({
|
||||
|
|
@ -1733,7 +1723,6 @@
|
|||
// }
|
||||
savePackagelist.value = uni.getStorageSync('Packagelist') || []
|
||||
let res = uni.getStorageSync('saveTree2')
|
||||
console.log("啥啊啊啊啊",savePackagelist.value,res)
|
||||
|
||||
let goodArray = []
|
||||
myArray.forEach((element : any) => {
|
||||
|
|
|
|||
|
|
@ -105,12 +105,10 @@
|
|||
}else{
|
||||
codesc.value = -1;
|
||||
}
|
||||
console.log('顶')
|
||||
}
|
||||
const scrolltolower =()=>{
|
||||
// 底
|
||||
codesc.value = 2;
|
||||
console.log('底')
|
||||
}
|
||||
const naurl = (e)=>{
|
||||
dexleft.value = e;
|
||||
|
|
|
|||
|
|
@ -506,7 +506,6 @@
|
|||
endDay = new Date(selY, selM, 0).getDate()
|
||||
}
|
||||
daysarray.value = Array.from({ length: endDay }, (_, i) => String(i + 1).padStart(2, '0'))
|
||||
// console.log("啥", daysarray.value)
|
||||
movetime.value = (Number(selectdata.value.day) - 3) * 25
|
||||
}
|
||||
const daytarget = ref(0)
|
||||
|
|
|
|||
|
|
@ -102,7 +102,6 @@
|
|||
const wcLog = ref([])
|
||||
watch(()=>props.show,
|
||||
()=>{
|
||||
console.log(props.objtake)
|
||||
if(props.show==true){
|
||||
let obj = {
|
||||
nuId:uni.getStorageSync('nuId'),
|
||||
|
|
@ -110,7 +109,6 @@
|
|||
wlId:props.objtake.wlId,
|
||||
}
|
||||
queryMaterialInfo(obj).then(res=>{
|
||||
console.log("入参",obj,`返回`,res)
|
||||
wuobj.value = res.result
|
||||
})
|
||||
qglog()
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@
|
|||
if (n) {
|
||||
setTimeout(() => {
|
||||
showbox.value = true;
|
||||
console.log('plsbuy =>', props.plsbuy)
|
||||
}, 50)
|
||||
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -241,7 +241,6 @@
|
|||
watch(
|
||||
() => props.isShow,
|
||||
(newVal, oldVal) => {
|
||||
// console.log("??????",newVal, oldVal)
|
||||
// 当旧值为false,新值为true时延迟0.2秒调用方法
|
||||
if (!oldVal && newVal) {
|
||||
cannomessage.value = true
|
||||
|
|
@ -343,7 +342,6 @@
|
|||
const firstgetqueryCgdList = () => {
|
||||
queryQld(plzinfo).then((res : any) => {
|
||||
transition.value = true;
|
||||
// console.log("kankan",res)
|
||||
if (((res.message === "缺少参数") || (!res.result?.total)) && cannomessage.value) {
|
||||
nomessageshow.value = true;
|
||||
return
|
||||
|
|
@ -352,17 +350,13 @@
|
|||
cannomessage.value = false
|
||||
plsbuy.value = []
|
||||
plsbuy.value.push(...res.result.records)
|
||||
// console.log("入参", plzinfo)
|
||||
// console.log("查看数组", res.result.records)
|
||||
alltotal.value = res.result.total
|
||||
|
||||
// console.log("请购单数据呢???", res)
|
||||
if (res.result.records.length) {
|
||||
rightdonghua.value = false;
|
||||
|
||||
queryQldWlInfo({ qldNo: res.result.records[0].qldNo }).then((element : any) => {
|
||||
rightarray.value = []
|
||||
// console.log("////",element.result)
|
||||
rightarray.value.push(...element.result)
|
||||
rightdonghua.value = true;
|
||||
})
|
||||
|
|
@ -391,7 +385,6 @@
|
|||
const getqueryCgdList = () => {
|
||||
if (!plzinfo.canpull) return
|
||||
queryQld(plzinfo).then((res : any) => {
|
||||
console.log("???加载", res.result.records)
|
||||
plsbuy.value.push(...res.result.records)
|
||||
alltotal.value = res.result.total
|
||||
if (res.result.records.length < plzinfo.pageSize) {
|
||||
|
|
@ -413,10 +406,8 @@
|
|||
// form.cgdId = plsbuy.value[index].id
|
||||
// form.pageNo = 1
|
||||
// form.canpull = true;
|
||||
// // console.log("!!!!",form)
|
||||
// queryCgdInfoList(form).then(res => {
|
||||
// InvoicingList.value = []
|
||||
// // console.log("数据呢", res.result.records)
|
||||
// InvoicingList.value.push(...res.result.records);
|
||||
// if (form.pageNo) {
|
||||
// clickmiddle(0);
|
||||
|
|
@ -437,7 +428,6 @@
|
|||
}
|
||||
const serverUrl = ref("")
|
||||
onLoad(() => {
|
||||
// console.log("查看",uni.getStorageSync('NUall'))
|
||||
|
||||
serverUrl.value = uni.getStorageSync('serverUrl') + '/sys/common/static/';
|
||||
// getSelectList();
|
||||
|
|
@ -456,7 +446,6 @@
|
|||
|
||||
}
|
||||
cancellation(data).then((res : any) => {
|
||||
console.log('作废', res)
|
||||
badshow.value = false
|
||||
if (res.success) {
|
||||
plsbuy.value[lefttarget.value] = res.result.result
|
||||
|
|
@ -495,7 +484,6 @@
|
|||
nuId: uni.getStorageSync('nuId')
|
||||
}
|
||||
confirmReceipt(param).then((res : any) => {
|
||||
console.log('收货', param, res)
|
||||
shouhuoshow.value = false
|
||||
if (res.success) {
|
||||
plsbuy.value[lefttarget.value] = res.result.result
|
||||
|
|
|
|||
|
|
@ -149,7 +149,6 @@
|
|||
nuId: uni.getStorageSync('nuId')
|
||||
}
|
||||
queryQld(plzinfo1).then((res : any) => {
|
||||
// console.log("22",res.result)
|
||||
if (res.result.records.length) {
|
||||
isQingling.value = true;
|
||||
} else {
|
||||
|
|
@ -163,7 +162,6 @@
|
|||
elderId: form.elderId
|
||||
}
|
||||
queryGwcInfo(obj).then(res => {
|
||||
// console.log(res)
|
||||
addMaterial.value = res.result
|
||||
})
|
||||
}
|
||||
|
|
@ -176,7 +174,6 @@
|
|||
item.zk = false;
|
||||
item.scrollleft = 0;
|
||||
})
|
||||
// console.log("?????",form,res.result.records)
|
||||
listarr.value.push(...res.result.records)
|
||||
status.value = (res.result.total == listarr.value.length ? 'nomore' : 'loadmore')
|
||||
})
|
||||
|
|
@ -188,9 +185,7 @@
|
|||
elderId: uni.getStorageSync('elderId'),
|
||||
nuName: uni.getStorageSync('nuName'),
|
||||
}
|
||||
console.log("?????",data)
|
||||
requireTH(data).then(res => {
|
||||
console.log("?????",res)
|
||||
if (res.success) {
|
||||
thshow.value = false;
|
||||
uni.showToast({
|
||||
|
|
@ -230,7 +225,6 @@
|
|||
objtake.value = v;
|
||||
}
|
||||
tanshow.value = true;
|
||||
console.log(objtake.value)
|
||||
}
|
||||
const del = () => {
|
||||
let obj = {
|
||||
|
|
@ -238,7 +232,6 @@
|
|||
elderId: form.elderId,
|
||||
wlId: objtake.value.wlId
|
||||
}
|
||||
console.log(obj)
|
||||
deleteGwcWl(obj).then(res => {
|
||||
if (res.success) {
|
||||
wuliao();
|
||||
|
|
@ -252,7 +245,6 @@
|
|||
})
|
||||
}
|
||||
const delall = () => {
|
||||
console.log({ nuId: form.nuId, elderId: form.elderId })
|
||||
removeAllGwc({ nuId: form.nuId, elderId: form.elderId }).then(res => {
|
||||
if (res.success) {
|
||||
wuliao();
|
||||
|
|
@ -269,7 +261,6 @@
|
|||
}
|
||||
const objtake = ref({})
|
||||
const comfig = (v, i, t) => {
|
||||
console.log(`看看数据`, v, i, t)
|
||||
switch (t) {
|
||||
case 0:
|
||||
objtake.value = v;
|
||||
|
|
@ -299,7 +290,6 @@
|
|||
izZd: v.zhiDingId ? false : true
|
||||
}
|
||||
wlzd(obj).then(res => {
|
||||
console.log(obj, res)
|
||||
if (res.success) {
|
||||
// objtake.value = v;
|
||||
// objtake.value.zk = false;
|
||||
|
|
@ -324,7 +314,6 @@
|
|||
}
|
||||
}
|
||||
const right = (e, v) => {
|
||||
console.log(v)
|
||||
let obj = {
|
||||
kfId: v.nuId,
|
||||
wlId: v.wlId,
|
||||
|
|
@ -352,7 +341,6 @@
|
|||
elderName: uni.getStorageSync(`NUall`).elderInfo.name
|
||||
}
|
||||
submitQld(obj).then(res => {
|
||||
console.log("?????111", obj, res)
|
||||
if (res.success) {
|
||||
uni.showToast({
|
||||
icon: 'success',
|
||||
|
|
@ -364,7 +352,6 @@
|
|||
changePage(1)
|
||||
}, 800)
|
||||
} else {
|
||||
// console.log("!!!!!",res)
|
||||
errmsg.value = res.result?.message ? res.result?.message : res.message
|
||||
openerror.value = true;
|
||||
}
|
||||
|
|
@ -378,7 +365,6 @@
|
|||
listarr.value = [];
|
||||
config();
|
||||
ification.value = false;
|
||||
console.log(e)
|
||||
}
|
||||
const chongzhi = () => {
|
||||
form.categoryId = '';
|
||||
|
|
|
|||
|
|
@ -98,68 +98,68 @@
|
|||
setTimeout(()=>{
|
||||
menuIndex.value = 0;
|
||||
},100)
|
||||
console.log('护理单元')
|
||||
//console.log('护理单元')
|
||||
break;
|
||||
case 'kzgn_hljz':
|
||||
swipedex.value = 1;
|
||||
setTimeout(()=>{
|
||||
menuIndex.value =1;
|
||||
},100)
|
||||
console.log('护理矩阵')
|
||||
//console.log('护理矩阵')
|
||||
break;
|
||||
case 'kzgn_yljz':
|
||||
swipedex.value = 2;
|
||||
setTimeout(()=>{
|
||||
menuIndex.value = 2;
|
||||
},100)
|
||||
console.log('医疗矩阵')
|
||||
//console.log('医疗矩阵')
|
||||
break;
|
||||
case 'kzgn_hqjz':
|
||||
swipedex.value = 3;
|
||||
setTimeout(()=>{
|
||||
menuIndex.value = 3;
|
||||
},100)
|
||||
console.log('后勤矩阵')
|
||||
//console.log('后勤矩阵')
|
||||
break;
|
||||
case 'kzgn_kfjz':
|
||||
swipedex.value = 6;
|
||||
setTimeout(()=>{
|
||||
menuIndex.value = 6;
|
||||
},100)
|
||||
console.log('库房')
|
||||
//console.log('库房')
|
||||
break;
|
||||
case 'kf_cg':
|
||||
console.log('采购')
|
||||
//console.log('采购')
|
||||
break;
|
||||
case 'kf_jh':
|
||||
console.log('拣货')
|
||||
//console.log('拣货')
|
||||
break;
|
||||
case 'kf_wj':
|
||||
console.log('完结')
|
||||
//console.log('完结')
|
||||
break;
|
||||
case 'hldy_ql':
|
||||
swipedex.value = 4;
|
||||
setTimeout(()=>{
|
||||
menuIndex.value = 4;
|
||||
},100)
|
||||
console.log('请领')
|
||||
//console.log('请领')
|
||||
break;
|
||||
case 'kf_th':
|
||||
console.log('退货')
|
||||
//console.log('退货')
|
||||
break;
|
||||
case 'kf_pd':
|
||||
console.log('盘点')
|
||||
//console.log('盘点')
|
||||
break;
|
||||
case 'wl':
|
||||
swipedex.value = 5;
|
||||
setTimeout(()=>{
|
||||
menuIndex.value = 5;
|
||||
},100)
|
||||
console.log('物联')
|
||||
//console.log('物联')
|
||||
break;
|
||||
case 'back':
|
||||
uni.navigateBack()
|
||||
console.log('物联')
|
||||
//console.log('物联')
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -1106,17 +1106,11 @@
|
|||
|
||||
// 改价
|
||||
const dogaijia = () => {
|
||||
// console.log("????",showvalue.value.id,gaijia.value)
|
||||
editPrice({ id: showvalue.value.id, arrivalPrice: gaijia.value }).then((res) => {
|
||||
// console.log("改价", showvalue.value.id,gaijia.value)
|
||||
console.log("res", res)
|
||||
if (res.code == 200) {
|
||||
showvalue.value.arrivalPrice = gaijia.value;
|
||||
// console.log("000",Number(gaijia.value),Number(showvalue.value.purchaseQuantity))
|
||||
showvalue.value.totalPrice = Number(gaijia.value) * Number(showvalue.value.purchaseQuantity);
|
||||
plsbuy.value[lefttarget.value].totalPrice = res.result.totalPrice
|
||||
// showvalue.value.arrivalPrice
|
||||
// plsbuy.value[lefttarget.value].totalPrice = gaijia.value
|
||||
opengaijia.value = false;
|
||||
}
|
||||
})
|
||||
|
|
@ -1160,12 +1154,10 @@
|
|||
}
|
||||
// 模糊查询
|
||||
const gysclick = (res : any) => {
|
||||
console.log("///", res);
|
||||
opengys.value = false;
|
||||
}
|
||||
|
||||
const openjianhuoclick = () => {
|
||||
// console.log("测试",InvoicingList.value[middletarget.value].rksl)
|
||||
if (showvalue.value.jianhuobtn == false) {
|
||||
return
|
||||
}
|
||||
|
|
@ -1348,7 +1340,6 @@
|
|||
})
|
||||
getGysList().then((res : any) => {
|
||||
gyslist.value = res.result;
|
||||
// console.log("isright", res)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
@ -1429,10 +1420,8 @@
|
|||
plsbuy.value.push(...res.result.records)
|
||||
alltotal.value = res.result.total
|
||||
if (!res.result.total) {
|
||||
// console.log("没数据了!!!")
|
||||
nomessageshow.value = true;
|
||||
}
|
||||
// console.log("请购单数据呢???", res)
|
||||
if (res.result.records.length) {
|
||||
form.cgdId = plsbuy.value[0].id
|
||||
queryInvo(0);
|
||||
|
|
@ -1475,10 +1464,8 @@
|
|||
form.cgdId = plsbuy.value[index].id
|
||||
form.pageNo = 1
|
||||
form.canpull = true;
|
||||
// console.log("!!!!",form)
|
||||
queryCgdInfoList(form).then(res => {
|
||||
InvoicingList.value = []
|
||||
// console.log("数据呢", res.result.records)
|
||||
InvoicingList.value.push(...res.result.records);
|
||||
if (form.pageNo) {
|
||||
clickmiddle(0);
|
||||
|
|
@ -1610,8 +1597,6 @@
|
|||
}
|
||||
|
||||
const clickshare = () => {
|
||||
console.log("-----------------------> 点击分享按钮");
|
||||
|
||||
uni.share({
|
||||
provider: "weixin",
|
||||
scene: "WXSceneSession",
|
||||
|
|
@ -1626,10 +1611,8 @@
|
|||
icon: 'none', // 'none' 表示不带图标
|
||||
duration: 20000
|
||||
})
|
||||
console.log("-------------------success:", res);
|
||||
},
|
||||
fail: function (err) {
|
||||
console.log("------------------- fail:", err);
|
||||
uni.showToast({
|
||||
title: err,
|
||||
icon: 'none', // 'none' 表示不带图标
|
||||
|
|
@ -1647,7 +1630,6 @@
|
|||
}
|
||||
const zuofei = () => {
|
||||
voidedCgdMain({ id: plsbuy.value[lefttarget.value].id }).then((res : any) => {
|
||||
console.log("res", res)
|
||||
if (res.success) {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
|
@ -1704,7 +1686,6 @@
|
|||
pageSize: -1
|
||||
}
|
||||
querySxdList(obj).then(res => {
|
||||
console.log(res.result.records)
|
||||
suixingdanarr.value = res.result.records
|
||||
})
|
||||
}
|
||||
|
|
@ -1752,7 +1733,6 @@
|
|||
albumlist.value.push(res.tempFilePath)
|
||||
} else if (type == 1) {
|
||||
sxdupld(res.tempFilePath)
|
||||
console.log(res.tempFilePath)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1886,8 +1866,6 @@
|
|||
cgdId: showvalue.value.cgdId
|
||||
}
|
||||
pickingInfo(obj).then(res => {
|
||||
console.log(`入参`, obj)
|
||||
console.log(`返回`, res)
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: res.message ? res.message : '操作成功'
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@
|
|||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="fixed-card" :style="openleft?{}:{right:`-33vw`}" v-show="indexmessage?.startTime">
|
||||
<!-- <view class="fixed-card" :style="openleft?{}:{right:`-33vw`}" v-show="indexmessage?.startTime">
|
||||
<view class="fixed-card-left">
|
||||
<image class="card-left-img" :style="!indexmessage?.previewFile?'width: 450rpx':''"
|
||||
:src="indexmessage?.previewFile? 'https://www.focusnu.com/media/upFiles/' + indexmessage?.previewFile: `/static/index/newindex/wendu/2.png`" mode="aspectFill"/>
|
||||
|
|
@ -357,9 +357,6 @@
|
|||
<text v-if="indexmessage.optType == 1">{{indexmessage.employeeName}}</text>
|
||||
<text v-if="indexmessage.optType == 2">{{indexmessage.optNames}}</text>
|
||||
</view>
|
||||
<!-- <view style="color: #555555;">
|
||||
业务单号:P10120251010001
|
||||
</view> -->
|
||||
<view class="icon-button">
|
||||
<view :class="indexmessage?.izStart=='N'?'button-right':'button-left'" @click="start(indexmessage)">
|
||||
开始服务
|
||||
|
|
@ -373,7 +370,7 @@
|
|||
<image :style="openleft?{}:{transform: `rotate(180deg)`}" class="open-img"
|
||||
src="/static/index/newindex/leftmenu/openleft.png" />
|
||||
</view>
|
||||
|
||||
</view> -->
|
||||
|
||||
<view class="mengban" v-if="topbuttontarget>0" @click="topbuttontarget=0"></view>
|
||||
<view class="photowall" v-show="topbuttontarget>0" :style="donghuaopo?{opacity:1}:{opacity:0}">
|
||||
|
|
@ -487,7 +484,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<tanchuang :show="open==1" font="是否删除此图片" @back="open = 0" @right="del1()"> </tanchuang>
|
||||
</view>
|
||||
<severcard ref="severcards"></severcard>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
|
@ -516,7 +513,6 @@
|
|||
}
|
||||
queryEmpList({id:uni.getStorageSync('userInfo').id}).then(res=>{
|
||||
zdxzarr.value = res.result;
|
||||
console.log(res)
|
||||
zdxzarr.value.forEach(item=>{
|
||||
item.flag = false
|
||||
})
|
||||
|
|
@ -622,10 +618,7 @@
|
|||
const plsbuy = ref([])
|
||||
const firstgetqueryCgdList = (nuId) => {
|
||||
form.nuId = nuId;
|
||||
console.log(form)
|
||||
queryOrderList(form).then(res => {
|
||||
console.log(res)
|
||||
// plsbuy.value.push(...res.result.records);
|
||||
if(res.result.records.length>0){
|
||||
clickLeftMenu(0,res.result.records[0])
|
||||
}else{
|
||||
|
|
@ -681,7 +674,6 @@
|
|||
success: res => {
|
||||
sxdupld(res.tempFilePath)
|
||||
// v.picPatharr.push(res.tempFilePath);
|
||||
// console.log(v.picPatharr)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
@ -692,11 +684,10 @@
|
|||
success: (e)=> {
|
||||
uni.compressVideo({
|
||||
src: e.tempFilePath,
|
||||
quality: 60,
|
||||
quality: 'medium',
|
||||
success: res => {
|
||||
sxdupld(res.tempFilePath)
|
||||
// v.picPatharr.push(res.tempFilePath);
|
||||
// console.log(v.picPatharr)
|
||||
}
|
||||
})
|
||||
// sxdupld(res.tempFilePath )
|
||||
|
|
@ -722,7 +713,6 @@
|
|||
},
|
||||
success: res => {
|
||||
const data = JSON.parse(res.data);
|
||||
console.log(data)
|
||||
ilanarr.value.push(data.message)
|
||||
},
|
||||
fail: () => {
|
||||
|
|
@ -758,7 +748,6 @@
|
|||
let u = []
|
||||
arr.forEach(e => {
|
||||
u.push(serverUrl.value + e)
|
||||
console.log(serverUrl.value + e)
|
||||
})
|
||||
uni.previewImage({
|
||||
current: i,
|
||||
|
|
@ -790,7 +779,6 @@
|
|||
|
||||
|
||||
const errmsgclk = (e,k)=>{
|
||||
console.log(indexmessage.value,k)
|
||||
if(k==1){
|
||||
if(indexmessage.value?.izStart=='Y'){
|
||||
switch (e){
|
||||
|
|
@ -830,13 +818,13 @@
|
|||
|
||||
}
|
||||
}
|
||||
const severcards = ref<InstanceType<typeof ChildComponent>>()
|
||||
const start = (v) =>{
|
||||
if(v.izStart!='N'){return}
|
||||
console.log(v)
|
||||
startOrder({id:v.id}).then(res=>{
|
||||
console.log(res)
|
||||
if(res.success){
|
||||
v.izStart = "Y";
|
||||
severcards.value.firstgetqueryCgdList()
|
||||
}else{
|
||||
|
||||
|
||||
|
|
@ -884,7 +872,6 @@
|
|||
nuId:nuId
|
||||
}
|
||||
queryCountByType(data).then(res=>{
|
||||
console.log(res)
|
||||
hldyobj.value = res.result
|
||||
})
|
||||
}
|
||||
|
|
@ -1017,13 +1004,10 @@
|
|||
watch(
|
||||
() => props.isShow,
|
||||
(newVal, oldVal) => {
|
||||
// 当旧值为false,新值为true时延迟0.2秒调用方法
|
||||
if (!oldVal && newVal) {
|
||||
transition.value = false;
|
||||
// console.log("????",transition.value)
|
||||
setTimeout(() => {
|
||||
transition.value = true;
|
||||
console.log("看看", uni.getStorageSync('NUall'))
|
||||
}, 50)
|
||||
} else {
|
||||
transition.value = false;
|
||||
|
|
@ -1077,7 +1061,6 @@
|
|||
const getmenu = () => {
|
||||
queryPadPageList().then((res => {
|
||||
leftMenuArray.value = res.result.records;
|
||||
console.log(leftMenuArray.value )
|
||||
filteredMenu(2).forEach((element : any, index : number) => {
|
||||
if (element.nuId === uni.getStorageSync('NUall').nuId) {
|
||||
menutarget.value = index;
|
||||
|
|
|
|||
|
|
@ -1598,10 +1598,8 @@
|
|||
icon: 'none', // 'none' 表示不带图标
|
||||
duration: 20000
|
||||
})
|
||||
console.log("-------------------success:", res);
|
||||
},
|
||||
fail: function (err) {
|
||||
console.log("------------------- fail:", err);
|
||||
uni.showToast({
|
||||
title: err,
|
||||
icon: 'none', // 'none' 表示不带图标
|
||||
|
|
@ -1619,7 +1617,6 @@
|
|||
}
|
||||
const zuofei = () => {
|
||||
voidedCgdMain({ id: plsbuy.value[lefttarget.value].id }).then((res : any) => {
|
||||
console.log("res", res)
|
||||
if (res.success) {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
|
@ -1676,7 +1673,6 @@
|
|||
pageSize: -1
|
||||
}
|
||||
querySxdList(obj).then(res => {
|
||||
console.log(res.result.records)
|
||||
suixingdanarr.value = res.result.records
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -320,7 +320,6 @@
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.openTalk((res) => {
|
||||
console.log("openTalk callback:", res);
|
||||
// 如果 callback 里有最终状态可以直接回传
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
|
|
@ -555,8 +554,6 @@
|
|||
let payload = res;
|
||||
if (res.detail) payload = res.detail;
|
||||
|
||||
console.log("record payload normalized:", payload);
|
||||
|
||||
// 优先用 callback 的 reqId 回传
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
|
|
@ -586,7 +583,6 @@
|
|||
duration: 1400
|
||||
});
|
||||
this.isRecording = false;
|
||||
console.log("录屏地址:", payload.recordUrl);
|
||||
} else if (payload.recordFailedReason) {
|
||||
uni.showToast({
|
||||
title: "录屏失败: " + payload.recordFailedReason,
|
||||
|
|
@ -594,7 +590,6 @@
|
|||
duration: 2000
|
||||
});
|
||||
this.isRecording = false;
|
||||
console.warn("record failed reason:", payload.recordFailedReason);
|
||||
} else {
|
||||
if (payload.snapShotResult === true) {
|
||||
uni.showToast({
|
||||
|
|
|
|||
|
|
@ -496,7 +496,6 @@
|
|||
}
|
||||
const havehistory = ref(true)
|
||||
const change = () =>{
|
||||
console.log("切换了",uni.getStorageSync('NUall'))
|
||||
havehistory.value = false;
|
||||
setTimeout(()=>{
|
||||
havehistory.value = true;
|
||||
|
|
|
|||
|
|
@ -150,7 +150,6 @@
|
|||
}))
|
||||
fontnumber.value = uni.getStorageSync('orgListName');
|
||||
queryDepartTreeSync().then(res => {
|
||||
console.log(res)
|
||||
if (res.result[0].picUrl) {
|
||||
fonturl.value = uni.getStorageSync('serverUrl') + '/sys/common/static/' + res.result[0].picUrl
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -68,7 +68,6 @@
|
|||
}
|
||||
onLoad((e)=>{
|
||||
pddobj.value = JSON.parse(e.pddobj);
|
||||
console.log(pddobj.value)
|
||||
pandian()
|
||||
})
|
||||
const pageNo = ref(1);
|
||||
|
|
|
|||
|
|
@ -188,7 +188,6 @@
|
|||
const leftscrolltop = ref(0);
|
||||
const cardarr = ref([])
|
||||
const clickLeftMenu = (index : any, item : object) => {
|
||||
console.log(item)
|
||||
if (lefttarget.value != index) {
|
||||
middletarget.value = sctop.value;
|
||||
nextTick(()=>{
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@
|
|||
const showbox = ref(false)
|
||||
watch(() => props.show,
|
||||
() => {
|
||||
console.log(props.list)
|
||||
if (props.show == true) {
|
||||
|
||||
setTimeout(() => {
|
||||
|
|
|
|||
|
|
@ -175,7 +175,6 @@
|
|||
caigouobj.value.scrollleft = caigouobj.value.zk ? 150 : 0;
|
||||
}
|
||||
const solleft = (v : any, i : number) => {
|
||||
console.log(v)
|
||||
props.InvoicingList.forEach((item, k) => {
|
||||
if (k != i && item.zk == true) {
|
||||
item.zk = false;
|
||||
|
|
|
|||
|
|
@ -199,7 +199,6 @@
|
|||
ce = e - props.pddlist[i].dqkcsl;
|
||||
props.pddlist[i].cesl = Math.abs(ce) ;
|
||||
props.pddlist[i].pdType = ce==0?'':(ce>0?1:2)
|
||||
console.log(e)
|
||||
}
|
||||
const config = (e,i) =>{
|
||||
if((e.content==''||e.content==null)&&e.cesl!=0){
|
||||
|
|
|
|||
|
|
@ -153,7 +153,6 @@
|
|||
()=>props.show,
|
||||
()=>{
|
||||
if(props.show){
|
||||
console.log(props.caigouobj)
|
||||
let a = [
|
||||
{
|
||||
multiUnitType:1,
|
||||
|
|
@ -193,7 +192,6 @@
|
|||
}
|
||||
})
|
||||
|
||||
console.log("a",a)
|
||||
let n = [];
|
||||
let id = [];
|
||||
gysarr.value = [];
|
||||
|
|
@ -246,7 +244,6 @@
|
|||
}else{
|
||||
sx.value = false
|
||||
}
|
||||
console.log(sx.value,num,bl)
|
||||
}
|
||||
const cd =(v,i)=>{
|
||||
type.value = v;
|
||||
|
|
|
|||
|
|
@ -133,9 +133,7 @@
|
|||
break;
|
||||
case 2:
|
||||
|
||||
console.log({ 'nuId': uni.getStorageSync('nuId'),cgdId:props.cgdId })
|
||||
getCgdMaterialTreeData({ 'nuId': uni.getStorageSync('nuId'),cgdId:props.cgdId }).then(res => {
|
||||
console.log(res.result)
|
||||
TreeData.value = res.result;
|
||||
getTreelnum()
|
||||
})
|
||||
|
|
|
|||
|
|
@ -119,7 +119,6 @@
|
|||
pageSize:10
|
||||
}
|
||||
queryCrkInfoList(obj).then(res=>{
|
||||
console.log(res.result.records)
|
||||
list.value.push(...res.result.records);
|
||||
status.value = (res.result.total == list.value.length ? 'nomore' : 'loadmore')
|
||||
})
|
||||
|
|
|
|||
|
|
@ -376,7 +376,6 @@
|
|||
* changeName - 防抖搜索(0.3 秒后无再次输入才执行)
|
||||
*/
|
||||
function changeName(res : any) {
|
||||
console.log("0000", res)
|
||||
if (!res.detail.value) {
|
||||
plzinfo.pddStartBy = "";
|
||||
filteredCgrList.value = [];
|
||||
|
|
@ -569,12 +568,10 @@
|
|||
const openmessage = ref(false)
|
||||
const addnew = () => {
|
||||
addPddMain({ nuId: uni.getStorageSync('nuId') }).then((res : any) => {
|
||||
console.log("res", res.result)
|
||||
if (res.success) {
|
||||
addshow.value = false
|
||||
chongzhi();
|
||||
let pddobj = res.result;
|
||||
console.log(pddobj)
|
||||
uni.navigateTo({ url: '/pages/procurement/addtory?pddobj=' + JSON.stringify(pddobj) })
|
||||
} else {
|
||||
openmessage.value = true
|
||||
|
|
|
|||
|
|
@ -211,7 +211,6 @@
|
|||
item.zk = false;
|
||||
item.scrollleft = 0;
|
||||
})
|
||||
console.log(res.result.records)
|
||||
Material.value.push(...res.result.records);
|
||||
statustory.value = (res.result.total == Material.value.length ? 'nomore' : 'loadmore')
|
||||
setout1.value = (res.result.total == Material.value.length ? false : true)
|
||||
|
|
@ -343,7 +342,6 @@
|
|||
}
|
||||
const queryInvo = () => {
|
||||
queryInvoicingList(form).then(res => {
|
||||
console.log(form,res)
|
||||
res.result.records.forEach(item => {
|
||||
item.zk = false;
|
||||
item.scrollleft = 0;
|
||||
|
|
@ -368,7 +366,6 @@
|
|||
}
|
||||
const adfangdou = ref(true)
|
||||
const right = (n : number, nm : any, type : Object) => {
|
||||
console.log(nm, n, type)
|
||||
if(adfangdou.value){
|
||||
addflag.value = false;
|
||||
connfig(nm, n, type)
|
||||
|
|
@ -397,8 +394,6 @@
|
|||
referenceUnitPrice: type.price,
|
||||
dhbl: type.num
|
||||
}
|
||||
console.log("注意",dt)
|
||||
|
||||
addShoppingCartList([dt]).then(res => {
|
||||
if(res.success){
|
||||
uni.showToast({
|
||||
|
|
|
|||
|
|
@ -478,7 +478,6 @@
|
|||
})
|
||||
const badshow = ref(false)
|
||||
const huitui = () => {
|
||||
console.log("????", uni.getStorageSync(`NUall`))
|
||||
let data = {
|
||||
qldNo: plsbuy.value[lefttarget.value].qldNo,
|
||||
nuId: uni.getStorageSync('nuId'),
|
||||
|
|
|
|||
|
|
@ -121,7 +121,6 @@
|
|||
const changename = () => {
|
||||
|
||||
if (savevalue.value) {
|
||||
console.log("????")
|
||||
let data = {
|
||||
id:allitem.value.id,
|
||||
nuName:savevalue.value
|
||||
|
|
|
|||
|
|
@ -193,7 +193,6 @@
|
|||
}
|
||||
}
|
||||
const changename = (name, index) => {
|
||||
console.log("jiance",name,savenuId.value)
|
||||
if (name) {
|
||||
let data = {
|
||||
id:cardarray.value[renamenummber.value].id,
|
||||
|
|
|
|||
|
|
@ -91,7 +91,6 @@
|
|||
uuid.value = res.result
|
||||
getqueryinfoByBuId(uuid.value).then((res : any) => {
|
||||
|
||||
// console.log("zzz",res.result)
|
||||
if (res.success) {
|
||||
allitem.value = res.result
|
||||
} else {
|
||||
|
|
@ -102,7 +101,6 @@
|
|||
}
|
||||
})
|
||||
}
|
||||
console.log("chenggong", res.result)
|
||||
},
|
||||
fail(err) {
|
||||
uni.showToast({ title: '扫码失败:' + err.errMsg, icon: 'none' })
|
||||
|
|
@ -123,7 +121,6 @@
|
|||
setTimeout(()=>{
|
||||
isdonghua.value = true;
|
||||
},50)
|
||||
// console.log("dianji")
|
||||
}
|
||||
const changename = () => {
|
||||
|
||||
|
|
@ -133,11 +130,9 @@
|
|||
id:allitem.value.id,
|
||||
nuName:savevalue.value
|
||||
}
|
||||
console.log("????",data)
|
||||
updateBaseInfo(data).then((res:any)=>{
|
||||
if(res.success){
|
||||
getqueryinfoByBuId(uuid.value).then((res : any) => {
|
||||
// console.log("zzz",res.result)
|
||||
if (res.success) {
|
||||
allitem.value = res.result;
|
||||
isshowchange.value = false;
|
||||
|
|
|
|||
|
|
@ -155,7 +155,6 @@
|
|||
userInfo.value.flag = true;
|
||||
userInfo.value.avatar = res.tempFilePath;
|
||||
// v.picPatharr.push(res.tempFilePath);
|
||||
// console.log(v.picPatharr)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
@ -175,7 +174,6 @@
|
|||
},
|
||||
success: res => {
|
||||
const data = JSON.parse(res.data);
|
||||
console.log(data)
|
||||
userInfo.value.avatar = data.message;
|
||||
userInfo.value.flag = false;
|
||||
avaxg();
|
||||
|
|
@ -191,7 +189,6 @@
|
|||
}
|
||||
const avaxg = () =>{
|
||||
editAvatar({avatar:userInfo.value.avatar,id:userInfo.value.id,employessId:userInfo.value.employessId}).then(res=>{
|
||||
console.log(res)
|
||||
if(res.success){
|
||||
uni.setStorageSync('userInfo', userInfo.value);
|
||||
uni.showToast({
|
||||
|
|
@ -211,7 +208,6 @@
|
|||
// gotoindex()
|
||||
let time = Date.now();
|
||||
getLoginCode(time).then((res : any) => {
|
||||
// console.log("啥啊", res)
|
||||
form.captcha = res.message
|
||||
form.checkKey = time
|
||||
|
||||
|
|
@ -293,7 +289,6 @@
|
|||
} else {
|
||||
serverUrl.value = uni.getStorageSync('serverUrl')
|
||||
selectserve.value = true;
|
||||
console.log("!!!!", allserve.value)
|
||||
}
|
||||
break
|
||||
case 5:
|
||||
|
|
@ -320,7 +315,6 @@
|
|||
userInfo.value.flag = false;
|
||||
serverUrl.value = uni.getStorageSync('serverUrl')
|
||||
avator.value = true;
|
||||
console.log(userInfo.value)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -251,7 +251,6 @@ export default {
|
|||
if (err && err.errMsg && err.errMsg.indexOf("tabBar") > -1) {
|
||||
uni.navigateTo({ url });
|
||||
} else {
|
||||
console.error(err);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -286,7 +286,6 @@ const _sfc_main = {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.openTalk((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:323", "openTalk callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
|
|
@ -300,7 +299,7 @@ const _sfc_main = {
|
|||
icon: "none"
|
||||
});
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:338", "openTalk 调用失败", err);
|
||||
formatAppLog("error", "at pages/camera.nvue:337", "openTalk 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "openTalk 调用失败",
|
||||
icon: "none"
|
||||
|
|
@ -332,7 +331,7 @@ const _sfc_main = {
|
|||
}
|
||||
try {
|
||||
this.$refs.monitor.stopTalk((res) => {
|
||||
formatAppLog("log", "at pages/camera.nvue:371", "stopTalk callback:", res);
|
||||
formatAppLog("log", "at pages/camera.nvue:370", "stopTalk callback:", res);
|
||||
if (payload.reqId) {
|
||||
uni.$emit(`monitor:response:${payload.reqId}`, {
|
||||
ok: true,
|
||||
|
|
@ -342,7 +341,7 @@ const _sfc_main = {
|
|||
});
|
||||
this.isTalking = false;
|
||||
} catch (err) {
|
||||
formatAppLog("error", "at pages/camera.nvue:381", "stopTalk 调用失败", err);
|
||||
formatAppLog("error", "at pages/camera.nvue:380", "stopTalk 调用失败", err);
|
||||
uni.showToast({
|
||||
title: "stopTalk 调用失败",
|
||||
icon: "none"
|
||||
|
|
@ -360,19 +359,19 @@ const _sfc_main = {
|
|||
// 处理来自模板 @onSnapShot 的事件(event.detail)
|
||||
handleSnapShotEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:401", "onSnapShot event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:400", "onSnapShot event:", payload);
|
||||
this._handleSnapshotResultFromNative(payload);
|
||||
},
|
||||
// 处理来自模板 @onRecord 的事件(event.detail)
|
||||
handleRecordEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:409", "onRecord event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:408", "onRecord event:", payload);
|
||||
this._handleRecordResultFromNative(payload);
|
||||
},
|
||||
// 处理来自模板 @onTalkStatus 的事件
|
||||
handleTalkEvent(event) {
|
||||
const payload = event && event.detail ? event.detail : event;
|
||||
formatAppLog("log", "at pages/camera.nvue:416", "onTalkStatus event:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:415", "onTalkStatus event:", payload);
|
||||
const status = payload && payload.talkStatus;
|
||||
const tips = payload && payload.tips;
|
||||
uni.$emit("monitor:talk:status", payload);
|
||||
|
|
@ -440,7 +439,7 @@ const _sfc_main = {
|
|||
let payload = res;
|
||||
if (res.detail)
|
||||
payload = res.detail;
|
||||
formatAppLog("log", "at pages/camera.nvue:493", "snapshot payload normalized:", payload);
|
||||
formatAppLog("log", "at pages/camera.nvue:492", "snapshot payload normalized:", payload);
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: !!payload.snapShotResult,
|
||||
|
|
@ -476,7 +475,7 @@ const _sfc_main = {
|
|||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
formatAppLog("warn", "at pages/camera.nvue:536", "snapshot failed reason:", err, payload);
|
||||
formatAppLog("warn", "at pages/camera.nvue:535", "snapshot failed reason:", err, payload);
|
||||
}
|
||||
},
|
||||
_handleRecordResultFromNative(res, reqIdFromCallback = null) {
|
||||
|
|
@ -497,7 +496,6 @@ const _sfc_main = {
|
|||
let payload = res;
|
||||
if (res.detail)
|
||||
payload = res.detail;
|
||||
formatAppLog("log", "at pages/camera.nvue:558", "record payload normalized:", payload);
|
||||
if (reqIdFromCallback) {
|
||||
uni.$emit(`monitor:response:${reqIdFromCallback}`, {
|
||||
ok: !!(payload.recordUrl || payload.snapShotResult),
|
||||
|
|
@ -521,7 +519,6 @@ const _sfc_main = {
|
|||
duration: 1400
|
||||
});
|
||||
this.isRecording = false;
|
||||
formatAppLog("log", "at pages/camera.nvue:589", "录屏地址:", payload.recordUrl);
|
||||
} else if (payload.recordFailedReason) {
|
||||
uni.showToast({
|
||||
title: "录屏失败: " + payload.recordFailedReason,
|
||||
|
|
@ -529,7 +526,6 @@ const _sfc_main = {
|
|||
duration: 2e3
|
||||
});
|
||||
this.isRecording = false;
|
||||
formatAppLog("warn", "at pages/camera.nvue:597", "record failed reason:", payload.recordFailedReason);
|
||||
} else {
|
||||
if (payload.snapShotResult === true) {
|
||||
uni.showToast({
|
||||
|
|
|
|||
Loading…
Reference in New Issue