Merge branch 'al'

# Conflicts:
#	src/views/worksheet/aside/WorkSheetList.vue
bak
刘释隆 1 year ago
commit 5dfcde4f3a

@ -164,11 +164,11 @@ export async function sort(searchid: string, reorder: number): Promise<void> {
* *
* @returns * @returns
*/ */
export async function savefield(reviewType: number,userId:string,userField:string): Promise<void> { export async function savefield(reviewType: number,userId:string,userFieldFixed:string,userFieldUnFixed:string=''): Promise<void> {
return http.request({ return http.request({
url: `/ocr/user/field/saveOrUpdate`, url: `/ocr/user/field/saveOrUpdate`,
method: 'POST', method: 'POST',
params: { reviewType,userId,userField}, params: { reviewType,userId,userFieldFixed,userFieldUnFixed},
}) })
} }

@ -31,7 +31,6 @@ onMounted(async()=>{
const allList = res.data; const allList = res.data;
res = await getfieldList(props.reviewType, userInfo.id); // res = await getfieldList(props.reviewType, userInfo.id); //
const useList = res.data; const useList = res.data;
console.log(allList,useList,'useList')
/** /**
* name 标题 * name 标题
* id 键值 * id 键值

@ -251,11 +251,9 @@ const rightInputHandler = debounce((keyword) => {
async function getfield(){ async function getfield(){
let res; let res;
res = await getAllfieldList(3) res = await getAllfieldList(3)
console.log(res,'getAllfieldList')
const userStore = useUser(); const userStore = useUser();
const userInfo = userStore.getUserInfo; const userInfo = userStore.getUserInfo;
res = await getfieldList(3,userInfo.id) res = await getfieldList(3,userInfo.id)
console.log(res,'res')
} }
onMounted(()=>{ onMounted(()=>{

@ -2,6 +2,9 @@
import { useTaskStore } from '@/store/modules/task'; import { useTaskStore } from '@/store/modules/task';
import { debounce } from 'lodash-es'; import { debounce } from 'lodash-es';
import { computed, ref, unref, watch } from 'vue'; import { computed, ref, unref, watch } from 'vue';
import CustomFieldModal from '../../worksheet/modal/CustomFieldModal.vue';
import TaskList from './TaskList.vue'; import TaskList from './TaskList.vue';
const CustomFieldModalRef = ref(null) const CustomFieldModalRef = ref(null)
@ -84,7 +87,7 @@ const inputHandler = debounce((word) => {
</div> </div>
</div> </div>
<TaskList ref="taskListRef" style="height: calc(100vh - 146px);" class="work-sheet-list" /> <TaskList ref="taskListRef" style="height: calc(100vh - 146px);" class="work-sheet-list" />
<CustomFieldModal ref="CustomFieldModalRef" :reviewType="2"/> <CustomFieldModal ref="CustomFieldModalRef" :reviewType="2" />
</div> </div>
</template> </template>

@ -1,5 +1,6 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed } from 'vue' import { format } from 'date-fns';
import { computed } from 'vue';
defineOptions({ name: 'ListItem' }) defineOptions({ name: 'ListItem' })
@ -25,15 +26,17 @@ const svgName = computed(() => {
<div style="display: flex;"> <div style="display: flex;">
<SvgIcon :name="svgName" size="28" /> <SvgIcon :name="svgName" size="28" />
<span class="list-item-header-name" :class="{ 'list-item-header-selected': selected }"> <span class="list-item-header-name" :class="{ 'list-item-header-selected': selected }">
任务ID:{{ listItem.formid }} 任务ID:{{ listItem.fromtaskname }}
</span> </span>
</div> </div>
<SvgIcon v-show="selected" size="14" name="more-ver" /> <SvgIcon v-show="selected" size="14" name="more-ver" />
</div> </div>
<ul class="list-item-detail"> <ul class="list-item-detail">
<li>审批状态<span class="list-item-status">{{ listItem.states }}</span></li> <li>审批状态<span class="list-item-status">{{ listItem.statshis }}</span></li>
<li>审批节点{{ listItem.createdate }}</li> <li>审批节点{{ listItem.taskname }}</li>
<li>提交时间{{ listItem.createdate }}</li> <li>提交时间{{ format(new Date(), 'yyyy-MM-dd HH:mm:ss') }}</li>
<li>提报人{{ listItem.fromuserid }}</li>
</ul> </ul>
<div class="list-item-divider" /> <div class="list-item-divider" />
</div> </div>

@ -1,9 +1,9 @@
<script lang="ts" setup> <script lang="ts" setup>
import { onMounted, onUnmounted, reactive, ref, watch } from 'vue'
import { useInfiniteScroll } from '@vueuse/core'
import ListItem from './ListItem.vue'
import { useTaskStore } from '@/store/modules/task' import { useTaskStore } from '@/store/modules/task'
import emitter from '@/utils/mitt' import emitter from '@/utils/mitt'
import { useInfiniteScroll } from '@vueuse/core'
import { onMounted, onUnmounted, reactive, ref, watch } from 'vue'
import ListItem from './ListItem.vue'
const taskStore = useTaskStore() const taskStore = useTaskStore()
const data = ref<any[]>([]) const data = ref<any[]>([])

@ -16,14 +16,14 @@ defineProps({
</td> </td>
<th>图片格式</th> <th>图片格式</th>
<td class="blue"> <td class="blue">
???
</td> </td>
</tr> </tr>
<tr> <tr>
<th>图片大小</th> <th>图片大小</th>
<td> ???</td> <td></td>
<th>图片尺寸</th> <th>图片尺寸</th>
<td> ???</td> <td></td>
</tr> </tr>
<tr> <tr>
<th>上传时间</th> <th>上传时间</th>
@ -33,7 +33,7 @@ defineProps({
</tr> </tr>
<tr> <tr>
<th>标记时间</th> <th>标记时间</th>
<td> ???</td> <td> </td>
<th>色彩空间</th> <th>色彩空间</th>
<td>{{ data?.ocrPicture?.space }}</td> <td>{{ data?.ocrPicture?.space }}</td>
</tr> </tr>

@ -35,20 +35,20 @@ defineProps({
<th>科室名称</th> <th>科室名称</th>
<td> {{ data?.ocrPicture?.field7 }}</td> <td> {{ data?.ocrPicture?.field7 }}</td>
<th>病例号</th> <th>病例号</th>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<th>拜访级别</th> <th>拜访级别</th>
<td> {{ data?.ocrPicture?.field6 }}</td> <td> {{ data?.ocrPicture?.field6 }}</td>
<th>下阶段计划</th> <th>下阶段计划</th>
<td>?</td> <td></td>
</tr> </tr>
<tr> <tr>
<th>是否为重复图片</th> <th>是否为重复图片</th>
<td> {{ data?.ocrPicture?.field14 }}</td> <td> {{ data?.ocrPicture?.field14 }}</td>
<th>附件信息</th> <th>附件信息</th>
<td> <td>
<a href="data?.fileannex" download>????</a> <a href="data?.fileannex" download></a>
</td> </td>
</tr> </tr>
</table> </table>

@ -1,8 +1,8 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed, ref, watch } from 'vue' import { workPackageMap } from '@/config/workorder';
import { difference } from 'lodash-es' import { difference } from 'lodash-es';
import { VueDraggable } from 'vue-draggable-plus' import { computed, ref, watch } from 'vue';
import { workPackageMap } from '@/config/workorder' import { VueDraggable } from 'vue-draggable-plus';
// //
const offList = ref<any[]>([]) const offList = ref<any[]>([])

@ -1,10 +1,10 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { PackageListItem } from '/#/workorder'
import ListItem from './ListItem.vue'
import { useWorkOrder } from '@/store/modules/workOrder' import { useWorkOrder } from '@/store/modules/workOrder'
import { reactive, ref, watch } from 'vue'
import { useInfiniteScroll } from '@vueuse/core'
import { isEmpty } from '@/utils' import { isEmpty } from '@/utils'
import { useInfiniteScroll } from '@vueuse/core'
import { reactive, ref, watch } from 'vue'
import ListItem from './ListItem.vue'
import type { PackageListItem } from '/#/workorder'
const workStore = useWorkOrder() const workStore = useWorkOrder()
const data = ref<PackageListItem[]>([]) const data = ref<PackageListItem[]>([])

Loading…
Cancel
Save