Browse Source

修复页码.弹窗bug

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

17
src/views/distribution/LsystemsInventory/LsystemsInventory.vue

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

Loading…
Cancel
Save