优化登录时候商品属性接口的调用,解决单据中商品不能查询的bug

This commit is contained in:
季圣华 2023-02-07 21:40:46 +08:00
parent 30826552fe
commit 94556bf616

View File

@ -280,14 +280,10 @@
},
//加载商品属性
initMPropertyShort(){
let mPropertyListShort = '';
let params = {};
params.currentPage = 1;
params.pageSize = 100;
getAction('/materialProperty/list', params).then((res) => {
getAction('/materialProperty/getAllList').then((res) => {
if(res && res.code === 200){
if(res.data) {
let thisRows = res.data.rows; //属性列表
let thisRows = res.data; //属性列表
Vue.ls.set('materialPropertyList', thisRows, 7 * 24 * 60 * 60 * 1000);
}
}