This commit is contained in:
parent
52f8753fe9
commit
b43cc87fe9
|
|
@ -166,3 +166,10 @@ export const getInstructionTag = () => {
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export const deleteDirectiveSet = (params) => {
|
||||||
|
return request({
|
||||||
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/care/directive/deleteDirectiveSet`,
|
||||||
|
method: 'post' ,
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -792,7 +792,7 @@
|
||||||
<view class="button" @click="killruleclick">确定</view>
|
<view class="button" @click="killruleclick">确定</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="title">确定要删除指令吗</view>
|
<view class="title">确定要删除指令{{postitem.includesarray.length>1?'集合':''}}吗</view>
|
||||||
<view class="card-box">
|
<view class="card-box">
|
||||||
<view class="title-time-blue-card">
|
<view class="title-time-blue-card">
|
||||||
<image class="blue-img" src="/static/index/bluetarget.png" />
|
<image class="blue-img" src="/static/index/bluetarget.png" />
|
||||||
|
|
@ -805,8 +805,8 @@
|
||||||
<view class="title-time-font-rel">
|
<view class="title-time-font-rel">
|
||||||
{{ splitString(postitem.directiveName)[0]}}
|
{{ splitString(postitem.directiveName)[0]}}
|
||||||
</view>
|
</view>
|
||||||
<view v-if="splitString(postitem.directiveName)[1]" class="title-time-font-tags">
|
<view v-if="postitem.includesarray.length>1" class="title-time-font-tags">
|
||||||
({{ splitString(postitem.directiveName)[1]}})
|
指令集合
|
||||||
</view>
|
</view>
|
||||||
<view class="card-time">
|
<view class="card-time">
|
||||||
<view class="weight-time">
|
<view class="weight-time">
|
||||||
|
|
@ -853,7 +853,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch, onUnmounted, toRaw } from 'vue';
|
import { ref, onMounted, onBeforeUnmount, computed, nextTick, watch, onUnmounted, toRaw } from 'vue';
|
||||||
import { onShow, onHide } from '@dcloudio/uni-app';
|
import { onShow, onHide } from '@dcloudio/uni-app';
|
||||||
import { getNclist, addBatch, addDirective, addInstant, deleteDirective, editDirective ,getInstructionTag } from "./api.js";
|
import { getNclist, addBatch, addDirective, addInstant, deleteDirective, editDirective ,getInstructionTag,deleteDirectiveSet} from "./api.js";
|
||||||
import { myArray } from './yaoshandiao.js';
|
import { myArray } from './yaoshandiao.js';
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|
@ -963,7 +963,16 @@
|
||||||
});
|
});
|
||||||
const killruleclick = () => {
|
const killruleclick = () => {
|
||||||
isDelete.value = false;
|
isDelete.value = false;
|
||||||
deleteDirective({ id: postitem.value.id ,instructionTagId:typearray.value[whitchtype.value]?.instructionType}).then((res) => {
|
let obj ={
|
||||||
|
nuId: uni.getStorageSync('nuId'),
|
||||||
|
positioning:postitem.value.positioning,
|
||||||
|
positioningLong: postitem.value.positioningLong,
|
||||||
|
instructionTagId:typearray.value[whitchtype.value]?.instructionType,
|
||||||
|
id: postitem.value.id
|
||||||
|
}
|
||||||
|
// console.log(obj)
|
||||||
|
deleteDirectiveSet(obj).then((res) => {
|
||||||
|
// console.log(res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
geteverything()
|
geteverything()
|
||||||
if (saveEditIndex.value.index0 != -1) {
|
if (saveEditIndex.value.index0 != -1) {
|
||||||
|
|
@ -1157,7 +1166,7 @@
|
||||||
}
|
}
|
||||||
addDirective(postdata).then((res) => {
|
addDirective(postdata).then((res) => {
|
||||||
|
|
||||||
console.log("kankan", postdata, res)
|
// console.log("kankan", postdata, res)
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
geteverything()
|
geteverything()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
@ -1330,6 +1339,7 @@
|
||||||
|
|
||||||
let infoValue = object
|
let infoValue = object
|
||||||
infoValue.positioning = indexsave.value[0];
|
infoValue.positioning = indexsave.value[0];
|
||||||
|
infoValue.nuId = uni.getStorageSync('nuId');
|
||||||
infoValue.positioningLong = indexsave.value[1];
|
infoValue.positioningLong = indexsave.value[1];
|
||||||
infoValue.startTime = timearr.value[indexsave.value[0]].children[indexsave.value[1]].startTime;
|
infoValue.startTime = timearr.value[indexsave.value[0]].children[indexsave.value[1]].startTime;
|
||||||
infoValue.endTime = timearr.value[indexsave.value[0]].children[indexsave.value[1]].endTime;
|
infoValue.endTime = timearr.value[indexsave.value[0]].children[indexsave.value[1]].endTime;
|
||||||
|
|
@ -1631,14 +1641,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const reldata = ref([]);
|
const reldata = ref([]);
|
||||||
const deleteRuler = (index0 : number, index1 : number) => {
|
// const deleteRuler = (index0 : number, index1 : number) => {
|
||||||
// timearr.value[index0]?.children[index1].instructionTagId = typearray.value[whitchtype.value]?.instructionType;
|
// // timearr.value[index0]?.children[index1].instructionTagId = typearray.value[whitchtype.value]?.instructionType;
|
||||||
deleteDirective(timearr.value[index0]?.children[index1]).then((res : any) => {
|
// deleteDirective(timearr.value[index0]?.children[index1]).then((res : any) => {
|
||||||
if (res.success) {
|
// if (res.success) {
|
||||||
geteverything()
|
// geteverything()
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
|
|
||||||
const saveX = ref(0);
|
const saveX = ref(0);
|
||||||
const saveY = ref(0);
|
const saveY = ref(0);
|
||||||
|
|
@ -1680,7 +1690,7 @@
|
||||||
let animTimer = null
|
let animTimer = null
|
||||||
|
|
||||||
const doaddDirective = (element : any) => {
|
const doaddDirective = (element : any) => {
|
||||||
console.log(element,1683)
|
// console.log(element,1683)
|
||||||
addDirective(element).then((res) => {
|
addDirective(element).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
geteverything()
|
geteverything()
|
||||||
|
|
@ -1701,7 +1711,7 @@
|
||||||
killisopen.value = false;
|
killisopen.value = false;
|
||||||
deleteshake.value = false;
|
deleteshake.value = false;
|
||||||
detailshake.value = false;
|
detailshake.value = false;
|
||||||
deleteDirective({ id: killthisid.value.id ,instructionTagId:typearray.value[whitchtype.value]?.instructionType}).then((res) => {
|
deleteDirective({ nuId: uni.getStorageSync('nuId'),id: killthisid.value.id ,instructionTagId:typearray.value[whitchtype.value]?.instructionType}).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
geteverything()
|
geteverything()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
@ -1858,7 +1868,7 @@
|
||||||
// console.log("有老人吗",uni.getStorageSync('elderId'))
|
// console.log("有老人吗",uni.getStorageSync('elderId'))
|
||||||
if (uni.getStorageSync('nuId') && uni.getStorageSync('elderId')) {
|
if (uni.getStorageSync('nuId') && uni.getStorageSync('elderId')) {
|
||||||
getNclist(uni.getStorageSync('nuId'), uni.getStorageSync('elderId'),typearray.value[whitchtype.value]?.instructionType).then((res : any) => {
|
getNclist(uni.getStorageSync('nuId'), uni.getStorageSync('elderId'),typearray.value[whitchtype.value]?.instructionType).then((res : any) => {
|
||||||
console.log( res )
|
// 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 => ({
|
||||||
|
|
@ -1917,7 +1927,7 @@
|
||||||
geteverything()
|
geteverything()
|
||||||
// savePackagelist.value = uni.getStorageSync('Packagelist') || []
|
// savePackagelist.value = uni.getStorageSync('Packagelist') || []
|
||||||
let res = uni.getStorageSync(`saveTree${typearray.value[whitchtype.value]?.instructionType}`)
|
let res = uni.getStorageSync(`saveTree${typearray.value[whitchtype.value]?.instructionType}`)
|
||||||
console.log(res,typearray.value[whitchtype.value]?.instructionType)
|
// console.log(res,typearray.value[whitchtype.value]?.instructionType)
|
||||||
let goodArray = []
|
let goodArray = []
|
||||||
myArray.forEach((element : any) => {
|
myArray.forEach((element : any) => {
|
||||||
element?.children.forEach((element1 : any) => {
|
element?.children.forEach((element1 : any) => {
|
||||||
|
|
@ -2216,6 +2226,7 @@
|
||||||
killbaddata.value = false
|
killbaddata.value = false
|
||||||
|
|
||||||
longPressTimer.value = setTimeout(() => {
|
longPressTimer.value = setTimeout(() => {
|
||||||
|
// console.log(item.includesarray,e)
|
||||||
if (isScrolling.value) return
|
if (isScrolling.value) return
|
||||||
|
|
||||||
if (item.directiveName) {
|
if (item.directiveName) {
|
||||||
|
|
@ -2406,7 +2417,7 @@
|
||||||
openerror.value = true
|
openerror.value = true
|
||||||
return // ✅ 这次是真的 return 出函数了
|
return // ✅ 这次是真的 return 出函数了
|
||||||
}
|
}
|
||||||
console.log(postdata,2408)
|
// console.log(postdata,2408)
|
||||||
addDirective(postdata).then((res) => {
|
addDirective(postdata).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
geteverything()
|
geteverything()
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,14 @@ export const deleteDirective = (params) => {
|
||||||
data: params,
|
data: params,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 编排护理流程-删除服务指令集合
|
||||||
|
export const deleteDirectiveSet = (params) => {
|
||||||
|
return request({
|
||||||
|
url: `${uni.getStorageSync('serverUrl')}/api/pad/care/directive/deleteDirectiveSet`,
|
||||||
|
method: 'post',
|
||||||
|
data: params,
|
||||||
|
})
|
||||||
|
}
|
||||||
// 编排护理流程-删除即时服务指令
|
// 编排护理流程-删除即时服务指令
|
||||||
export const deleteInstant = (params) => {
|
export const deleteInstant = (params) => {
|
||||||
return request({
|
return request({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue