|
|
|
@ -47,18 +47,20 @@ const user = {
|
|
|
|
|
setToken(res.token) |
|
|
|
|
commit('SET_TOKEN', res.token) |
|
|
|
|
// 设定进销存参数 尝试同步zsw
|
|
|
|
|
let params = {}; |
|
|
|
|
params.currentPage = 1; |
|
|
|
|
params.pageSize = 100; |
|
|
|
|
getAction('/erp/materialProperty/list', params).then((mp) => { |
|
|
|
|
console.log(mp); |
|
|
|
|
if(mp && mp.code === 200){ |
|
|
|
|
if(mp.data) { |
|
|
|
|
let thisRows = mp.data.rows; //属性列表
|
|
|
|
|
Vue.ls.set('materialPropertyList', thisRows); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
// let params = {};
|
|
|
|
|
// params.currentPage = 1;
|
|
|
|
|
// params.pageSize = 100;
|
|
|
|
|
|
|
|
|
|
// getAction('/erp/materialProperty/list', params).then((mp) => {
|
|
|
|
|
// console.log(mp);
|
|
|
|
|
// if(mp && mp.code === 200){
|
|
|
|
|
// if(mp.data) {
|
|
|
|
|
// let thisRows = mp.data.rows; //属性列表
|
|
|
|
|
// Vue.ls.set('materialPropertyList', thisRows);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
resolve() |
|
|
|
|
}).catch(error => { |
|
|
|
|
reject(error) |
|
|
|
|