新框架PDA前端(祈禧6月初版本)
南骏 池
3 天以前 3ff569f00d22919e47cab8fb6d7d9867fd115d97
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
<%@ Page Title="" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
        <style>
            .bg-info {
                background-color: #fff;
            }
 
            .custom-title {
                margin-right: 4px;
                vertical-align: middle;
            }
 
            .si-status__right-btns {
                flex: 1;
                display: flex;
                align-items: center;
                padding-left: 0.16rem;
                background: #e3edf7;
                align-items: center;
                width: 100%;
                gap: 10px; /* 按钮间距 */
                padding: 0 8px; /* 左右内边距 */
            }
 
            /* 按钮样式 */
            .status-btn {
              flex: 1; /* 等分剩余空间 */
              min-width: 0; /* 防止内容溢出 */
              font-size: 0.25rem;
              border-radius: 4px;
            }
 
 
            .custom-label .van-cell__title {
              font-size: 0.28rem !important;
              line-height: 1.0;
              color: #1989fa !important; /* 修改为蓝色 */
              background-color: transparent !important; /* 透明背景 */
              border: 1px solid #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: left;
                padding: 4px 8px;
/*                border: 1px solid #ccc;*/
                border-radius: 4px;
            }
 
            /* 新增局部样式 */
            .temperature-input .van-field__control,
            .flow-input .van-field__control {
              text-align: center;
                font-size: 0.16rem !important;
                color: blue !important;
            }
 
            /* 步进器样式 */
            .van-stepper__input
            {
              width: .5rem;
              height: .4rem;
            }
            .van-stepper__minus,.van-stepper__plus
            {
              width: .5rem;
              height: .4rem;
            }
            /* 单选框大小 */
            .van-radio__icon
            {
                -webkit-box-flex: 0;
                -webkit-flex: none;
                flex: none;
                height: 1em;
                font-size: .3333rem
            }
 
            /* 认证信息多选样式 */
            .rzxx-action-sheet {
              height: 70%;
            }
            .rzxx-action-sheet .checkbox-group-wrapper {
              padding: 16px;
              max-height: calc(100% - 60px);
              overflow-y: auto;
            }
            .action-sheet-footer {
              position: sticky;
              bottom: 0;
              background: white;
              padding: 8px 16px;
              box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
            }
            .confirm-btn {
              border-radius: 20px;
            }
 
            /* 认证信息专用样式 */
            .rzxx-checkbox-group .rzxx-checkbox {
              font-size: 0.5rem !important;
            }
 
            .rzxx-checkbox .van-checkbox__label {
              font-size: 0.5rem !important;
              line-height: 1.2;
            }
 
            .rzxx-checkbox .van-checkbox__icon {
              font-size: 0.5rem !important;
            }
            /* 认证信息多选样式 */
         
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<%--        <van-nav-bar
          :title=formData.releaseNo
          left-text="返回"
          left-arrow
          @click-left="GetBack1()"
        ></van-nav-bar>--%>
            <van-nav-bar
              left-text="返回"
              left-arrow
              @click-left="GetBack1"
              @click-right="showButton = true"
            >
              <template #title>
                <div class="inline-title">
                  <span class="release-no">{{ formData.releaseNo }}</span>
                    <van-tag round plain v-if="formData.fCheckResu === 'N:不合格'" type="danger">不合格</van-tag>
                    <van-tag round plain v-else-if="formData.fCheckResu === 'W:未知'" type="warning">未知</van-tag>
<%--                    <van-tag round plain v-else-if="formData.fCheckResu === '未检验'" type="warning">未检验</van-tag>--%>
                    <van-tag round plain v-else-if="formData.fCheckResu === 'I:进行中'" type="warning">进行中</van-tag>
                    <van-tag round plain v-else-if="formData.fCheckResu === 'Y:合格'" type="success">合格</van-tag>
                    <van-tag round plain v-else type="danger">未知</van-tag>
<%--                  <van-tag  round plain
                    :type="formData.fCheckResu === '不合格' ? 'danger' : 
                          formData.fCheckResu === '检验中' ? 'warning' :
                          formData.fCheckResu === '未检验' ? 'warning' :
                          formData.fCheckResu === '合格' ? 'success' :'danger'"
                    class="status-tag"
                  >
                    {{ formData.fCheckResu }}
                  </van-tag>--%>
                </div>
              </template>
                <template #right>
                    <van-icon name="ellipsis" />
                  </template>
            </van-nav-bar>
        <div class="content-wrapper">
            <van-cell-group >
              <!-- 自定义字段用于显示两个标识 -->
<%--              <van-field label="标识" colon="true" readonly>
                <template #input>
                  <div class="checkbox-container">
                    急料<van-checkbox v-model="formData.urgentFlag" disabled></van-checkbox>
                  </div>
                </template>
              </van-field>--%>
              <van-field label="指令工单" colon="true" v-model="formData.lotNo" readonly ></van-field>
<%--              <van-field label="创建时间" colon="true" v-model="formData.createDate" readonly ></van-field>
              <van-field label="创建人" colon="true" v-model="formData.createBy" readonly ></van-field>--%>
              <van-field label="物料编码" colon="true" v-model="formData.itemNo" readonly ></van-field>
              <van-field label="物料名称" colon="true" v-model="formData.itemName" readonly ></van-field>
                <van-field label="生产车间" colon="true" v-model="formData.departmentName" readonly ></van-field>
                <van-field label="生产线别" colon="true" v-model="formData.xtName" readonly ></van-field>
                <van-field 
                  label="规格型号" 
                  colon
                  v-model="formData.itemModel" 
                  readonly
                  class="wrap-field">
                  <template #input>
                    <div class="wrap-content">{{ formData.itemModel }}</div>
                  </template>
                </van-field>
<%--              <van-field label="数量" colon="true" v-model="formData.fcovertQty" readonly ></van-field>--%>
              <van-field label="不合格描述"   v-if='formData.fCheckResu == "N:不合格"' colon v-model="remarks" readonly class="wrap-field"> 
                  <template #input>
                      <div class="wrap-content">{{ remarks }}</div>
                    </template>
                  <template #button>
                    <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"
                rows="5"
                autosize
                type="textarea"
                maxlength="500"
                placeholder="请输入不合格描述"
                show-word-limit
            />
           </van-dialog>
            </van-cell-group>
        </div>
     <!-- 方式 -->
             <div class="uploader-container">
  <!-- 使用 field 样式包裹 -->
  <div class="van-cell van-field" style="padding: 10px 16px">
    <!-- 左侧标签 -->
    <div class="van-field__label" style="width: 90px">图片上传</div>
    
    <!-- 右侧上传区域 -->
    <div class="van-field__body" style="flex: 1">
      <van-uploader 
        v-model="fileList" 
        :after-read="afterRead"
        style="padding: 8px 0"
        @delete="handleDelete"
      />
    </div>
  </div>
</div>  
<%--            <van-button :loading="ttrre" type="info" loading-text="加载中..." v-if="!isShowTable && formData.fsubmit == 0" @click="submit">检验提交</van-button>
            <van-button type="danger" v-if="!isShowTable && formData.fsubmit == 0" @click="removeXJ">重新加载项目</van-button>--%>
<%--            <van-button :loading="ttrre"  type="info" loading-text="加载中..."  @click="submit">检验提交</van-button>
            <van-button type="danger"  @click="removeXJ">刷新重做</van-button>--%>
          <van-tabs color="#000"  title-active-color="#0283EF" style="padding-bottom: 120px;">
              <van-tab title="检验项目" class="mySolid font">
                  <van-row type="flex" justify="center">
                       <van-col span="10" center class="text-left padding-left">检验项目</van-col>
                      <van-col span="8">已检数/抽检数</van-col>
                      <van-col span="6">检验结果</van-col>
                  </van-row>
                  <van-row  v-for="(item,index) in tableData" :key="index"  type="flex" justify="left">
        
                       <van-col span="10" center class="text-left padding-left" >
                           <van-cell center
                            center 
                            :title="item.fcheckItem" 
                            @click="togglePopup(index)">
                        </van-cell>
                      </van-col>
                      <van-col span="8" >
                            <van-cell center 
                                center :title="item.fenterQty + '/' + item.checkQyt" 
                                @click="togglePopup(index)"></van-cell>
                        </van-col>
                      <van-col center span="6" >
                          <van-cell center
                            center v-if="item.fcheckResu === 'Y:合格'">
                            <van-tag round  plain type="success" 
                                @click="togglePopup(index)">合格</van-tag>   
                          </van-cell>
                          <van-cell center
                          center v-else-if="item.fcheckResu === 'N:不合格'">
                          <van-tag round plain type="danger" 
                              @click="togglePopup(index)">不合格</van-tag>   
                        </van-cell>
                            <van-cell center
                              center v-else >
                              <van-tag round plain type="warning" 
                                  @click="togglePopup(index)">进行中</van-tag>   
                            </van-cell>
                      </van-col>
                      
                </van-row>
              </van-tab>
           </van-tabs>
 
     <van-popup 
          v-model="show" 
          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 ="init"
        >
          <!-- 弹出内容 -->
          <div  class="content-wrapper-jymx">
            <van-tabs v-model="tabActive" sticky color="#000" round  ellipsis="false"  @click="handleTabClick">
                <van-tab v-for="(itm,index) in tableData" round  :key="index" :name="index" >
                    <template #title > {{itm.fcheckItem}} <van-icon v-if="itm.fenterQty >=itm.checkQyt" name="success" color="#1989fa" class="badge-icon" ></van-icon></template>
                    <template>
                          <van-cell-group>
                              <van-field label="项目名称" colon="true" v-model="jymxData.fcheckItem" readonly ></van-field>
                              <van-field label="规格要求" colon="true" v-model="jymxData.fspecRequ" readonly ></van-field>
                              <van-field label="检验工具" colon="true" v-model="jymxData.fcheckTool" readonly ></van-field>
                              <!-- <van-field label="检验数" colon="true" v-model="jymxData.checkQyt" readonly ></van-field> -->
                              <van-field label="下限" colon="true" v-model="jymxData.fdownAllow" readonly ></van-field>
                              <van-field label="标准值" colon="true" v-model="jymxData.fstand" readonly ></van-field>
                              <van-field label="上限" colon="true" v-model="jymxData.fupAllow" readonly ></van-field>
                              <%--<van-field label="AC数" colon="true" v-model="jymxData.facQty" readonly ></van-field>--%>
                              <!-- <van-field label="RE数" colon="true" v-model="jymxData.freQty" readonly ></van-field> -->
                              <!-- <van-field label="样本数" colon="true" v-model="jymxData.ybsl" readonly ></van-field> -->
                              <%--<van-field label="预览结果" colon="true" v-model="jymxData.result" readonly ></van-field>--%>
                              <%--<van-field label="结果录入" colon="true" v-model="resultValue"  placeholder="请输入OK-数字或NG-数字"></van-field>--%>
                              
                              <van-field label="生产日期" v-if="jymxData.fcheckType === '关键部件一致性'" colon readonly class="wrap-field"> 
                                <template #input>
                                    <div class="wrap-content" @click="showScDatePicker = true">{{ jymxData.ipqcrzxxDate || '请选择日期' }}</div>
                                </template>
                                <!-- <template #button>
                                  <van-tag type="primary" style="font-size:15px" @click="showScDatePicker = true">选择</van-tag>
                                </template> -->
                            </van-field>
                            <!-- 只有当 jymxData.fcheckType 等于 "品水测试" 时才显示该字段 -->
                            <van-field v-if="jymxData.fcheckType === '品水测试'" label="是否有异味" colon="true" readonly>
                              <template #input>
                                <van-radio-group 
                                  v-model="jymxData.ipqCpscs"
                                  direction="horizontal"
                                  class="custom-radio-group"
                                  @change="updateCpscs">
                                  <van-radio name="Y" shape="square">有</van-radio>
                                  <van-radio name="N" shape="square">无</van-radio>
                                </van-radio-group>
                              </template>
                            </van-field>
 
                              <van-field 
                                label="使用数量" 
                                colon="true" 
                                v-if="jymxData.fcheckType === '关键部件一致性'">
                                <template #input>
                                  <van-stepper 
                                    v-model="jymxData.ipqcrzxxNum" 
                                    integer 
                                    @change="updateRzxxNum(jymxData.ipqcrzxxNum)"
                                  />
                                </template>
                              </van-field>
 
                              <van-field 
                              label="认证信息" 
                              v-if="jymxData.fcheckType === '关键部件一致性'" 
                              colon 
                              readonly
                              class="multi-line-field">
                                <template #input>
                                  <div class="flex-container">
                                    <div class="wrap-content scrollable-text" style="white-space: pre-line;">
                                      {{ jymxData.ipqcrzxx }}
                                    </div>
                                  </div>
                                </template>
                              </van-field>
                              <van-button 
                              block 
                              type="info" 
                              @click="selectRzxx"
                              :loading="ttrre"
                              loading-text="加载中..."
                              v-if="jymxData.fcheckType === '关键部件一致性'"
                          >认证信息选择</van-button>
                              <!-- <van-tag 
                              type="primary" 
                              style="font-size:15px; flex-shrink:0" 
                              @click="selectRzxx">
                              选择
                            </van-tag> -->
                               <van-action-sheet 
                                  v-model="showRzxx" 
                                  title="请选择认证信息"
                                  class="rzxx-action-sheet">
                                  <div class="checkbox-group-wrapper">
                                    <van-checkbox-group 
                                      v-model="selectedRzxx" 
                                      ref="checkboxGroup"
                                      :max="5"
                                      class="rzxx-checkbox-group">
                                      <van-checkbox 
                                        v-for="(item, index) in rzxxOptions" 
                                        :key="index" 
                                        :name="item.value"
                                        class="rzxx-checkbox">
                                        {{ item.text }}
                                      </van-checkbox>
                                    </van-checkbox-group>
                                  </div>
                                  <div class="action-sheet-footer">
                                    <van-button 
                                      block 
                                      type="primary" 
                                      @click="confirmMultiRzxx"
                                      class="confirm-btn">确认选择</van-button>
                                  </div>
                                </van-action-sheet>
                               
 
                            <van-popup v-model="showScDatePicker" position="bottom">
                              <van-datetime-picker
                                v-model="currentDate"
                                type="date"
                                title="选择生产日期"
                                :min-date="minDate"
                                :max-date="maxDate"
                                @confirm="confirmScDate"
                                @cancel="showScDatePicker = false"
                              />
                            </van-popup>
                               <template #input>
                                    <div class="wrap-content">{{ rzxxValue }}</div>
                                  </template>
                                <template #button>
                                  <van-tag type="primary" style="font-size:15px" @click="selectRzxx()">选择</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> -->
                            <van-button 
                            block 
                            type="info" 
                            @click="openZrPopup"
                            :loading="ttrre"
                            loading-text="加载中..."
                            v-if="jymxData.fcheckType === '制热性能'"
                        >制热性能录入</van-button>
 
                        <van-field label="检测结果" colon="true" readonly >
                          <template #input>
                              <div style="text-align: center;">
                                  <van-tag round plain v-if="jymxData.fcheckResu === 'Y:合格'" type="success">合格</van-tag>
                                  <van-tag round plain v-else-if="jymxData.fcheckResu === 'N:不合格'" type="danger">不合格</van-tag>
                                  <van-tag round plain v-else type="warning">进行中</van-tag>
                              </div>
                          </template>
                       </van-field>
                             
                    </template>
                    <template>
                              <!-- 输入框 -->
                              <div v-if="jymxData.fdownAllow !== '' && jymxData.fupAllow !== ''" class="si-input-box">
                                <div class="si-input__left">
                                  <span class="si-input__label">检验值输入</span>
                                </div>
                                <div v-if="jymxData.fdownAllow !== '' && jymxData.fupAllow !== ''" class="si-status__right">
                                  <van-field
                                      :ref="'inputValue' + tabActive"
                                      v-model="inputValue"
                                      placeholder="请输入检验值"
                                      :border="false"
                                      class="si-input-field"
                                      @input="handleNumberInput3"
                                      @keyup.enter.native="getInputJYZ"
                                  />
                                </div>
                              </div>
                      <!-- 输入框 -->
                      <div v-else class="si-input-box">
                         <div class="si-input__left">
                            <span class="si-input__label">检验值输入</span>
                          </div>
                          <div class="si-status__right-btns">  <!-- 修改容器类名 -->
                            <van-button 
                              type="primary" 
                              size="small"
                              class="status-btn"
                              @click="handleQualified(true)"
                            >
                              合格
                            </van-button>
                            <van-button 
                              type="danger" 
                              size="small"
                              class="status-btn"
                              @click="handleQualified(false)"
                            >
                              不合格
                            </van-button>
                          </div>
                      </div>
                    </template>
                            <van-row type="flex" justify="center">
                                 <van-col span="6">项目</van-col>
                                <van-col span="6">检验值</van-col>
                                <van-col span="6">判定标志</van-col>
                                <van-col span="6">操作</van-col>
                            </van-row>
                            <van-row  v-for="(item,index) in tableMxData.list" :key="index"  type="flex" justify="left">
        
                                 <van-col span="6"  >
                                     <van-cell center
                                      center :title="item.fcheckItem" @click="togglePopup(index)"></van-cell>
                                </van-col>
                                <van-col span="6" >
                                    <van-cell center 
                                        center :title="item.fcheckResu"></van-cell>
                                </van-col>
                                <van-col center span="6" >
                                    <van-cell center
                                      center v-if="item.fstand === '√'">
                                      <van-tag round plain type="success" style="font-size:15px">合格</van-tag>   
                                    </van-cell>
                                    <van-cell center
                                    center v-else-if="item.fstand === '×'">
                                    <van-tag round plain type="danger" style="font-size:15px">不合格</van-tag>   
                                  </van-cell>
                                      <van-cell center
                                        center v-else >
                                        <van-tag round plain type="warning" style="font-size:15px">进行中</van-tag>   
                                      </van-cell>
                                </van-col>
                                <van-col center span="6" >
                                    <van-tag type="danger" style="font-size:15px" @click="deleteDetail13(item.guid)">删除</van-tag> 
                                </van-col>
                          </van-row>
                    
                </van-tab>
            </van-tabs>
          </div>
        </van-popup>
 
 
 
        <!-- 弹出菜单 -->
          <van-popup 
            v-model="showButton" 
            position="bottom"
            :style="{ width: '100%' }"
          >
            <div style="padding: 12px;">
              <van-button 
                block 
                type="info" 
                @click="submit"
                :loading="ttrre"
                loading-text="加载中..."
              >检验提交</van-button>
      
              <van-button 
                block 
                type="danger" 
                @click="removeXJ" 
                style="margin-top: 8px;"
              >刷新重做</van-button>
            </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="info" 
              @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" style="display: flex; align-items: center; justify-content: center;">
                          <div v-for="(header, index) in [headers[0], ...headers.slice(1)]" 
                               :key="index" 
                               :style="`${index === 0 ? 'flex: 2' : 'flex: 2'}; display: flex; align-items: center; justify-content: center;`">
                              {{ header }}
                          </div>
                      </div>
                  </van-cell>
                  
                  <!-- 数据行 -->
                  <div v-for="(row, rowIndex) in tableTbData" :key="rowIndex">
                    <div class="grid-row">
                        <!-- 水温列 -->
                        <div style="flex: 2; text-align: center; display: flex; align-items: center; justify-content: center;">{{ row.temperature }}</div>
                        <!-- 实际温度列 -->
                        <div style="flex: 2">
                          <van-field 
                              class="temperature-input"
                              style="font-size: 0.16rem !important; color: blue !important;"
                              v-model="formTbData.temperatureData[row.temperature].temp"
                              placeholder="输入温度值"
                              type="number"
                          />
                        </div>
                        <!-- 动态列 -->
                        <div v-for="(header, colIndex) in headers.slice(2)" 
                             :key="colIndex" 
                             style="flex: 2">
                            <van-field 
                                class="flow-input"
                                style="font-size: 0.16rem !important; color: blue !important;"
                                v-model="formTbData.temperatureData[row.temperature][header]"
                                :placeholder="`输入${header}值`"
                                type="number"
                            />
                        </div>
                    </div>
                </div>
              </van-cell-group>
          </div>
          <van-button 
          block 
          type="primary" 
          @click="saveTableConfig" 
          style="margin-top: 8px;"
        >保存</van-button>
          </div>
          </van-popup>
 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
    <comloading  v-if="isLoading"></comloading>
  <%--<comback ></comback>--%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
 <script src="../Js/IPQC_SJ/Add.js?<%=111112111156 %>"></script>
</asp:Content>