yusijie
2026-03-30 21c2a7c125a5d07ad87fd7a266a697f61d0fdefd
pages/MJGL/SB_EquipICMOTechParamBill/SB_EquipICMOTechParamBillEdit.vue
@@ -108,6 +108,12 @@
                        <input v-model="hform.HEquipName" disabled />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">模具:</view>
                    <view class="righton">
                        <input v-model="hform.HMouldName" disabled />
                    </view>
                </view>
            </view>
        </template>
        <!-- 其他信息 -->
@@ -283,6 +289,7 @@
                <view class="over" v-if="HCheckFileList.length == 0">暂无数据</view>
            </view>
        </template>
        <view style="height: 120rpx;"></view>
        <!-- 操作按钮 -->
        <view class="buttons" id="buttons">
            <button class="btn-a" size="mini" @tap="submit">提交</button>
@@ -292,6 +299,34 @@
        </view>
        <xe-upload ref="XeUpload" :options="uploadOptions" @callback="handleUploadCallback"></xe-upload>
        <BillSelectorPopupVue @update="billSelectHandler" ref="billSelector" :Type="'DJ'"></BillSelectorPopupVue>
        <!-- 用于输入标准值 上限值 下限值的弹出层 -->
        <uni-popup ref="inputPopup" :mask-click="false" >
            <view class="inputPopup">
                <view class="form-item">
                    <view class="title">标准值:</view>
                    <view class="right">
                        <input type="number" v-model="selectTechParamItem.item.HStd" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">上限值:</view>
                    <view class="right">
                        <input type="number" v-model="selectTechParamItem.item.HMax" />
                    </view>
                </view>
                <view class="form-item">
                    <view class="title">下限值:</view>
                    <view class="right">
                        <input type="number" v-model="selectTechParamItem.item.HMin" />
                    </view>
                </view>
                <view style="display: flex; flex-direction: row;">
                    <button size="mini" plain="true" type="primary" @click="inputPopupClose(1)">确认</button>
                    <button size="mini" plain="true" type="warn" @click="inputPopupClose(0)">取消</button>
                </view>
            </view>
        </uni-popup>
    </view>
</template>
@@ -322,6 +357,15 @@
                HBillType: '3919',
                operationType: 1,
                uploadOptions: {},
                selectTechParamItem: {
                    index: -1,
                    item: {
                        HStd: 0,
                        HMax: 0,
                        HMin: 0
                    }
                },
                HTechParams: [], // 工艺参数
@@ -375,7 +419,9 @@
                    "HUpDater": "",
                    "HDeleteMan": "",
                    "HUpDateDate": "",
                    "HDeleteDate": ""
                    "HDeleteDate": "",
                    "HMouldName": "",
                    "HMouldID": 0,
                }
            };
        },
@@ -407,7 +453,13 @@
        },
        methods: {
            modifyCheckValue(index, item) {
              console.log('item: ',item, 'index: ', index);
                console.log('item: ', item, 'index: ', index);
                this.selectTechParamItem = {
                   index,
                   item: JSON.parse(JSON.stringify(item))
                }
                this.$refs.inputPopup.open()
            },
            billSelectHandler(billData) {
                console.log('billData: ', billData);
@@ -599,6 +651,24 @@
                    this.hform.HBarCode = cb
                    this.GetMessageByBarCode(cb)
                })
            },
            inputPopupClose(type) {
                if(type == 1) {
                    // 确认
                    let index = this.selectTechParamItem.index
                    let item = this.selectTechParamItem.item
                    this.HTechParams[index] = item
                }
                this.selectTechParamItem = {
                    index: -1,
                    item: {
                        HStd: 0,
                        HMax: 0,
                        HMin: 0
                    }
                },
                this.$refs.inputPopup.close()
            },
            async GetMessageByBarCode(HBarCode) {
                try {
@@ -898,7 +968,6 @@
                        data: {
                            hinterid: HInterID,
                            HEntryID,
                            HEntryID,
                            user: getUserInfo()["Czymc"]
                        }
                    })
@@ -942,6 +1011,9 @@
                            "HMainSourceEntryID": data[0].HEntryID,
                            "HMainSourceBillNo": data[0].单据号,
                            "HMainSourceBillType": data[0].单据类型,
                            "HMouldName": data[0].模具名称,
                            "HMouldID": data[0].HMouldID
                        })
                        this.HTechParams = data.map(item => {
@@ -1070,5 +1142,10 @@
</script>
<style lang="scss" scoped>
    @import "@/pages/MJGL/style/MJBillStyle.scss"
    @import "@/pages/MJGL/style/MJBillStyle.scss";
    .inputPopup {
        background-color: #fff;
        padding: 20rpx;
    }
</style>