wtt
2026-03-08 c5bf6bcd4d5b89c78db0a47e880521660ab45fdd
pages/MJGL/SB_EquipICMOTechParamBill/SB_EquipICMOTechParamBillEdit.vue
@@ -224,7 +224,7 @@
            }">
                <view class="list" v-for="(item,index) in HTechParams" :key="index">
                    <uni-card style="margin: 10px;">
                    <uni-card style="margin: 10px;" @tap="modifyCheckValue(index, item)">
                        <view class="card-detail">
                            <view class="detail">
                                <text>序号:</text>{{index+1}}
@@ -292,6 +292,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 +350,15 @@
                HBillType: '3919',
                operationType: 1,
                uploadOptions: {},
                selectTechParamItem: {
                    index: -1,
                    item: {
                        HStd: 0,
                        HMax: 0,
                        HMin: 0
                    }
                },
                HTechParams: [], // 工艺参数
@@ -406,6 +443,15 @@
        },
        methods: {
            modifyCheckValue(index, item) {
                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);
                let data = billData.retVal[this.hform.HEquipID]
@@ -596,6 +642,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 {
@@ -1067,5 +1131,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>