新框架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
<%@ Page Title="核对送检" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="Cpdbsj.aspx.cs" Inherits="H5_Cpdbsj" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  <style>
    .si-status-box,
    .si-status__left
    {
        background-color: transparent !important; /* 透明背景 */
        border: 1px solid #000 !important; /* 黑色外框 */
        color: #000 !important; /* 全局文字颜色 */
        height: 0.5rem;
    }
 
    .si-status__left::after {
        content: none !important;
    }
 
    .si-status__label,
    .si-status__right {
        font-size: 0.33rem !important; /* 统一字体大小 */
        color: inherit !important; /* 继承父级文字颜色 */
    }
 
 
    /* 居中核心样式 */
.centered-stepper-field {
  .stepper-container {
    display: flex;
    justify-content: center; /* 水平居中 */
    width: 100%;
  }
 
  /* 调整步进器按钮间距 */
  .van-stepper__minus {
    margin-right: 12px;
  }
  .van-stepper__plus {
    margin-left: 12px;
  }
}
 
      /* 新增样式 */
    .button-container {
        display: flex;
        width: 100%;
        gap: 12px; /* 按钮间距 */
        padding: 0 16px; /* 左右留白 */
        box-sizing: border-box;
    }
 
    .action-button {
        flex: 1; /* 等分剩余空间 */
        min-width: 0; /* 防止内容溢出 */
    }
</style>
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <div class="content-wrapper">
        <van-nav-bar
            title="核对送检"
            left-text="返回"
            left-arrow
            @click-left="GoBack()">
        </van-nav-bar>
 
        <div class="mySolid">
            <van-cell-group>
                <van-field 
                    ref="KbBar"
                    v-model="KbBar"
                    label="卡板条码"
                    clearable 
                    placeholder="请扫码"
                    :right-icon-size="19"
                    v-focus.noKeyboard
                    @keyup.enter.native="getKbBarInfo" 
                    autofocus="true">
                </van-field>
 
                <div class="si-status-group">
                  <div class="si-status-box si-status--ok">
                    <div class="si-status__left">
                      <span class="si-status__label">可装数</span>
                    </div>
                    <div  class="si-status__right">{{KbBarInfo.oldqty||0}}</div>
                  </div>
 
                  <div class="si-status-box si-status--error">
                    <div class="si-status__left">
                      <span class="si-status__label">待装数</span>
                    </div>
                    <div class="si-status__right">
                      {{ ((+(KbBarInfo.oldqty || 0) - +(KbBarInfo.ySum || 0)) || 0) }}
                    </div>
                  </div>
                </div>
                
                
                <van-field
                  label="装箱数"
                  class="centered-stepper-field"
                  :model-value="Xvalue.toString()"
                >
                  <template #input>
                    <div class="stepper-container">
                      <van-stepper 
                        v-model="Xvalue"
                        :min="1"
                        :max="99"
                        integer
                        button-size="26px"
                        :disable-input="true"
                      />
                    </div>
                  </template>
                </van-field>
                
                <van-field
                    ref="DAA001"
                    v-model="DAA001"
                    label="指令工单"
                    placeholder="指令工单"
                    autofocus="true"
                    readonly
                    >
                </van-field>
 
                <van-field
                    ref="XBar"
                    v-model="XBar"
                    label="箱条码"
                    placeholder="请扫外箱码"
                    @keyup.enter.native="getXBarInfo" 
                    autofocus="true">
                </van-field>
 
                <van-field
                    ref="LsBar"
                    v-model="LsBar"
                    label="产品条码"
                    placeholder="请扫产品条码"
                    @keyup.enter.native="checkProductBarcode"
                    autofocus="true">
                </van-field>
                
<%--                <van-field
                    ref="LsBar"
                    v-model="LsBar"
                    label="线别"
                    placeholder="请选择线别"
                    autofocus="true">
                </van-field>--%>
               <!-- 修改后的按钮容器 -->
                <div class="button-container">
                  <van-button 
                    type="warning" 
                    class="action-button reset-button"
<%--                      @click.native="handleClear"--%>
                  >重置</van-button>
                  <van-button 
                    type="info" 
                    class="action-button submit-button"
                    @click.native="handleSubmit"
                  >送检</van-button>
                </div>
 
            </van-cell-group>
        </div>
 
        <van-tabs color="#000" title-active-color="#0283EF">
            <van-tab title="箱明细" class="mySolid font">
                <van-row>
                    <van-col span="7" class="text-left padding-left">条码</van-col>
                    <van-col span="7" class="text-left padding-left">物料</van-col>
                    <van-col span="7" class="text-left padding-left">规格</van-col>
                    <van-col span="3" >重量</van-col>
                </van-row>
                <van-row 
                    v-for="(itm,index) in XbarInfo" 
                    :key="index"
                    :style="{ background: itm.is_hedui === '1' ? '#e8f5e9 !important' : 'transparent' }">
                    <van-col span="7" class="text-left padding-left">{{itm.iteM_BARCODE}}</van-col>
                    <van-col span="7" class="text-left padding-left">
                        <div class="blue-text">{{itm.item_no}}</div>
                        <div>{{itm.item_name}}</div>
                    </van-col>
                    <van-col span="7" class="text-left padding-left">
                        <div>{{itm.item_model}}</div>
                    </van-col>
                    <van-col span="3" class="blue-text">{{itm.weight}}</van-col>
                </van-row>
            </van-tab>
 
            <van-tab title="卡板明细" class="mySolid font">
                <van-row>
                    <van-col span="7" class="text-left padding-left">条码</van-col>
                    <van-col span="7" class="text-left padding-left">物料</van-col>
                    <van-col span="7" class="text-left padding-left">规格</van-col>
                    <van-col span="3" >重量</van-col>
                </van-row>
                <van-row v-for="(itm,index) in KbBarMxInfo" :key="index">
                    <van-col span="7" class="text-left padding-left" >{{itm.iteM_BARCODE}}</van-col>
                    <van-col span="7" class="text-left padding-left">
                        <div class="blue-text">{{itm.item_no}}</div>
                        <div>{{itm.item_name}}</div>
                    </van-col>
                    <van-col span="7" class="text-left padding-left">
                        <div>{{itm.item_model}}</div>
                    </van-col>
    
                    <van-col span="3" class="blue-text">{{itm.weight}}</van-col>
                </van-row>
            </van-tab>
        </van-tabs>
    </div>
</asp:Content>
 
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" Runat="Server">
    <comloading v-if="isLoading"></comloading>
</asp:Content>
 
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
    <script src="Js/Cpbdsj.js?<%=1211111141 %>"></script>
</asp:Content>