zhangxiaoxu
2025-11-25 8c82102ab7bb34e29a73f56b829cd622ab34604c
解决运输方式显示不对得问题
6个文件已修改
68 ■■■■ 已修改文件
pages.json 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/home/home.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/my-todo/my-todo.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/new-application-form-data/new-application-form-data.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
store/index.js 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
utils/request.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json
@@ -72,7 +72,14 @@
                "enablePullDownRefresh": false
            }
        }, {
        },{
            "path": "pages/payment-form-data/payment-form-data",
            "style": {
                "navigationBarTitleText": "新增收款表单",
                "enablePullDownRefresh": false
            }
        },{
            "path": "pages/jihua/jihua",
            "style": {
                "navigationBarTitleText": "日发运计划"
@@ -135,5 +142,15 @@
                "titleSize": "28rpx"
            }
        }
    },
    "condition" : { //模式配置,仅开发期间生效
        "current": 0, //当前激活的模式(list 的索引项)
        "list": [
            {
                "name": "", //模式名称
                "path": "", //启动页面,必选
                "query": "" //启动参数,在页面的onLoad函数里面得到
            }
        ]
    }
}
pages/home/home.vue
@@ -221,9 +221,9 @@
        </view>
        <!-- 日计划 -->
        <combined-title title="日发运计划" detailsPath="/pages/jihua/jihua" v-if="rijihuaMenu"></combined-title>
        <combined-title title="日发运计划" detailsPath="/pages/jihua/jihua"></combined-title>
        <view class="card-group bottomChild">
            <combination-card class="card" :showTop="false" v-for="(item, index) in fyData.slice(0, 2)" :key="item.id" v-if="rijihuaMenu">
            <combination-card class="card" :showTop="false" v-for="(item, index) in fyData.slice(0, 2)" :key="item.id">
                <template v-slot:top></template>
                <template v-slot:center>
                    <view class="main-block-box">
@@ -352,6 +352,7 @@
    },
    computed: {
        rijihuaMenu() {
      console.log(this.$store.state.rijihuaMenu,'this.$store.state.rijihuaMenu==============',this.$store.state)
            return this.$store.state.rijihuaMenu;
        },
        shenqingMenu() {
@@ -585,6 +586,7 @@
            };
            this.$reqGet('xscarshippingdayplan', params)
                .then(res => {
          console.log('发运日计划----------------------------------',res)
                    if (res.code == 0) {
                        this.fyData = res.data.records;
                        uni.hideLoading();
pages/my-todo/my-todo.vue
@@ -438,6 +438,7 @@
      this.modalType = 0;
    },
    batchAdoptClick() {
      console.log('批量通过按钮')
      if (this.checkBoxValue.length != 0) {
        this.adoptModalShow = true;
      } else {
@@ -453,6 +454,7 @@
                })
                this.adoptForm.ids = this.adoptDataBox.toString();
            }
      console.log(this.adoptForm,'this.adoptForm===提交===批量')
      this.$reqPost('passAll', this.adoptForm).then(res => {
        console.log('是否还原', this.adoptForm.ids, this.rejectForm.procInstIds);
        if (res.code == 0) {
pages/new-application-form-data/new-application-form-data.vue
@@ -619,7 +619,8 @@
                                </view>
                                <view class="">
                                    运输:
                                    <text>{{ item.trainType == 1 ? '路运' : '地销' }}</text>
<!--                                    <text>{{ item.trainType == 1 ? '路运' : '地销' }}</text>-->
                  <text>{{ item.trainType == 1 ? '地销' : '路运' }}</text>
                                </view>
                            </view>
                            <view class="cardList_item">
store/index.js
@@ -4,7 +4,19 @@
// 请求相关
import { reqAll, reqGet, reqPost } from '../utils/index.js';
const findNodeByNme = (arr) => {
    for (let i = 0; i < arr.length; i++) {
        let node = arr[i];
        if (node.name === '汽车日发运计划管理') return node;
        if (node.children && node.children.length > 0) {
            // 如果当前节点有子节点,则递归查找子节点
            let foundNode = findNodeByNme(node.children);
            if (foundNode) return foundNode;
        }
    }
    // 没有找到目标节点,返回 null
    return null;
}
const store = new Vuex.Store({
    state: {
        shenqingMenu: uni.getStorageSync('shenqingMenu') || false, //申请菜单
@@ -34,19 +46,15 @@
            }
        },
        ISHAS_RIJIHUA: (state, data) => {
            console.log(data,'data-----',state)
            let labelArry = []
            let newObj = data.filter(e => e.label == '地销计量')
            newObj && newObj.forEach(e => {
                if(e.children.length > 0) {
                    e.children.forEach(item => {
                        labelArry.push(item.label)
                    })
                }else{
                    state.rijihuaMenu = false
                    uni.setStorageSync('rijihuaMenu',state.rijihuaMenu)
                }
            })
            // let newObj = data.filter(e => e.label == '汽车日发运计划管理')
            let newObj = findNodeByNme(data)  //找 汽车日发运计划管理
            if(newObj && newObj.label) {
                labelArry.push(newObj.label)
            }
            if(labelArry.indexOf('汽车日发运计划管理') > -1) {
                state.rijihuaMenu = true
                uni.setStorageSync('rijihuaMenu',state.rijihuaMenu)
utils/request.js
@@ -83,8 +83,10 @@
    500: responseError
}
 //let BaseUrl = 'http://192.168.0.159:9999';
const BaseUrl = 'https://mx.jzeg.cn:9998';
 // let BaseUrl = 'http://192.168.0.115:9999';
// const BaseUrl = 'https://mx.jzeg.cn:9998';
// const BaseUrl = 'https://mx.res.jzeg.cn:8887';
const BaseUrl = 'https://mxwx.res.jzeg.cn:8887';
// let BaseUrl = 'http://192.168.0.114:9999';
// const BaseUrl = 'http://192.168.0.102:9999'; // 飞哥