南骏 池
2025-03-14 2f6c0d658b15685742384057ca4c860d7654dcf8
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
<%@ Page Title="生产领料" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="Scll.aspx.cs" Inherits="H5_Scll" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  <style>
/* 全局样式优化 */
.content-wrapper {
    margin: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
 
/* 表单字段分隔线 */
.van-cell-group .van-cell:not(:last-child)::after {
    border-bottom: 1px solid #eee !important;
    left: 0;
    right: 0;
}
 
.mySolid .van-row {
    border-bottom: .00267rem solid #b1b1b1;
}
 
/* 标签颜色设置 */
.van-field__label {
    color: #7c7a7a;
    flex-basis: 28%;
}
 
/* 数据文本颜色 */
.van-field__value,
.van-field__control {
    color: #333;
}
 
/* 行容器样式 */
.van-tab__panel .van-row {
    padding: 2px 0;
    margin: 2px 0;
    position: relative;
    border-bottom: 1px solid #eee;
}
 
/* 数据列样式 */
.van-col {
    padding: 2px 2px;
    margin: 2px 0;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background: white;
    font-size: 12px;
    line-height: 1.6;
    box-sizing: border-box;
}
 
/* 特殊文本样式 */
.blue-text {
    color: #1989fa;
    font-weight: 500;
}
 
/* 响应式优化 */
@media (max-width: 375px) {
    .van-field__label {
        flex-basis: 30%;
        font-size: 12px;
    }
    .van-col {
        padding: 2px 1px;
        margin: 1px 0;
        font-size: 11px;
    }
    .van-tab__panel .van-row {
        padding: 1px 0;
        margin: 1px 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="daa001"
                    v-model="modeInfo.daa001"
                    label="工单单号"
                    clearable 
                    placeholder="请扫码"
                    :right-icon-size="19"
                    v-focus.noKeyboard
                    @keyup.enter.native="getModel" 
                    autofocus="true">
                </van-field>
                
                <van-field
                    v-model="modeInfo.planNo"
                    label="任务单号"
                    clearable 
                    :right-icon-size="19"
                    placeholder="任务单号"
                    disabled>
                </van-field>
                
                <van-field
                    ref="barcode"
                    v-model="scanInfo.barcode"
                    label="物料条码"
                    clearable 
                    placeholder="请扫码"
                    :right-icon-size="19"
                    v-focus.noKeyboard
                    @keyup.enter.native="getScan">
                </van-field>
                
                <van-field
                    v-model="scanInfo.barcodeNum"
                    label="条码数量"
                    placeholder="条码数量"
                    disabled>
                </van-field>
                
                <van-field
                    ref="splitNum"
                    v-model="scanInfo.splitNum"
                    center
                    clearable
                    label="发料数量"
                    placeholder="发料数量">
                    <van-button 
                        slot="button" 
                        type="info" 
                        size="small"  
                        plain 
                        @click="getChaiFen">
                        条码拆分
                    </van-button>
                </van-field>
            </van-cell-group>
        </div>
 
        <van-tabs color="#000" title-active-color="#0283EF">
            <van-tab title="待发物料" class="mySolid font">
                <van-row>
                    <van-col span="8" class="text-left padding-left">物料</van-col>
                    <van-col span="8" class="text-left padding-left">规格</van-col>
                    <van-col span="3">待扫</van-col>
                    <van-col span="5">推荐库位</van-col>
                </van-row>
                <van-row v-for="(itm,index) in ItemDetail.items" :key="index">
                    <van-col span="8" class="text-left padding-left">
                        <div class="blue-text">{{itm.itemNo}}</div>
                        <div>{{itm.itemName}}</div>
                    </van-col>
                    <van-col span="8" class="text-left padding-left">
                        <div>{{itm.itemModel}}</div>
                    </van-col>
                    <van-col span="3" class="blue-text">{{itm.dsQty}}</van-col>
                    <van-col span="5">{{itm.recoKw}}</van-col>
                </van-row>
            </van-tab>
 
            <van-tab title="已领物料" class="mySolid font">
                <van-row>
                    <van-col span="8" class="text-left padding-left">物料</van-col>
                    <van-col span="8" class="text-left padding-left">规格</van-col>
                    <van-col span="3">需领数</van-col>
                    <van-col span="5">已领数</van-col>
                </van-row>
                <van-row v-for="(itm,index) in ItemDetail.ysitems" :key="index">
                    <van-col span="8" class="text-left padding-left">
                        <div class="blue-text">{{itm.itemNo}}</div>
                        <div>{{itm.itemName}}</div>
                    </van-col>
                    <van-col span="8" class="text-left padding-left">
                        <div>{{itm.itemModel}}</div>
                    </van-col>
                    <van-col span="3">{{itm.fQty}}</van-col>
                    <van-col span="5" class="blue-text">{{itm.sQty}}</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/Scll.js?<%=123336 %>"></script>
</asp:Content>