Merge remote-tracking branch 'remotes/origin/master'
This commit is contained in:
commit
3f7b9f5d67
12
src/api/FollowUpRecords/followrecords.ts
Normal file
12
src/api/FollowUpRecords/followrecords.ts
Normal 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 }
|
||||
})
|
||||
}
|
10
src/api/officialReceptions/index.ts
Normal file
10
src/api/officialReceptions/index.ts
Normal 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 }
|
||||
})
|
||||
}
|
@ -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: ""
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
70
src/pages-bpm/FollowUpRecords/index.vue
Normal file
70
src/pages-bpm/FollowUpRecords/index.vue
Normal 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>
|
109
src/pages-bpm/officialReceptions/index.vue
Normal file
109
src/pages-bpm/officialReceptions/index.vue
Normal 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>
|
@ -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"
|
||||
|
2
src/types/uni-pages.d.ts
vendored
2
src/types/uni-pages.d.ts
vendored
@ -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" |
|
||||
|
Loading…
Reference in New Issue
Block a user