feat: 🚀 物料列表刷新

This commit is contained in:
2025-09-25 17:20:06 +08:00
parent 629232a243
commit 7b4e4f81d2
11 changed files with 60 additions and 36 deletions

View File

@@ -57,12 +57,16 @@ const dataStore = reactive<any>({
selectionList: [], //选中表格的行
loading: false
});
//设置组织数组
dataStore.formData[5].options = userStore.orgIdArr;
//订阅人
dataStore.initParam.subscriber_name = userStore.userInfo.nickname;
const init = () => {
//设置组织数组
dataStore.formData[5].options = userStore.orgIdArr;
//设置仓库数据
dataStore.formData[6].options = userStore.warehouse;
//订阅人
dataStore.initParam.subscriber_name = userStore.userInfo.nickname;
};
init();
// 表格选择事件
const selectionChange = (selection: any) => {
dataStore.selectionList = selection;
@@ -82,6 +86,7 @@ const handleSearch = async (params: any) => {
//重置
const handleReset = () => {
dataStore.initParam = cloneDeep(RULE_FORM);
init();
//这里需要等到表格刷新以后才去请求
nextTick(() => {
proTable.value!.getTableList();