819527061@qq.com
2023-11-28 1c7b86f984498eab66968c8d9e9ece42634b96bb
收款明细页面及对接接口、详情页面 测试bug调整
11个文件已修改
309 ■■■■■ 已修改文件
pages/home/home.vue 61 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/jihua/jihua.vue 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/login/login.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/my-application/my-application.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/my-have-todo/my-have-todo.vue 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/my-todo/my-todo.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/new-application/new-application.vue 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/payment-form-data/payment-form-data.vue 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
store/index.js 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/jihua.js 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/request.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/home/home.vue
@@ -19,7 +19,7 @@
                    </view>
                </template>
                <template v-slot:center>
                    <view class="center-container" @click="() => shenqingDetail(item)">
                    <view class="center-container">
                        <view class="center-content__one center-margin">
                            <view class="">
                                <text>所属流程:{{ item.processName }}</text>
@@ -54,11 +54,11 @@
                                <image src="@/static/home/cehui.png" mode=""></image>
                                <view>撤回</view>
                            </view> -->
                            <view @click="checkTheScheduleClick(item.procInstId)" v-if="item.status == 1">
                            <view @click="() => checkTheScheduleClick(item.procInstId)" v-if="item.status == 1">
                                <image src="@/static/home/jindu.png" mode=""></image>
                                <view>查看进度</view>
                            </view>
                            <view @click="theFormDataClick(item.tableId)" v-if="(item.status == 1 || item.status == 2 || item.status == 3) && item.processName == '发运通知单'">
                            <view @click="() => shenqingDetail(item)" v-if="item.actType == 'Offsetting' || item.actType == 'XsWaybill'">
                                <image src="@/static/home/biaodan.png" mode=""></image>
                                <view>申请详情</view>
                            </view>
@@ -70,7 +70,7 @@
                                <image src="@/static/home/history.png" mode=""></image>
                                <view>编辑</view>
                            </view> -->
                            <view @click="approvalHistoryClick(item.procInstId)" v-if="item.status == 2 || item.status == 3">
                            <view @click="() => checkTheScheduleClick(item.procInstId)" v-if="item.status !== 1">
                                <image src="@/static/home/history.png" mode=""></image>
                                <view>审批历史</view>
                            </view>
@@ -96,13 +96,13 @@
        <combined-title title="我的待办" detailsPath="/pages/my-todo/my-todo"></combined-title>
        <view class="card-group">
            <combination-card class="card" v-for="(item, index) in daibanData" index="index">
                <template v-slot:top>
                <template slot="top">
                    <view>
                        <text>{{ item.actBusiness.title }}</text>
                    </view>
                </template>
                <template v-slot:center>
                    <view class="center-container" @click="() => daibanDetail(item)">
                <template slot="center">
                    <view class="center-container">
                        <view class="center-content__one center-margin">
                            <view class="">
                                <text>任务名称:{{ item.name || '' }}</text>
@@ -120,23 +120,23 @@
                        </view>
                    </view>
                </template>
                <template v-slot:bottom>
                <template slot="bottom">
                    <view class="bottom-container">
                        <!-- 待办按钮 -->
                        <view class="bottom-content__item">
                            <view @click="theFormDataClick(item.tableId)">
                            <view @click="() => daibanDetail(item)" v-if="item.actBusiness.actType == 'Offsetting' || item.actBusiness.actType == 'XsWaybill'">
                                <image src="@/static/home/jindu.png" mode=""></image>
                                <view>申请详情</view>
                            </view>
                            <view @click="adopClick(item)">
                            <view @click="() => adopClick(item)">
                                <image src="@/static/home/tongguo.png" mode=""></image>
                                <view>通过</view>
                            </view>
                            <view @click="rejectClick(item)">
                            <view @click="() => rejectClick(item)">
                                <image src="@/static/home/bohui.png" mode=""></image>
                                <view>驳回</view>
                            </view>
                            <view @click="approvalHistoryClick(item.procInstId)">
                            <view @click="() => checkTheScheduleClick(item.procInstId)">
                                <image src="@/static/home/history.png" mode=""></image>
                                <view>历史</view>
                            </view>
@@ -198,11 +198,15 @@
                    <view class="bottom-container">
                        <!-- 已办按钮 -->
                        <view class="bottom-content__item">
                            <view @click="theFormDataClick(item.tableId)" v-if="item.processName == '发运通知单'">
                            <view @click="() => shenqingDetail(item)" v-if="item.processName == '发运通知单'">
                                <image src="@/static/home/biaodan.png" mode=""></image>
                                <view>表单数据</view>
                            </view>
                            <view @click="approvalHistoryClick(item.procInstId)">
              <view @click="() => daibanDetail(item)"  v-if="item.actBusiness.actType == 'Offsetting' || item.actBusiness.actType == 'XsWaybill'">
                <image src="@/static/home/jindu.png" mode=""></image>
                <view>详情</view>
              </view>
                            <view @click="() => checkTheScheduleClick(item.procInstId)">
                                <image src="@/static/home/history.png" mode=""></image>
                                <view>审批历史</view>
                            </view>
@@ -448,8 +452,8 @@
            haveTodoParams: {
                pageNumber: 1,
                pageSize: 2,
                sort: 'createTime',
                order: 'desc'
                // sort: 'createTime',
                // order: 'desc'
            }
        };
    },
@@ -493,12 +497,13 @@
        },
    //代办详情
    daibanDetail(item) {
      console.log(item,'item=====------000000')
      if(item?.actBusiness?.actType == 'Offsetting') {  //收款 actType = ‘Offsetting’
        uni.navigateTo({
          url: `/pages/payment-form-data/payment-form-data?id=${item.tableId}`,
        })
      }else if(item?.actBusiness?.actType == 'WAY_BILL') {
      }else if(item?.actBusiness?.actType == 'XsWaybill') {
        uni.navigateTo({
          url: `/pages/new-application-form-data/new-application-form-data?id=${item.tableId}`
        })
@@ -506,12 +511,13 @@
    },
    //代办详情
    shenqingDetail(item) {
      console.log(item,'item====待办===详情')
      if(item.actType == 'Offsetting') {  //收款 actType = ‘Offsetting’
        uni.navigateTo({
          url: `/pages/payment-form-data/payment-form-data?id=${item.tableId}`,
        })
      }else if(item.actType == 'WAY_BILL') {
      }else if(item.actType == 'XsWaybill') {
        uni.navigateTo({
          url: `/pages/new-application-form-data/new-application-form-data?id=${item.tableId}`
        })
@@ -519,8 +525,11 @@
    },
        getUserInfo() {
            this.$reqGet('getUserInfo').then(res => {
        console.log(res,'res=====系统登录===')
                if (res.code == 0) {
                    uni.setStorageSync('userInfo', res.data.sysUser);
          this.$store.commit('SET_PERMISSIONS',res.data.permissions)
                    //uni.setStorageSync('permissions', res.data.permissions);
                    this.userId = res.data.sysUser.userId;
                    this.$nextTick(() => {
                        this.coalbunker();
@@ -659,7 +668,7 @@
        // 通过模态框
        adoptModalConfirm() {
            this.adoptModalShow = false;
            this.adoptForm.comment = this.adoptModalContent;
            this.adoptForm.comment = this.adoptModalContent || '';
            this.$reqPost('passAll', this.adoptForm).then(res => {
                if (res.code == 0) {
                    this.$u.toast('操作成功!');
@@ -725,11 +734,13 @@
            });
        },
        // 表单数据
        theFormDataClick(v) {
            uni.navigateTo({
                url: `/pages/the-form-data/the-form-data?index=${v}`
            });
        },
        // theFormDataClick(item) {
    //   console.log(item,'申请还是-----item')
        //     // uni.navigateTo({
        //     //     url: `/pages/the-form-data/the-form-data?index=${v}`
        //     // });
    //
        // },
        // 删除撤回申请
        deleteWithDrawApplication(id) {
            this.deleteWithDrawApplicationGlobal(id)
@@ -889,7 +900,7 @@
    // echarts图表
    .charts-box {
        width: 91%;
        height: vww(330);
        height: vww(270);
        margin: 0 auto;
        .u-empty {
            height: 100%;
pages/jihua/jihua.vue
@@ -36,7 +36,7 @@
                                <view style="margin-right:10px">实际发车数:{{ item.numReal || '暂无' }}</view>
                            </view>
                        </view>
                        <u-keyboard
                        <u-keyboard
                            @change="valChange"
                            @backspace="backspace"
                            @confirm="keyBoardConfirm"
@@ -48,7 +48,7 @@
                            :overlay="false"
                            :closeOnClickOverlay="false"
                            :dotDisabled="true"
                            zIndex="100000"
                            zIndex="100000"
                        ></u-keyboard>
                    </view>
@@ -99,7 +99,7 @@
                </view>
            </view>
        </view>
        <!-- 修改弹出框 -->
        <u-popup :show="editPopupShow" @close="editPopupClose" @open="editPopupOpen" mode="top" round="10">
            <view class="editPopup">
@@ -118,7 +118,7 @@
<script>
import popupMenu from '@/components/common/popup-menu/popup-menu.vue';
import tool from '@/utils/tool.js';
import { TrackOpTypes } from "vue";
import { TrackOpTypes } from "vue";
export default {
    components: {
        popupMenu
@@ -127,7 +127,7 @@
        return {
            radioValue: '全部',
            tabList: [
                {
                {
                    name: '今日发运计划'
                },
                {
@@ -218,7 +218,7 @@
        fyList() {
            this.overlayShow = true;
            //列表查询
            uni.showLoading({
            uni.showLoading({
                title: '正在加载...'
            });
            let compId = uni.getStorageSync('userInfo').compId;
@@ -274,17 +274,17 @@
                    e.shippingDate = this.info.shippingDate
                }
            });
            this.$reqPost('addObj', this.fyData).then(res => {
            this.$reqPost('xscarshippingdayplanAddObj', this.fyData).then(res => {
                uni.hideLoading();
                if(res.code == 0){
                    setTimeout(()=>{
                        uni.showToast({
                            title:'更新成功!',
                            icon:'none',
                            duration:1000
                        })
                    },0)
                    this.fyList();
          setTimeout(()=>{
            uni.showToast({
              title:'更新成功!',
              icon:'none',
              duration:1000
            })
          },0)
                }
            });
        },
@@ -378,7 +378,7 @@
        inputTotalChange(val) {
            console.log(val, 'val2=======val2,已设置计划');
            this.editRow = val;
        },
        },
        // input获取焦点
        faYunPlanCarsFocus(item) {
            this.keyBoardShow = true;
@@ -389,7 +389,7 @@
            } else{
                this.isCursor = true;
            }
            // 根据列表下标,使屏幕滚动到相应可视位置
            for(let i = 0;i<this.fyData.length;i++){
                if(this.fyData[i].orderId == item.orderId){
@@ -399,7 +399,7 @@
                    });
                }
            }
        },
        // 键盘
        valChange(val) {
@@ -418,7 +418,7 @@
                        item.numPlan = val;
                        this.keyBoardValue = item.numPlan;
                    }
                }
                }
            });
        },
        backspace() {
@@ -495,7 +495,7 @@
        width: vww(100);
        z-index: 1;
    }
    .u-radio-group--row {
        height: 100%;
        width: 100%;
@@ -556,7 +556,7 @@
    //     transform: translateX(-50%);
    //     border-radius: vww(20);
    // }
}
.jihua-main {
@@ -621,8 +621,8 @@
                        border: 1px solid #dddddd;
                        border-radius: vww(4);
                        padding: vww(1) vww(10);
                        // 输入焦点图片
                        .cursor {
                            // float: left;
@@ -675,4 +675,4 @@
        //     }
        // }
    }
</style>
</style>
pages/login/login.vue
@@ -201,7 +201,7 @@
}
</style>
 -->
 <template>
     <view class="login">
        <u-overlay :show="show" @click="show = false"></u-overlay>
@@ -219,7 +219,7 @@
         </view>
     </view>
 </template>
 <script>
 import { setAccessToken, setTokenType, setRefreshToken, setClientId, setScope, redirectHome, redirectLogin } from '@/utils/status.js';
 export default {
@@ -272,6 +272,7 @@
            }
         },
         saveUserInfo(response) {
      console.log(response,'response=====')
             uni.hideLoading();
            this.show = false;
             if (response.statusCode === 200) {
@@ -302,7 +303,7 @@
     }
 };
 </script>
 <style lang="scss" scoped>
 .login {
     .background {
@@ -342,7 +343,7 @@
         }
         .loginBtn {
             margin-top: vww(80);
             button {
                 background-color: #007aff;
                 color: #ffffff;
@@ -353,4 +354,3 @@
     }
 }
 </style>
pages/my-application/my-application.vue
@@ -55,7 +55,7 @@
        </view>
      </template>
      <template v-slot:center>
        <view class="center-container" @click="() => shenqingDetail(item)">
        <view class="center-container">
          <view class="center-content__one center-margin">
            <view class="">
              <text>所属流程:{{ item.processName }}</text>
@@ -90,14 +90,18 @@
              <image src="@/static/home/cehui.png" mode=""></image>
              <view>撤回</view>
            </view> -->
            <view @click="checkTheScheduleClick(item.procInstId)" v-if="item.status == 1">
            <view @click="() => checkTheScheduleClick(item.procInstId)" v-if="item.status == 1">
              <image src="@/static/home/jindu.png" mode=""></image>
              <view>查看进度</view>
            </view>
            <view @click="theFormDataClick(item.tableId)" v-if="(item.status == 1 || item.status == 2 || item.status == 3 ) && (item.processName == '发运通知单')">
            <view @click="() => shenqingDetail(item)" v-if="item.actType == 'Offsetting' || item.actType == 'XsWaybill'">
              <image src="@/static/home/biaodan.png" mode=""></image>
              <view>申请详情</view>
            </view>
<!--            <view @click="() => shenqingDetail(item)" v-if="(item.status == 1 || item.status == 2 || item.status == 3 ) && (item.processName == '发运通知单')">-->
<!--              <image src="@/static/home/biaodan.png" mode=""></image>-->
<!--              <view>申请详情</view>-->
<!--            </view>-->
            <!-- <view v-if="item.status == 3" @click="apply(item)">
              <image src="@/static/home/history.png" mode=""></image>
              <view>重新申请</view>
@@ -307,12 +311,13 @@
  },
  methods: {
    shenqingDetail(item) { //跳转详情页面
      console.log(item,'item=====')
      if(item.actType == 'Offsetting') {  //收款 actType = ‘Offsetting’
        uni.navigateTo({
          url: `/pages/payment-form-data/payment-form-data?id=${item.tableId}`,
        })
      }else if(item.actType == 'WAY_BILL') {
      }else if(item.actType == 'XsWaybill') {
        uni.navigateTo({
          url: `/pages/new-application-form-data/new-application-form-data?id=${item.tableId}`
        })
@@ -559,6 +564,7 @@
    },
    // 查看进度
    checkTheScheduleClick(v) {
      console.log(v,'v====查看进度====')
      uni.navigateTo({
        url: `/pages/check-the-schedule/check-the-schedule?index=${v}`
      });
pages/my-have-todo/my-have-todo.vue
@@ -82,15 +82,15 @@
                        <view class="bottom-container">
                            <!-- 已办按钮 -->
                            <view class="bottom-content__item">
                                <view @click="theFormDataClick(item.tableId)" v-if="item.processName == '发运通知单'">
                                <view @click="() => theFormDataClick(item)" v-if="item.actBusiness.actType == 'Offsetting' || item.actBusiness.actType == 'XsWaybill'">
                                    <image src="@/static/home/biaodan.png" mode=""></image>
                                    <view>申请详情</view>
                                </view>
                                <view @click="approvalHistoryClick(item.procInstId)">
                                <view @click="() => approvalHistoryClick(item.procInstId)">
                                    <image src="@/static/home/history.png" mode=""></image>
                                    <view>审批历史</view>
                                </view>
                                <view @click="deleteApplicationClick(item.id)">
                                <view @click="() => deleteApplicationClick(item.id)">
                                    <image src="@/static/home/delete.png" mode=""></image>
                                    <view>删除</view>
                                </view>
@@ -100,9 +100,9 @@
                </combination-card>
            </u-checkbox-group>
        </view>
        <view class="empty-placeH">
        </view>
        <!-- 底部全选 -->
        <view class="bottomTabbar">
@@ -374,15 +374,23 @@
        //     console.log(a)
        // },
        // 表单数据
        theFormDataClick(v) {
            uni.navigateTo({
                url: `/pages/the-form-data/the-form-data?index=${v}`
            });
        theFormDataClick(item) {
      if(item?.actBusiness?.actType == 'Offsetting') {  //收款 actType = ‘Offsetting’
        uni.navigateTo({
          url: `/pages/payment-form-data/payment-form-data?id=${item.tableId}`,
        })
      }else if(item?.actBusiness?.actType == 'XsWaybill') {
        uni.navigateTo({
          url: `/pages/new-application-form-data/new-application-form-data?id=${item.tableId}`
        })
      }
        },
        // 审批历史
        approvalHistoryClick(v) {
            uni.navigateTo({
                url: `/pages/approval-history/approval-history?index=${v}`
                //url: `/pages/approval-history/approval-history?index=${v}`
                url: `/pages/check-the-schedule/check-the-schedule?index=${v}`
            });
        }
    }
@@ -606,7 +614,7 @@
            right: vww(20) !important;
        }
    }
    // 底部站位
    .empty-placeH{
        height:vww(5);
pages/my-todo/my-todo.vue
@@ -81,7 +81,7 @@
          <view class="bottom-container">
            <!-- 待办按钮 -->
            <view class="bottom-content__item">
              <view @click="theFormDataClick(item.tableId)" v-if="item.processName == '发运通知单'">
              <view @click="theFormDataClick(item)" v-if="item.actBusiness.actType == 'Offsetting' || item.actBusiness.actType == 'XsWaybill'">
                <image src="@/static/home/jindu.png" mode=""></image>
                <view>申请详情</view>
              </view>
@@ -410,10 +410,17 @@
      console.log('totalSelect', n);
    },
    // 表单数据
    theFormDataClick(v) {
      uni.navigateTo({
        url: `/pages/the-form-data/the-form-data?index=${v}`
      });
    theFormDataClick(item) {
      if(item?.actBusiness?.actType == 'Offsetting') {  //收款 actType = ‘Offsetting’
        uni.navigateTo({
          url: `/pages/payment-form-data/payment-form-data?id=${item.tableId}`,
        })
      }else if(item?.actBusiness?.actType == 'XsWaybill') {
        uni.navigateTo({
          url: `/pages/new-application-form-data/new-application-form-data?id=${item.tableId}`
        })
      }
    },
    // 审批历史
    approvalHistoryClick(v) {
@@ -492,7 +499,7 @@
    rejectModalCancel() {
      this.rejectModalShow = false;
    },
    batchRejectClick() {
      if (this.checkBoxValue.length != 0) {
        this.rejectModalShow = true;
pages/new-application/new-application.vue
@@ -15,23 +15,32 @@
        </view> -->
        <combined-title title="申请模板"></combined-title>
        <!-- 卡片区域 -->
        <view class="newApplicationCard" @click="toNewApplicationDetails" v-for="(item, index) in newApplicationData" :key="index">
            <view class="card">
                <view class="card-left">
                    <view class="card-left_top">
                        <text>{{ item.description }}</text>
                    </view>
                    <view class="card-left_bottom">
                        <text>版本:v{{ item.version }}</text>
                        <text>所属分类:{{ item.categoryTitle|| '' }}</text>
                    </view>
                </view>
                <view class="card-right">
                    <view class="icon"><image src="@/static/groupAppTotalImg/back_1.png" mode=""></image></view>
                </view>
            </view>
        </view>
        <view class="newApplicationCard shoukuanDetailCard" @click="ToPaymentForm">
    <template v-if="permissions.yunxiao_xswaybill_add">
      <view
          class="newApplicationCard"
          @click="toNewApplicationDetails"
          v-for="(item, index) in newApplicationData" :key="index">
        <view class="card">
          <view class="card-left">
            <view class="card-left_top">
              <text>{{ item.description }}</text>
            </view>
            <view class="card-left_bottom">
              <text>版本:v{{ item.version }}</text>
              <text>所属分类:{{ item.categoryTitle|| '' }}</text>
            </view>
          </view>
          <view class="card-right">
            <view class="icon"><image src="@/static/groupAppTotalImg/back_1.png" mode=""></image></view>
          </view>
        </view>
      </view>
    </template>
        <view
        v-if="permissions.yunxiao_gatheringbill_add"
        class="newApplicationCard shoukuanDetailCard"
        @click="ToPaymentForm">
            <view class="card">
                <view class="card-left">
                    <view class="card-left_bottom">
@@ -43,7 +52,7 @@
                </view>
            </view>
        </view>
        <!-- 选择器 -->
        <u-picker @cancel="statusSeletShow = false" @confirm="statusConfirm" :show="statusSeletShow" :columns="statusList"></u-picker>
@@ -56,8 +65,12 @@
<script>
import popupMenu from '@/components/common/popup-menu/popup-menu.vue';
import combinedTitle from '@/components/common/combined-title/combined-title.vue';
import {mapGetters} from 'vuex'
export default {
    name: 'new-application',
  computed:{
    ...mapGetters(['permissions']),
  },
    data() {
        return {
            searchData: '',
@@ -85,7 +98,6 @@
        this.init();
    },
    getCurrentPages(e) {
        console.log(e);
    },
    // 点击导航栏菜单后
    onNavigationBarButtonTap(e) {
pages/payment-form-data/payment-form-data.vue
@@ -33,6 +33,7 @@
                        v-model="dataForm.ledgerName"
            placeholder="请选择账套"
                        border="none"
            readonly
                    ></u--input>
                </u-form-item>
                <u-form-item
@@ -409,6 +410,13 @@
        checkboxDM:false,
                ledgerList:[],
                rules: {
          ledgerName: [
            {
              required: true,
              message: '请选择账套',
              trigger: ['blur', 'change']
            }
          ],
                    inputDate: [
                        {
                            required: true,
@@ -462,6 +470,8 @@
      },
            init() {
        this.payType()  //收款类型
        this.getCustomer()
        this.fetchCompTree()
                //账套选择
                let compId = uni.getStorageSync('userInfo').compId;
                this.$reqGet('getLedgerList',{compId:compId}).then(res => {
@@ -539,11 +549,10 @@
        this.selCustomerType = t
        this.selectLevelShow = false;
        this.selectCustomerCompShow = false;
        uni.showLoading({
          title: '加载中...'
        });
        this.selectCustomerShow = true;
        this.selectCustomerData.current = 1;
      },
      getCustomer() {  //获取客户信息
        this.$reqGet('customer', this.selectCustomerData).then(res => {
          uni.hideLoading();
          if (res.code == 0) {
@@ -589,6 +598,23 @@
        this.searchCustomerForm.compName = '';
        this.searchCustomerForm.levelText = '';
        this.selectCustomer();
      },
      // 选择客户
      selectCustomer() {
        this.selectLevelShow = false;
        this.selectCustomerCompShow = false;
        uni.showLoading({
          title: '加载中...'
        });
        this.selectCustomerShow = true;
        this.selectCustomerData.current = 1;
        this.$reqGet('customer', this.selectCustomerData).then(res => {
          uni.hideLoading();
          if (res.code == 0) {
            this.customerData = res.data.records;
            this.customerDataAllNum = res.data.total;
          }
        });
      },
      selectCustomerOpen() {
@@ -654,6 +680,15 @@
        width: 100%;
        padding: 0 vww(10);
        box-sizing: border-box;
    ::v-deep{
      .u-checkbox__icon-wrap{
        width: vww(16)!important;
        height: vww(16)!important;
      }
      .u-checkbox{
        margin-bottom: 0!important;
      }
    }
    // 选择客户弹框
    .selectCustomerPopup {
store/index.js
@@ -9,6 +9,7 @@
    state: {
        shenqingMenu: uni.getStorageSync('shenqingMenu') || false, //申请菜单
        rijihuaMenu: uni.getStorageSync('rijihuaMenu') || false, //日计划菜单
        permissions: uni.getStorageSync('permissions') || [] //权限信息
    },
    mutations: {
        ISHAS_SHENQING: (state, data) => {
@@ -31,7 +32,7 @@
                state.shenqingMenu = false
                uni.setStorageSync('shenqingMenu',state.shenqingMenu)
            }
        },
        ISHAS_RIJIHUA: (state, data) => {
            let labelArry = []
@@ -53,6 +54,15 @@
                state.rijihuaMenu = false
                uni.setStorageSync('rijihuaMenu',state.rijihuaMenu)
            }
        },
        SET_PERMISSIONS: (state,permissions) => {
            let list = {}
            for(let i=0;i<permissions.length;i++) {
                list[permissions[i]] = true
            }
            state.permissions = list
            console.log(list,'list======----')
            uni.setStorageSync('permissions', list);
        }
    },
    actions: {
@@ -63,7 +73,10 @@
                commit('ISHAS_RIJIHUA',response.data)
            })
        }
    },
    getters: {
        permissions:state => state.permissions
    }
})
export default store
export default store
utils/jihua.js
@@ -5,7 +5,7 @@
        method: 'GET'
    },
    // 发运列表
    /**
     * 這是有bug的接口
     */
@@ -13,7 +13,7 @@
    //     url: '/yunxiao/contractorder/fyList',
    //     method: 'GET'
    // },
    /**
     * 這是正確的
     */
@@ -21,20 +21,20 @@
        url:'/yunxiao/xscarshippingdayplan/fyList',
        method:'GET'
    },
    xscarshippingdayplan: {
        url: '/yunxiao/xscarshippingdayplan/page',
        method: 'GET'
    },
    // xscarshippingdayplan: {
    //     url: '/yunxiao/contractorder/page',
    //     method: 'GET'
    // },
    // /yunxiao/xscarshippingdayplan
    addObj: {
    xscarshippingdayplanAddObj: {
        url: '/yunxiao/xscarshippingdayplan',
        method: 'POST'
    },
@@ -48,4 +48,4 @@
        url: '/admin/menu',
        method: 'GET'
    }
}
}
utils/request.js
@@ -6,6 +6,7 @@
    jihua
} from './jihua.js';
// 成功
const responseOK = (response) => {
    const {
@@ -82,8 +83,8 @@
    500: responseError
}
 let BaseUrl = 'http://192.168.0.159:9999';
// const BaseUrl = 'https://mx.jzeg.cn:443/app';
 //let BaseUrl = 'http://192.168.0.159:9999';
const BaseUrl = 'https://mx.jzeg.cn:9998';
// let BaseUrl = 'http://192.168.0.114:9999';
// const BaseUrl = 'http://192.168.0.102:9999'; // 飞哥