1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- import apis from '@/configs/http';
- import { redirectToLogin, redirectTo } from '@/common/NavFuncs';
- export default {
- namespaced: true,
- actions: {
- getProvince({ commit },param) {
- return apis.sz.post('/TOrder/getProvince',param)
- .then(res => {
- const { data } = res;
- return data;
- });
- },
- getEquipmentStatistics({ commit },param) {
- return apis.sz.post('/TOrder/getEquipmentStatistics',param)
- .then(res => {
- const { data } = res;
- return data;
- });
- },
- getStatistics({ commit },param) {
- return apis.sz.post('/TOrder/getStatistics',param)
- .then(res => {
- const { data } = res;
- return data;
- });
- },
- getMainStatistics({ commit },param) {
- return apis.sz.post('/TOrder/getMainStatistics',param)
- .then(res => {
- const { data } = res;
- return data;
- });
- },
- getEquipmentListByUser({ commit },param) {
- // console.log('getEquipmentListByUser')
- return apis.sz.post('/TEquipment/getEquipmentListByUser',param)
- .then(res => {
- const { data } = res;
- return data;
- });
- },
- updata({ commit },param) {
- return apis.sz.post('/TEquipment/updateName',param)
- .then(res => {
- const { data } = res;
- return res;
- });
- },
- getMachineNum({ commit },param) {
- return apis.sz.post('/TEquipment/getMachineNum',param)
- .then(res => {
- const { data } = res;
- return data;
- });
- },
- }
- }
|