schangxiang@126.com
2024-09-06 b5bcf90f2dfc8972090d7ab8e6a350bd74b460c8
入库优化
已修改4个文件
30 ■■■■ 文件已修改
yiqi_pda/manifest.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
yiqi_pda/pages/home/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
yiqi_pda/pages/outBound/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
yiqi_pda/pages/outBoundWorkPieceInfoCount/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
yiqi_pda/manifest.json
@@ -2,7 +2,7 @@
    "name" : "连杆线数采",
    "appid" : "__UNI__F24DEB0",
    "description" : "一汽连杆",
    "versionName" : "2.0.19",
    "versionName" : "2.0.20",
    "versionCode" : 6,
    "transformPx" : false,
    /* 5+App特有相关 */
yiqi_pda/pages/home/index.vue
@@ -58,10 +58,10 @@
                        {name:'工件信息单个修改',icon:'icon-worker',pathName:'unbind',color:'#1e90ff'},
                        {name:'工件质量信息批量修改',icon:'icon-worker',pathName:'unbindAll',color:'#1e90ff'},
                        {name:'工件信息追溯',icon:'icon-notice',pathName:'retrospect',color:'#1e90ff'},
                        {name:'工件出库执行',icon:'icon-notice',pathName:'outBound',color:'#1e90ff'},
                        {name:'工件入库执行',icon:'icon-notice',pathName:'outBound',color:'#1e90ff'},
                        // {name:'工件下线(新)',icon:'icon-notice',pathName:'unLine',color:'#1e90ff'},
                        // {name:'工件出库(新)',icon:'icon-notice',pathName:'outBoundNew',color:'#1e90ff'},
                        {name:'工件出库统计',icon:'icon-notice',pathName:'outBoundWorkPieceInfoCount',color:'#1e90ff'}
                        {name:'工件入库统计',icon:'icon-notice',pathName:'outBoundWorkPieceInfoCount',color:'#1e90ff'}
                    ]
                },
                {
yiqi_pda/pages/outBound/index.vue
@@ -1,5 +1,5 @@
<template>
    <default-header-page-layout ref="page" title="出库执行">
    <default-header-page-layout ref="page" title="入库执行">
        <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight">
            <action-user-row />
@@ -15,7 +15,7 @@
        <template v-slot:footer>
            <view class="bottom-btns-row">
                <view class="btn-frame right-btn-frame">
                    <u-button :disabled="workPieceData.length<1" type="primary" text="确认出库"
                    <u-button :disabled="workPieceData.length<1" type="primary" text="确认入库"
                        @click="outBoundConfirm"></u-button>
                </view>
            </view>
@@ -55,7 +55,7 @@
        data() {
            return {
                barHeight: '',
                ckNumToday: "0", //今天总出库数
                ckNumToday: "0", //今天总入库数
                baseTitile: '扫描成品码/工件二维码', //扫描成品码/工件二维码
                title: '',
                pageBodyHeight: 0,
@@ -135,11 +135,11 @@
                    //TODO handle the exception
                    console.log(e);
                }
                //this.msg = " 扫码数:"+this.workPieceData.length+"    今日出库数:";
                //this.msg = " 扫码数:"+this.workPieceData.length+"    今日入库数:";
                this.setMsg();
            },
            setMsg() {
                this.msg = " 扫码数:" + this.workPieceData.length + "    今日出库数:" + this.ckNumToday;
                this.msg = " 扫码数:" + this.workPieceData.length + "    今日入库数:" + this.ckNumToday;
            },
            initFocus(num) {
                setTimeout(() => {
@@ -182,7 +182,7 @@
                if (flag) {
                    uni.showModal({
                        title: '提示',
                        content: '当前工件存在非成品,确定强制出库吗?',
                        content: '当前工件存在非成品,确定强制入库吗?',
                        success: (value) => {
                            const {
                                confirm,
yiqi_pda/pages/outBoundWorkPieceInfoCount/index.vue
@@ -1,5 +1,5 @@
<template>
    <default-header-page-layout ref="page" title="工件出库统计" >
    <default-header-page-layout ref="page" title="工件入库统计" >
        <view class="page-frame with-action-user-row" :style="{height:pageBodyHeight+'px'}" v-if="pageBodyHeight">
            <action-user-row />
            <view class="with-action-user-row-page-content">
@@ -13,8 +13,8 @@
                    @clear="onClearContainter"
                /> -->
                <u-form :model="form"  ref="uForm" label-width="65" labelAlign="right">
                <u-form-item required label="出库日期:" prop="planTime">
                    <u-input :readonly="true" placeholder="请选择出库日期" v-model="form.planTime"
                <u-form-item required label="入库日期:" prop="planTime">
                    <u-input :readonly="true" placeholder="请选择入库日期" v-model="form.planTime"
                            @click.native="timeShow = true"></u-input>
                </u-form-item>
                                    
@@ -28,7 +28,7 @@
                <!-- 详情 -->
                <view>
                    <!-- 基础信息 -->
                    <bar-content v-for="item in list" :title="'出库人:' + item.workPieceOutboundUserName" :content="item" :propArr="detailArr" :key="item.workPieceOutboundUserName"></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,7 +82,7 @@
    onLoad() {
        // 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.detailArr = [{code: "count",title: '入库数量'}]
        this.mode = 'date'
        var date=new Date();
        this.form.planTime = moment(date).format('YYYY-MM-DD')
@@ -108,7 +108,7 @@
        onSearchContainter() {
            if(this.form.planTime == '') {
                return uni.showModal({
                    title:'出库日期不能为空',
                    title:'入库日期不能为空',
                    showCancel: false
                })
            }