Merge remote-tracking branch 'remotes/origin/master'

This commit is contained in:
yangzhq68909 2025-08-08 16:44:21 +08:00
commit 3f7b9f5d67
9 changed files with 237 additions and 5 deletions

View File

@ -0,0 +1,12 @@
import { http } from '@/utils/http';
/*通过id查询数据*/
export function queryByIdApi(id : string) {
return http({
url: '/cxcGwjktbHmcAPP/cxcGwjktbHmcAPP/queryById',
method: 'GET',
data: { id }
})
}

View File

@ -0,0 +1,10 @@
import { http } from '@/utils/http';
/*通过id查询公文数据*/
export function queryById(id : string) {
return http({
url: '/CxcGwjdSpd/cxcGwjdSpd/queryByIdBpm',
method: 'GET',
data: { id }
})
}

View File

@ -2,10 +2,10 @@
<template>
<view>
<view v-if="ifH5">
<SinopecEsignPageH5 :valiData="props.valiData" :procInsId="props.procInsId" :path="props.path" ref="signH5" :fileName="props.fileName" @stampSuccess="getStampSuccess"></SinopecEsignPageH5>
<SinopecEsignPageH5 :taskDefKey="props.taskDefKey" :valiData="props.valiData" :procInsId="props.procInsId" :path="props.path" ref="signH5" :fileName="props.fileName" @stampSuccess="getStampSuccess"></SinopecEsignPageH5>
</view>
<view v-else>
<SinopecEsignPageAPP :valiData="props.valiData" :procInsId="props.procInsId" :path="props.path" ref="signAPP" :fileName="props.fileName" @stampSuccess="getStampSuccess"></SinopecEsignPageAPP>
<SinopecEsignPageAPP :taskDefKey="props.taskDefKey" :valiData="props.valiData" :procInsId="props.procInsId" :path="props.path" ref="signAPP" :fileName="props.fileName" @stampSuccess="getStampSuccess"></SinopecEsignPageAPP>
</view>
</view>
</template>
@ -40,6 +40,10 @@
path: {//
type: String,
default: ""
},
taskDefKey: { //
type: String,
default: ""
}
})

View File

@ -45,6 +45,10 @@ export default {
path: {//
type: String,
default: ""
},
taskDefKey: { //
type: String,
default: ""
}
},
emits: ['message'],
@ -107,10 +111,14 @@ export default {
} else {
return flag = false;
}
} else if (props.path == 'modules/gwjdspd/modules/CxcGwjdSpdFromByProcess') { //
} else if (props.path == 'officialReceptions/index') { //
//2024.5.16
//
// let flag = false;
if(props.taskDefKey=='task1715564108096'){ //
return flag = true; //
}
if (sign.value) {
return flag = true; //
} else {

View File

@ -60,6 +60,10 @@
path: {//
type: String,
default: ""
},
taskDefKey: { //
type: String,
default: ""
}
})
@ -90,7 +94,7 @@
const signValidator = async () => { // by
console.log(props.valiData)
console.log(props.path)
errorMsg.value = '';
let flag = false;
if (props.path == 'unconventional/stamp') { //
@ -126,10 +130,15 @@
} else {
return flag = false;
}
} else if (props.path == 'modules/gwjdspd/modules/CxcGwjdSpdFromByProcess') { //
} else if (props.path == 'officialReceptions/index') { //
//2024.5.16
//
// let flag = false;
console.log(2222)
if(props.taskDefKey=='task1715564108096'){ //
return flag = true; //
}
if (sign.value) {
return flag = true; //
} else {

View File

@ -0,0 +1,70 @@
<template>
<wd-cell-group>
<wd-cell title="职工姓名" :value="info.sfr_dictText" />
<wd-cell title="随访日期" :value="info.createTime" />
<wd-cell title="随访方式" :value="info.sffs_dictText" />
<wd-cell title="健康异常因素" :value="info.jkycyx_dictText"/>
<wd-cell title="症状" :value="info.zz_dictText" />
<wd-divider>体征</wd-divider>
<wd-cell title="血压" :value="info.xy" />
<wd-cell title="体重" :value="info.tz + 'kg'" />
<wd-cell title="心率" :value="info.xl+ '/分钟'" />
<wd-cell title="其他" :value="info.tzqt" />
<wd-cell title="其他辅助检查" :value="info.qtfzjc" />
<wd-divider>生活方式指导</wd-divider>
<wd-cell title="日吸烟量" :value="info.rxyl" />
<wd-cell title="吸烟量" :value="info.xyl" v-show="info.rxyl!==''"/>
<wd-cell title="日饮酒量" :value="info.ryjl" />
<wd-cell title="饮酒量" :value="info.yjl" v-show="info.ryjl!==''"/>
<wd-cell title="运动" :value="info.yd " />
<wd-cell title="心理调整" :value="info.xltz_dictText" />
<wd-cell title="遵医行为" :value="info.zyxw_dictText" />
<wd-cell title="其他情况" :value="info.qtqk" />
<wd-divider>用药情况</wd-divider>
<wd-cell title="药物名称1" :value="info.ywmc1" />
<wd-cell title="药物名称2" :value="info.ywmc2" />
<wd-cell title="药物名称3" :value="info.ywmc3" />
<wd-cell title="其他药物名称" :value="info.qtyw" />
<wd-cell title="服药依从性" :value="info.fyycx_dictText" />
<wd-cell title="药物不良反应" :value="info.ywfy" />
<wd-cell title="近期就医情况" :value="info.jyqk_dictText" />
<wd-cell title="随访评价" :value="info.sfpj_dictText" />
<wd-cell title="随访建议" :value="info.sfjy_dictText" />
<wd-cell title="其他随访建议" :value="info.sfjyqt" />
<wd-cell title="下次随访日期" :value="info.xcsfrq" />
</wd-cell-group>
</template>
<script setup>
import {
queryByIdApi
} from '@/api/FollowUpRecords/followrecords'
import {
imgUrl
} from '@/utils/index'
const info = ref({})
const image = ref([])
const props = defineProps({
formData: {
type: Object,
default: () => {},
}
})
//
const queryById = () => {
console.log("info----健康--props.formData.dataId--",props.formData.dataId)
queryByIdApi(props.formData.dataId).then((res) => {
console.log("info----健康----",res)
if (res.success) {
info.value = res.result.records[0]
console.log("info----健康----",info.value)
}
})
}
onMounted(() => {
queryById()
})
</script>

View File

@ -0,0 +1,109 @@
<template>
<view>
<wd-collapse v-model="value">
<wd-collapse-item title="表单数据" name="item1">
<wd-cell title="接待类别" :value="info.jdlb" />
<wd-cell title="详细类别" :value="info.jdlb2" />
<wd-cell title="申请时间" :value="info.sqrq" />
<wd-cell title="申请单位" :value="info.sqdw" />
<wd-cell title="申请盖章领导" :value="info.gzbmld" />
<wd-cell title="申请盖章厂领导" :value="info.gzcld" />
<wd-cell title="活动日期" :value="info.hdrq" />
<wd-cell title="来宾单位" :value="info.lbdw" />
<wd-cell title="活动内容" :value="info.hdnr" />
<wd-cell title="经办人" :value="info.jbr" />
<wd-cell title="接待类别" :value="info.jdxm" />
<wd-cell v-if="info.jdxm=='工作餐(午餐)'&&info.jdlb2=='业务招待外部市场'" title="午餐地点" :value="info.wcddforwbxm" />
<wd-cell v-if="info.jdxm=='工作餐(午餐)'&&info.jdlb2!='业务招待外部市场'" title="午餐地点" :value="info.gzcjszwdidian" />
<wd-cell v-if="info.jdxm=='工作餐(晚餐)'" title="晚餐开始时间" :value="info.nightstarttime" />
<wd-cell v-if="info.jdxm=='工作餐(晚餐)'&&info.jdlb2=='业务招待外部市场'" title="晚餐地点" :value="info.ninghtddforwbxm" />
<wd-cell v-if="info.jdxm=='工作餐(晚餐)'&&info.jdlb2!='业务招待外部市场'" title="晚餐地点" :value="info.gzcjswsdidian" />
<wd-cell v-if="info.jdxm=='自助餐'" title="自助餐人数" :value="info.zzcrs" />
<wd-cell v-if="info.jdxm=='自助餐'" title="自助餐次数" :value="info.zzccs" />
<wd-cell title="来宾人数" :value="info.lbrs" />
<wd-cell title="陪餐人数" :value="info.pcrs" />
<wd-cell title="申请金额(元)" :value="info.sqje" />
<wd-cell title="备注" :value="info.bz" />
</wd-collapse-item>
<wd-collapse-item custom-body-style="padding:0;" title="审批附件" name="item2">
<SinopecEsignPage ref="sign" :procInsId="props.formData.procInsId" :path="props.formData.path" :taskDefKey="props.formData.taskDefKey" :fileName="info.jdsqwj" @stampSuccess="getStampSuccess" ></SinopecEsignPage>
</wd-collapse-item>
</wd-collapse>
<wd-toast></wd-toast>
</view>
</template>
<script setup>
import {
queryById
} from '@/api/officialReceptions'
import {
processHistoryList
} from '@/api/bpm/sign'
import {
imgUrl
} from '@/utils/index'
import SinopecEsignPage from '@/components/Esign/SinopecEsignPage.vue'
import { useUserStore } from '@/store/user'
import { useToast, useMessage, useNotify, dayjs } from 'wot-design-uni'
const userStore = useUserStore()
const toast = useToast()
const emit = defineEmits(['getStampSuc'])
const sign = ref(null);
const value = ref([]);
const info = ref({});
const valiData = ref({});
const ifEsign = ref(true);
const props = defineProps({
formData: {
type: Object,
default: () => {},
},
fileName: {
type: String,
default: ""
}
})
const queryData = ()=>{
console.log(props.formData)
queryById(props.formData.dataId).then(res=>{
if (res.success) {
console.log(res)
info.value = res.result.records[0]
if(info.value.jdsqwj){
info.value.jdsqwj = info.value.jdsqwj.replace("PdfFiles/PdfFile/",'')
}
}else{
toast.error(res.message)
}
})
}
//
const getStampSuccess=(val)=> {
emit('getStampSuc', val)
}
const signValidator = (procInsId,path)=>{
//
return sign.value.signValidator();
}
onMounted(() => {
queryData();
})
defineExpose({ //
signValidator,
ifEsign
})
</script>
<style lang="scss" scoped>
</style>

View File

@ -581,6 +581,10 @@
"path": "document/index",
"type": "page"
},
{
"path": "FollowUpRecords/index",
"type": "page"
},
{
"path": "khss/index",
"type": "page"
@ -597,6 +601,10 @@
"path": "OfficeEquipmentMaintenanceApplication/index",
"type": "page"
},
{
"path": "officialReceptions/index",
"type": "page"
},
{
"path": "planReview/index",
"type": "page"

View File

@ -67,10 +67,12 @@ interface NavigateToOptions {
"/pages-process/taskHandle" |
"/pages-bpm/carRental/index" |
"/pages-bpm/document/index" |
"/pages-bpm/FollowUpRecords/index" |
"/pages-bpm/khss/index" |
"/pages-bpm/lawsAndRegulations/index" |
"/pages-bpm/leaveApplication/index" |
"/pages-bpm/OfficeEquipmentMaintenanceApplication/index" |
"/pages-bpm/officialReceptions/index" |
"/pages-bpm/planReview/index" |
"/pages-bpm/SuperiorSystem/index" |
"/pages-bpm/unconventional/index" |