From 790d5f4ed220eb76f28682b057799a57c62c9c94 Mon Sep 17 00:00:00 2001 From: 南骏 池 <chiffly@163.com> Date: 星期五, 30 五月 2025 08:45:31 +0800 Subject: [PATCH] 1.流量*水温表格生成,可输入 --- H5/IPQC_SJ/Add.aspx | 193 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 191 insertions(+), 2 deletions(-) diff --git a/H5/IPQC_SJ/Add.aspx b/H5/IPQC_SJ/Add.aspx index 9b4cbf6..31183c8 100644 --- a/H5/IPQC_SJ/Add.aspx +++ b/H5/IPQC_SJ/Add.aspx @@ -31,6 +31,73 @@ 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; + } + + .grid-header, .grid-row { + display: flex; + gap: 8px; + padding: 4px 0; + border-bottom: 1px solid #ebedf0; + font-size: 0.20rem; + } + + .input-cell { + flex: 1; + display: flex; + justify-content: center; + font-size: 0.20rem; + } + + .van-field__control { + text-align: center; + padding: 4px 8px; +/* border: 1px solid #ccc;*/ + border-radius: 4px; + } + </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server"> @@ -106,6 +173,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" @@ -218,6 +287,26 @@ <van-tag round plain v-else type="warning">杩涜涓�</van-tag> </template> </van-field> + + <van-field label="璁よ瘉淇℃伅" v-if='jymxData.isrzxx == 1' colon v-model="rzxxValue" placeholder="璇疯緭鍏ヨ璇佷俊鎭�" readonly class="wrap-field"> + <template #input> + <div class="wrap-content">{{ rzxxValue }}</div> + </template> + <template #button> + <van-tag type="primary" style="font-size:15px" @click="updateRzxx()">杈撳叆</van-tag> + </template> + </van-field> + <van-dialog v-model="showDialogRzxx" title="璁よ瘉淇℃伅" :show-cancel-button="false" @confirm="rzxxConfirm"> + <van-field + v-model="rzxxValue" + rows="5" + autosize + type="textarea" + maxlength="500" + placeholder="璇疯緭鍏ヨ璇佷俊鎭�" + show-word-limit + /> + </van-dialog> </template> <template> @@ -329,7 +418,102 @@ </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-button + block + type="danger" + @click="createTb" + style="margin-top: 8px;" + >鐢熸垚琛ㄦ牸</van-button> + </van-cell-group> + <div v-if="tableTbData.length > 0" id="temperature-table" style="margin-top: 20px;"> + <van-cell-group> + <!-- 琛ㄥご --> + <van-cell> + <div class="grid-header"> + <div v-for="(header, index) in [headers[0], ...headers.slice(1)]" + :key="index" + :style="index === 0 ? 'width: 100px' : 'flex: 1'"> + {{ header }} + </div> + </div> + </van-cell> + + <!-- 鏁版嵁琛� --> + <div v-for="(row, rowIndex) in tableTbData" :key="rowIndex"> + <div class="grid-row"> + <!-- 姘存俯鍒� --> + <div style="width: 100px">{{ row.temperature }}</div> + <!-- 瀹為檯娓╁害鍒� --> + <div style="width: 100px"> + <van-field + v-model="formTbData.temperatureData[row.temperature].temp" + placeholder="杈撳叆娓╁害鍊�" + type="number" + /> + </div> + <!-- 鍔ㄦ�佸垪 --> + <div v-for="(header, colIndex) in headers.slice(2)" + :key="colIndex" + style="flex: 1"> + <van-field + v-model="formTbData.temperatureData[row.temperature][header]" + :placeholder="`杈撳叆${header}鍊糮" + type="number" + /> + </div> + </div> + </div> + </van-cell-group> + </div> + </div> + </van-popup> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server"> @@ -337,5 +521,10 @@ <%--<comback ></comback>--%> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> - <script src="../Js/IPQC_SJ/Add.js?<%=111112111 %>"></script> + <script src="../Js/IPQC_SJ/Add.js?<%=111112111146 %>"></script> </asp:Content> + + + + + -- Gitblit v1.9.3