| | |
| | | "enablePullDownRefresh": false |
| | | } |
| | | |
| | | }, { |
| | | },{ |
| | | "path": "pages/payment-form-data/payment-form-data", |
| | | "style": { |
| | | "navigationBarTitleText": "新增收款表单", |
| | | "enablePullDownRefresh": false |
| | | } |
| | | |
| | | },{ |
| | | "path": "pages/jihua/jihua", |
| | | "style": { |
| | | "navigationBarTitleText": "日发运计划" |
| | |
| | | "titleSize": "28rpx" |
| | | } |
| | | } |
| | | }, |
| | | "condition" : { //模式配置,仅开发期间生效 |
| | | "current": 0, //当前激活的模式(list 的索引项) |
| | | "list": [ |
| | | { |
| | | "name": "", //模式名称 |
| | | "path": "", //启动页面,必选 |
| | | "query": "" //启动参数,在页面的onLoad函数里面得到 |
| | | } |
| | | ] |
| | | } |
| | | } |
| | |
| | | </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">
|
| | |
| | | },
|
| | | computed: {
|
| | | rijihuaMenu() {
|
| | | console.log(this.$store.state.rijihuaMenu,'this.$store.state.rijihuaMenu==============',this.$store.state)
|
| | | return this.$store.state.rijihuaMenu;
|
| | | },
|
| | | shenqingMenu() {
|
| | |
| | | };
|
| | | this.$reqGet('xscarshippingdayplan', params)
|
| | | .then(res => {
|
| | | console.log('发运日计划----------------------------------',res)
|
| | | if (res.code == 0) {
|
| | | this.fyData = res.data.records;
|
| | | uni.hideLoading();
|
| | |
| | | this.modalType = 0; |
| | | }, |
| | | batchAdoptClick() { |
| | | console.log('批量通过按钮') |
| | | if (this.checkBoxValue.length != 0) { |
| | | this.adoptModalShow = true; |
| | | } else { |
| | |
| | | }) |
| | | 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) { |
| | |
| | | </view> |
| | | <view class=""> |
| | | 运输: |
| | | <text>{{ item.trainType == 1 ? '路运' : '地销' }}</text> |
| | | <!-- <text>{{ item.trainType == 1 ? '路运' : '地销' }}</text>--> |
| | | <text>{{ item.trainType == 1 ? '地销' : '路运' }}</text> |
| | | </view> |
| | | </view> |
| | | <view class="cardList_item"> |
| | |
| | | |
| | | // 请求相关 |
| | | 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, //申请菜单 |
| | |
| | | } |
| | | |
| | | }, |
| | | |
| | | 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) |
| | |
| | | 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'; // 飞哥 |
| | | |