Browse Source

修复页码.弹窗bug

fix_bug_pro20231227
13208366016 1 year ago
parent
commit
f28869a9a0
  1. 19
      src/views/distribution/LsystemsInventory/LsystemsInventory.vue

19
src/views/distribution/LsystemsInventory/LsystemsInventory.vue

@ -7,7 +7,7 @@
<div class="SoInput" v-show="searchSo"> <div class="SoInput" v-show="searchSo">
<el-form label-position="top" label-width="100px" :model="AddForm"> <el-form label-position="top" label-width="100px" :model="AddForm">
<el-form-item label="盘点任务编码:"> <el-form-item label="盘点任务编码:">
<el-input v-model="AddForm.inventoryNo" placeholder="请输入盘点任务编码" /> <el-input v-model="AddData.inventoryNo" placeholder="请输入盘点任务编码" />
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="SoBtn"> <div class="SoBtn">
@ -323,10 +323,11 @@ const data = ref([]); // 表格数据
const TabHeight = ref(); // const TabHeight = ref(); //
const AddLalog = ref(false); // const AddLalog = ref(false); //
const AddForm = ref({}); // const AddForm = ref({}); //
const AddData = ref({}); //
const tableRef = ref(null); // table const tableRef = ref(null); // table
const menu = ref(false); // const menu = ref(false); //
const menuHeight = ref(); //, const menuHeight = ref(); //,
const total = ref(100); // const total = ref(null); //
const checkList = ref<(string | number)[]>([]); // const checkList = ref<(string | number)[]>([]); //
const flexList = ref<(string | number)[]>([]); // const flexList = ref<(string | number)[]>([]); //
const loading = ref(false); // const loading = ref(false); //
@ -468,7 +469,6 @@ const menuData = ref([
head: true, head: true,
}, },
]); ]);
// //
function onLoad() { function onLoad() {
loading.value = true; // loading.value = true; //
@ -476,10 +476,12 @@ function onLoad() {
$_SyncInventoryList({ $_SyncInventoryList({
pageNum: currentPage.value, pageNum: currentPage.value,
pageSize: pageSize.value, pageSize: pageSize.value,
inventoryNo: AddForm.value.inventoryNo, //() inventoryNo: AddData.value.inventoryNo, //()
}).then(res => { }).then(res => {
loading.value = false; // loading.value = false; //
// //
console.log(res, 'res=====>');
total.value = res.data.data.total;
data.value = res.data.data.records; data.value = res.data.data.records;
}); });
} }
@ -519,11 +521,12 @@ const SizeChange = val => {
// //
const submit = () => { const submit = () => {
console.log(AddForm.value); console.log(AddForm.value);
AddLalog.value = false;
$_SyncInventorySubmit(AddForm.value).then(res => { $_SyncInventorySubmit(AddForm.value).then(res => {
console.log(res, 'res=======>>>>');
AddForm.value.inventoryNo = ''; // AddForm.value.inventoryNo = ''; //
total.value = res.data.data.total; //
onLoad(); // onLoad(); //
AddLalog.value = false;
}); });
}; };
// //
@ -571,7 +574,7 @@ const refresh = () => {
// //
const search = () => { const search = () => {
searchSo.value = !searchSo.value; searchSo.value = !searchSo.value;
TabHeig(); TabHeig();
}; };
// //
const SoInput = () => { const SoInput = () => {
@ -579,7 +582,7 @@ const SoInput = () => {
}; };
// //
const SoEmpty = () => { const SoEmpty = () => {
AddForm.value.inventoryNo = ''; AddData.value.inventoryNo = '';
onLoad(); onLoad();
}; };
</script> </script>

Loading…
Cancel
Save