This commit is contained in:
1378012178@qq.com 2025-08-04 14:48:54 +08:00
commit ef01bcb535
7 changed files with 97 additions and 33 deletions

View File

@ -212,6 +212,7 @@
height: calc(100% - @header-height); height: calc(100% - @header-height);
padding: 0; padding: 0;
background-color: @component-background; background-color: @component-background;
background: url(../resource/img/modalback.png);
.scrollbar__wrap { .scrollbar__wrap {
padding: 16px !important; padding: 16px !important;

View File

@ -1,5 +1,5 @@
<template> <template>
<Header :class="getHeaderClass" style="background-image: url('../resource/img/bj.png');background-repeat: no-repeat;background-size: 100% auto;"> <Header :class="getHeaderClass" style="background-image: url('../resource/img/bj.png') !important;background-repeat: no-repeat;background-size: 100% auto;">
<!-- left start --> <!-- left start -->
<div :class="`${prefixCls}-left`"> <div :class="`${prefixCls}-left`">
<!-- logo --> <!-- logo -->

View File

@ -343,17 +343,39 @@ const getCardStyle = (index,allSize) => {
{ {
label: '详情', label: '详情',
onClick: handleDetail.bind(null, record), onClick: handleDetail.bind(null, record),
}, { },
label: '删除', // {
popConfirm: { // label: '',
title: '是否确认删除', // popConfirm: {
confirm: handleDelete.bind(null, record), // title: '',
placement: 'topLeft', // confirm: handleDelete.bind(null, record),
}, // placement: 'topLeft',
auth: 'configMaterialInfo:config_material_info:delete' // },
} // auth: 'configMaterialInfo:config_material_info:delete'
// }
{
label: '启用',
onClick: handleWlQyty.bind(null, record),
ifShow: record.izEnabled == 1
},
{
label: '停用',
onClick: handleWlQyty.bind(null, record),
ifShow: record.izEnabled == 0
},
]; ];
} }
//
function handleWlQyty(record){
console.log("🚀 ~ handleWlQyty ~ record:", record)
const izEnabled = record.izEnabled == '1' ? '0' : "1"
var params = {id:record.id,izEnabled}
defHttp.post({ url: '/invoicing/configMaterialInfo/edit', params }).then((res) => {
searchQuery()
});
}
// //
function handleSearch(data){ function handleSearch(data){

View File

@ -41,16 +41,22 @@ export const columns: BasicColumn[] = [
dataIndex: 'openingBank' dataIndex: 'openingBank'
}, },
{ {
title: '开户行账号', title: '是否启用',
align:"center", align: "center",
dataIndex: 'openingBankNo' dataIndex: 'izEnabled_dictText',
}, width:'100px'
{
title: '微信账号',
align:"center",
dataIndex: 'wechartId'
}, },
// { // {
// title: '开户行账号',
// align:"center",
// dataIndex: 'openingBankNo'
// },
// {
// title: '微信账号',
// align:"center",
// dataIndex: 'wechartId'
// },
// {
// title: '资质照片', // title: '资质照片',
// align:"center", // align:"center",
// dataIndex: 'imgPath', // dataIndex: 'imgPath',

View File

@ -70,6 +70,7 @@
import { useDrawer } from '/@/components/Drawer'; import { useDrawer } from '/@/components/Drawer';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue'; import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue'; import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
import { defHttp } from '/@/utils/http/axios';
const queryParam = reactive<any>({}); const queryParam = reactive<any>({});
const checkedKeys = ref<Array<string | number>>([]); const checkedKeys = ref<Array<string | number>>([]);
const userStore = useUserStore(); const userStore = useUserStore();
@ -207,17 +208,37 @@ const labelCol = reactive({
{ {
label: '详情', label: '详情',
onClick: handleDetail.bind(null, record), onClick: handleDetail.bind(null, record),
}, { },
label: '删除', // {
popConfirm: { // label: '',
title: '是否确认删除', // popConfirm: {
confirm: handleDelete.bind(null, record), // title: '',
placement: 'topLeft', // confirm: handleDelete.bind(null, record),
}, // placement: 'topLeft',
auth: 'configSuppliersInfo:config_suppliers_info:delete' // },
} // auth: 'configSuppliersInfo:config_suppliers_info:delete'
// }
{
label: '启用',
onClick: handleWlQyty.bind(null, record),
ifShow: record.izEnabled == 1
},
{
label: '停用',
onClick: handleWlQyty.bind(null, record),
ifShow: record.izEnabled == 0
},
] ]
} }
//
function handleWlQyty(record){
console.log("🚀 ~ handleWlQyty ~ record:", record)
const izEnabled = record.izEnabled == '1' ? '0' : "1"
var params = {id:record.id,izEnabled}
defHttp.post({ url: '/invoicing/configSuppliersInfo/edit', params }).then((res) => {
searchQuery()
});
}
/** /**
* 下拉操作栏 * 下拉操作栏
*/ */

View File

@ -325,12 +325,13 @@ defineExpose({
} }
.ant-drawer .ant-drawer-body { .ant-drawer .ant-drawer-body {
flex: 1; flex: 111;
min-width: 0; min-width: 0;
min-height: 0; min-height: 0;
padding: 24px; padding: 24px;
overflow: auto; overflow: auto;
background: #dfdfdf; background: #dfdfdf;
background: url(../public/resource/img/modalback.png);
} }
.selected { .selected {

View File

@ -220,7 +220,7 @@
<template #footer> <template #footer>
<a-button type="primary" @click="onBodyTagClose" style="float: right;">关闭</a-button> <a-button type="primary" @click="onBodyTagClose" style="float: right;">关闭</a-button>
</template> </template>
<BodyTagList v-if="bodyTagOpen"></BodyTagList> <BodyTagList v-if="bodyTagOpen" class="backClass"></BodyTagList>
</a-drawer> </a-drawer>
<!-- 情绪标签 --> <!-- 情绪标签 -->
@ -228,13 +228,13 @@
<template #footer> <template #footer>
<a-button type="primary" @click="onEmotionTagClose" style="float: right;">关闭</a-button> <a-button type="primary" @click="onEmotionTagClose" style="float: right;">关闭</a-button>
</template> </template>
<EmotionTagList v-if="emotionTagOpen"></EmotionTagList> <EmotionTagList v-if="emotionTagOpen" class="backClass"></EmotionTagList>
</a-drawer> </a-drawer>
<!-- 音频播放 --> <!-- 音频播放 -->
<a-modal v-model:visible="showAudioModal" title="音频播放" :footer="null" @cancel="closeAudioModal" <a-modal v-model:visible="showAudioModal" title="音频播放" :footer="null" @cancel="closeAudioModal"
:bodyStyle="{ padding: '0', maxHeight: '80vh', overflow: 'auto' }" :keyboard="true"> :bodyStyle="{ padding: '0', maxHeight: '80vh', overflow: 'auto' }" :keyboard="true">
<audio controls style="width: 100%; display: block; margin: 20px auto;"> <audio ref="audioPlayer" controls style="width: 100%; display: block; margin: 20px auto;">
<source :src="audioUrl"> <source :src="audioUrl">
您的浏览器不支持音频播放 您的浏览器不支持音频播放
</audio> </audio>
@ -243,7 +243,7 @@
<!-- 视频播放 --> <!-- 视频播放 -->
<a-modal v-model:visible="showVideoModal" title="视频播放" :footer="null" @cancel="closeVideoModal" <a-modal v-model:visible="showVideoModal" title="视频播放" :footer="null" @cancel="closeVideoModal"
:bodyStyle="{ padding: '0', maxHeight: '80vh', overflow: 'auto' }"> :bodyStyle="{ padding: '0', maxHeight: '80vh', overflow: 'auto' }">
<video controls style="width: 100%; max-height: 70vh; display: block; margin: 0 auto;"> <video ref="videoPlayer" controls style="width: 100%; max-height: 70vh; display: block; margin: 0 auto;">
<source :src="videoUrl"> <source :src="videoUrl">
您的浏览器不支持视频播放 您的浏览器不支持视频播放
</video> </video>
@ -589,6 +589,7 @@ function onEmotionTagClose() {
const showAudioModal = ref(false); // const showAudioModal = ref(false); //
const audioUrl = ref(''); // URL const audioUrl = ref(''); // URL
const audioPlayer = ref(null);
// //
const openAudioModal = (url) => { const openAudioModal = (url) => {
@ -598,12 +599,17 @@ const openAudioModal = (url) => {
// //
const closeAudioModal = () => { const closeAudioModal = () => {
if (audioPlayer.value) {
audioPlayer.value.pause(); //
audioPlayer.value.currentTime = 0; //
}
showAudioModal.value = false; showAudioModal.value = false;
audioUrl.value = ''; audioUrl.value = '';
}; };
const showVideoModal = ref(false); // const showVideoModal = ref(false); //
const videoUrl = ref(''); // URL const videoUrl = ref(''); // URL
const videoPlayer = ref(null);
// //
const openVideoModal = (url) => { const openVideoModal = (url) => {
@ -613,12 +619,15 @@ const openVideoModal = (url) => {
// //
const closeVideoModal = () => { const closeVideoModal = () => {
if (videoPlayer.value) {
videoPlayer.value.pause(); //
videoPlayer.value.currentTime = 0; //
}
showVideoModal.value = false; showVideoModal.value = false;
videoUrl.value = ''; videoUrl.value = '';
}; };
// //
const audioPlayer = ref<HTMLAudioElement | null>(null);
const currentPlayingAudio = ref<string | null>(null); const currentPlayingAudio = ref<string | null>(null);
const isPlaying = ref(false); const isPlaying = ref(false);
@ -1063,4 +1072,8 @@ audio::-webkit-media-controls-time-remaining-display {
overflow-y: auto; overflow-y: auto;
} }
} }
.backClass{
background: url(../../resource/img/modalback.png);
}
</style> </style>