修改bug

This commit is contained in:
yangjun 2025-11-19 14:10:50 +08:00
parent 0c3dcc16a8
commit ea3c4129b2
2 changed files with 4 additions and 4 deletions

View File

@ -227,19 +227,19 @@ const labelCol = reactive({
{ {
label: '启用', label: '启用',
onClick: handleWlQyty.bind(null, record), onClick: handleWlQyty.bind(null, record),
ifShow: record.izEnabled == 1 ifShow: record.izEnabled == 'N'
}, },
{ {
label: '停用', label: '停用',
onClick: handleWlQyty.bind(null, record), onClick: handleWlQyty.bind(null, record),
ifShow: record.izEnabled == 0 ifShow: record.izEnabled == 'Y'
}, },
] ]
} }
// //
function handleWlQyty(record){ function handleWlQyty(record){
console.log("🚀 ~ handleWlQyty ~ record:", record) console.log("🚀 ~ handleWlQyty ~ record:", record)
const izEnabled = record.izEnabled == '1' ? '0' : "1" const izEnabled = record.izEnabled == 'N' ? 'Y' : "N"
var params = {id:record.id,izEnabled} var params = {id:record.id,izEnabled}
defHttp.post({ url: '/invoicing/configSuppliersInfo/edit', params }).then((res) => { defHttp.post({ url: '/invoicing/configSuppliersInfo/edit', params }).then((res) => {
searchQuery() searchQuery()

View File

@ -75,7 +75,7 @@ import type { CollapseProps } from 'ant-design-vue';
const formRef = ref(); const formRef = ref();
const qgcModal = ref(); const qgcModal = ref();
const queryParam = reactive<any>({izEnabled:'0'}); const queryParam = reactive<any>({izEnabled:'Y'});
const toggleSearchStatus = ref<boolean>(false); const toggleSearchStatus = ref<boolean>(false);
const registerModal = ref(); const registerModal = ref();
const qgcOpen = ref(false)// const qgcOpen = ref(false)//