南骏 池
2 天以前 5101c2382a43d898aee718537160289091321383
1.返工绑定-PDA
已修改2个文件
已添加3个文件
308 ■■■■■ 文件已修改
H5/Fgbd.aspx 159 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Fgbd.aspx.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/Fgbd.js 129 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/My.aspx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
UserLogin.aspx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Fgbd.aspx
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,159 @@

<%@ Page Title="返工绑定" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="Fgbd.aspx.cs" Inherits="H5_Fgbd" %>
<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="HgBar"
                    v-model="HgBar"
                    label="后盖条码"
                    clearable
                    placeholder="请扫后盖条码"
                    :right-icon-size="19"
                    v-focus.noKeyboard
                    @keyup.enter.native="getHgBarInfo"
                    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="HgBarInfo.lineName"
                    label="产线"
                    clearable
                    placeholder="产线名称"
                    :right-icon-size="19"
                    readonly >
                </van-field>
                <van-field
                    ref="FgBar"
                    v-model="FgBar"
                    label="返工追溯码"
                    placeholder="请扫箱条码"
                   @keyup.enter.native="ScanFgbd"
                    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">{{HgBarInfo.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">{{HgBarInfo.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="HgBarInfo.daa001" readonly style="background: #ffa53b"></van-field>
                  <van-field label="条码数量" colon="true" v-model="HgBarInfo.barQty" readonly style="background: #ffa53b" ></van-field>
                  <van-field label="追溯码" colon="true" v-model="HgBarInfo.zsBarcode" readonly style="background: #ffa53b" ></van-field>
                  <van-field label="产品编码" colon="true" v-model="HgBarInfo.item_no" readonly style="background: #ffa53b" ></van-field>
                  <van-field label="产品名称" colon="true" v-model="HgBarInfo.item_name" readonly style="background: #ffa53b" ></van-field>
                  <van-field label="产品规格" colon="true" v-model="HgBarInfo.item_model" readonly style="background: #ffa53b" ></van-field>
<%--                  <van-field label="前一工序" colon="true" v-model="HgBarInfo.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/Fgbd.js?<%=111 %>"></script>
</asp:Content>
H5/Fgbd.aspx.cs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class H5_Fgbd : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
}
H5/Js/Fgbd.js
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,129 @@
var vm = new Vue({
    el: '#app',
    data: function () {
        return {
            isLoading: false,
            userInfo: {
                "loginGuid": '',
                "loginAccount": '',
            },
            HgBar: "",//追溯条码
            FgBar: "",//后盖流水条码
            UserName: Cookies.get('loginName'),//用户名称
            HgBarInfo: [],
            Traceability: [],
            GX: "G006:内箱核对",
        }
    },
    mounted() {
        var that = this;
        this.userInfo = {
            loginGuid: this.GetLoginInfor().loginGuid,
            loginAccount: this.GetLoginInfor().loginAccount,
        };
    },
    methods: {
        getHgBarInfo() {
            if (this.isLoading) {
                return;
            }
            var that = this;
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/getHgBarInfo', {
                Xt: that.GX,
                Zsbarcode: that.HgBar
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        that.HgBarInfo = json.data.tbBillList.zsBarInfo[0];
                        that.Traceability = json.data.tbBillList.traceability;
                        that.$refs.FgBar.focus();
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$refs.HgBar.focus();
                        that.HgBar = "";
                        that.HgBarInfo = [];
                        that.Traceability = [];
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$refs.HgBar.focus();
                    that.HgBar = "";
                    that.HgBarInfo = [];
                    that.Traceability = [];
                });
        },
        ScanFgbd() {
            if (this.isLoading) {
                return;
            }
            var that = this;
            if (that.HgBar.length <= 0) {
                that.$toast.fail("后盖码不能为空!");
                return;
            }
            if (that.FgBar.length <= 0) {
                that.$toast.fail("箱码不能为空!");
                return;
            }
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/ScanFgbd', {
                HgBar: that.HgBar,//流水码/后盖码
                FgBar: that.FgBar,//返工追溯码
                userName: that.userInfo.loginAccount,
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        // that.scanInfo = json.data.tbBillList;
                        that.$notify({ type: 'success', message: json.message });
                        that.$refs.HgBar.focus();
                        that.HgBar = null;
                        that.FgBar = null;
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$refs.HgBar.focus();
                        that.HgBar = null;
                        that.FgBar = null;
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    that.$refs.HgBar.focus();
                    that.HgBar = null;
                    that.FgBar = null;
                });
        },
        //打印机注释
        //selectPrinter(printer) {
        //    this.selectedPrinter = printer.printerId; // æ›´æ–°é€‰ä¸­çš„æ‰“印机编号
        //},
        //confirmSelection() {
        //    if (this.selectedPrinter) {
        //        alert(`您选择了打印机:${this.selectedPrinter}`);
        //        // åœ¨è¿™é‡Œå¤„理选择结果,例如调用接口或更新状态
        //        this.isPrinterPopupVisible = false; // å…³é—­å¼¹çª—
        //    } else {
        //        alert('请选择一个打印机!');
        //    }
        //},
        //onPrinterSelected(value) {
        //    console.log('当前选中的打印机编号:', value);
        //},
    }
})
H5/My.aspx
@@ -31,14 +31,14 @@
>
        </van-field>--%>
        <van-field
<%--        <van-field
   readonly
   is-link
   v-model="cardType"
   label="打印配置"
   placeholder=""
   @click="goMsg()"
 ></van-field>
 ></van-field>--%>
           
  <van-field
    readonly
UserLogin.aspx
@@ -47,7 +47,7 @@
            </van-form>
        </div>
    </div>
       <div class=" margin-lg-top font-sm text-right font-remark" style="position:absolute;bottom:10px;right:10px;">技术支持:宁波广深科技</div>
       <div class=" margin-lg-top font-sm text-right font-remark" style="position:absolute;bottom:10px;right:10px;">版权所有:宁波广深科技</div>
</template>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder3" runat="Server">