修改bug

This commit is contained in:
yangjun 2025-08-01 09:51:30 +08:00
parent a6ac0475e0
commit 62a144269a
3 changed files with 75 additions and 26 deletions

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()
});
}
/**
* 下拉操作栏
*/