新框架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
<%@ Page Title="产品绑定" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="Cpbd.aspx.cs" Inherits="H5_Cpbd" %>
<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; /* 继承父级文字颜色 */
    }
</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="ZsBar"
                    v-model="ZsBar"
                    label="追溯条码"
                    clearable 
                    placeholder="请扫码"
                    :right-icon-size="19"
                    v-focus.noKeyboard
                    @keyup.enter.native="getZsBarInfo" 
                    autofocus="true">
                </van-field>
                
                <van-field
                    v-model="UserName"
                    label="作业人员"
                    clearable 
                    :right-icon-size="19"
                    placeholder=""
                    readonly >
                </van-field>
                
                <van-field
                    ref="barcode"
                    v-model="ZsBarInfo.lineName"
                    label="产线"
                    clearable 
                    placeholder="产线名称"
                    :right-icon-size="19"
                    readonly >
                </van-field>
                
                <van-field
                    ref="LsBar"
                    v-model="LsBar"
                    label="后盖条码"
                    placeholder="请扫后盖码"
<%--                    @keyup.enter.native="getModel" --%>
                    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">{{ZsBarInfo.sumQty}}</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">{{ZsBarInfo.finQty}}</div>
                  </div>
 
                    <van-button 
                        slot="button" 
                        type="info" 
                        size="small"  
                        @click="productBinding">
                        提交
                    </van-button>
                </div>
 
            </van-cell-group>
        </div>
 
        <van-tabs color="#000" title-active-color="#0283EF">
            <van-tab title="产品信息" class="mySolid font">
                <van-cell-group >
                  <van-field label="指令单号" colon="true" v-model="ZsBarInfo.daa001" readonly style="background: #ffa53b"></van-field>
                  <van-field label="条码数量" colon="true" v-model="ZsBarInfo.barQty" readonly style="background: #ffa53b" ></van-field>
                  <van-field label="追溯码" colon="true" v-model="ZsBarInfo.zsBarcode" readonly style="background: #ffa53b" ></van-field>
                  <van-field label="产品编码" colon="true" v-model="ZsBarInfo.item_no" readonly style="background: #ffa53b" ></van-field>
                  <van-field label="产品名称" colon="true" v-model="ZsBarInfo.item_name" readonly style="background: #ffa53b" ></van-field>
                  <van-field label="产品规格" colon="true" v-model="ZsBarInfo.item_model" readonly style="background: #ffa53b" ></van-field>
                  <van-field label="前一工序" colon="true" v-model="ZsBarInfo.lastGx" readonly style="background: #ffa53b" ></van-field>
                  <van-field label="当前工序" colon="true" v-model="GX" readonly style="background: #ffa53b" ></van-field>
                </van-cell-group>
            </van-tab>
 
            <van-tab title="生产履历" class="mySolid font">
                <van-row>
                    <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="(itm,index) in Traceability" :key="index">
                    <van-col span="6" >{{itm.useR_NAME}}</van-col>
                    <van-col span="6" >{{itm.line_no}}</van-col>
                    <van-col span="6" class="blue-text">{{itm.processNo}}</van-col>
                    <van-col span="6" >{{itm.checkResult}}</van-col>
                </van-row>
            </van-tab>
 
            <van-tab title="已绑条码" class="mySolid font">
                <van-row>
                    <van-col span="5">人员</van-col>
                    <van-col span="5">产线</van-col>
                    <van-col span="5">工序</van-col>
                    <van-col span="4">良品</van-col>
                    <van-col span="5">不良品</van-col>
                </van-row>
                <van-row v-for="(itm,index) in Traceability" :key="index">
                    <van-col span="5" >{{itm.fQty}}</van-col>
                    <van-col span="5" >{{itm.fQty}}</van-col>
                    <van-col span="5" class="blue-text">{{itm.fQty}}</van-col>
                    <van-col span="4" >{{itm.fQty}}</van-col>
                    <van-col span="5" >{{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/Cpbd.js?<%=1211121 %>"></script>
</asp:Content>