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