修改bug
This commit is contained in:
parent
0c3dcc16a8
commit
ea3c4129b2
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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)//请购车抽屉
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue