提交字段修改
This commit is contained in:
parent
cbbf98f6e6
commit
774d15dca7
|
|
@ -11,9 +11,9 @@ export const getServiceTree = () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 查询表格
|
// 查询表格
|
||||||
export const getNclist = (nuId,customerId) => {
|
export const getNclist = (nuId,elderId) => {
|
||||||
return request({
|
return request({
|
||||||
url: `${uni.getStorageSync('serverUrl')}/api/pad/care/directive/getNclist?nuId=${nuId}&customerId=${customerId}`,
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/care/directive/getNclist?nuId=${nuId}&elderId=${elderId}`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -26,7 +26,7 @@ export const addBatch = (params) => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 查询指令包
|
// 查询指令包
|
||||||
export const getNcPackagelist = (nuId,customerId) => {
|
export const getNcPackagelist = (nuId,elderId) => {
|
||||||
return request({
|
return request({
|
||||||
url: `${uni.getStorageSync('serverUrl')}/api/pad/care/directive/getNcPackagelist`,
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/care/directive/getNcPackagelist`,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|
|
||||||
|
|
@ -190,11 +190,11 @@
|
||||||
</view>
|
</view>
|
||||||
<image class="title-time-button"
|
<image class="title-time-button"
|
||||||
style="width: 80rpx;height: 50rpx;"
|
style="width: 80rpx;height: 50rpx;"
|
||||||
v-if="item1.cycleType!='日常'"
|
v-if="item1.cycleTypeId!=1"
|
||||||
src="/static/index/newruler/jiao.png" />
|
src="/static/index/newruler/jiao.png" />
|
||||||
<view class="title-time-font"
|
<view class="title-time-font"
|
||||||
style="right: 10rpx;top: 5rpx;"
|
style="right: 10rpx;top: 5rpx;"
|
||||||
v-if="item1.cycleType!='日常'">
|
v-if="item1.cycleTypeId!=1">
|
||||||
{{item1.cycleType}}
|
{{item1.cycleType}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -288,15 +288,15 @@
|
||||||
|
|
||||||
<view class="right-box-item"
|
<view class="right-box-item"
|
||||||
:style="thirdmenuIndex==index?{border: `2rpx solid rgb(229, 233, 249)`,backgroundColor:`#fff`}:{border: `2rpx solid rgb(229, 233, 249)`}">
|
:style="thirdmenuIndex==index?{border: `2rpx solid rgb(229, 233, 249)`,backgroundColor:`#fff`}:{border: `2rpx solid rgb(229, 233, 249)`}">
|
||||||
<view class="title-time-button-font" v-show="item.cycleType ==='周期护理'">
|
<view class="title-time-button-font" v-show="item.cycleTypeId ==2">
|
||||||
周期
|
周期
|
||||||
</view>
|
</view>
|
||||||
<view class="title-time-button-font" v-show="item.cycleType ==='即时护理'">
|
<view class="title-time-button-font" v-show="item.cycleTypeId ==3">
|
||||||
即时
|
即时
|
||||||
</view>
|
</view>
|
||||||
<image class="title-time-button" v-show="item.cycleType ==='周期护理'"
|
<image class="title-time-button" v-show="item.cycleTypeId ==2"
|
||||||
src="/static/index/newruler/jiao.png" />
|
src="/static/index/newruler/jiao.png" />
|
||||||
<image class="title-time-button" v-show="item.cycleType ==='即时护理'"
|
<image class="title-time-button" v-show="item.cycleTypeId ==3"
|
||||||
src="/static/index/newruler/jiao.png" />
|
src="/static/index/newruler/jiao.png" />
|
||||||
<image class="right-box-img"
|
<image class="right-box-img"
|
||||||
:src="thirdmenuIndex==index?item.netImmediateFileFocus :item.netImmediateFile " />
|
:src="thirdmenuIndex==index?item.netImmediateFileFocus :item.netImmediateFile " />
|
||||||
|
|
@ -460,7 +460,7 @@
|
||||||
<image class="title-time-button" style="width: 80rpx;height: 48rpx;"
|
<image class="title-time-button" style="width: 80rpx;height: 48rpx;"
|
||||||
src="/static/index/newruler/jiao.png" />
|
src="/static/index/newruler/jiao.png" />
|
||||||
<view class="title-time-font" style="right: 10rpx;top: 5rpx;font-size: 23rpx;">
|
<view class="title-time-font" style="right: 10rpx;top: 5rpx;font-size: 23rpx;">
|
||||||
{{ item1.cycleType?item1.cycleType:"日常" }}
|
{{ item1.cycleType }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="title-time-font-rel">
|
<view class="title-time-font-rel">
|
||||||
|
|
@ -554,10 +554,10 @@
|
||||||
{{timearr[saveEditIndex.index0].children[saveEditIndex.index1].startTime + `-` + timearr[saveEditIndex.index0].children[saveEditIndex.index1].endTime}}
|
{{timearr[saveEditIndex.index0].children[saveEditIndex.index1].startTime + `-` + timearr[saveEditIndex.index0].children[saveEditIndex.index1].endTime}}
|
||||||
</view>
|
</view>
|
||||||
<image class="title-time-button" style="width: 80rpx;height: 48rpx;"
|
<image class="title-time-button" style="width: 80rpx;height: 48rpx;"
|
||||||
v-if="timearr[saveEditIndex.index0].children[saveEditIndex.index1].cycleType"
|
v-if="timearr[saveEditIndex.index0].children[saveEditIndex.index1].cycleTypeId!=1"
|
||||||
src="/static/index/newruler/jiao.png" />
|
src="/static/index/newruler/jiao.png" />
|
||||||
<view class="title-time-font" style="right: 10rpx;top: 5rpx;font-size: 23rpx;"
|
<view class="title-time-font" style="right: 10rpx;top: 5rpx;font-size: 23rpx;"
|
||||||
v-if="timearr[saveEditIndex.index0].children[saveEditIndex.index1].cycleType">
|
v-if="timearr[saveEditIndex.index0].children[saveEditIndex.index1].cycleTypeId!=1">
|
||||||
{{ timearr[saveEditIndex.index0].children[saveEditIndex.index1].cycleType }}
|
{{ timearr[saveEditIndex.index0].children[saveEditIndex.index1].cycleType }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -1113,14 +1113,14 @@
|
||||||
|
|
||||||
function dosomesave() {
|
function dosomesave() {
|
||||||
cardsumit.value.op.name = secondopenValue.value[cardsumit.value.op.index[2]].relName
|
cardsumit.value.op.name = secondopenValue.value[cardsumit.value.op.index[2]].relName
|
||||||
switch (secondopenValue.value[cardsumit.value.op.index[2]].cycleType) {
|
switch (secondopenValue.value[cardsumit.value.op.index[2]].cycleTypeId) {
|
||||||
case `日常护理`:
|
case `1`:
|
||||||
openOp.value = 0
|
openOp.value = 0
|
||||||
break;
|
break;
|
||||||
case `周期护理`:
|
case `2`:
|
||||||
openOp.value = 1
|
openOp.value = 1
|
||||||
break;
|
break;
|
||||||
case `即时护理`:
|
case `3`:
|
||||||
openOp.value = 2
|
openOp.value = 2
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
@ -1333,7 +1333,7 @@
|
||||||
const changeBug = ref(true);
|
const changeBug = ref(true);
|
||||||
// 方法:根据条件返回不同的类名
|
// 方法:根据条件返回不同的类名
|
||||||
const getClass = (item, index0, index1) => {
|
const getClass = (item, index0, index1) => {
|
||||||
if (item.cycleType) {
|
if (item.startTime) {
|
||||||
if (flyNumber.value.index0 === (index0) && flyNumber.value.index1 === index1) {
|
if (flyNumber.value.index0 === (index0) && flyNumber.value.index1 === index1) {
|
||||||
return 'title-time-border-yellow-active-transparent';
|
return 'title-time-border-yellow-active-transparent';
|
||||||
} else if (shakyTable.value) {
|
} else if (shakyTable.value) {
|
||||||
|
|
@ -1665,14 +1665,14 @@
|
||||||
saveId.value = item.id;
|
saveId.value = item.id;
|
||||||
cardsumit.value.op.index[2] = index
|
cardsumit.value.op.index[2] = index
|
||||||
cardsumit.value.op.name = item.relName
|
cardsumit.value.op.name = item.relName
|
||||||
switch (item.cycleType) {
|
switch (item.cycleTypeId) {
|
||||||
case `日常护理`:
|
case 0:
|
||||||
openOp.value = 0
|
openOp.value = 0
|
||||||
break;
|
break;
|
||||||
case `周期护理`:
|
case 1:
|
||||||
openOp.value = 1
|
openOp.value = 1
|
||||||
break;
|
break;
|
||||||
case `即时护理`:
|
case 2:
|
||||||
openOp.value = 2
|
openOp.value = 2
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
@ -1783,8 +1783,8 @@
|
||||||
id: haveValue ? timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1].id : "",
|
id: haveValue ? timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1].id : "",
|
||||||
nuId: uni.getStorageSync('nuId'),
|
nuId: uni.getStorageSync('nuId'),
|
||||||
nuName: uni.getStorageSync('nuName'),
|
nuName: uni.getStorageSync('nuName'),
|
||||||
customerId: uni.getStorageSync('customerId'),
|
elderId: uni.getStorageSync('elderId'),
|
||||||
customerName: uni.getStorageSync('NUall').elderInfo.name,
|
elderName: uni.getStorageSync('NUall').elderInfo.name,
|
||||||
directiveId: allobject.id,
|
directiveId: allobject.id,
|
||||||
directiveName: allobject.packageName,
|
directiveName: allobject.packageName,
|
||||||
typeId: "",
|
typeId: "",
|
||||||
|
|
@ -1841,7 +1841,7 @@
|
||||||
let stopIt = false;
|
let stopIt = false;
|
||||||
let allobject = bigArray.value[upmenuIndex.value].children[downmenuIndex.value].children[thirdmenuIndex.value]
|
let allobject = bigArray.value[upmenuIndex.value].children[downmenuIndex.value].children[thirdmenuIndex.value]
|
||||||
|
|
||||||
if (allobject.cycleType === "即时护理") {
|
if (allobject.cycleTypeId == 3) {
|
||||||
scrollLeft.value = 1;
|
scrollLeft.value = 1;
|
||||||
bottomItems.value.forEach((element : any, index : number) => {
|
bottomItems.value.forEach((element : any, index : number) => {
|
||||||
if (element.directiveName == allobject.title) {
|
if (element.directiveName == allobject.title) {
|
||||||
|
|
@ -1864,8 +1864,8 @@
|
||||||
pushValue.id = ""
|
pushValue.id = ""
|
||||||
pushValue.nuId = uni.getStorageSync('nuId');
|
pushValue.nuId = uni.getStorageSync('nuId');
|
||||||
pushValue.nuName = uni.getStorageSync('nuName');
|
pushValue.nuName = uni.getStorageSync('nuName');
|
||||||
pushValue.customerId = uni.getStorageSync('customerId');
|
pushValue.elderId = uni.getStorageSync('elderId');
|
||||||
pushValue.customerName = uni.getStorageSync('NUall').elderInfo.name;
|
pushValue.elderName = uni.getStorageSync('NUall').elderInfo.name;
|
||||||
bottomItems.value.unshift(pushValue)
|
bottomItems.value.unshift(pushValue)
|
||||||
// 实现即时指令动画
|
// 实现即时指令动画
|
||||||
cleansettimeout.value = setTimeout(() => {
|
cleansettimeout.value = setTimeout(() => {
|
||||||
|
|
@ -1895,19 +1895,19 @@
|
||||||
flyNumber.value.index1 = -1;
|
flyNumber.value.index1 = -1;
|
||||||
isMove.value = false;
|
isMove.value = false;
|
||||||
|
|
||||||
if (allobject.cycleType === "周期护理" && iszhouqi.value && weekIndex.value == -1 && monthIndex.value == -1) {
|
if (allobject.cycleTypeId == 2 && iszhouqi.value && weekIndex.value == -1 && monthIndex.value == -1) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
else if (allobject.cycleType === "周期护理" && !iszhouqi.value) {
|
else if (allobject.cycleTypeId == 2 && !iszhouqi.value) {
|
||||||
iszhouqi.value = true
|
iszhouqi.value = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let cycleType = "";
|
let cycleType = "";
|
||||||
let cycleValue = "";
|
let cycleValue = "";
|
||||||
if (allobject.cycleType === "日常护理") {
|
if (allobject.cycleTypeId == 1) {
|
||||||
cycleType = "日常"
|
cycleType = "日常"
|
||||||
} else {
|
} else {
|
||||||
if (weekIndex.value !== -1) {
|
if (weekIndex.value != -1) {
|
||||||
cycleType = weekValue.value
|
cycleType = weekValue.value
|
||||||
let cycleTypeIndex = 0;
|
let cycleTypeIndex = 0;
|
||||||
weekDays.forEach((element : any, index : any) => {
|
weekDays.forEach((element : any, index : any) => {
|
||||||
|
|
@ -1939,8 +1939,8 @@
|
||||||
id: haveValue ? timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1].id : "",
|
id: haveValue ? timearr.value[saveEditIndex.value.index0].children[saveEditIndex.value.index1].id : "",
|
||||||
nuId: uni.getStorageSync('nuId'),
|
nuId: uni.getStorageSync('nuId'),
|
||||||
nuName: uni.getStorageSync('nuName'),
|
nuName: uni.getStorageSync('nuName'),
|
||||||
customerId: uni.getStorageSync('customerId'),
|
elderId: uni.getStorageSync('elderId'),
|
||||||
customerName: uni.getStorageSync('NUall').elderInfo.name,
|
elderName: uni.getStorageSync('NUall').elderInfo.name,
|
||||||
directiveId: allobject.id,
|
directiveId: allobject.id,
|
||||||
directiveName: allobject.title,
|
directiveName: allobject.title,
|
||||||
typeId: allobject.typeId,
|
typeId: allobject.typeId,
|
||||||
|
|
@ -2019,8 +2019,8 @@
|
||||||
let allvalue = {
|
let allvalue = {
|
||||||
nuId: uni.getStorageSync('nuId'),
|
nuId: uni.getStorageSync('nuId'),
|
||||||
nuName: uni.getStorageSync('nuName'),
|
nuName: uni.getStorageSync('nuName'),
|
||||||
customerId: uni.getStorageSync('customerId'),
|
elderId: uni.getStorageSync('elderId'),
|
||||||
customerName: uni.getStorageSync('NUall').elderInfo.name,
|
elderName: uni.getStorageSync('NUall').elderInfo.name,
|
||||||
// serverList: postArray,
|
// serverList: postArray,
|
||||||
// instantList: bottomItems.value,
|
// instantList: bottomItems.value,
|
||||||
tagList: info
|
tagList: info
|
||||||
|
|
@ -2088,8 +2088,8 @@
|
||||||
const emotionTagList = ref([]);
|
const emotionTagList = ref([]);
|
||||||
const bodyTagList = ref([]);
|
const bodyTagList = ref([]);
|
||||||
const geteverything = () => {
|
const geteverything = () => {
|
||||||
if (uni.getStorageSync('nuId') && uni.getStorageSync('customerId')) {
|
if (uni.getStorageSync('nuId') && uni.getStorageSync('elderId')) {
|
||||||
getNclist(uni.getStorageSync('nuId'), uni.getStorageSync('customerId')).then((res : any) => {
|
getNclist(uni.getStorageSync('nuId'), uni.getStorageSync('elderId')).then((res : any) => {
|
||||||
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 => ({
|
||||||
|
|
@ -2120,7 +2120,7 @@
|
||||||
bodyTagListLook.value.push(res.netPic)
|
bodyTagListLook.value.push(res.netPic)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
console.log("res11111",res)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2164,6 +2164,7 @@
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
bigArray.value = res.result;
|
bigArray.value = res.result;
|
||||||
|
console.log("右侧",bigArray.value)
|
||||||
}
|
}
|
||||||
downList.value = bigArray.value[0].children
|
downList.value = bigArray.value[0].children
|
||||||
upmenuIndex.value = -1;
|
upmenuIndex.value = -1;
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@
|
||||||
<requestform :isShow="menuIndexshowfourth" v-if="menuIndex==3" />
|
<requestform :isShow="menuIndexshowfourth" v-if="menuIndex==3" />
|
||||||
<!-- 户嘱页 -->
|
<!-- 户嘱页 -->
|
||||||
<nurse :isold="isOld===2" :liang="indexNumber" :isshow="menuIndexshowsecond"
|
<nurse :isold="isOld===2" :liang="indexNumber" :isshow="menuIndexshowsecond"
|
||||||
v-if="menuIndex==1&&isOld===2&&uni.getStorageSync('customerId')&&uni.getStorageSync('nuId')"
|
v-if="menuIndex==1&&isOld===2&&uni.getStorageSync('elderId')&&uni.getStorageSync('nuId')"
|
||||||
:propsmove="propsmove" :isMain="isMain" @vip="canmoveit" />
|
:propsmove="propsmove" :isMain="isMain" @vip="canmoveit" />
|
||||||
<!-- 医嘱 -->
|
<!-- 医嘱 -->
|
||||||
<doctorask v-if="menuIndex==2"/>
|
<doctorask v-if="menuIndex==2"/>
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@
|
||||||
|
|
||||||
uni.setStorageSync('nuId', cardarray.value[index].nuId);
|
uni.setStorageSync('nuId', cardarray.value[index].nuId);
|
||||||
uni.setStorageSync('nuName', cardarray.value[index].nuName);
|
uni.setStorageSync('nuName', cardarray.value[index].nuName);
|
||||||
uni.setStorageSync('customerId', cardarray.value[index].elderInfo ? cardarray.value[index].elderInfo?.id : null);
|
uni.setStorageSync('elderId', cardarray.value[index].elderInfo ? cardarray.value[index].elderInfo?.id : null);
|
||||||
uni.setStorageSync('NUall', cardarray.value[index]);
|
uni.setStorageSync('NUall', cardarray.value[index]);
|
||||||
|
|
||||||
if (leftarraytarget.value===1) {
|
if (leftarraytarget.value===1) {
|
||||||
|
|
|
||||||
|
|
@ -706,7 +706,7 @@
|
||||||
savetypeNow.value = leftTargetIndex.value
|
savetypeNow.value = leftTargetIndex.value
|
||||||
uni.setStorageSync('nuId', filteredMenu.value[savetypeNow.value].nuId);
|
uni.setStorageSync('nuId', filteredMenu.value[savetypeNow.value].nuId);
|
||||||
uni.setStorageSync('nuName', filteredMenu.value[savetypeNow.value].nuName);
|
uni.setStorageSync('nuName', filteredMenu.value[savetypeNow.value].nuName);
|
||||||
uni.setStorageSync('customerId', filteredMenu.value[savetypeNow.value].elderInfo ? filteredMenu.value[savetypeNow.value].elderInfo?.id : null);
|
uni.setStorageSync('elderId', filteredMenu.value[savetypeNow.value].elderInfo ? filteredMenu.value[savetypeNow.value].elderInfo?.id : null);
|
||||||
uni.setStorageSync('NUall', filteredMenu.value[savetypeNow.value]);
|
uni.setStorageSync('NUall', filteredMenu.value[savetypeNow.value]);
|
||||||
|
|
||||||
if (!typeNow.value) {
|
if (!typeNow.value) {
|
||||||
|
|
@ -1205,7 +1205,7 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
.menu {
|
.menu {
|
||||||
flex: 0 0 auto; // 👈 关键点
|
flex: 0 0 auto; // 关键点
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
width: 240rpx;
|
width: 240rpx;
|
||||||
border-radius: 50rpx;
|
border-radius: 50rpx;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue