南骏 池
2025-04-09 1758541a4f33c9ef269b9481d2b4322076702660
1.产品绑定
已添加2个文件
已修改3个文件
262 ■■■■ 文件已修改
H5/Cpbd.aspx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Cpbd.aspx.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Cpdbsj.aspx 158 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Cpdbsj.aspx.cs 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Js/Cpbd.js 82 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/Cpbd.aspx
@@ -1,4 +1,4 @@
<%@ Page Title="产品绑定" Language="C#" MasterPageFile="~/Mst.master" AutoEventWireup="true" CodeFile="Cpbd.aspx.cs" Inherits="H5_Scll" %>
<%@ 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,
@@ -69,7 +69,7 @@
                    v-model="LsBar"
                    label="后盖条码"
                    placeholder="请扫后盖码"
                    @keyup.enter.native="getModel"
<%--                    @keyup.enter.native="getModel" --%>
                    autofocus="true">
                </van-field>
                
@@ -92,7 +92,7 @@
                        slot="button" 
                        type="info" 
                        size="small"  
                        @click="getChaiFen">
                        @click="productBinding">
                        æäº¤
                    </van-button>
                </div>
H5/Cpbd.aspx.cs
@@ -5,7 +5,7 @@
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class H5_Scll : System.Web.UI.Page
public partial class H5_Cpbd : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
H5/Cpdbsj.aspx
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,158 @@
<%@ 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; /* ç»§æ‰¿çˆ¶çº§æ–‡å­—颜色 */
    }
</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="getChaiFen">
                        æäº¤
                    </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?<%=121112 %>"></script>
</asp:Content>
H5/Cpdbsj.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_Cpdbsj : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }
}
H5/Js/Cpbd.js
@@ -56,40 +56,37 @@
                    that.Traceability = [];
                });
        },
        getScan() {
        productBinding() {
            var that = this;
            if (that.modeInfo.daa001.length <= 0) {
                that.$toast.fail("工单单号不能为空!");
            if (that.ZsBar.length <= 0) {
                that.$toast.fail("追溯码不能为空!");
                return;
            }
            if (that.scanInfo.barcode.length * 1 <= 0) {
                that.$toast.fail("物料条码不能为空!");
            if (that.LsBar.length <= 0) {
                that.$toast.fail("后盖码不能为空!");
                return;
            }
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/ScanCode', {
                daa001: that.modeInfo.daa001,
            that.AxiosHttp("post", 'Womdaa/ProductBinding', {
                ZsBar: that.ZsBar,
                LsBar: that.LsBar,
                userName: that.userInfo.loginAccount,
                barcode: that.scanInfo.barcode,
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        // that.scanInfo = json.data.tbBillList;
                        that.$notify({ type: 'success', message: json.message });
                        that.getModel();
                        that.$refs.barcode.focus();
                        that.scanInfo.barcode = null;
                    }
                    else if (json.status == 2) {
                        that.$refs.splitNum.focus();
                        that.scanInfo.splitNum = json.data.tbBillList.splitNum;
                        that.scanInfo.barcodeNum = json.data.tbBillList.barcodeNum;
                        that.$refs.ZsBar.focus();
                        that.ZsBar = null;
                        that.ZsBar = null;
                    }
                    else {
                        that.$toast.fail(json.message);
                        that.$refs.barcode.focus();
                        that.$refs.ZsBar.focus();
                        that.ZsBar = null;
                        that.ZsBar = null;
                    }
                    
                    that.isLoading = false;
@@ -97,56 +94,11 @@
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    console.log(error);
                    that.$refs.barcode.focus();
                    that.$refs.ZsBar.focus();
                    that.ZsBar = null;
                    that.ZsBar = null;
                });
        },
        getChaiFen() {
            //this.isPrinterPopupVisible = true; // æ˜¾ç¤ºå¼¹çª—
            var that = this;
            if (that.modeInfo.daa001.length <= 0) {
                that.$toast.fail("工单单号不能为空!");
                return;
            }
            if (that.scanInfo.splitNum * 1 <= 0) {
                that.$toast.fail("拆分数量不能为空!");
                return;
            }
            if (that.scanInfo.barcode.length * 1 <= 0) {
                that.$toast.fail("物料条码不能为空!");
                return;
            }
            that.isLoading = true;
            that.AxiosHttp("post", 'Womdaa/ScanCodeCF', {
                daa001: that.modeInfo.daa001,
                userName: that.userInfo.loginAccount,
                barcode: that.scanInfo.barcode,
                Num: that.scanInfo.splitNum,
            }, false)
                .then(function (res) {
                    var json = res;
                    if (json.status == 0) {
                        //  that.modeInfo = json.data.tbBillList;
                        that.scanInfo.splitNum = null;
                        that.scanInfo.barcodeNum = null;
                        that.scanInfo.barcode = null;
                        that.$notify({ type: 'success', message: json.message });
                        that.$refs.barcode.focus();
                        that.getModel();
                    }
                    else {
                        that.$toast.fail(json.message);
                    }
                    that.isLoading = false;
                })
                .catch(function (error) {
                    that.isLoading = false;
                    that.$toast.fail("网络错误,请重试!");
                    console.log(error);
                });
        },
        //打印机注释
        //selectPrinter(printer) {
        //    this.selectedPrinter = printer.printerId; // æ›´æ–°é€‰ä¸­çš„æ‰“印机编号