南骏 池
2025-05-29 c5fa3af292602f5b2086b6aac86555a707515591
1.首检,制热性能多选功能
已修改2个文件
140 ■■■■■ 文件已修改
H5/IPQC_SJ/Add.aspx 103 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/IPQC_SJ/Add.js 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/IPQC_SJ/Add.aspx
@@ -31,6 +31,51 @@
              border-radius: 4px;
            }
            /* 标题样式 */
            .custom-label .van-cell__title {
              font-size: 0.28rem !important;
              line-height: 1.0;
              color: #fff !important;
              background-color: #1989fa; /* 品牌蓝色 */
              padding: 0.1rem 0.1rem;
              border-radius: 0.12rem;
              margin: 0.1rem 0;
            }
            /* 复选框组容器 */
            .checkbox-group-wrapper {
              padding: 0 0.1rem;
              margin: 0.15rem 0;
            }
            /* 复选框文字样式 */
            .van-checkbox__label {
              font-size: 0.20rem !important;
              line-height: 0.85;
              color: #333;
              margin-left: 0.1rem;
            }
            /* 复选框排列优化 */
            .van-checkbox-group--horizontal {
              display: flex;
              flex-wrap: wrap;
              gap: 0.2rem 0.3rem; /* 行列间距 */
            }
            /* 复选框图标调整 */
            .van-checkbox__icon {
              font-size: 0.2rem;
              vertical-align: middle;
            }
            /* 选中状态样式 */
            .van-checkbox--checked .van-checkbox__label {
              color: #1989fa;
            }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
@@ -106,6 +151,8 @@
                    <van-tag type="primary" style="font-size:15px" @click="updateRemarks(formData.guid)">输入</van-tag>
                  </template>
              </van-field>
              <!-- 新增炙热性能按钮 -->
              <van-tag type="primary" style="font-size:15px" @click="openZrPopup">炙热性能</van-tag>
            <van-dialog v-model="showDialog" title="不合格描述" :show-cancel-button="false"  @confirm="remarksConfirm">
              <van-field
                v-model="remarks"
@@ -349,7 +396,56 @@
            </div>
          </van-popup>
          <!-- 新增炙热性能弹窗 -->
          <van-popup
          v-model="showZr"
          closeable
          overlay="true"
          round
          close-icon="close"
          class="van-icon-popup"
          position="right"
          :style="{
              width: '100%',
              height: '100%',
              boxShadow: '-2px 0 12px rgba(0, 0, 0, 0.1)'
          }"
          @click-close-icon="closeZrPopup">
          <div class="content-wrapper-jymx">
            <!-- 弹窗内容区 -->
            <van-cell-group>
              <div><van-cell title="水温选择" class="custom-label" /></div>
              <div class="checkbox-group-wrapper">
                <van-checkbox-group
                  v-model="selectedWater"
                  :max="5"
                  direction="horizontal">
                  <van-checkbox
                    v-for="(item, index) in waterOptions"
                    :key="index"
                    :name="item.value">
                    {{ item.text }}
                  </van-checkbox>
                </van-checkbox-group>
              </div>
              <div><van-cell title="流量选择" class="custom-label" /></div>
              <div class="checkbox-group-wrapper">
                <van-checkbox-group
                  v-model="selectedFlow"
                  :max="5"
                  direction="horizontal">
                  <van-checkbox
                    v-for="(item, index) in flowOptions"
                    :key="index"
                    :name="item.value">
                    {{ item.text }}
                  </van-checkbox>
                </van-checkbox-group>
              </div>
            </van-cell-group>
          </div>
          </van-popup>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
@@ -357,5 +453,8 @@
  <%--<comback ></comback>--%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
 <script src="../Js/IPQC_SJ/Add.js?<%=111112111141 %>"></script>
 <script src="../Js/IPQC_SJ/Add.js?<%=111112111144 %>"></script>
</asp:Content>
H5/Js/IPQC_SJ/Add.js
@@ -2,6 +2,31 @@
    el: '#app',
    data: function () {
        return {
            showZr: false,
            waterOptions: [
                { value: '常温水', text: '常温水' },
                { value: '0', text: '0℃' },
                { value: '5', text: '5℃' },
                { value: '15', text: '15℃' },
                { value: '35', text: '35℃' },
                { value: '55', text: '55℃' },
                { value: '75', text: '75℃' },
                { value: '100', text: '100℃' }
            ],
            flowOptions: [
                { value: '100', text: '100ml' },
                { value: '200', text: '200ml' },
                { value: '300', text: '300ml' },
                { value: '400', text: '400ml' },
                { value: '500', text: '500ml' },
                { value: '600', text: '600ml' },
                { value: '700', text: '700ml' },
                { value: '800', text: '800ml' },
                { value: '900', text: '900ml' },
                { value: '1000', text: '1000ml' }
            ],
            selectedWater: [],// 已选水温值
            selectedFlow: [],   // 已选流量值
            isLoading: false,
            userInfo: {
                "loginGuid": '',
@@ -85,6 +110,18 @@
                .replace(/(\..*)\./g, '$1')               // 2. 禁止多个小数点
                .replace(/^\./g, '');    
        },
        openZrPopup() {
            this.showZr = true;
        },
        closeZrPopup() {
            this.showZr = false;
            this.selectedWater = [];  // 关闭时清空选择
            this.selectedFlow = [];   // 关闭时清空选择
        },
        //针对没有上下限值的数据,只需选择合格或不合格.按钮触发
        handleQualified(isQualified) {
            var input = "";