zrg
2025-10-22 76b2d67731f2c277d6d50702691635495f06f07c
增加模具下模单
6个文件已修改
2个文件已添加
1739 ■■■■ 已修改文件
pages.json 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/shangmudan/form.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/shangmudan/table.vue 73 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/xiamodan/form.vue 697 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/MJGL/xiamodan/table.vue 531 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/login.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/tab1.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/tab2.vue 403 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json
@@ -539,7 +539,8 @@
        {
            "path": "pages/MJGL/shangmudan/table",
            "style": {
                "navigationBarTitleText": "上模单"
                "navigationBarTitleText": "上模单",
                "enablePullDownRefresh": true
            }
        },
        {
@@ -548,6 +549,19 @@
                "navigationBarTitleText": "上模单"
            }
        },
        {
            "path": "pages/MJGL/xiamodan/table",
            "style": {
                "navigationBarTitleText": "下模单",
                "enablePullDownRefresh": true
            }
        },
        {
            "path": "pages/MJGL/xiamodan/form",
            "style": {
                "navigationBarTitleText": "下模单"
            }
        },
        {
            "path": "pages/qitachukujiaoyan/qitachukujiaoyan",
            "style": {
pages/MJGL/shangmudan/form.vue
@@ -4,7 +4,7 @@
            <view class="form-item">
                <view class="title"><text>*</text>条形码:</view>
                <view class="right" style="width: 380rpx;">
                    <input v-model="hform.HBarCode" disabled placeholder="请扫描条码"/>
                    <input v-model="hform.HBarCode" disabled placeholder="请扫描条码" @blur="getHBarCodeData(hform.HBarCode)"/>
                </view>
                <uni-icons type="scan" style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" size="20" @click="toScanCode"></uni-icons>
            </view>
@@ -557,6 +557,7 @@
                        if(res.data.count == 1){
                            this.hform.HInterID = res.data.data[0].HInterID
                            this.hform.HBillNo = res.data.data[0].HBillNo
                            this.hform.HMakeDate = getDateTime.dateTimeStr('y-m-d')
                            this.btnType=1
                        }else{
                            uni.showToast({
pages/MJGL/shangmudan/table.vue
@@ -5,6 +5,7 @@
                <view class="title">状态:</view>
                <view class="right">
                    <picker :range="arrayStatus" :value="hform.HStatus" @change="HStatusChange">
                        <view class="picker-overlay"></view>
                        <input name="HStatus" disabled :value="hform.HStatus" placeholder="请选择状态" />
                    </picker>
                </view>
@@ -13,6 +14,7 @@
                <view class="title">开始时间:</view>
                <view class="right">
                    <picker mode="date" :value="hform.HBeginDate" @change="HBeginDateChange">
                        <view class="picker-overlay"></view>
                        <input name="HBeginDate" disabled :value="hform.HBeginDate" placeholder="请选择" />
                    </picker>
                </view>
@@ -21,6 +23,7 @@
                <view class="title">结束时间:</view>
                <view class="right">
                    <picker mode="date" :value="hform.HEndDate" @change="HEndDateChange">
                        <view class="picker-overlay"></view>
                        <input name="HEndDate" disabled :value="hform.HEndDate" placeholder="请选择" />
                    </picker>
                </view>
@@ -234,8 +237,8 @@
                arrayStatus: ['全部', '未审核', '已审核', '已关闭'],
                hform: {
                    HStatus: '全部',
                    HBeginDate: '',
                    HEndDate: '',
                    HBeginDate: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
                    HEndDate: new Date().toISOString().split('T')[0],
                    HICMOBillNo: '',
                    HBillNo: '',
                    HProcExchBillNo: '',                    
@@ -265,6 +268,36 @@
            }, 1000);
        },
        methods: {
            SearchWhere() { //过滤条件
                this.sWhere = ''; // 先清空条件
                if (this.hform.HStatus) {
                    if (this.hform.HStatus == '全部') {
                        this.sWhere += "";
                    } else if (this.hform.HStatus == '未审核') {
                        this.sWhere += " and 审核人=''";
                    } else if (this.hform.HStatus == '已审核') {
                        this.sWhere += " and 审核人<>''";
                    } else if (this.hform.HStatus == '已关闭') {
                        this.sWhere += " and 关闭人<>''";
                    }
                }
                if (this.hform.BenginHCreateDate) {
                    this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.hform.BenginHCreateDate + "'";
                }
                if (this.hform.EndHCreateDate) {
                    this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.hform.EndHCreateDate + "'";
                }
                if (this.hform.HBillNo) {
                    this.sWhere += " and 单据号 like '%" + this.hform.HBillNo + "%'";
                }
                if (this.hform.HICMOBillNo) {
                    this.sWhere += " and 生产订单号 like '%" + this.hform.HICMOBillNo + "%'";
                }
                if (this.hform.HProcExchBillNo) {
                    this.sWhere += " and 流转卡号 like '%" + this.hform.HProcExchBillNo + "%'";
                }
                return this.sWhere
            },
            getPage(page, list) {
                let sindex = (parseInt(page) - 1) * 20
                let eindex = parseInt(page) * 20
@@ -272,6 +305,7 @@
                return newList
            },
            getList() {
                this.sWhere = this.SearchWhere()
                uni.showLoading({
                    title: '加载中...'
                })
@@ -328,36 +362,7 @@
                this.listData = []
                this.page = 1
                this.showList = []
                console.log(this.hform)
                if (this.hform.HStatus) {
                    if (this.hform.HStatus == '全部') {
                        this.sWhere += "";
                    } else if (this.hform.HStatus == '未审核') {
                        this.sWhere += " and 审核人=''";
                    } else if (this.hform.HStatus == '已审核') {
                        this.sWhere += " and 审核人<>''";
                    } else if (this.hform.HStatus == '已关闭') {
                        this.sWhere += " and 关闭人<>''";
                    }
                }
                if (this.hform.BenginHCreateDate) {
                    this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.hform.BenginHCreateDate + "'";
                }
                if (this.hform.EndHCreateDate) {
                    this.sWhere += " and CONVERT(varchar(100),日期, 23) >= '" + this.hform.EndHCreateDate + "'";
                }
                if (this.hform.HBillNo) {
                    this.sWhere += " and 单据号 like '%" + this.hform.HBillNo + "%'";
                }
                if (this.hform.HICMOBillNo) {
                    this.sWhere += " and 生产订单号 like '%" + this.hform.HICMOBillNo + "%'";
                }
                if (this.hform.HProcExchBillNo) {
                    this.sWhere += " and 流转卡号 like '%" + this.hform.HProcExchBillNo + "%'";
                }
                this.getList()
            },
            //新增
@@ -378,8 +383,8 @@
                    this.operations = -1,
                    this.hform = {
                        HStatus: '全部',
                        HBeginDate: '',
                        HEndDate: '',
                        HBeginDate: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
                        HEndDate: new Date().toISOString().split('T')[0],
                        HICMOBillNo: '',
                        HBillNo: '',
                        HProcExchBillNo: '',                        
pages/MJGL/xiamodan/form.vue
New file
@@ -0,0 +1,697 @@
<template>
    <view>
        <view class="form">
            <view class="form-item">
                <view class="title"><text>*</text>条形码:</view>
                <view class="right" style="width: 380rpx;">
                    <input v-model="hform.HBarCode" disabled  placeholder="请扫描条码" @blur="getHBarCodeData(hform.HBarCode)"/>
                </view>
                <uni-icons type="scan" style="margin-left: 10rpx;background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;" size="20" @click="toScanCode"></uni-icons>
            </view>
            <view class="form-item">
                <view class="title">单据号:</view>
                <view class="righton">
                    <input name="HBillNo" disabled v-model="hform.HBillNo" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">单据日期:</view>
                <view class="right">
                    <picker mode="date" v-model="hform.HDate" @change="HDateChange">
                        <input disabled v-model="hform.HDate" placeholder="请选择日期" />
                    </picker>
                </view>
            </view>
            <view class="form-item">
                <view class="title"><text>*</text>部门:</view>
                <view class="right">
                    <uni-combox :candidates="arrayHDeptName" placeholder="请选择部门" v-model="hform.HDeptName" @input="HDeptNameChange"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title"><text>*</text>操作员:</view>
                <view class="right">
                    <uni-combox :candidates="arrayHEmpName" placeholder="请选择操作员" v-model="hform.HEmpName" @input="HEmpNameChange"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title"><text>*</text>负责人:</view>
                <view class="right">
                    <uni-combox :candidates="arrayHEmpName" placeholder="请选择负责人" v-model="hform.HMangerName" @input="HManagerNameChange"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title">生产资源:</view>
                <view class="right">
                    <uni-combox :candidates="arrayHSourceName" placeholder="请选择生产资源" v-model="hform.HSourceName" @input="HSourceNameChange"></uni-combox>
                </view>
            </view>
            <view class="form-item">
                <view class="title">器具编码:</view>
                <view class="righton">
                    <input name="HMouldNumber" v-model="hform.HMouldNumber" disabled placeholder="请输入器具编码" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">器具名称:</view>
                <view class="righton">
                    <input name="HMouldName" v-model="hform.HMouldName" disabled placeholder="请输入器具名称" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">器具型号:</view>
                <view class="righton">
                    <input name="HMouldModel" v-model="hform.HMouldModel" disabled placeholder="请输入器具型号" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">数量:</view>
                <view class="righton">
                    <input name="HQty" v-model="hform.HQty" disabled placeholder="请输入数量" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">下模时间:</view>
                <view class="righton">
                    <input name="HScanDate" disabled v-model="hform.HScanDate" placeholder="请选择" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">生产订单:</view>
                <view class="righton">
                    <input name="HICMOBillNo" disabled v-model="hform.HICMOBillNo" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">流转卡:</view>
                <view class="righton">
                    <input disabled v-model="hform.HProcExchBillNo" />
                </view>
            </view>
            <view class="form-item">
                <view class="title">备注:</view>
                <view class="right">
                    <textarea name="HRemark" v-model="hform.HRemark" auto-height placeholder="请输入备注"></textarea>
                </view>
            </view>
            <view class="tab_area"></view>
            <view v-if="showmore">
                <view class="form-item">
                    <view class="title">制单人:</view>
                    <view class="righton">
                        <input v-model="hform.HMaker" disabled/>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">制单日期:</view>
                    <view class="righton">
                        <input v-if="hform.HMakeDate" v-model="hform.HMakeDate.substr(0,10)" disabled/>
                        <input v-else v-model="hform.HMakeDate" disabled/>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">修改人:</view>
                    <view class="righton">
                        <input v-model="hform.HUpDater" disabled/>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">修改日期:</view>
                    <view class="righton">
                        <input v-if="hform.HUpDateDate" v-model="hform.HUpDateDate.substr(0,10)" disabled/>
                        <input v-else v-model="hform.HUpDateDate" disabled/>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">审核人:</view>
                    <view class="righton">
                        <input v-model="hform.HChecker" disabled/>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">审核日期:</view>
                    <view class="righton">
                        <input v-if="hform.HCheckDate" v-model="hform.HCheckDate.substr(0,10)" disabled/>
                        <input v-else v-model="hform.HCheckDate" disabled/>
                    </view>
                </view>
            </view>
            <view class="other">
                <view v-if="!showmore" @tap="showmore = true">
                    展开其他信息<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="bottom"></uni-icons>
                </view>
                <view v-if="showmore" @tap="showmore = false">
                    折叠其他信息<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="top"></uni-icons>
                </view>
            </view>
            <view class="tab_area"></view>
            <view class="bottom-btn">
                <button v-if="btnType == 1 && !isEdit" class="btn-a" size="mini" @tap="submit">提交</button>
                <button v-if="btnType != 1 && !isEdit" class="btn-a" size="mini" @tap="ifEdit">修改</button>
                <button v-if="btnType != 1 && isEdit" class="btn-a" size="mini" @tap="submit">提交</button>
                <button class="btn-c" size="mini" @tap="goBack">退出</button>
            </view>
        </view>
    </view>
</template>
<script>
    import getDateTime from '@/utils/getdateTime.js';
    import { getUserInfo } from "@/utils/auth.js";
    export default {
        data() {
            return {
                userInfo:getUserInfo(),
                serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API',
                linterid:'',
                HBillNo:'',
                btnType:1,//1新增,3修改
                showmore: false,
                arrayHDeptName:[],//部门
                HDeptNameList:[],
                arrayHEmpName:[],//发现人/负责人
                HEmpNameList:[],
                arrayHSourceName:[],//生产资源
                HSourceNameList:[],
                isEdit: false,
                hform:{
                    HInterID:'',
                    HBillNo:'',
                    HDate:getDateTime.dateTimeStr('y-m-d'),
                    HBarCode:'',
                    HDeptName:'',
                    HDeptID:'',
                    HEmpName:'',
                    HEmpID:'',
                    HMangerName:'',
                    HMangerID:'',
                    HSourceName:'',
                    HSourceID:'',
                    HMouldNumber:'',
                    HMouldID:'',
                    HMouldName:'',
                    HMouldModel:'',
                    HQty:'',
                    HScanDate:getDateTime.dateTimeStr('y-m-d h:i:s'),
                    HICMOBillNo:'',
                    HICMOInterID:'',
                    HICMOEntryID:'',
                    HProcExchBillNo:'',
                    HProcExchInterID:'',
                    HProcExchEntryID:'',
                    HOrgID:uni.getStorageSync('OrganizationID'),
                    HMaker:'',
                    HMakeDate:'',
                    HUpDater:'',
                    HUpDateDate:'',
                    HChecker:'',
                    HCheckDate:'',
                    HCloseMan:'',
                    HCloseDate:'',
                    HDeleteMan:'',
                    HDeleteDate:'',
                    eventType:'Add'
                }
            }
        },
        onLoad(e) {
            this.hform.HMaker = uni.getStorageSync('HUserName')
            console.log(e,this.userInfo)
            if(e.linterid){
                this.btnType = 3
                this.linterid = e.linterid
                this.HBillNo = e.HBillNo
                this.getEditData(e.linterid, e.HBillNo)
            }else{
                this.getNewData()
            }
            this.getHDeptList()
            this.getHEmpList()
            this.getHSourceList()
        },
        methods: {
            //扫码
            toScanCode(){
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    this.hform.HBarCode = ret.resp_result
                    this.getHBarCodeData(ret.resp_result)
                })
            },
            //日期
            HDateChange(e){
                console.log(e.detail.value)
                this.hform.HDate = e.detail.value
            },
            getHBarCodeData(HBarCode) {
                 var sWhere = " and 条形码='" + this.hform.HBarCode +"' order by 制单日期 desc"
                uni.request({
                    url: this.serverUrl + '/Sc_MouldLowerBill/Sc_MouldUpperBillList',
                    data: {
                        sWhere: sWhere
                    },
                    success: (res) => {
                        console.log(2, res.data);
                        if (res.data.code == 1) {
                            var data = res.data.data[0];
                            console.log(3, data);
                            this.hform.HProcExchBillNo = data.HProcExchBillNo;
                            this.hform.HProcExchInterID = data.HProcExchInterID;
                            this.hform.HProcExchEntryID = data.HProcExchEntryID;
                            this.hform.HICMOBillNo = data.HICMOBillNo;
                            this.hform.HICMOInterID = data.HICMOInterID;
                            this.hform.HICMOEntryID = data.HICMOEntryID;
                            this.hform.HSourceID = data.HSourceID;
                            this.hform.HSourceName = data.生产资源;
                            this.hform.HMouldID = data.HMouldID;
                            this.hform.HMouldNumber = data.模具编码;
                            this.hform.HMouldName = data.模具名称;
                            this.hform.HMouldModel = data.模具规格;
                            this.hform.HQty = 1;
                        } else {
                            uni.showToast({
                                title: res.data.Message,
                                icon: 'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            icon: 'none'
                        })
                    },
                });
            },
            //获取使用部门数据
            getHDeptList(){
                uni.request({
                    url: this.serverUrl + '/PublicPageMethod/DeptList',
                    data: { sWhere: "where HStopFlag=0 and HEndFlag=1 and HUSEORGID = " + uni.getStorageSync('OrganizationID') + "" },
                    success: (res) => {
                        if(res.data.count == 1){
                            this.HDeptNameList = res.data.data
                            for(var i=0;i<res.data.data.length;i++){
                                this.arrayHDeptName[i] = res.data.data[i].HName
                            }
                            this.$forceUpdate();
                        }else{
                            uni.showToast({
                                title:res.data.Message,
                                icon:'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title:'接口请求失败',
                            icon:'none'
                        })
                    },
                });
            },
            //选择使用部门
            HDeptNameChange(e){
                for(var i=0;i<this.HDeptNameList.length;i++){
                    if(this.HDeptNameList[i].HName == e){
                        this.hform.HDeptID = this.HDeptNameList[i].HItemID
                    }
                }
            },
            //操作员、负责人
            getHEmpList(){
                uni.request({
                    url: this.serverUrl + '/Web/GetEmployeeList_Json',
                    data: { Employee: '',HGroupID:0 },
                    success: (res) => {
                        if(res.data.count == 1){
                            this.HEmpNameList = res.data.data
                            for(var i=0;i<res.data.data.length;i++){
                                this.arrayHEmpName[i] = res.data.data[i].HName
                            }
                            this.$forceUpdate();
                        }else{
                            uni.showToast({
                                title:res.data.Message,
                                icon:'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title:'接口请求失败',
                            icon:'none'
                        })
                    },
                });
            },
            //选择操作员
            HEmpNameChange(e){
                for(var i=0;i<this.HEmpNameList.length;i++){
                    if(this.HEmpNameList[i].HName == e){
                        this.hform.HEmpID = this.HEmpNameList[i].HItemID
                    }
                }
            },
            //选择负责人
            HManagerNameChange(e){
                for(var i=0;i<this.HEmpNameList.length;i++){
                    if(this.HEmpNameList[i].HName == e){
                        this.hform.HMangerID = this.HEmpNameList[i].HItemID
                    }
                }
            },
            //生产资源
            getHSourceList(){
                uni.request({
                    url: this.serverUrl + '/api/newBill/getSourceList',
                    data: { sWhere: '' },
                    success: (res) => {
                        if(res.data.code == 1){
                            this.HSourceNameList = res.data.data.Gy_Source
                            for(var i=0;i<res.data.data.Gy_Source.length;i++){
                                this.arrayHSourceName[i] = res.data.data.Gy_Source[i].生产资源
                            }
                            this.$forceUpdate();
                        }else{
                            uni.showToast({
                                title:res.data.Message,
                                icon:'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title:'接口请求失败',
                            icon:'none'
                        })
                    },
                });
            },
            //选择生产资源
            HSourceNameChange(e){
                for(var i=0;i<this.HSourceNameList.length;i++){
                    if(this.HSourceNameList[i].生产资源 == e){
                        this.hform.HSourceID = this.HSourceNameList[i].HItemID
                    }
                }
            },
            ifEdit(){
                this.isEdit = true
                this.hform.eventType = 'Modify'
            },
            //编辑回显
            getEditData(linterid,HBillNo){
                //主表
                var sWhere = " and hmainid='" + linterid + "'";
                uni.request({
                    url: this.serverUrl + '/Sc_MouldUpperBill/Sc_MouldLowerBillList',
                    data: { sWhere: sWhere,user: uni.getStorageSync('HUserName') },
                    success: (res) => {
                        console.log(1,res.data.data[0]);
                        if(res.data.code == 1){
                            var data = res.data.data[0]
                            this.btnType=3
                            this.hform.HInterID= data.hmainid
                            this.hform.HBillNo= data.单据号
                            this.hform.HBarCode= data.条形码
                            this.hform.HDeptID= data.HDeptID
                            this.hform.HDeptName= data.部门
                            this.hform.HEmpID= data.HEmpID
                            this.hform.HEmpName= data.操作员
                            this.hform.HMangerID= data.HMangerID
                            this.hform.HMangerName= data.负责人
                            this.hform.HRemark= data.表头备注
                            this.hform.HDate = data.日期.substr(0,10)
                            this.hform.HSourceID=data.HSourceID,
                            this.hform.HSourceName=data.生产资源,
                            this.hform.HMouldID=data.HMouldID,
                            this.hform.HMouldNumber=data.模具编码,
                            this.hform.HMouldName=data.模具名称,
                            this.hform.HMouldModel=data.模具规格,
                            this.hform.HQty=data.数量,
                            this.hform.HScanDate=data.下模扫码时间,
                            this.hform.HICMOBillNo=data.HICMOBillNo,
                            this.hform.HICMOInterID=data.HICMOInterID,
                            this.hform.HICMOEntryID=data.HICMOEntryID,
                            this.hform.HProcExchBillNo=data.HProcExchBillNo,
                            this.hform.HProcExchInterID=data.HProcExchInterID,
                            this.hform.HProcExchEntryID=data.HProcExchEntryID,
                            this.hform.HOrgID=data.HOrgID,
                            this.hform.HMaker= data.制单人
                            this.hform.HMakeDate= data.制单日期
                            this.hform.HUpDater= data.修改人
                            this.hform.HUpDateDate= data.修改日期
                            this.hform.HChecker= data.审核人
                            this.hform.HCheckDate= data.审核日期
                            this.hform.HDeleteMan= data.作废人
                            this.hform.HDeleteDate= data.作废日期
                        }else{
                            uni.showToast({
                                title:res.data.Message,
                                icon:'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title:'接口请求失败',
                            icon:'none'
                        })
                    },
                });
            },
            //新增
            getNewData(){
                uni.request({
                    url: this.serverUrl + '/Web/GetMAXNum',
                    data: { HBillType: '3847' },
                    success: (res) => {
                        console.log(res.data)
                        if(res.data.count == 1){
                            this.hform.HInterID = res.data.data[0].HInterID
                            this.hform.HBillNo = res.data.data[0].HBillNo
                            this.hform.HMakeDate = getDateTime.dateTimeStr('y-m-d')
                            this.btnType=1
                        }else{
                            uni.showToast({
                                title:res.data.Message,
                                icon:'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title:'接口请求失败',
                            icon:'none'
                        })
                    },
                });
            },
            submit() {
                if(!this.hform.HBarCode){
                    uni.showToast({
                        title:'请扫描模具条形码',
                        icon:'none'
                    })
                }else if(!this.hform.HSourceName){
                    uni.showToast({
                        title:'请选择生产资源',
                        icon:'none'
                    })
                }else if(!this.hform.HMouldName){
                    uni.showToast({
                        title:'模具不能为空',
                        icon:'none'
                    })
                }else if(!this.hform.HEmpName){
                    uni.showToast({
                        title:'请选择操作员',
                        icon:'none'
                    })
                }else if(!this.hform.HMangerName){
                    uni.showToast({
                        title:'请选择负责人',
                        icon:'none'
                    })
                }else{
                    uni.showLoading({
                        title:'请稍候'
                    })
                    var sMainStr = JSON.stringify(this.hform);
                    var sMainSub = sMainStr + ";" + uni.getStorageSync('HUserName')+";"+this.btnType;
                    console.log(sMainSub);
                    uni.request({
                        url: this.serverUrl + '/Sc_MouldUpperBill/AddSc_MouldLowerBill_PDA',
                        method:'POST',
                        dataType:"json",
                        data:{ oMain: sMainSub },
                        success: (res) => {
                            console.log(1,res);
                            uni.hideLoading()
                            if(res.data.count == 1){
                                let pages = getCurrentPages();
                                let prePage = pages[pages.length - 2];
                                prePage.$vm.getList()
                                if(this.isEdit){
                                    setTimeout(()=>{
                                        uni.redirectTo({
                                            url:'/pages/MJGL/xiamodan/form'
                                        })
                                    },1000)
                                }else{
                                    setTimeout(()=>{
                                        uni.navigateBack()
                                    },1000)
                                }
                            }
                            uni.showToast({
                                title:res.data.Message,
                                icon:'none'
                            })
                        },
                        fail: (res) => {
                            console.log(res);
                            uni.showToast({
                                title:'接口请求失败',
                                icon:'none'
                            })
                        },
                    });
                }
            },
            goBack(){
                uni.showModal({
                    title: '提示',
                    content: '确认要退出当前页面吗?',
                    success: (res) => {
                        if (res.confirm) {
                            console.log('用户点击确定');
                            uni.navigateBack()
                        } else if (res.cancel) {
                            console.log('用户点击取消');
                        }
                    }
                });
            }
        }
    }
</script>
<style lang="scss" scoped>
    .form{
        width: 668rpx;
        margin: 20rpx auto;
        padding-bottom: 240rpx;
    }
    .tab_area{
        width: 100%;
        height: 50rpx;
    }
    .other{
        margin-top: 8rpx;
        text-align: center;
        font-size: 28rpx;
        padding: 4rpx 18rpx;
        color: #1890FF;
    }
    .form-item{
        display: flex;
        align-items: center;
        font-size: 30rpx;
        padding: 6rpx 0;
        .title{
            width: 208rpx;
            text{
                color: red;
                font-weight: bold;
            }
        }
        .right{
            width: 450rpx;
            border-radius: 22rpx;
            border: 1px solid #acacac;
        }
        .righton{
            width: 450rpx;
            border-radius: 22rpx;
            border: 1px solid #e4e4e4;
            background-color: #e4e4e4;
        }
        input{
            width: 100%;
            padding: 8rpx 20rpx;
            font-size: 30rpx;
        }
        textarea{
            width: 98%;
            padding: 8rpx 20rpx;
            font-size: 30rpx;
        }
    }
    .bottom-btn{
        width: 100%;
        // height: 120rpx;
        position: fixed;
        bottom: 0;
        left: 0;
        background-color: #fff;
        box-shadow: 0 2rpx 10rpx 2rpx rgba(0, 0, 0, 0.4);
        padding: 30rpx 40rpx 40rpx 40rpx;
        button{
            border-radius: 50rpx;
            width: 180rpx;
            height: 66rpx;
            line-height: 66rpx;
            font-size: 28rpx;
        }
        .btn-a{
            background-color: #3A78FF;
            color: #fff;
        }
        .btn-b{
            background-color: #41a863;
            color: #fff;
        }
        .btn-c{
            background-color: #acacac;
            color: #fff;
            position: absolute;
            right: 120rpx;
        }
        .btn-d{
            background-color: #ff8901;
            color: #fff;
        }
    }
</style>
pages/MJGL/xiamodan/table.vue
New file
@@ -0,0 +1,531 @@
<template>
    <view class="content">
        <view class="form">
            <view class="form-item">
                <view class="title">状态:</view>
                <view class="right">
                    <picker :range="arrayStatus" :value="hform.HStatus" @change="HStatusChange">
                        <view class="picker-overlay"></view>
                        <input name="HStatus" disabled :value="hform.HStatus" placeholder="请选择状态" />
                    </picker>
                </view>
            </view>
            <view class="form-item">
                <view class="title">开始时间:</view>
                <view class="right">
                    <picker mode="date" :value="hform.HBeginDate" @change="HBeginDateChange">
                        <view class="picker-overlay"></view>
                        <input name="HBeginDate" disabled :value="hform.HBeginDate" placeholder="请选择" />
                    </picker>
                </view>
            </view>
            <view class="form-item">
                <view class="title">结束时间:</view>
                <view class="right">
                    <picker mode="date" :value="hform.HEndDate" @change="HEndDateChange">
                        <view class="picker-overlay"></view>
                        <input name="HEndDate" disabled :value="hform.HEndDate" placeholder="请选择" />
                    </picker>
                </view>
            </view>
            <view v-if="showmore">
                <view class="form-item">
                    <view class="title">单据号:</view>
                    <view class="right">
                        <input v-model="hform.HBillNo" placeholder="请输入单据号" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">模具编码:</view>
                    <view class="right">
                        <input v-model="hform.HModelNumber" placeholder="请输入模具编码" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">模具名称:</view>
                    <view class="right">
                        <input v-model="hform.HModelName" placeholder="请输入模具名称" />
                    </view>
                </view>
            </view>
            <view class="other">
                <view v-if="!showmore" @tap="showmore = true">
                    展开其他条件<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="bottom"></uni-icons>
                </view>
                <view v-if="showmore" @tap="showmore = false">
                    折叠其他条件<uni-icons color="#1890FF" style="margin-left: 8rpx;" type="top"></uni-icons>
                </view>
            </view>
            <view class="buttons">
                <button class="btn-a" size="mini" type="default" @tap="clear">重置</button>
                <button class="btn-b" size="mini" type="default" @tap="creat">新增</button>
                <button class="btn-c" size="mini" type="default" @tap="search">查询</button>
            </view>
        </view>
        <view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
        <view class="list" v-for="(item,index) in showList" :key="index">
            <uni-card :title="item.HBillNO" :extra="item.单据号" style="margin: 10px;"
                @tap="showDetail = showDetail==index?-1:index">
                <!-- #ifndef MP-WEIXIN-->
                <view class="card-detail">
                    <view class="detail" v-if="item.部门">
                        <text>部门:</text>{{item.部门}}
                    </view>
                    <view class="detail" v-if="item.负责人">
                        <text>负责人:</text>{{item.负责人}}
                    </view>
                    <view class="detail" v-if="item.模具编码">
                        <text>模具编码:</text>{{item.模具编码}}
                    </view>
                    <view class="detail" v-if="item.模具名称">
                        <text>模具名称:</text>{{item.模具名称}}
                    </view>
                    <view class="detail" v-if="item.模具规格">
                        <text>模具规格:</text>{{item.模具规格}}
                    </view>
                    <view class="detail" v-if="item.生产资源">
                        <text>生产资源:</text>{{item.生产资源}}
                    </view>
                    <view class="detail" v-if="item.下模扫码时间">
                        <text>下模时间:</text>{{item.下模扫码时间.substr(0,10)}}
                    </view>
                </view>
                <view class="card-detail" v-if="showDetail == index">
                    <view class="detail" v-if="item.制单人">
                        <text>制单人:</text>{{item.制单人}}
                    </view>
                    <view class="detail" v-if="item.制单日期">
                        <text>制单日期:</text>{{item.制单日期.substr(0,10)}}
                    </view>
                    <view class="detail" v-if="item.修改人">
                        <text>修改人:</text>{{item.修改人}}
                    </view>
                    <view class="detail" v-if="item.修改日期">
                        <text>修改日期:</text>{{item.修改日期.substr(0,10)}}
                    </view>
                    <view class="detail" v-if="item.审核人">
                        <text>审核人:</text>{{item.审核人}}
                    </view>
                    <view class="detail" v-if="item.审核日期">
                        <text>审核日期:</text>{{item.审核日期.substr(0,10)}}
                    </view>
                    <view class="detail" v-if="item.关闭人">
                        <text>关闭人:</text>{{item.关闭人}}
                    </view>
                    <view class="detail" v-if="item.关闭日期">
                        <text>关闭日期:</text>{{item.关闭日期.substr(0,10)}}
                    </view>
                    <view class="detail" v-if="item.备注">
                        <text>备注:</text>{{item.备注}}
                    </view>
                </view>
                <!-- #endif -->
                <view class="more" v-if="showDetail == index && operations != index">
                    <view class="part" style="border-right: 1px solid #eee;">
                        <uni-icons type="top" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>收起
                    </view>
                    <view class="part" @tap.stop="operations = operations==index?-1:index">
                        <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>操作
                    </view>
                </view>
                <view class="more" v-if="showDetail != index && operations != index">
                    <view class="part" style="border-right: 1px solid #eee;">
                        <uni-icons type="bottom" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>更多信息
                    </view>
                    <view class="part" @tap.stop="operations = operations==index?-1:index">
                        <uni-icons type="more-filled" style="color: #888;margin-right: 10rpx;" size="14"></uni-icons>操作
                    </view>
                </view>
                <view class="op" v-if="operations == index">
                    <button class="op3" size="mini" plain @tap.stop="edit(item)">编辑</button>
                    <button class="op4" size="mini" plain @tap.stop="del(item)">删除</button>
                    <button class="op5" size="mini" plain @tap.stop="operations = -1">取消操作</button>
                </view>
            </uni-card>
        </view>
        <view class="over" v-if="listData.length == 0">暂无数据</view>
        <view class="over" v-if="listData.length != 0 && listData.length != showList.length">加载中...</view>
        <view class="over" v-if="listData.length != 0 && listData.length == showList.length">已到底</view>
    </view>
</template>
<script>
    import {
        getUserInfo
    } from "@/utils/auth.js";
    export default {
        data() {
            return {
                userInfo: getUserInfo(),
                serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
                showmore: false,
                arrayStatus: ['全部', '未审核', '已审核', '已关闭'],
                hform: {
                    HStatus: '全部',
                    HBeginDate: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
                    HEndDate: new Date().toISOString().split('T')[0],
                    HModelName: '',
                    HModelNumber: '',
                    HBillNo: '',
                },
                sWhere: '',
                listData: [],
                showList: [],
                showDetail: -1,
                operations: -1,
                page: 1,
            }
        },
        onLoad() {
            this.getList()
        },
        onReachBottom: function() {
            this.page++
            setTimeout(() => {
                this.showList = this.showList.concat(this.getPage(this.page, this.listData))
            }, 100)
        },
        onPullDownRefresh: function() {
            this.clear()
            setTimeout(() => {
                uni.stopPullDownRefresh();
            }, 1000);
        },
        methods:{
            SearchWhere() { //过滤条件
                this.sWhere = ''; // 先清空条件
                if (this.hform.HStatus) {
                    if (this.hform.HStatus == '全部') {
                        this.sWhere += "";
                    } else if (this.hform.HStatus == '未审核') {
                        this.sWhere += " and 审核人=''";
                    } else if (this.hform.HStatus == '已审核') {
                        this.sWhere += " and 审核人<>''";
                    } else if (this.hform.HStatus == '已关闭') {
                        this.sWhere += " and 关闭人<>''";
                    }
                }
                if (this.hform.HBeginDate) {
                    this.sWhere += " and CONVERT(varchar(100), 日期, 23) >= '" + this.hform.HBeginDate + "'";
                }
                if (this.hform.HEndDate) {
                    this.sWhere += " and CONVERT(varchar(100), 日期, 23) <= '" + this.hform.HEndDate + "'";
                }
                if (this.hform.HBillNo) {
                    this.sWhere += " and 单据号 like '%" + this.hform.HBillNo + "%'";
                }
                if (this.hform.HModelNumber) {
                    this.sWhere += " and 模具编码 like '%" + this.hform.HModelNumber + "%'";
                }
                if (this.hform.HModelName) {
                    this.sWhere += " and 模具名称 like '%" + this.hform.HModelName + "%'";
                }
                return this.sWhere
            },
            getPage(page, list) {
                let sindex = (parseInt(page) - 1) * 20
                let eindex = parseInt(page) * 20
                let newList = list.slice(sindex, eindex)
                return newList
            },
            getList() {
                this.sWhere = this.SearchWhere()
                uni.showLoading({
                    title: '加载中...'
                })
                uni.request({
                    url: this.serverUrl + '/Sc_MouldUpperBill/Sc_MouldLowerBillList',
                    data: {
                        sWhere: this.sWhere,
                        user: uni.getStorageSync('HUserName')
                    },
                    success: (res) => {
                        console.log(1, res.data.data);
                        if (res.data.count == 1) {
                            this.listData = res.data.data
                            this.showList = this.getPage(this.page, this.listData)
                            setTimeout(() => {
                                uni.hideLoading()
                            }, 1000)
                        } else {
                            uni.hideLoading()
                            uni.showToast({
                                title: res.data.Message,
                                icon: 'none'
                            })
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.hideLoading()
                        uni.showToast({
                            title: '接口请求失败',
                            icon: 'none'
                        })
                    },
                });
            },
            //状态
            HStatusChange(e) {
                console.log(e.detail.value)
                this.hform.HStatus = this.arrayStatus[e.detail.value]
            },
            //选择单据日期
            HBeginDateChange(e) {
                console.log(e.detail.value)
                this.hform.HBeginDate = e.detail.value
            },
            //选择单据日期
            HEndDateChange(e) {
                console.log(e.detail.value)
                this.hform.HEndDate = e.detail.value
            },
            //搜索
            search() {
                this.listData = [];
                this.page = 1;
                this.showList = [];
                this.getList()
            },
            //新增
            creat() {
                uni.navigateTo({
                    url: '/pages/MJGL/xiamodan/form'
                })
            },
            //重置
            clear() {
                this.listData = []
                this.page = 1
                this.showList = []
                this.showmore = false
                this.sWhere = ''
                this.showDetail = -1,
                this.operations = -1,
                this.hform = {
                    HStatus: '全部',
                    HBeginDate: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000).toISOString().split('T')[0],
                    HEndDate: new Date().toISOString().split('T')[0],
                    HModelName: '',
                    HModelNumber: '',
                    HBillNo: '',
                };
                this.getList();
            },
            //编辑
            edit(item) {
                console.log(item)
                uni.navigateTo({
                    url: '/pages/MJGL/xiamodan/form?linterid=' + item.hmainid + '&HBillNo=' + item.单据号
                })
            },
            //删除
            del(item) {
                console.log(item)
                uni.showModal({
                    title: '提示',
                    content: '确认要删除吗,删除后不能恢复',
                    success: (res) => {
                        if (res.confirm) {
                            console.log('用户点击确定');
                            uni.request({
                                url: this.serverUrl + '/Sc_MouldUpperBill/DeltetSc_MouldLowerBill',
                                data: {
                                    HInterID: item.hmainid + "_" + item.hsubid,
                                    HPRDORGID: uni.getStorageSync('OrganizationID'),
                                    user: uni.getStorageSync('HUserName')
                                },
                                success: (res) => {
                                    console.log(1, res);
                                    if (res.data.count == 1) {
                                        this.clear()
                                    }
                                    uni.showToast({
                                        title: res.data.Message,
                                        icon: 'none'
                                    })
                                },
                                fail: (res) => {
                                    console.log(res);
                                    uni.showToast({
                                        title: '接口请求失败',
                                        icon: 'none'
                                    })
                                },
                            });
                        } else if (res.cancel) {
                            console.log('用户点击取消');
                        }
                    }
                });
            }
        }
    }
</script>
<style lang="scss" scoped>
    .form {
        width: 640rpx;
        margin: 20rpx auto;
    }
    .other {
        margin-top: 8rpx;
        text-align: center;
        font-size: 28rpx;
        padding: 4rpx 18rpx;
        color: #1890FF;
    }
    .form-item {
        display: flex;
        align-items: center;
        font-size: 28rpx;
        padding: 6rpx 0;
        .title {
            width: 180rpx;
            text {
                color: red;
                font-weight: bold;
            }
        }
        .right {
            width: 450rpx;
            border-radius: 22rpx;
            border: 1px solid #acacac;
        }
        .righton {
            width: 450rpx;
            border-radius: 22rpx;
            border: 1px solid #e4e4e4;
            background-color: #e4e4e4;
        }
        input {
            width: 100%;
            padding: 8rpx 20rpx;
            font-size: 30rpx;
        }
    }
    .buttons {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 20rpx;
        button {
            border-radius: 50rpx;
            width: 180rpx;
            height: 66rpx;
            line-height: 66rpx;
            font-size: 28rpx;
        }
        .btn-a {
            background-color: #acacac;
            color: #fff;
        }
        .btn-b {
            background-color: #41a863;
            color: #fff;
        }
        .btn-c {
            background-color: #3a78ff;
            color: #fff;
        }
    }
    .list {
        width: 100%;
        .card-detail {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            line-height: 120%;
            .detail {
                // width: 50%;
                font-size: 26rpx;
                margin-bottom: 12rpx;
                color: #555;
                margin-right: 20rpx;
                text {
                    color: #999;
                    font-size: 26rpx;
                }
            }
        }
        .more {
            color: #888;
            font-size: 24rpx;
            display: flex;
            border-top: 1px solid #eee;
            padding-top: 20rpx;
            .part {
                width: 50%;
                text-align: center;
            }
        }
        .op {
            display: flex;
            justify-content: space-around;
            margin-top: 20rpx;
            button {
                padding: 0;
                width: 150rpx;
                font-size: 25rpx;
            }
            .op1 {
                border: 1px solid #41a863;
                color: #41a863;
            }
            .op2 {
                border: 1px solid #d98d00;
                color: #d98d00;
            }
            .op3 {
                border: 1px solid #3a78ff;
                color: #3a78ff;
            }
            .op4 {
                border: 1px solid #da0000;
                color: #da0000;
            }
            .op5 {
                border: 1px solid #888;
                color: #888;
            }
        }
    }
</style>
pages/index/login.vue
@@ -85,7 +85,7 @@
                    "温州海诚光学": 'http://122.228.39.234:7177/API/',
                    "宁波惠康工业": 'http://172.16.72.30:6699/API/',
                    "余姚兴达起动器": 'http://121.37.133.104/API/',
                    "翁涛涛本地测试": 'http://localhost:81/API/'
                    "翁涛涛本地测试": 'http://localhost:8082/API/'
                },
                serverUrlName: '浙江智云迈思',
pages/index/tab1.vue
@@ -114,20 +114,6 @@
                        id: 11,
                        hidden: true,
                    }, {
                        img: '../../static/icon/icon13.png',
                        text: '上模单',
                        tip: '查看详情',
                        url: '/pages/MJGL/shangmudan/table',
                        id: 12,
                        hidden: true,
                    }, {
                        img: '../../static/icon/icon13.png',
                        text: '下模单',
                        tip: '查看详情',
                        url: '',
                        id: 13,
                        hidden: true,
                    }, {
                        img: '../../static/icon/icon32.png',
                        text: '设备运行状态',
                        tip: '查看详情',
pages/index/tab2.vue
@@ -36,7 +36,9 @@
                menuListName: 'tab2',
                canEdit: false,
                serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
                itemData: [{
                itemData: [
                // 采购相关暂存列表
                {
                    img: '../../static/icon/icon17.png',
                    text: '采购入库暂存列表',
                    url: '/pages/caigouruku/table',
@@ -49,258 +51,245 @@
                    id: 2,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon17.png',
                    text: '其他入库暂存列表',
                    url: '/pages/qitaruku_v2/table',
                    img: '../../static/icon/icon30.png',
                    text: '采购入库校验暂存列表',
                    url: '/pages/caigourukujiaoyan/table',
                    id: 3,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon18.png',
                    text: '其他出库暂存列表',
                    url: '/pages/qitachuku_v2/table',
                    id: 4,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon32.png',
                    text: '直接调拨暂存列表',
                    url: '/pages/zhijiediaobo/table',
                    id: 5,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon30.png',
                    text: '生产领料暂存列表',
                    url: '/pages/shengchanlingliaoshengdan/table',
                    id: 6,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon31.png',
                    text: '生产补料暂存列表',
                    url: '/pages/shengchanbuliao/table',
                    // url: '',
                    id: 7,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon17.png',
                    text: '生产入库暂存列表',
                    url: '/pages/shengchanrukushengdan/table',
                    // url:'',
                    id: 8,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon30.png',
                    text: '委外领料暂存列表',
                    // url:'',
                    url: '/pages/weiwailingliao/table',
                    id: 9,
                    hidden: false,
                }, {
                },
                // 销售相关暂存列表
                {
                    img: '../../static/icon/icon18.png',
                    text: '销售出库暂存列表',
                    url: '/pages/xiaoshouchuku/table',
                    id: 10,
                    id: 4,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon20.png',
                    text: '销售退货暂存列表',
                    url: '/pages/xiaoshoutuihuo/table',
                    id: 11,
                    hidden: false,
                },
                {
                    img: '../../static/icon/icon20.png',
                    text: '委外入库暂存列表',
                    url: '/pages/weiwairuku/table',
                    id: 12,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon30.png',
                    text: '生产领料校验暂存列表',
                    url: '/pages/shengchanlingliao/table',
                    id: 13,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon31.png',
                    text: '生产补料校验暂存列表',
                    url: '/pages/shengchanbuliaojiaoyan/CacheList',
                    id: 14,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon32.png',
                    text: '生产调拨校验暂存列表',
                    url: '/pages/shengchandiaobo/table',
                    id: 15,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon18.png',
                    text: '其他出库校验暂存列表',
                    url: '/pages/qitachuku/qitachuku',
                    id: 16,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon17.png',
                    text: '生产入库校验暂存列表',
                    url: '/pages/shengchanruku/table',
                    id: 17,
                    id: 5,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon18.png',
                    text: '销售出库校验暂存列表',
                    url: '/pages/xiaoshouchukujiaoyan/table',
                    id: 18,
                    id: 6,
                    hidden: false,
                },
                // 生产相关暂存列表
                {
                    img: '../../static/icon/icon30.png',
                    text: '生产领料暂存列表',
                    url: '/pages/shengchanlingliaoshengdan/table',
                    id: 7,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon31.png',
                    text: '生产补料暂存列表',
                    url: '/pages/shengchanbuliao/table',
                    id: 8,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon17.png',
                    text: '生产入库暂存列表',
                    url: '/pages/shengchanrukushengdan/table',
                    id: 9,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon8.png',
                    text: '生产退料单暂存列表',
                    url: `/pages/shengchantuiliao/table`,
                    id: 10,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon30.png',
                    text: '生产领料校验暂存列表',
                    url: '/pages/shengchanlingliao/table',
                    id: 11,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon31.png',
                    text: '生产补料校验暂存列表',
                    url: '/pages/shengchanbuliaojiaoyan/CacheList',
                    id: 12,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon17.png',
                    text: '生产入库校验暂存列表',
                    url: '/pages/shengchanruku/table',
                    id: 13,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon32.png',
                    text: '生产调拨校验暂存列表',
                    url: '/pages/shengchandiaobo/table',
                    id: 14,
                    hidden: false,
                },
                // 委外相关暂存列表
                {
                    img: '../../static/icon/icon30.png',
                    text: '委外领料暂存列表',
                    url: '/pages/weiwailingliao/table',
                    id: 15,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon20.png',
                    text: '委外入库暂存列表',
                    url: '/pages/weiwairuku/table',
                    id: 16,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon30.png',
                    text: '委外领料校验暂存列表',
                    url: '/pages/weiwailingliaojiaoyan/table',
                    id: 17,
                    hidden: false,
                },
                // 其他出入库暂存列表
                {
                    img: '../../static/icon/icon17.png',
                    text: '其他入库暂存列表',
                    url: '/pages/qitaruku_v2/table',
                    id: 18,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon18.png',
                    text: '其他出库暂存列表',
                    url: '/pages/qitachuku_v2/table',
                    id: 19,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon3.png',
                    text: '设备保养记录单',
                    url: '/pages/baoyangjilu/table',
                    img: '../../static/icon/icon18.png',
                    text: '其他出库校验暂存列表',
                    url: '/pages/qitachuku/qitachuku',
                    id: 20,
                    hidden: false,
                },
                {
                    img: '../../static/icon/icon30.png',
                    text: '采购入库校验暂存列表',
                    url: '/pages/caigourukujiaoyan/table',
                    id: 21,
                    hidden: false,
                },{
                    img: '../../static/icon/icon5.png',
                    text: '设备点检记录单',
                    url: '',
                },
                // 调拨相关暂存列表
                {
                    img: '../../static/icon/icon32.png',
                    text: '直接调拨暂存列表',
                    url: '/pages/zhijiediaobo/table',
                    id: 21,
                    hidden: false,
                },
                // 其他暂存列表
                {
                    img: '../../static/icon/icon8.png',
                    text: '组托单暂存列表',
                    url: `/pages/zutuosaoma/table`,
                    id: 22,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon6.png',
                    text: '设备故障登记表',
                    url: '/pages/guzhangdengji/table',
                    id: 23,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon7.png',
                    text: '设备维修记录单',
                    url: '/pages/shebeiweixiu/table',
                    id: 24,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon15.png',
                    text: '异常反馈单',
                    url: '/pages/yichang/table',
                    id: 25,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon16.png',
                    text: '异常反馈处理单',
                    url: '/pages/yichang/list',
                    id: 26,
                    hidden: false,
                }, {
                },
                    // 标签条码相关(非暂存列表)
                {
                    img: '../../static/icon/icon21.png',
                    text: '标签打印',
                    url: '/pages/labelPrinter/index',
                    id: 27,
                    id: 23,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon21.png',
                    text: '条码拆码',
                    url: '/pages/tiaomachaima/tiaomachaima',
                    id: 28,
                    id: 24,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon21.png',
                    text: '条码拆码2',
                    url: '/pages/tiaomachaima/tiaomachaima2',
                    id: 25,
                    hidden: false,
                },
                // 设备相关(非暂存列表)
                {
                    img: '../../static/icon/icon3.png',
                    text: '设备保养记录单',
                    url: '/pages/baoyangjilu/table',
                    id: 26,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon5.png',
                    text: '设备点检记录单',
                    url: '',
                    id: 27,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon6.png',
                    text: '设备故障登记表',
                    url: '/pages/guzhangdengji/table',
                    id: 28,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon7.png',
                    text: '设备维修记录单',
                    url: '/pages/shebeiweixiu/table',
                    id: 29,
                    hidden: false,
                },
                // 异常相关(非暂存列表)
                {
                    img: '../../static/icon/icon15.png',
                    text: '异常反馈单',
                    url: '/pages/yichang/table',
                    id: 30,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon16.png',
                    text: '异常反馈处理单',
                    url: '/pages/yichang/list',
                    id: 31,
                    hidden: false,
                },
                // 库存查询(非暂存列表)
                {
                    img: '../../static/icon/icon18.png',
                    text: 'ERP及时库存查询',
                    url: '/pages/jishikucunchaxun/table',
                    id: 29,
                    id: 32,
                    hidden: false,
                },
                // 取样还样(非暂存列表)
                {
                    img: '../../static/icon/icon21.png',
                    text: '条码拆码2',
                    url: '/pages/tiaomachaima/tiaomachaima2',
                    id: 30,
                    img: '../../static/icon/icon8.png',
                    text: '取样单',
                    url: '/pages/quyangdan/table',
                    id: 33,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon8.png',
                    text: '还样单',
                    url: '/pages/huanyangdan/table',
                    id: 34,
                    hidden: false,
                },
                {
                    img: '../../static/icon/icon8.png',
                    text: '取样单',
                    url: '/pages/quyangdan/table',
                    id: 31,
                    hidden: !this.judgeHidden(),
                },
                {
                    img: '../../static/icon/icon8.png',
                    text: '还样单',
                    url: '/pages/huanyangdan/table',
                    id: 32,
                    hidden: !this.judgeHidden(),
                },
                {
                    img: '../../static/icon/icon8.png',
                    text: '生产退料单暂存列表',
                    url: `/pages/shengchantuiliao/table`,
                    id: 33,
                    hidden: false,
                },{
                    img: '../../static/icon/icon8.png',
                    text: '组托单暂存列表',
                    url: `/pages/zutuosaoma/table`,
                    id: 34,
                    hidden: false,
                }
                // {
                //     img: '../../static/icon/icon8.png',
                //     text: '检验报告',
                //     url: `/pages/InnerHtmlPage/index?src=http://172.16.72.15:8999/index.aspx?name=${getUserInfo()['HICNumber']}&pageTitle=检验报告`,
                //     id: 32,
                //     hidden: false,
                // },
                // {
                //     img: '../../static/icon/icon1.png',
                //     text: '设备档案查询',
                //     tip: '查看详情',
                //     url: '/pages/shebeidangan/table',
                //     id: 9,
                // }, {
                //     img: '../../static/icon/icon8.png',
                //     text: '设备履历查询',
                //     tip: '查看详情',
                //     url: '/pages/shebeilvli/table',
                //     id: 10,
                // }, {
                //     img: '../../static/icon/icon14.png',
                //     text: '我的报工平台',
                //     tip: '点击进入',
                //     url: '/pages/baogong/table',
                //     id: 11,
                // }, {
                //     img: '../../static/icon/icon13.png',
                //     text: '上模单',
                //     tip: '查看详情',
                //     url: '/pages/MJGL/shangmudan/table',
                //     id: 12,
                // }, {
                //     img: '../../static/icon/icon13.png',
                //     text: '下模单',
                //     tip: '查看详情',
                //     url: '',
                //     id: 13,
                // }, {
                //     img: '../../static/icon/icon32.png',
                //     text: '设备运行状态',
                //     tip: '查看详情',
                //     url: '/pages/shebeiyunxingzhuangtai/shebeiyunxingzhuangtai',
                //     id: 14,
                // }, {
                //     img: '../../static/icon/icon6.png',
                //     text: '模具状态分析',
                //     tip: '查看详情',
                //     url: '/pages/mujvzhuangtai/mujvzhuangtai',
                //     id: 15,
                // },
                // 上模下模(hidden为true,放最后)
                {
                    img: '../../static/icon/icon13.png',
                    text: '上模单',
                    ip: '查看详情',
                    url: '/pages/MJGL/shangmudan/table',
                    id: 35,
                    hidden: false,
                }, {
                    img: '../../static/icon/icon13.png',
                    text: '下模单',
                    ip: '查看详情',
                    url: '/pages/MJGL/xiamodan/table',
                    id: 36,
                    hidden: false,
                }
                ]
            }
        },