schangxiang@126.com
2024-09-04 9242d0da6005e070b0197a26b12ba24d1361466d
修复
已修改7个文件
38 ■■■■ 文件已修改
yiqi_pda/api/api.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
yiqi_pda/api/outBound/index.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
yiqi_pda/config/index.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
yiqi_pda/config/modules/ajax.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
yiqi_pda/manifest.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
yiqi_pda/pages.json 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
yiqi_pda/pages/outBoundWorkPieceInfoCount/index.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
yiqi_pda/api/api.js
@@ -1,7 +1,7 @@
// 同时发送异步请求的次数,防止一次点击有多次请求
let ajaxTime = 0;
export const baseUrl = 'http://localhost:7788'
//export const baseUrl = 'http://10.135.75.70:7788' //生产用
//export const baseUrl = 'http://localhost:7788'
export const baseUrl = 'http://10.135.75.70:7788' //生产用
//export const baseUrl = 'http://192.168.216.203:7788' //测试用
// 公共的request方法
yiqi_pda/api/outBound/index.js
@@ -44,3 +44,13 @@
    data
  })
}
// 出库统计 /api/pdaservice/getOutBoundWorkPieceInfoCountList
export function getOutBoundWorkPieceInfoCountList(data) {
  return request({
    url:  `/api/pdaservice/getOutBoundWorkPieceInfoCountList`,
    method: 'post',
    data
  })
}
yiqi_pda/config/index.js
@@ -19,6 +19,7 @@
        production:"/pages/production/index",
        outBound:'/pages/outBound/index',
        unLine:'/pages/unLine/index',
        outBoundNew:'/pages/outBoundNew/index'
        outBoundNew:'/pages/outBoundNew/index',
        outBoundWorkPieceInfoCount:'/pages/outBoundWorkPieceInfoCount/index'
    }
}
yiqi_pda/config/modules/ajax.js
@@ -1,9 +1,9 @@
export default {
    errMsg:'网络错误!',
    host:{  //接口调用的域名设置
        //'default':'http://10.135.75.70:7788',//生产用
        'default':'http://10.135.75.70:7788',//生产用
        //'default':'http://192.168.216.203:7788', //生产环境地址
        'default':'http://localhost:7788',
        //'default':'http://localhost:7788',
        'mock':'http://localhost:3012'
    },
    block:{
yiqi_pda/manifest.json
@@ -2,7 +2,7 @@
    "name" : "连杆线数采",
    "appid" : "__UNI__F24DEB0",
    "description" : "一汽连杆",
    "versionName" : "2.0.16",
    "versionName" : "2.0.19",
    "versionCode" : 6,
    "transformPx" : false,
    /* 5+App特有相关 */
yiqi_pda/pages.json
@@ -85,6 +85,9 @@
            "path": "pages/unLine/index"
        },
        {
            "path": "pages/outBoundWorkPieceInfoCount/index"
        },
        {
            "path": "pages/outBoundNew/index"
        }
    ],
yiqi_pda/pages/outBoundWorkPieceInfoCount/index.vue
@@ -17,17 +17,18 @@
                                    <u-input :readonly="true" placeholder="请选择出库日期" v-model="form.planTime"
                                        @click.native="timeShow = true"></u-input>
                                </u-form-item>
                </u-form>
                                    <!-- 时间选择器 -->
                                            <u-datetime-picker closeOnClickOverlay :show="timeShow" @confirm="timeConfirm" :mode="mode"
                                                v-model="value1"  @close="timeShow=false" @cancel="timeShow=false"></u-datetime-picker>
                </u-form>
                    @close="timeShow=false" v-model="value1" @cancel="timeShow=false"></u-datetime-picker>
                <view class="btn-view">
                    <view class="search-btn" @tap.stop="onSearchContainter">搜索</view>
                </view> 
                <!-- 详情 -->
                <view>
                    <!-- 基础信息 -->
                    <bar-content v-for="item in list" :title="'出库人:' + item.workPieceOutboundUserName" :content="item" :propArr="detailArr" :key="item.id"></bar-content>
                    <bar-content v-for="item in list" :title="'出库人:' + item.workPieceOutboundUserName" :content="item" :propArr="detailArr" :key="item.workPieceOutboundUserName"></bar-content>
                </view>
            </view>
        </view>
@@ -82,6 +83,7 @@
        // this.barDetail = {special: "SAE1041(0.80%~1.10%Mn)",barType: "高碳钢",barSpec: "70号",material: "229-255HBS",status: 1};
        // this.statusArr = [{code: 1,title: '不合格'},{code: 2,title: '合格'},{code: 3,title: '疑似'}]
        this.detailArr = [{code: "count",title: '出库数量'}]
        this.mode = 'date'
        var date=new Date();
        this.form.planTime = moment(date).format('YYYY-MM-DD')
        this.onSearchContainter();
@@ -103,16 +105,18 @@
                        this.timeShow = false
        
                    },
        onSearchContainter(barId) {
        onSearchContainter() {
            if(this.form.planTime == '') {
                return uni.showModal({
                    title:'出库日期不能为空',
                    showCancel: false
                })
            }
            this.list = []
            //debugger
            const param = {Date: this.form.planTime}
            getOutBoundWorkPieceInfoCountList(param).then(res => {
                //debugger
                this.list = res.data
            })
        },