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);
padding: 0;
background-color: @component-background;
background: url(../resource/img/modalback.png);
.scrollbar__wrap {
padding: 16px !important;

View File

@ -1,5 +1,5 @@
<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 -->
<div :class="`${prefixCls}-left`">
<!-- logo -->

View File

@ -343,17 +343,39 @@ const getCardStyle = (index,allSize) => {
{
label: '详情',
onClick: handleDetail.bind(null, record),
}, {
label: '删除',
popConfirm: {
title: '是否确认删除',
confirm: handleDelete.bind(null, record),
placement: 'topLeft',
},
auth: 'configMaterialInfo:config_material_info:delete'
}
},
// {
// label: '',
// popConfirm: {
// title: '',
// confirm: handleDelete.bind(null, record),
// placement: 'topLeft',
// },
// 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){

View File

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

View File

@ -70,6 +70,7 @@
import { useDrawer } from '/@/components/Drawer';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
import { defHttp } from '/@/utils/http/axios';
const queryParam = reactive<any>({});
const checkedKeys = ref<Array<string | number>>([]);
const userStore = useUserStore();
@ -207,17 +208,37 @@ const labelCol = reactive({
{
label: '详情',
onClick: handleDetail.bind(null, record),
}, {
label: '删除',
popConfirm: {
title: '是否确认删除',
confirm: handleDelete.bind(null, record),
placement: 'topLeft',
},
auth: 'configSuppliersInfo:config_suppliers_info:delete'
}
},
// {
// label: '',
// popConfirm: {
// title: '',
// confirm: handleDelete.bind(null, record),
// placement: 'topLeft',
// },
// 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 {
flex: 1;
flex: 111;
min-width: 0;
min-height: 0;
padding: 24px;
overflow: auto;
background: #dfdfdf;
background: url(../public/resource/img/modalback.png);
}
.selected {

View File

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