wtt
9 天以前 ada00cb8abd42c1b920999716382dbcd14df5173
全检单优化
2个文件已修改
68 ■■■■■ 已修改文件
pages.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/ZLGL/QualityReportStep/QualityReportStepBill.vue 64 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json
@@ -1472,14 +1472,14 @@
        {
            "path": "pages/ZLGL/QualityReportStep/QualityReportStepBill",
            "style": {
                "navigationBarTitleText": "全检检验单(不良汇报)",
                "navigationBarTitleText": "全检不良汇报单",
                "pageOrientation": "auto" // 支持横屏
            }
        },
        {
            "path": "pages/ZLGL/QualityReportStep/QualityReportStepBillList",
            "style": {
                "navigationBarTitleText": "全检检验单(不良汇报)查询"
                "navigationBarTitleText": "全检不良汇报单查询"
            }
        },
        {
pages/ZLGL/QualityReportStep/QualityReportStepBill.vue
@@ -81,23 +81,14 @@
                            <input type="text" disabled :value="hform.HMaterName" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">源单数量</view>
                        <view class="right disabled">
                            <input type="number" v-model="hform.HSourceBillQty" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">检验数量</view>
                        <view class="right">
                            <input type="number" v-model="hform.HCheckQty" :disabled="hasCheckQty" />
                        <view class="left">工序</view>
                        <view class="right disabled">
                            <input type="text" disabled :value="hform.HProcName" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">不良数量</view>
                        <view class="right">
                            {{ totalNum }}
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">检验员</view>
@@ -113,17 +104,42 @@
                        </view>
                    </view>
                    
                    <view class="form-item">
                        <view class="left">工序</view>
                        <view class="right disabled">
                            <input type="text" disabled :value="hform.HProcName" />
                        </view>
                        <view class="left">源单数量</view>
                        <view class="right disabled">
                            <input type="number" v-model="hform.HSourceBillQty" />
                        </view>
                    </view>
                    
                    
                    
                    <view class="form-item">
                        <view class="left">送检数量</view>
                        <view class="right">
                            <input type="number" v-model="hform.HCheckQty" :disabled="hasCheckQty" />
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">不良数量</view>
                        <view class="right">
                            {{ totalNum }}
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">合格数量</view>
                        <view class="right">
                            {{ hform.HCheckQty-totalNum }}
                        </view>
                    </view>
                    <view class="form-item">
                        <view class="left">不良率</view>
                        <view class="right">
                            {{ totalNum/(hform.HCheckQty==0?1:hform.HCheckQty) }}
                        </view>
                    </view>
                    <view class="form-item" style="width: 1350rpx;">
                        <view class="left">备注</view>
                        <view class="right">
                            <input type="text" v-model="hform.HRemark" value="" />
@@ -486,7 +502,7 @@
                let sWhere = ` and HUSEORGID = '${uni.getStorageSync('OrganizationID')}' and ISNULL(审核人,'')  != '' `
                if (this.serverUrl == 'http://122.228.39.234:7177/API/') {
                    //海诚根据物料分组设置不良原因
                    sWhere += " and 不良类型 like '%成品%' order by 不良原因代码"
                    sWhere += (" and HDeptID="+this.hform.HDeptID+" order by 不良原因代码")
                }else{
                    sWhere += " order by 不良原因代码"
                }
@@ -577,7 +593,7 @@
                    this.hform.HProcID= data[0].HProcID
                    this.hform.HProcName= data[0].当前工序
                    this.hform.HDeptID= data[0].HWorkShopID
                    this.getGy_BadReasonList();
                } else {
                    CommonUtils.showTips({
                        title: '温馨提示',
@@ -648,6 +664,7 @@
                        this.hform.HProcName= data[0].当前工序
                        this.hform.HDeptID= data[0].HWorkShopID
                        this.$refs['billList'].exit()
                        this.getGy_BadReasonList();
                    } else {
                        CommonUtils.showTips({
                            title: '温馨提示',
@@ -1080,7 +1097,7 @@
            } else if (this.operationType == 2) {
            } 
            this.getGy_BadReasonList();
            //this.getGy_BadReasonList();
            await this.InitHSource();
            await this.InitHEmp();
            await this.InitHGroup();
@@ -1179,6 +1196,7 @@
                    font-size: 30rpx;
                }
            }
            .right-select {
                //padding: 8rpx 20rpx;
                font-size: 30rpx;