Browse Source

修复弹窗不关闭

fix_bug_pro20231227
13208366016 1 year ago
parent
commit
22140688f6
  1. 32
      src/views/distribution/LsystemsInventory/LsystemsInventory.vue

32
src/views/distribution/LsystemsInventory/LsystemsInventory.vue

@ -76,7 +76,11 @@
:width="item.width"
:fixed="item.fixed"
align="center"
/>
>
<template #default="props">
<span>{{ props.row[item.prop] ? props.row[item.prop] : '/' }}</span>
</template>
</el-table-column>
</template>
<template v-if="item.type === 4">
@ -457,7 +461,7 @@ const menuData = ref([
label: '仓库',
type: 1,
values: '',
width: '260',
width: '280',
checkarr: [],
fixed: false,
sortable: true,
@ -467,16 +471,16 @@ const menuData = ref([
//
function onLoad() {
loading.value = true; //
// API$_TableList
$_SyncInventoryList({
pageNum: currentPage.value,
pageSize: pageSize.value,
inventoryNo: AddForm.value.inventoryNo,
// inventoryNo:123123
inventoryNo: AddForm.value.inventoryNo, //()
}).then(res => {
loading.value = false; //
//
data.value = res.data.data.records;
console.log(res, 'res');
});
}
//
@ -484,12 +488,15 @@ const Sub = () => {
onLoad();
};
const TabHeig = () => {
TabHeight.value = TabHeight.value.offsetHeight - 91;
menuHeight.value = window.innerHeight - 136;
};
// DOM
onMounted(() => {
//88
TabHeight.value = TabHeight.value.offsetHeight - 91;
menuHeight.value = window.innerHeight - 136;
console.log('元素的高度:', menuHeight.value);
TabHeig();
// DOM
onLoad();
});
@ -502,20 +509,21 @@ const AddInfo = () => {
const PageSizeChange = val => {
pageSize.value = val;
onLoad();
console.log('每一页', val, '条');
};
//
const SizeChange = val => {
currentPage.value = val;
onLoad();
console.log('当前是第', val, '页');
};
//
const submit = () => {
console.log(AddForm.value);
$_SyncInventorySubmit(AddForm.value).then(res => {
console.log(res);
AddForm.value.inventoryNo = ''; //
total.value = res.data.data.total; //
onLoad(); //
AddLalog.value = false;
});
};
//
@ -557,11 +565,13 @@ const ViewEvent = val => {
};
//
const refresh = () => {
onLoad();
// loading.value = !loading.value;
};
//
const search = () => {
searchSo.value = !searchSo.value;
TabHeig();
};
//
const SoInput = () => {

Loading…
Cancel
Save