南骏 池
2025-03-12 055959f23d9d1f67beb681f7dec3ac895a19f21f
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
<%@ 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>
    .bg-info {
        background-color:#fff;
    }
    /*.van-popup--bottom {
    height: 50%;*/ /* 设置弹窗高度 */
/*}
 
.printer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;*/ /* 左右对齐 */
    /*width: 100%;
}
 
.printer-info {
    display: flex;
    flex-direction: column;*/ /* 垂直排列编号和IP地址 */
    /*flex-grow: 1;*/ /* 占据剩余空间 */
/*}
 
.printer-id {
    font-size: 16px;
    color: #333;
}
 
.ip-address {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
 
.printer-radio {
    margin-left: 16px;*/ /* 调整与内容的距离 */
/*}*/
      
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <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-popup v-model="isPrinterPopupVisible" position="bottom" round>
    <van-radio-group v-model="selectedPrinter" @change="onPrinterSelected">
        <van-cell-group>
            <van-cell 
                v-for="(printer, index) in printerList" 
                :key="index" 
                clickable 
                @click="selectPrinter(printer)"
            >
                <!-- 自定义内容布局 -->
                <template #default>
                    <div class="printer-item">
                        <div class="printer-info">
                            <span class="printer-id">{{ printer.printerId }}</span>
                            <span class="ip-address">{{ printer.ipAddress }}</span>
                        </div>
                        <van-radio class="printer-radio" :name="printer.printerId"></van-radio>
                    </div>
                </template>
            </van-cell>
        </van-cell-group>
    </van-radio-group>
    <div style="text-align: center; margin-top: 10px;">
        <van-button type="info" size="small" @click="confirmSelection">确认</van-button>
    </div>
</van-popup>--%>
 
 
  <van-tabs color="#000" title-active-color="#0283EF">
  <van-tab title="待发物料" class="mySolid font">
      <van-row>
            <van-col span="12" class="text-left padding-left">物料</van-col>
             <van-col span="6">待扫</van-col>
            <van-col span="6">已扫</van-col>
    </van-row>
    <van-row  v-for="(itm,index) in ItemDetail.daisao" :key="index">
          <van-col span="12"  class="text-left padding-left">
               <div>{{itm.itemNo}}</div>
               <div>{{itm.itemName}}</div>
          </van-col>
          <van-col span="6">{{itm.dab006}}</van-col>
         <van-col span="6">{{itm.dab007}}</van-col>
    </van-row>
  </van-tab>
   <van-tab title="物料总清单" class="mySolid font">
         <van-row>
            <van-col span="12" class="text-left padding-left">物料</van-col>
             <van-col span="6">需领数</van-col>
            <van-col span="6">已领数</van-col>
        </van-row>
        <van-row  v-for="(itm,index) in ItemDetail.totals" :key="index">
           <van-col span="12" class="text-left padding-left">
                <div>{{itm.itemNo}}</div>
                <div>{{itm.itemName}}</div>
           </van-col>
            <van-col span="6">{{itm.dab006}}</van-col>
           <van-col span="6">{{itm.dab007}}</van-col>
       </van-row>
   </van-tab>
</van-tabs>
</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/Scll.js?<%=123334 %>"></script>
</asp:Content>