chenhaozhe
7 天以前 9527cf1939ab802e83da8b608916b10efeaa22ae
Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev
6个文件已修改
219 ■■■■ 已修改文件
pages.json 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/Sc_PackUnionCarryUpBill/Sc_PackUnionCarryUpBill_Fast.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/fenbushidiaochudan/table_out.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/login.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/tab2.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/weiwaigxOut/Cj_StationEntrustOutBillList.vue 199 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json
@@ -1682,6 +1682,12 @@
                "navigationBarTitleText": "设备履历"
            }
        },
        {
            "path": "pages/fenbushidiaochudan/table_out",
            "style": {
                "navigationBarTitleText": "分步式调出单缓存列表"
            }
        },
        {
            "path": "pages/MJGL/Sc_EquipmentProcessList/Sc_EquipmentProcess",
            "style": {
pages/Sc_PackUnionCarryUpBill/Sc_PackUnionCarryUpBill_Fast.vue
@@ -243,6 +243,7 @@
                // 获取SN码对应的数据 
                let sInterID = this.hform.HInterID
                let sBillNo = this.hform.HBillNo
                let HBillType = this.hform.HBillType
                let sHBarCode = this.HBarCode
                let sHBarCode_Pack = this.HBarCode_Pack
                let sMaker = getUserInfo()["Czymc"]
pages/fenbushidiaochudan/table_out.vue
@@ -276,7 +276,7 @@
            },
            add() {
                uni.navigateTo({
                    url: './form?OperationType=1'
                    url: './form_out?OperationType=1'
                })
            },
            //编辑
@@ -293,7 +293,7 @@
                        console.log(1, res);
                        if (res.data.count == 1) {
                            uni.navigateTo({
                                url: './form?OperationType=2&HInterID=' + item.HInterID
                                url: './form_out?OperationType=2&HInterID=' + item.HInterID
                            })
                        } else {
                            uni.showToast({
pages/index/login.vue
@@ -114,7 +114,7 @@
                    "陈镐哲本地测试2": 'http://192.168.88.82:81/API/',
                    "张瑞广本地测试": 'http://localhost:8082/API/',
                    "余思杰本地测试": 'http://localhost:8082/LuBaoAPI/',
                    "杨权鑫本地测试": 'http://192.168.0.36:8082/API/',
                    "杨权鑫本地测试": 'http://172.20.10.5:8082/API/',
                    "王仪本地测试": 'http://192.168.0.74:8080/API/',
                    // 小卫内外网
                    "苏州卫智科技-外网": 'http://221.224.60.42:8082/API_WW/',
pages/index/tab2.vue
@@ -234,6 +234,13 @@
                        id: 24,
                        hidden: false,
                    },
                    {
                        img: '../../static/icon/icon16.png',
                        text: '分步式调出单缓存',
                        url: '/pages/fenbushidiaochudan/table_out',
                        id: 88,
                        hidden: false,
                    },
                    {
                        img: '../../static/icon/icon9.png',
                        text: '工序进站接收单列表',
pages/weiwaigxOut/Cj_StationEntrustOutBillList.vue
@@ -43,6 +43,11 @@
                    <view class="right">
                        <input v-model="hform.HProcExchBillNo" placeholder="请输入工序流转卡号" />
                    </view>
                    <view>
                    <uni-icons type="scan"
                        style="background-color: #3A78FF;padding: 6rpx;color: #fff;border-radius: 100%;font-weight: 500;"
                        size="20" @click="toScanCode"></uni-icons>
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">产品代码:</view>
@@ -211,17 +216,37 @@
                    <button class="op1" size="mini" plain @tap.stop="check(item)">审核</button>
                    <!-- <button class="op2" size="mini" plain @tap.stop="antiCheck(item)">反审核</button> -->
                    <button class="op1" size="mini" plain @tap.stop="firstCheck(item)" v-if="false">首检</button>
                    <button class="op3" size="mini" plain @tap.stop="edit(item)" v-if="true">编辑</button>
                    <button class="op3" size="mini" plain @tap.stop="edit(item)" v-if="hform.HStatus === '已审核'">编辑</button>
                    <button class="op4" size="mini" plain @tap.stop="del(item)" v-if="false">删除</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 class="popup-mask" v-if="popupVisible" @tap="cancelCheck">
            <view class="popup-content" @tap.stop>
                <view class="popup-title">审核确认</view>
                <view class="popup-item">
                    <text class="popup-label">数量:</text>
                    <input class="popup-input" type="number" v-model="popupForm.HQty" placeholder="请输入数量" />
                </view>
                <view class="popup-item">
                    <text class="popup-label">制单人:</text>
                    <input class="popup-input" v-model="popupForm.HUser" placeholder="请输入制单人" />
                </view>
                <view class="popup-btns">
                    <button class="popup-btn cancel" @tap="cancelCheck">取消</button>
                    <button class="popup-btn confirm" @tap="confirmCheck()">确定</button>
                </view>
            </view>
        </view>
    </view>
</template>
<script>
@@ -229,12 +254,18 @@
    export default {
        data() {
            return {
                popupVisible: false,
                popupItem: null,
                popupForm: {
                    HQty: '',
                    HUser: ''
                },
                userInfo:getUserInfo(),
                serverUrl: uni.getStorageSync('serverUrl')||'http://47.96.97.237/API',
                showmore:false,
                arrayStatus:['全部','未审核','已审核','已关闭'],
                hform:{
                    HStatus:'全部',
                    HStatus:'未审核',
                    HBeginDate:new Date().toISOString().split('T')[0],
                    HEndDate:'',
                    HICMOBillNo:'',
@@ -275,9 +306,24 @@
                let newList = list.slice(sindex,eindex)
                return newList
            },
            async toScanCode() {
                var mpaasScanModule = uni.requireNativePlugin("Mpaas-Scan-Module")
                mpaasScanModule.mpaasScan({
                    'hideAlbum': true,
                    'timeoutInterval':'10', //超时时间
                    'timeoutText':'未识别到二维码' //超时提醒
                },(ret) => {
                    console.log(ret.resp_result)
                    if (this.CommonUtils.isEmpty(ret.resp_result) === false) {
                        console.log('条码内容:' + ret.resp_result);
                        this.hform.HProcExchBillNo = ret.resp_result
                        this.search()
                    }
                })
            },
            getList(){
                this.sWhere += ` and 制单人 like N'%${this.userInfo.Czymc}'`
                // console.log(this.sWhere)
                this.sWhere += ` and 制单人 like '%${this.userInfo.Czymc}'`
                console.log(this.sWhere)
                uni.showLoading({
                    title:'加载中...'
                })
@@ -289,6 +335,7 @@
                    },
                    success: (res) => {
                        console.log(1,res);
                        if(res.data.count == 1){
                            this.listData = res.data.data
                            this.showList = this.getPage(this.page,this.listData)
@@ -349,12 +396,12 @@
                        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.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 + "%'";
                }
@@ -459,15 +506,68 @@
                    }
                });
            },
            // //审核
            // check(item){
            //     console.log(item)
            //     if (item.HBillStatus > 0) {
            //         uni.showToast({
            //             title:'单据不为未审核状态!'
            //         })
            //     }
            // },
            //审核
            check(item){
                console.log(item)
                if (item.HBillStatus > 0) {
                    // uni.showToast({
                    //     title:'单据不为未审核状态!'
                    // })
                    this.popupItem = item;
                    this.popupForm.HQty = 0;
                    this.popupForm.HUser = uni.getStorageSync('HUserName');
                    this.popupVisible = true;
                }
            },
            confirmCheck(item) {
                // if (!this.popupForm.HQty) {
                //     uni.showToast({ title: '请输入数量', icon: 'none' });
                //     return;
                // }
                // if (!this.popupForm.HUser) {
                //     uni.showToast({ title: '请输入制单人', icon: 'none' });
                //     return;
                // }
                uni.request({
                    url: this.serverUrl + '/Cj_StationEntrustOutBill/setOtherProperty',
                    method: 'Get',
                    data: {
                        HInterID: this.popupItem.HInterID,
                        HQty: this.popupForm.HQty,
                        user: this.popupForm.HUser // 制单人
                    },
                    success: (res) => {
                        console.log(1, res);
                        if (res.data.count == 1) {
                            this.popupVisible = false;
                            uni.showToast({
                                title: '审核成功',
                                icon: 'none'
                            });
                            this.search();
                        } else {
                            uni.showToast({
                                title: res.data.Message,
                                icon: 'none'
                            });
                        }
                    },
                    fail: (res) => {
                        console.log(res);
                        uni.showToast({
                            title: '接口请求失败',
                            icon: 'none'
                        });
                    }
                });
            },
            cancelCheck() {
                this.popupVisible = false;
                this.popupItem = null;
                this.popupForm.HQty = '';
                this.popupForm.HUser = '';
            }
            // //反审核
            // antiCheck(item){
                
@@ -608,5 +708,64 @@
            }
        }
    }
.popup-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-content {
    width: 600rpx;
    background-color: #fff;
    border-radius: 20rpx;
    padding: 30rpx;
}
.popup-title {
    font-size: 36rpx;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30rpx;
}
.popup-item {
    display: flex;
    align-items: center;
    margin-bottom: 20rpx;
}
.popup-label {
    width: 140rpx;
    font-size: 30rpx;
}
.popup-input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 10rpx;
    padding: 10rpx 20rpx;
    font-size: 30rpx;
}
.popup-btns {
    display: flex;
    justify-content: space-around;
    margin-top: 40rpx;
}
.popup-btn {
    width: 200rpx;
    height: 70rpx;
    line-height: 70rpx;
    text-align: center;
    border-radius: 10rpx;
    font-size: 30rpx;
}
.popup-btn.cancel {
    background-color: #eee;
}
.popup-btn.confirm {
    background-color: #3a78ff;
    color: #fff;
}
</style>