1.修改公务接待

This commit is contained in:
lagos 2025-08-13 09:26:00 +08:00
parent e7dca103ec
commit 3f622354a6
8 changed files with 122 additions and 10 deletions

View File

@ -17,7 +17,7 @@ export default defineManifestConfig({
name: VITE_APP_TITLE,
appid: VITE_UNI_APPID,
description: '',
versionName: '2.1.1',
versionName: '2.1.0',
versionCode: '20250808',
transformPx: false,
locale: VITE_FALLBACK_LOCALE, // 'zh-Hans'

View File

@ -13,13 +13,13 @@
//
getLocation()
// min
if (options.path && options.query) {
const path = options.path; // "pages/home/index"
const query = options.query; // {id: 123}
uni.navigateTo({
url: `/${path}?${Object.keys(query).map(k => `${k}=${query[k]}`).join('&')}`
});
}
// if (options.path && options.query) {
// const path = options.path; // "pages/home/index"
// const query = options.query; // {id: 123}
// uni.navigateTo({
// url: `/${path}?${Object.keys(query).map(k => `${k}=${query[k]}`).join('&')}`
// });
// }
},
onShow: function (options) {

View File

@ -138,7 +138,7 @@
if(props.taskDefKey=='task1715564108096'){ //
return flag = true; //
}
return flag = true; //
if (sign.value) {
return flag = true; //
} else {

View File

@ -2,7 +2,7 @@
"name": "数智产销",
"appid": "__UNI__9F097F0",
"description": "",
"versionName": "2.1.1",
"versionName": "2.1.0",
"versionCode": "20250808",
"transformPx": false,
"app-plus": {

View File

@ -0,0 +1,105 @@
<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>
<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 { 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

@ -605,6 +605,10 @@
"path": "officialReceptions/index",
"type": "page"
},
{
"path": "officialReceptions/show",
"type": "page"
},
{
"path": "planReview/index",
"type": "page"

View File

@ -73,6 +73,7 @@ interface NavigateToOptions {
"/pages-bpm/leaveApplication/index" |
"/pages-bpm/OfficeEquipmentMaintenanceApplication/index" |
"/pages-bpm/officialReceptions/index" |
"/pages-bpm/officialReceptions/show" |
"/pages-bpm/planReview/index" |
"/pages-bpm/SuperiorSystem/index" |
"/pages-bpm/unconventional/index" |

View File

@ -235,7 +235,9 @@ export const useUpdateApp = defineStore('updateApp', () => {
if (webApp) {// upDateAppApi by min
path = webApp
}
console.log(22222222222222222)
upDateAppApi(path).then(async (res : any) => {
console.log(3333333333)
let {
result
} = res