123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- import apis from '@/configs/http';
- import { redirectToLogin, redirectTo } from '@/common/NavFuncs';
- export default {
- namespaced: true,
- actions: {
- getProvinceAll({ commit },param) {
- return apis.sz.post('/TOrder/getProvinceAll',param)
- .then(res => {
- const { data } = res;
- return data;
- });
- },
- 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;
- // });
- // },
- //得出日,周,月,年的统计数据。
- getMainStatistics({ commit },param) {
- return apis.sz.post('/TCleanHistory/getMainStatistics',param)
- .then(res => {
- const { data } = res;
- return data;
- });
- },
- getEquipmentListByUser({ commit },param) {
- return apis.sz.post('/TEquipment/getEquipmentListByUser',param)
- .then(res => {
- const { data } = res;
- return data;
- });
- },
- getEquipmentListByProvince({ commit },param) {
- return apis.sz.post('/TEquipment/getEquipmentListByProvince',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;
- });
- },
- //修改定时清洗规则
- updateRule({ commit },param) {
- return apis.sz.post('/TEquipment/updateRule',param)
- .then(res => {
- const { data } = res;
- return data;
- });
- },
- //获取价格
- getPrice({ commit },name) {
- return apis.sz.post('/TPromoCode/getPrice',name)
- .then(res => {
- const { data } = res;
- return data;
- });
- },
- //支付
- pay({ commit },param) {
- return apis.sz.post('/TOrder/pay',param)
- .then(res => {
- const { data } = res;
- return data;
- });
- },
- }
- }
|