wangyi
2026-01-12 99c39ae46a7c869a02fc8009b8ec5365f9508fb9
Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-VUEUI
1个文件已添加
29个文件已修改
1个文件已删除
3434 ■■■■■ 已修改文件
.env.development 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.production 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/static/grf/物料条码.grf 364 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/static/grf/物料条码_old.grf 93 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/permission.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/index.js 76 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/modules/permission.js 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/FbStepFoldOutBillList/fbStepFoldOutBillList.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/FbStepFoldinBillList/fbStepFoldinBillList.vue 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchase/cgPoInStockBill/cgPoInStockBill.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/basicModeling/Gy_MaterialPackingRelation_Edit.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/basicModeling/Gy_MouldFile.vue 52 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/basicModeling/Gy_MouldFileList.vue 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/Sc_MouldInRequestBillEdit.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/Sc_MouldInRequestBillList.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/Sc_MouldMoveStockRequestBillEdit.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/Sc_MouldMoveStockRequestBillList.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/Sc_MouldOutRequestBillEdit.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/Sc_MouldOutRequestBillList.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/Sc_MouldProdBackBillEdit.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/Sc_MouldProdBackBillList.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/Sc_MouldProdMoveBillEdit.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/Sc_MouldProdMoveBillList.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/Sc_MouldProdOutBillEdit.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/Sc_MouldProdOutBillList.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/component/Sc_MouldInRequestBill.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/component/Sc_MouldMoveStockRequestBill.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/scMould/warehouse/component/Sc_MouldOutRequestBill.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong.vue 1677 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong_AutoLogin.vue 828 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/warehouse/transfer/Kf_MoveStockRequestBillEdit.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.development
@@ -5,9 +5,12 @@
ENV = 'development'
# æ™ºäº‘迈思L-MOM管理系统/开发环境
# VUE_APP_BASE_API = 'http://localhost:81/API/'
VUE_APP_BASE_API = 'http://47.96.97.237/API/'
VUE_APP_BASE_API = 'http://localhost:81/API/'
# VUE_APP_BASE_API = 'http://47.96.97.237/API/'
# VUE_APP_BASE_API = 'http://220.189.218.155:9010/API/'
# VUE_APP_BASE_API = 'http://localhost:8082/LuBaoAPI/'
# VUE_APP_BASE_API = 'http://192.168.1.11/API/'
#杜贺
# VUE_APP_BASE_API = http://localhost:8082/API/
# è·¯ç”±æ‡’加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
.env.production
@@ -4,8 +4,14 @@
# ç”Ÿäº§çŽ¯å¢ƒé…ç½®
ENV = 'production'
VUE_APP_BASE_API = http://192.168.0.236:9010/API/
# å®æ³¢ å››ç»´å°”
# VUE_APP_BASE_API = http://192.168.0.236:9010/API/
# VUE_APP_BASE_API = http://220.189.218.155:9010/API/
# VUE_APP_BASE_API = http://47.96.97.237/API/ # æ™ºäº‘迈思L-MOM管理系统/生产环境
# ä½™å§š é”¦éš† æ™ºèƒ½å®¶å±…
# VUE_APP_BASE_API = http://192.168.1.11/API/
# æ™ºäº‘迈思L-MOM管理系统/生产环境
VUE_APP_BASE_API = http://47.96.97.237/API/
#杜贺
# VUE_APP_BASE_API = http://localhost:8082/API/
# è·¯ç”±æ‡’加载 
VUE_CLI_BABEL_TRANSPILE_MODULES = true
public/static/grf/ÎïÁÏÌõÂë.grf
@@ -1,29 +1,22 @@
{
    "Version":"6.8.9.5",
    "Title":"1a.简单表格",
    "Author":"锐浪报表软件",
    "Description":"演示一个最基本的列表报表。",
    "Version":"6.8.2.2",
    "Font":{
        "Name":"微软雅黑",
        "Size":90000,
        "Size":120000,
        "Weight":400,
        "Charset":134
    },
    "Printer":{
        "Size":256,
        "Width":9,
        "Width":10,
        "Height":6,
        "LeftMargin":0,
        "TopMargin":0,
        "RightMargin":0,
        "BottomMargin":0
        "LeftMargin":0.1,
        "TopMargin":0.1,
        "RightMargin":0.1,
        "BottomMargin":0.1
    },
    "DetailGrid":{
        "CenterView":true,
        "PrintAdaptMethod":"ResizeToFit",
        "Recordset":{
            "ConnectionString":"xml",
            "QuerySQL":"销售出库单.txt",
            "Field":[
                {
                    "Name":"条码编号"
@@ -32,10 +25,22 @@
                    "Name":"物料代码"
                },
                {
                    "Name":"物料名称"
                },
                {
                    "Name":"规格型号"
                },
                {
                    "Name":"物料名称"
                    "Name":"客户订单号"
                },
                {
                    "Name":"采购跟踪号"
                },
                {
                    "Name":"生产日期",
                    "Type":"DateTime",
                    "Format":"yyyy-MM-dd",
                    "DBFieldName":"检验日期"
                },
                {
                    "Name":"供应商"
@@ -44,106 +49,118 @@
                    "Name":"数量"
                },
                {
                    "Name":"批号"
                    "Name":"产品型号"
                },
                {
                    "Name":"条码日期",
                    "Type":"DateTime",
                    "Format":"yyyy-MM-dd"
                    "Name":"计量单位"
                }
            ]
        },
        "Column":[
            {
                "Name":"单据号",
                "Width":8.96938
                "Name":"Column1",
                "Width":9.97479
            }
        ],
        "ColumnContent":{
            "Height":5.79438,
            "ColumnContentCell":[
                {
                    "Column":"单据号",
                    "Font":{
                        "Name":"微软雅黑",
                        "Size":90000,
                        "Weight":400,
                        "Charset":134
                    },
                    "Column":"Column1",
                    "FreeCell":true,
                    "Control":[
                        {
                            "Type":"StaticBox",
                            "Name":"StaticBox1",
                            "Left":0.396875,
                            "Top":0.211667,
                            "Width":8.20208,
                            "Height":2.98979
                        },
                        {
                            "Type":"FreeGrid",
                            "Name":"FreeGrid1",
                            "Left":0.185208,
                            "Top":0.238125,
                            "Top":0.1,
                            "Border":{
                                "Styles":"[DrawLeft|DrawTop|DrawRight|DrawBottom]"
                            },
                            "ColumnCount":4,
                            "RowCount":6,
                            "RowCount":8,
                            "Font":{
                                "Name":"微软雅黑",
                                "Size":120000,
                                "Bold":true,
                                "Charset":134
                            },
                            "FreeGridColumn":[
                                {
                                    "index":1,
                                    "Width":1.56104
                                    "Width":2.4
                                },
                                {
                                    "index":2,
                                    "Width":3.43958
                                    "Width":3.88938
                                },
                                {
                                    "index":3,
                                    "Width":1.11125
                                    "Width":0.9525
                                },
                                {
                                    "index":4,
                                    "Width":2.54
                                    "Width":1.24354
                                },
                                {
                                    "index":5,
                                    "Width":1.21708
                                }
                            ],
                            "FreeGridRow":[
                                {
                                    "index":1,
                                    "Height":0.714375
                                    "Height":0.529167
                                },
                                {
                                    "index":2,
                                    "Height":1.11125
                                    "Height":0.635
                                },
                                {
                                    "index":3,
                                    "Height":1.00542
                                    "Height":0.661458
                                },
                                {
                                    "index":4,
                                    "Height":0.978958
                                },
                                {
                                    "index":5,
                                    "Height":0.767292
                                },
                                {
                                    "index":5,
                                    "Height":0.661458
                                },
                                {
                                    "index":6,
                                    "Height":0.635
                                },
                                {
                                    "index":7,
                                    "Height":0.820208
                                },
                                {
                                    "index":8,
                                    "Height":0.79375
                                }
                            ],
                            "FreeGridCell":[
                                {
                                    "row":1,
                                    "col":1,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":105000,
                                        "Bold":true,
                                        "Charset":134
                                    },
                                    "TextAlign":"MiddleCenter",
                                    "Text":"物料编码"
                                    "Text":"编码(P)"
                                },
                                {
                                    "row":1,
                                    "col":2,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":105000,
                                        "Weight":400,
                                        "Charset":134
                                    },
                                    "Text":"[#物料代码#]"
                                },
                                {
@@ -154,91 +171,227 @@
                                        {
                                            "Type":"Barcode",
                                            "Name":"Barcode1",
                                            "Left":0.211667,
                                            "Top":0.211667,
                                            "Width":3.20146,
                                            "Height":3.99521,
                                            "Center":"Both",
                                            "Left":0.396875,
                                            "Top":0.185208,
                                            "Width":2.59292,
                                            "Height":2.19604,
                                            "BarcodeType":"QRCode",
                                            "CaptionPosition":"None",
                                            "Text":"[#条码编号#]",
                                            "Font":{
                                                "Name":"微软雅黑",
                                                "Size":75000,
                                                "Size":82500,
                                                "Weight":400,
                                                "Charset":134
                                            }
                                        }
                                    ],
                                    "ColSpan":2,
                                    "RowSpan":5
                                    "ColSpan":3,
                                    "RowSpan":4
                                },
                                {
                                    "row":2,
                                    "col":1,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Bold":true,
                                        "Charset":134
                                    },
                                    "TextAlign":"MiddleCenter",
                                    "Text":"规格型号"
                                    "Text":"生产日期"
                                },
                                {
                                    "row":2,
                                    "col":2,
                                    "WordWrap":true,
                                    "Text":"[#规格型号#]"
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Weight":400,
                                        "Charset":134
                                    },
                                    "Text":"[#生产日期#]"
                                },
                                {
                                    "row":3,
                                    "col":1,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Bold":true,
                                        "Charset":134
                                    },
                                    "TextAlign":"MiddleCenter",
                                    "Text":"物料名称"
                                    "Text":"客户订单号"
                                },
                                {
                                    "row":3,
                                    "col":2,
                                    "WordWrap":true,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Weight":400,
                                        "Charset":134
                                    },
                                    "Text":"[#客户订单号#]"
                                },
                                {
                                    "row":4,
                                    "col":1,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Bold":true,
                                        "Charset":134
                                    },
                                    "TextAlign":"MiddleCenter",
                                    "Text":"采购跟踪号"
                                },
                                {
                                    "row":4,
                                    "col":2,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Weight":400,
                                        "Charset":134
                                    },
                                    "Text":"[#采购跟踪号#]"
                                },
                                {
                                    "row":5,
                                    "col":1,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Bold":true,
                                        "Charset":134
                                    },
                                    "TextAlign":"MiddleCenter",
                                    "Text":"名称(N)"
                                },
                                {
                                    "row":5,
                                    "col":2,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Weight":400,
                                        "Charset":134
                                    },
                                    "Text":"[#物料名称#]"
                                },
                                {
                                    "row":4,
                                    "col":1,
                                    "TextAlign":"MiddleCenter",
                                    "Text":"供应商"
                                },
                                {
                                    "row":4,
                                    "col":2,
                                    "WordWrap":true,
                                    "Text":"[#供应商#]"
                                },
                                {
                                    "row":5,
                                    "col":1,
                                    "TextAlign":"MiddleCenter",
                                    "Text":"批号"
                                },
                                {
                                    "row":5,
                                    "col":2,
                                    "Text":"[#批号#]"
                                },
                                {
                                    "row":6,
                                    "col":1,
                                    "col":3,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Bold":true,
                                        "Charset":134
                                    },
                                    "TextAlign":"MiddleCenter",
                                    "Text":"数量"
                                },
                                {
                                    "row":6,
                                    "col":2,
                                    "row":5,
                                    "col":4,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Weight":400,
                                        "Charset":134
                                    },
                                    "TextAlign":"MiddleCenter",
                                    "Text":"[#数量#]"
                                },
                                {
                                    "row":6,
                                    "col":3,
                                    "row":5,
                                    "col":5,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":105000,
                                        "Weight":400,
                                        "Charset":134
                                    },
                                    "TextAlign":"MiddleCenter",
                                    "Text":"日期"
                                    "Text":"[#计量单位#]"
                                },
                                {
                                    "row":6,
                                    "col":4,
                                    "Text":"[#条码日期#]"
                                    "col":1,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Bold":true,
                                        "Charset":134
                                    },
                                    "TextAlign":"MiddleCenter",
                                    "Text":"规格型号"
                                },
                                {
                                    "row":6,
                                    "col":2,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Weight":400,
                                        "Charset":134
                                    },
                                    "WordWrap":true,
                                    "Text":"[#规格型号#]",
                                    "ColSpan":4
                                },
                                {
                                    "row":7,
                                    "col":1,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Bold":true,
                                        "Charset":134
                                    },
                                    "TextAlign":"MiddleCenter",
                                    "Text":"产品型号"
                                },
                                {
                                    "row":7,
                                    "col":2,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Weight":400,
                                        "Charset":134
                                    },
                                    "WordWrap":true,
                                    "Text":"[#产品型号#]",
                                    "ColSpan":4
                                },
                                {
                                    "row":8,
                                    "col":1,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Bold":true,
                                        "Charset":134
                                    },
                                    "TextAlign":"MiddleCenter",
                                    "Text":"供应商"
                                },
                                {
                                    "row":8,
                                    "col":2,
                                    "Font":{
                                        "Name":"微软雅黑",
                                        "Size":90000,
                                        "Weight":400,
                                        "Charset":134
                                    },
                                    "WordWrap":true,
                                    "Text":"[#供应商#]",
                                    "ColSpan":4
                                }
                            ]
                        }
@@ -247,28 +400,15 @@
            ]
        },
        "ColumnTitle":{
            "BackColor":"C0C0C0",
            "Height":0,
            "Font":{
                "Name":"微软雅黑",
                "Size":90000,
                "Bold":true,
                "Charset":134
            },
            "RepeatStyle":"OnPage",
            "ColumnTitleCell":[
                {
                    "GroupTitle":false,
                    "Column":"单据号",
                    "BackColor":"FFFFFF",
                    "TextAlign":"MiddleCenter"
                    "Column":"Column1",
                    "TextAlign":"MiddleCenter",
                    "Text":"Column1"
                }
            ]
        }
    },
    "ReportHeader":[
        {
            "Height":0
        }
    ]
    }
}
public/static/grf/ÎïÁÏÌõÂë_old.grf
File was deleted
src/permission.js
@@ -23,6 +23,7 @@
  "/FbStepFoldinBillList",
  "/FbStepFoldOutBillList",
  "/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong",
  "/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong_AutoLogin",
]; // no redirect whitelist
const isWhiteList = (path) => {
src/router/index.js
@@ -164,6 +164,14 @@
  },
  //#endregion
  
  //#region æ¡ç ç”Ÿæˆ_锦隆_自动登录
  {
    path: "/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong_AutoLogin",
    component: () => import("@/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong_AutoLogin.vue"),
    hidden: true,
  },
  //#endregion
  //#region æ¡ç ä¸»æŒ¡
  {
    path: "/warehouse/barcodeMaster/Gy_BarCodeBillList",
@@ -840,9 +848,9 @@
  //#endregion
  //#endregion
  //#region å™¨å…·ç®¡ç†
  //#region å™¨å…·åŸºç¡€èµ„æ–™
  //#region å™¨å…·ä¸»æ¡£ç»´æŠ¤
  //#region å®¹å™¨ç®¡ç†
  //#region å®¹å™¨åŸºç¡€èµ„æ–™
  //#region å®¹å™¨ä¸»æ¡£ç»´æŠ¤
  {
    path: "/scMould/basicModeling/Gy_MouldFileList",
    component: Layout,
@@ -858,13 +866,13 @@
        component: () =>
          import("@/views/scMould/basicModeling/Gy_MouldFileList.vue"),
        name: "Gy_MouldFileList",
        meta: { title: "器具主档维护", activeMenu: "scMould/basicModeling" },
        meta: { title: "容器主档维护", activeMenu: "scMould/basicModeling" },
      },
    ],
  },
  //#endregion
  //#region å™¨å…·ä¸»æ¡£
  //#region å®¹å™¨ä¸»æ¡£
  {
    path: "/scMould/basicModeling/Gy_MouldFile",
    component: Layout,
@@ -880,7 +888,7 @@
        component: () =>
          import("@/views/scMould/basicModeling/Gy_MouldFile.vue"),
        name: "Gy_MouldFile",
        meta: { title: "器具主档", activeMenu: "scMould/basicModeling" },
        meta: { title: "容器主档", activeMenu: "scMould/basicModeling" },
      },
    ],
  },
@@ -914,8 +922,8 @@
  //#endregion
  //#endregion
  //#region å™¨å…·ä»“存管理
  //#region å™¨å…·é¢†ç”¨ç”³è¯·å•列表
  //#region å®¹å™¨ä»“存管理
  //#region å®¹å™¨é¢†ç”¨ç”³è¯·å•列表
  {
    path: "/scMould/warehouse/Sc_MouldOutRequestBillList",
    component: Layout,
@@ -932,13 +940,13 @@
        component: () =>
          import("@/views/scMould/warehouse/Sc_MouldOutRequestBillList"),
        name: "Sc_MouldOutRequestBillList",
        meta: { title: "器具领用申请单维护", activeMenu: "scMould/warehouse" },
        meta: { title: "容器领用申请单维护", activeMenu: "scMould/warehouse" },
      },
    ],
  },
  //#endregion
  //#region å™¨å…·é¢†ç”¨ç”³è¯·å•
  //#region å®¹å™¨é¢†ç”¨ç”³è¯·å•
  {
    path: "/scMould/warehouse/Sc_MouldOutRequestBillEdit",
    component: Layout,
@@ -954,13 +962,13 @@
        component: () =>
          import("@/views/scMould/warehouse/Sc_MouldOutRequestBillEdit"),
        name: "Sc_MouldOutRequestBillEdit",
        meta: { title: "器具领用申请单编辑", activeMenu: "scMould/warehouse" },
        meta: { title: "容器领用申请单编辑", activeMenu: "scMould/warehouse" },
      },
    ],
  },
  //#endregion
  //#region å™¨å…·é¢†ç”¨å‡ºåº“单列表
  //#region å®¹å™¨é¢†ç”¨å‡ºåº“单列表
  {
    path: "/scMould/warehouse/Sc_MouldProdOutBillList",
    component: Layout,
@@ -976,13 +984,13 @@
        component: () =>
          import("@/views/scMould/warehouse/Sc_MouldProdOutBillList"),
        name: "Sc_MouldProdOutBillList",
        meta: { title: "器具领用出库单维护", activeMenu: "scMould/warehouse" },
        meta: { title: "容器领用出库单维护", activeMenu: "scMould/warehouse" },
      },
    ],
  },
  //#endregion
  //#region å™¨å…·é¢†ç”¨å‡ºåº“单
  //#region å®¹å™¨é¢†ç”¨å‡ºåº“单
  {
    path: "/scMould/warehouse/Sc_MouldProdOutBillEdit",
    component: Layout,
@@ -998,13 +1006,13 @@
        component: () =>
          import("@/views/scMould/warehouse/Sc_MouldProdOutBillEdit"),
        name: "Sc_MouldProdOutBillEdit",
        meta: { title: "器具领用出库单编辑", activeMenu: "scMould/warehouse" },
        meta: { title: "容器领用出库单编辑", activeMenu: "scMould/warehouse" },
      },
    ],
  },
  //#endregion
  //#region å™¨å…·å…¥åº“申请单列表
  //#region å®¹å™¨å…¥åº“申请单列表
  {
    path: "/scMould/warehouse/Sc_MouldInRequestBillList",
    component: Layout,
@@ -1021,13 +1029,13 @@
        component: () =>
          import("@/views/scMould/warehouse/Sc_MouldInRequestBillList"),
        name: "Sc_MouldInRequestBillList",
        meta: { title: "器具入库申请单维护", activeMenu: "scMould/warehouse" },
        meta: { title: "容器入库申请单维护", activeMenu: "scMould/warehouse" },
      },
    ],
  },
  //#endregion
  //#region å™¨å…·å…¥åº“申请单
  //#region å®¹å™¨å…¥åº“申请单
  {
    path: "/scMould/warehouse/Sc_MouldInRequestBillEdit",
    component: Layout,
@@ -1043,13 +1051,13 @@
        component: () =>
          import("@/views/scMould/warehouse/Sc_MouldInRequestBillEdit"),
        name: "Sc_MouldInRequestBillEdit",
        meta: { title: "器具入库申请单编辑", activeMenu: "scMould/warehouse" },
        meta: { title: "容器入库申请单编辑", activeMenu: "scMould/warehouse" },
      },
    ],
  },
  //#endregion
  //#region å™¨å…·é¢†ç”¨é€€åº“单列表
  //#region å®¹å™¨é¢†ç”¨é€€åº“单列表
  {
    path: "/scMould/warehouse/Sc_MouldProdBackBillList",
    component: Layout,
@@ -1066,13 +1074,13 @@
        component: () =>
          import("@/views/scMould/warehouse/Sc_MouldProdBackBillList"),
        name: "Sc_MouldProdBackBillList",
        meta: { title: "器具领用退库单维护", activeMenu: "scMould/warehouse" },
        meta: { title: "容器领用退库单维护", activeMenu: "scMould/warehouse" },
      },
    ],
  },
  //#endregion
  //#region å™¨å…·é¢†ç”¨é€€åº“单
  //#region å®¹å™¨é¢†ç”¨é€€åº“单
  {
    path: "/scMould/warehouse/Sc_MouldProdBackBillEdit",
    component: Layout,
@@ -1088,13 +1096,13 @@
        component: () =>
          import("@/views/scMould/warehouse/Sc_MouldProdBackBillEdit"),
        name: "Sc_MouldProdBackBillEdit",
        meta: { title: "器具领用退库单编辑", activeMenu: "scMould/warehouse" },
        meta: { title: "容器领用退库单编辑", activeMenu: "scMould/warehouse" },
      },
    ],
  },
  //#endregion
  //#region å™¨å…·è°ƒæ‹¨ç”³è¯·å•列表
  //#region å®¹å™¨è°ƒæ‹¨ç”³è¯·å•列表
  {
    path: "/scMould/warehouse/Sc_MouldMoveStockRequestBillList",
    component: Layout,
@@ -1111,13 +1119,13 @@
        component: () =>
          import("@/views/scMould/warehouse/Sc_MouldMoveStockRequestBillList"),
        name: "Sc_MouldMoveStockRequestBillList",
        meta: { title: "器具调拨申请单维护", activeMenu: "scMould/warehouse" },
        meta: { title: "容器调拨申请单维护", activeMenu: "scMould/warehouse" },
      },
    ],
  },
  //#endregion
  //#region å™¨å…·è°ƒæ‹¨ç”³è¯·å•
  //#region å®¹å™¨è°ƒæ‹¨ç”³è¯·å•
  {
    path: "/scMould/warehouse/Sc_MouldMoveStockRequestBillEdit",
    component: Layout,
@@ -1133,13 +1141,13 @@
        component: () =>
          import("@/views/scMould/warehouse/Sc_MouldMoveStockRequestBillEdit"),
        name: "Sc_MouldMoveStockRequestBillEdit",
        meta: { title: "器具调拨申请单编辑", activeMenu: "scMould/warehouse" },
        meta: { title: "容器调拨申请单编辑", activeMenu: "scMould/warehouse" },
      },
    ],
  },
  //#endregion
  //#region å™¨å…·ç›´æŽ¥è°ƒæ‹¨å•列表
  //#region å®¹å™¨ç›´æŽ¥è°ƒæ‹¨å•列表
  {
    path: "/scMould/warehouse/Sc_MouldProdMoveBillList",
    component: Layout,
@@ -1156,13 +1164,13 @@
        component: () =>
          import("@/views/scMould/warehouse/Sc_MouldProdMoveBillList"),
        name: "Sc_MouldProdMoveBillList",
        meta: { title: "器具直接调拨单维护", activeMenu: "scMould/warehouse" },
        meta: { title: "容器直接调拨单维护", activeMenu: "scMould/warehouse" },
      },
    ],
  },
  //#endregion
  //#region å™¨å…·ç›´æŽ¥è°ƒæ‹¨å•
  //#region å®¹å™¨ç›´æŽ¥è°ƒæ‹¨å•
  {
    path: "/scMould/warehouse/Sc_MouldProdMoveBillEdit",
    component: Layout,
@@ -1178,7 +1186,7 @@
        component: () =>
          import("@/views/scMould/warehouse/Sc_MouldProdMoveBillEdit"),
        name: "Sc_MouldProdMoveBillEdit",
        meta: { title: "器具直接调拨单编辑", activeMenu: "scMould/warehouse" },
        meta: { title: "容器直接调拨单编辑", activeMenu: "scMould/warehouse" },
      },
    ],
  },
@@ -1782,6 +1790,12 @@
        name: "IframeGyProperty",
        meta: { title: "辅助属性", noCache: true, noLoading: true },
      },
      {
        path: "BarCode_JinLong",
        component: () => import("@/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong"), // æ¡ç ç”Ÿæˆ_锦隆
        name: "IframeBarCode_JinLong",
        meta: { title: "条码生成_锦隆", noCache: true, noLoading: true },
      },
    ],
  },
  //#endregion
src/store/modules/permission.js
@@ -1126,7 +1126,7 @@
              icon: "build",
              link: null,
              noCache: false,
              title: "器具管理",
              title: "容器管理",
            },
            hidden: false,
            name: "ScMould",
@@ -1151,7 +1151,7 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "器具领用出库单维护",
                      title: "容器领用出库单维护",
                    },
                    component: () =>
                      import(
@@ -1166,7 +1166,7 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "器具领用出库单",
                      title: "容器领用出库单",
                    },
                    component: () =>
                      import(
@@ -1181,7 +1181,7 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "器具领用退库单维护",
                      title: "容器领用退库单维护",
                    },
                    component: () =>
                      import(
@@ -1196,7 +1196,7 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "器具领用退库单",
                      title: "容器领用退库单",
                    },
                    component: () =>
                      import(
@@ -1211,7 +1211,7 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "器具直接调拨单维护",
                      title: "容器直接调拨单维护",
                    },
                    component: () =>
                      import(
@@ -1226,7 +1226,7 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "器具直接调拨单",
                      title: "容器直接调拨单",
                    },
                    component: () =>
                      import(
@@ -1241,7 +1241,7 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "器具入库申请单维护",
                      title: "容器入库申请单维护",
                    },
                    component: () =>
                      import(
@@ -1256,7 +1256,7 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "器具入库申请单",
                      title: "容器入库申请单",
                    },
                    component: () =>
                      import(
@@ -1271,7 +1271,7 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "器具领用申请单维护",
                      title: "容器领用申请单维护",
                    },
                    component: () =>
                      import(
@@ -1286,7 +1286,7 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "器具领用申请单",
                      title: "容器领用申请单",
                    },
                    component: () =>
                      import(
@@ -1301,7 +1301,7 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "器具调拨申请单维护",
                      title: "容器调拨申请单维护",
                    },
                    component: () =>
                      import(
@@ -1316,7 +1316,7 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "器具调拨申请单",
                      title: "容器调拨申请单",
                    },
                    component: () =>
                      import(
@@ -1346,7 +1346,7 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "器具主档",
                      title: "容器主档",
                    },
                    component: () =>
                      import("@/views/scMould/basicModeling/Gy_MouldFile.vue"),
@@ -1359,7 +1359,7 @@
                      icon: "build",
                      link: null,
                      noCache: false,
                      title: "器具主档维护",
                      title: "容器主档维护",
                    },
                    component: () =>
                      import(
src/views/FbStepFoldOutBillList/fbStepFoldOutBillList.vue
@@ -175,6 +175,7 @@
                    <el-button size="mini" @click="get_PrintReport">打印</el-button>
                    <el-button size="mini" @click="get_Refresh">刷新</el-button>
                    <el-button size="mini" @click="get_BarCodeDetail">条码明细</el-button>
                    <el-button type="primary" icon="el-icon-printer" size="mini" :disabled="single" @click="get_PackStockDetail">包装容器出入库明细</el-button>
                </el-col>
            </el-row>
@@ -210,7 +211,7 @@
            :visible.sync="barcodeDetailVisible"
            ref="barcodeDetail"
            />
        <PackStockDetail :visible.sync="packStockDetailShow" ref="packStockDetail"/>
        
    </div>
</template>
@@ -221,23 +222,23 @@
import FbStepFoldinBillEdit from '@/views/FbStepFoldOutBillList/fbStepFoldOutBillListEdit'
import BarCodeDetail from '@/views/component/BarCodeDetail'
import dayjs from 'dayjs';
import PackStockDetail from '@/views/component/PackStockDetail'
export default {
    name: 'FbStepFoldinBillList',
        components: {
            FbStepFoldinBillEdit,
            BarCodeDetail
            BarCodeDetail,PackStockDetail
            
        },
    data() {
        return {
            rowForm: {},
            editDialogVisible:false,
            operationType:'1',
            currentId : '',
              barcodeDetailVisible: false,// æ¡ç æ˜Žç»†å¼¹çª—显示控制
            packStockDetailShow:false,
            query: {
                HInitTimeCycle: 29,
                HBeginDate: '',
@@ -670,6 +671,10 @@
        },
        onSelectionChange(selection) {
            this.selectedRows = selection;
            this.ids = selection.map(item => item.hmainid)
            console.log('选择的行:', selection,"选择的ids:",this.ids);
            if (selection.length > 0)
            this.rowForm = selection[0]
        },
        onBillNoClick(row) {
            const table = this.$refs.mainTable;
@@ -691,11 +696,24 @@
            this.$message.warning('请选择一行数据查看条码明细!')
            return
        }
        this.barcodeDetailVisible = true
        this.$nextTick(() => {
            this.$refs.barcodeDetail.open(this.selectedRows[0])
        })
        },
         //#region åŒ…装容器出入库明细
            get_PackStockDetail() {
      // if (this.selectedRow.length !== 1) {
      //   this.$message.warning('请选择一行数据查看条码明细!')
      //   return
      // }
            this.packStockDetailShow = true
            this.$nextTick(() => {
                this.$refs.packStockDetail.open(this.rowForm)
            })
        },
    //#endregion
        get_ViewReport() {
            if (this.selectedRows.length !== 1) { 
                this.$message.warning('请选择一行数据打印!'); 
src/views/FbStepFoldinBillList/fbStepFoldinBillList.vue
@@ -175,7 +175,9 @@
                    <el-button size="mini" @click="get_PrintReport">打印</el-button>
                    <el-button size="mini" @click="get_Refresh">刷新</el-button>
                    <el-button size="mini" @click="get_BarCodeDetail">条码明细</el-button>
                    <el-button type="primary" icon="el-icon-printer" size="mini" :disabled="single" @click="get_PackStockDetail">包装容器出入库明细</el-button>
                </el-col>
            </el-row>
            <el-table
@@ -184,11 +186,11 @@
                border
                style="width:100%"
                @row-click="onRowClick"
                @selection-change="onSelectionChange"
                @selection-change="onSelectionChange"
                :loading="loading"
                ref="mainTable"
            >
                <el-table-column type="selection" width="55" />
                <el-table-column type="selection" width="55"  />
                <el-table-column v-for="(col, idx) in tableColumns" :key="idx" :prop="col.field" :label="col.title" :width="col.width" :formatter="col.formatter">
                    <template v-if="col.field === '单据号'" #default="scope">
                        <span style="color: blue; cursor: pointer;" @click="onBillNoClick(scope.row)">{{ scope.row.单据号 }}</span>
@@ -210,6 +212,8 @@
            :visible.sync="barcodeDetailVisible"
            ref="barcodeDetail"
            />
               <!-- åŒ…装容器出入库明细 -->
      <PackStockDetail :visible.sync="packStockDetailShow" ref="packStockDetail"/>
    </div>
</template>
@@ -218,21 +222,23 @@
//import FbStepFoldinBillEdit from './fbStepFoldinBillEdit'
import FbStepFoldinBillEdit from '@/views/FbStepFoldinBillList/fbStepFoldinBillListEdit'
import BarCodeDetail from '@/views/component/BarCodeDetail'
import PackStockDetail from '@/views/component/PackStockDetail'
export default {
    name: 'FbStepFoldinBillList',
        components: {
            FbStepFoldinBillEdit,
            BarCodeDetail
            BarCodeDetail,
            PackStockDetail
        },
    data() {
        return {
            rowForm: {},
            editDialogVisible:false,
            operationType:'1',
            currentId : '',
              barcodeDetailVisible: false,// æ¡ç æ˜Žç»†å¼¹çª—显示控制
            packStockDetailShow:false,                            //包装容器出入库明细容器显示标记
            query: {
                HInitTimeCycle: 29,
                HBeginDate: '',
@@ -293,7 +299,7 @@
            this.set_InitGrid();
            this.ColFilter();
            this.get_DefaultModule();
        },
        },
        setSelect_HInitTimeCycle() {
            this.query.HInitTimeCycle = 29;
        },
@@ -666,6 +672,11 @@
        },
        onSelectionChange(selection) {
            this.selectedRows = selection;
            this.ids = selection.map(item => item.hmainid)
            console.log('选择的行:', selection,"选择的ids:",this.ids);
            if (selection.length > 0)
            this.rowForm = selection[0]
        },
        onBillNoClick(row) {
            const table = this.$refs.mainTable;
@@ -708,6 +719,18 @@
            const hmainid = this.selectedRows.map(r => (r.hmainid * (10 ** 8)) + (r.hsubid || 0)).toString();
            window.open('../../BaseSet/SRM_OpenTmpList.html?linterid=' + hmainid + '&MyMsg=' + hmainid + '&Type=HSeOutStockBillList', '_blank');
        },
         //#region åŒ…装容器出入库明细
            get_PackStockDetail() {
      // if (this.selectedRow.length !== 1) {
      //   this.$message.warning('请选择一行数据查看条码明细!')
      //   return
      // }
            this.packStockDetailShow = true
            this.$nextTick(() => {
                this.$refs.packStockDetail.open(this.rowForm)
            })
        },
    //#endregion
        get_Refresh() {
            this.onReset();
        },
src/views/purchase/cgPoInStockBill/cgPoInStockBill.vue
@@ -257,6 +257,9 @@
        >
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-plus" size="mini" @click="onClickMethod_pushBarCodeProduce(row = rowForm, OperationType = 4)" :disabled="disabledFlag_pushBarCode">下推条码</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="primary"
          icon="el-icon-edit"
@@ -492,6 +495,12 @@
          v-if="rowHideShow"
        />
      </el-dialog>
       <!-- ä¸‹æŽ¨æ¡ç  -->
      <el-dialog title="下推条码" :visible.sync="openFlag_pushBarCode" width="1480px" class="xsckdBox" append-to-body :before-close="close">
        <div style="height: 70vh" v-if="openFlag_pushBarCode">
          <iframe :src="iframeUrl" frameborder="0" width="100%" height="100%"></iframe>
        </div>
      </el-dialog>
      <!-- ç¼–辑 -->
      <el-dialog
        title="编辑收料通知单"
@@ -625,6 +634,7 @@
      HModName: "cgPoInStockBill",
      editShow: false,
      openEdit: false,
      openFlag_pushBarCode: false,              //下推条码-弹窗显示标记
      totalNameList: [],
      tableShow: true,
      openPrintList: false,
@@ -685,6 +695,7 @@
      lastSelectedRowIndex: null, // ç”¨äºŽè®°å½•上次点击的行索引
      lastSelectedRow: null, // ä¸Šä¸€æ¬¡é€‰ä¸­çš„行
      selectedRow: null, // å½“前选中的行
      disabledFlag_pushBarCode:true,        //下推条码 æŒ‰é’®ç¦ç”¨æ ‡è®°
      rowForm: {},
      checkedSysZb: [],
      editData: [], //生产资料子表
@@ -1201,6 +1212,9 @@
      this.multiple = !selection.length;
      if (!this.single) {
        this.rowForm = selection[0];
        this.disabledFlag_pushBarCode = false;
      }else{
        this.disabledFlag_pushBarCode = true;
      }
    },
    //打开侧边搜索弹窗
@@ -1361,6 +1375,8 @@
    close() {
      this.tableShow = true;
      this.openEdit = false;
      this.openFlag_pushBarCode = false;
      this.disabledFlag_pushBarCode = true;
      this.getList();
    },
    //打开新增组件弹窗
@@ -1372,6 +1388,13 @@
        this.editShow = true;
      });
    },
    //下推生成条码
    onClickMethod_pushBarCodeProduce(row, OperationType) {
      this.iframeUrl = `/iframe/BarCode_JinLong?OperationType=${OperationType}&HSourceInterID=${row.hmainid}&HSourceEntryID=${row.hsubid}&HSourceBillType=${row.HBillType}&HSourceBillNo=${row.单据号}`;
      this.$nextTick(() => {
        this.openFlag_pushBarCode = true;
      });
    },
    //打开修改组件弹窗
    handleEdit(row, OperationType, copyType) {
      this.iframeUrl = `/iframe/CgPoInStockBillEdit?HInterID=${row.hmainid}&OperationType=${OperationType}&copyType=${copyType}`;
src/views/scMould/basicModeling/Gy_MaterialPackingRelation_Edit.vue
@@ -814,7 +814,7 @@
                this.gyCustomerShow = true
                this.openData = true
            } else if (num == 8) {
                this.dialogTitle = '器具列表'
                this.dialogTitle = '容器列表'
                this.gyMouldShow = true
                this.openData = true
            }
src/views/scMould/basicModeling/Gy_MouldFile.vue
@@ -5,7 +5,7 @@
      <el-button type="primary" @click="close">退 å‡º</el-button>
      <!-- <el-button @click="cancel">取 æ¶ˆ</el-button> -->
    </div>
    <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">器具档案编辑</div>
    <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">容器档案编辑</div>
    <el-form ref="form" :model="form" :rules="rules" label-width="140px">
      <el-tabs v-model="activeName" type="card">
        <el-tab-pane label="基本信息" name="first">
@@ -30,25 +30,25 @@
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="器具编号" prop="HMouldNo" v-show="isShow">
                <el-input v-model="form.HMouldNo" placeholder="请输入器具编号" />
              <el-form-item label="容器编号" prop="HMouldNo" v-show="isShow">
                <el-input v-model="form.HMouldNo" placeholder="请输入容器编号" />
              </el-form-item>
            </el-col>
          </el-row>
          <el-row>
            <el-col :span="6">
              <el-form-item label="器具名称" prop="HName" v-show="isShow">
                <el-input v-model="form.HName" placeholder="请输入器具名称" />
              <el-form-item label="容器名称" prop="HName" v-show="isShow">
                <el-input v-model="form.HName" placeholder="请输入容器名称" />
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="器具规格" prop="HModel" v-show="isShow">
                <el-input v-model="form.HModel" placeholder="请输入器具规格" />
              <el-form-item label="容器规格" prop="HModel" v-show="isShow">
                <el-input v-model="form.HModel" placeholder="请输入容器规格" />
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="器具型号" prop="HModel2" v-show="isShow">
                <el-input v-model="form.HModel2" placeholder="请输入器具型号" />
              <el-form-item label="容器型号" prop="HModel2" v-show="isShow">
                <el-input v-model="form.HModel2" placeholder="请输入容器型号" />
              </el-form-item>
            </el-col>
            <el-col :span="6">
@@ -88,8 +88,8 @@
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="器具分类" prop="HMouleTypeName" v-show="isHide">
                <el-input v-model="form.HMouleTypeName" placeholder="请输入器具分类" disabled>
              <el-form-item label="容器分类" prop="HMouleTypeName" v-show="isHide">
                <el-input v-model="form.HMouleTypeName" placeholder="请输入容器分类" disabled>
                  <el-button slot="append" icon="el-icon-search"></el-button>
                </el-input>
              </el-form-item>
@@ -129,7 +129,7 @@
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="器具状态" prop="HMouldStatus" v-show="isHide">
              <el-form-item label="容器状态" prop="HMouldStatus" v-show="isHide">
                <el-select v-model="form.HMouldStatus" placeholder="请选择">
                  <el-option label="在库" value="在库" />
                  <el-option label="上机" value="上机" />
@@ -232,14 +232,14 @@
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="器具类型" prop="HMouldClass" v-show="isHide">
              <el-form-item label="容器类型" prop="HMouldClass" v-show="isHide">
                <el-select v-model="form.HMouldClass" placeholder="请选择">
                  <el-option label="模具" value="模具" />
                  <el-option label="工装" value="工装" />
                  <el-option label="夹具" value="夹具" />
                  <el-option label="刀具" value="刀具" />
                  <el-option label="检具" value="检具" />
                  <el-option label="周转器具" value="周转器具" />
                  <el-option label="周转容器" value="周转容器" />
                  <el-option label="其他" value="其他" />
                </el-select>
              </el-form-item>
@@ -266,7 +266,7 @@
              </el-form-item>
            </el-col>
            <el-col :span="6">
              <el-form-item label="器具可用状态" prop="HMouldUseStatus" v-show="isHide">
              <el-form-item label="容器可用状态" prop="HMouldUseStatus" v-show="isHide">
                <el-select v-model="form.HMouldUseStatus" placeholder="请选择">
                  <el-option label="正常" value="正常" />
                  <el-option label="异常" value="异常" />
@@ -389,7 +389,7 @@
        </el-tab-pane>
      </el-tabs>
      <el-tabs type="border-card" v-show="isHide">
        <el-tab-pane label="子器具">
        <el-tab-pane label="子容器">
          <div style="margin-bottom: 10px;">
            <el-button type="success" plain icon="el-icon-plus" @click="handleAddSysZb(type = 'edit')"
              size="mini">增加一行</el-button>
@@ -400,7 +400,7 @@
            @selection-change="handleTableZbEdit" :row-class-name="rowSysZbIndex" show-summary border>
            <el-table-column type="selection" width="55" align="center" />
            <el-table-column align="center" label="序号" type="index" width="80" />
            <el-table-column align="center" label="子器具">
            <el-table-column align="center" label="子容器">
              <template slot-scope="scope">
                <el-input v-model="scope.row.HMouldFileName" />
              </template>
@@ -992,6 +992,7 @@
        HDeleteDate: '',
        HInComDate: moment(new Date()).format('YYYY-MM-DD'),
        DateTime: moment(new Date()).format('YYYY-MM-DD'),
        HCalibrationDate: moment(new Date()).format('YYYY-MM-DD'),
      }
      this.editData = []
      this.editBtData = []
@@ -1065,6 +1066,7 @@
      axios.get(this.baseURL + "/Gy_Mould_Edit/xg", {
        params: { 'HInterID': rowHmainid }
      }).then(response => {
        console.log(response.data)
        if (response.data.count == 1) {
          var result = response.data
          var data = response.data.data[0]
@@ -1137,12 +1139,16 @@
          this.form.HMouldUseStatus = data.模具可用状态
          this.form.HNextMainDate = data.校正日期
          this.form.HUSEORGID = data.HUSEORGID
          this.form.HMouldLength = data.HMouldLength
          this.form.HMouldWidth = data.HMouldWidth
          this.form.HMouldHeight = data.HMouldHeight
          this.form.HMouldFoldHeight = data.HMouldFoldHeight
          this.form.HTransPackFlag = data.HTransPackFlag == 0 ? false : true
          this.form.HSendPackFlag = data.HSendPackFlag == 0 ? false : true
          // this.form.HMouldLength = data.HMouldLength
          // this.form.HMouldWidth = data.HMouldWidth
          // this.form.HMouldHeight = data.HMouldHeight
          // this.form.HMouldFoldHeight = data.HMouldFoldHeight
          this.form.HTransPackFlag = data.发货容器标记
          this.form.HSendPackFlag = data.周转容器标记
          this.form.HMouldFoldHeight = data.折叠高度
            this.form.HMouldLength = data.长
          this.form.HMouldWidth = data.宽
          this.form.HMouldHeight = data.高
          for (var i = 0; i < result.data.length; i++) {
            this.editData.push(
              {
src/views/scMould/basicModeling/Gy_MouldFileList.vue
@@ -2,11 +2,11 @@
  <div style="padding: 10px; position: relative;">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="98px" class="searchBox">
      <el-row>
        <el-form-item label="器具编号" prop="HNumber" style="margin-left: 100px;">
          <el-input v-model="queryParams.HNumber" placeholder="请输入器具编号" @keyup.enter.native="handleQuery" />
        <el-form-item label="容器编号" prop="HNumber" style="margin-left: 100px;">
          <el-input v-model="queryParams.HNumber" placeholder="请输入容器编号" @keyup.enter.native="handleQuery" />
        </el-form-item>
        <el-form-item label="器具名称" prop="HName">
          <el-input v-model="queryParams.HName" placeholder="请输入器具名称" @keyup.enter.native="handleQuery" />
        <el-form-item label="容器名称" prop="HName">
          <el-input v-model="queryParams.HName" placeholder="请输入容器名称" @keyup.enter.native="handleQuery" />
        </el-form-item>
        <el-form-item label="组织">
          <el-select v-model="queryParams.HUSEORGID" placeholder="请选择">
@@ -528,14 +528,14 @@
            , { field: '单据号', title: '单据号', sort: true, width: 120 }
            , { field: '条码编号', title: '条码编号', sort: true, width: 120 }
            , { field: '对应ERP物料编码', title: '物料编号', sort: true, width: 120 }
            , { field: '模具编号', title: '器具编号', sort: true, width: 120 }
            , { field: '模具名称', title: '器具名称', sort: true, width: 120 }
            , { field: '模具型号', title: '器具型号', sort: true, width: 120 }
            , { field: '模具品类', title: '器具品类', sort: true, width: 120 }
            , { field: '模具状态', title: '器具状态', sort: true, width: 120 }
            , { field: '模具编号', title: '容器编号', sort: true, width: 120 }
            , { field: '模具名称', title: '容器名称', sort: true, width: 120 }
            , { field: '模具型号', title: '容器型号', sort: true, width: 120 }
            , { field: '模具品类', title: '容器品类', sort: true, width: 120 }
            , { field: '模具状态', title: '容器状态', sort: true, width: 120 }
            , { field: '模具可用状态', title: '模具可用状态', sort: true, width: 140 }
            , { field: '穴数', title: '穴数', sort: true, width: 120 }
            , { field: '对应ERP物料编码', title: '器具ERP物料', sort: true, width: 140 }
            , { field: '对应ERP物料编码', title: '容器ERP物料', sort: true, width: 140 }
            , { field: '直径', title: '直径', sort: true, width: 120 }
            , { field: '辅助属性', title: '辅助属性', sort: true, width: 120 }
            , { field: '辅助属性2', title: '辅助属性2', sort: true, width: 120 }
@@ -560,8 +560,8 @@
            , { field: '当前仓位', title: '当前仓位', sort: true, width: 120 }
            , { field: '虚拟仓类型', title: '虚拟仓类型', sort: true, width: 120 }
            , { field: '虚拟仓', title: '虚拟仓', sort: true, width: 120 }
            , { field: '当前模具规格', title: '当前器具规格', sort: true, width: 140 }
            , { field: '初始模具规格', title: '初始器具规格', sort: true, width: 140 }
            , { field: '当前模具规格', title: '当前容器规格', sort: true, width: 140 }
            , { field: '初始模具规格', title: '初始容器规格', sort: true, width: 140 }
            , { field: '当前设计寿命', title: '当前设计寿命', sort: true, totalRow: true, width: 140 }
            , { field: '初始设计寿命', title: '初始设计寿命', sort: true, totalRow: true, width: 140 }
            , { field: '使用寿命', title: '使用寿命', sort: true, totalRow: true, width: 120 }
src/views/scMould/warehouse/Sc_MouldInRequestBillEdit.vue
@@ -7,7 +7,7 @@
      <el-button type="primary" @click="close">退 å‡º</el-button>
      <!-- <el-button @click="cancel">取 æ¶ˆ</el-button> -->
    </div>
    <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">器具入库申请单</div>
    <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">容器入库申请单</div>
    <el-form ref="form" :model="form" :rules="rules" label-width="90px">
      <el-tabs v-model="activeName" type="card">
        <el-tab-pane label="基本信息" name="first">
@@ -189,13 +189,13 @@
            @selection-change="handleTableZbEdit" :row-class-name="rowSysZbIndex" show-summary border>
            <el-table-column type="selection" width="55" align="center" />
            <el-table-column align="center" label="序号" type="index" width="80" />
            <el-table-column align="center" label="器具代码" width="120">
            <el-table-column align="center" label="容器代码" width="120">
              <template slot-scope="scope">
                <el-input v-model="scope.row.HMaterNumber" placeholder="请输入" @keyup.native.f7="openDataDialog(8, scope.row)"
                  @dblclick.native="openDataDialog(8, scope.row)" />
              </template>
            </el-table-column>
            <el-table-column align="center" label="器具名称" width="120">
            <el-table-column align="center" label="容器名称" width="120">
              <template slot-scope="scope">
                <span>{{ scope.row.HMaterName }}</span>
              </template>
@@ -308,7 +308,7 @@
      gyEmployeeShow: false,//销售员数据组件
      gySupplierShow: false,//供应商数据组件
      gyCustomerShow: false,//客户数据组件
      gyMouldShow: false,//器具数据组件
      gyMouldShow: false,//容器数据组件
      gyStockPlaceShow: false,//仓位数据组件
      eHWHType:1,//仓库弹窗区分标志
      empType:1,//职员弹窗区分标志
@@ -881,7 +881,7 @@
          this.editData.map((item, index) => {
            if (!item.HMaterID) {
              fhck = true
              this.$modal.msgError("第" + (index + 1) + "行:器具未选择!");
              this.$modal.msgError("第" + (index + 1) + "行:容器未选择!");
            }else if(!item.HQty || item.HQty == 0){
              fhck = true
              this.$modal.msgError("第" + (index + 1) + "行:数量不能为0!");
@@ -992,7 +992,7 @@
        this.gyCustomerShow = true
        this.openData = true
      }  else if (num == 8) {
        this.dialogTitle = '器具列表'
        this.dialogTitle = '容器列表'
        this.gyMouldShow = true
        this.openData = true
      }  else if (num == 9) {
src/views/scMould/warehouse/Sc_MouldInRequestBillList.vue
@@ -40,8 +40,8 @@
            <el-form-item label="部门信息" prop="HDept">
              <el-input v-model="queryParams.HDept" placeholder="请输入部门信息" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="器具代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入器具代码" @keyup.enter.native="handleQuery" />
            <el-form-item label="容器代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入容器代码" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="往来单位" prop="HSupName">
              <el-input v-model="queryParams.HSupName" placeholder="请输入往来单位" @keyup.enter.native="handleQuery" />
@@ -137,7 +137,7 @@
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-tickets" size="mini"
          @click="handlePush(row = rowForm, OperationType = 4)">下推(器具领用退库单)</el-button>
          @click="handlePush(row = rowForm, OperationType = 4)">下推(容器领用退库单)</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete">删除
@@ -199,12 +199,12 @@
          v-if="rowHideShow" />
      </el-dialog>
      <!-- ç¼–辑 -->
      <el-dialog title="编辑器具入库申请单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
      <el-dialog title="编辑容器入库申请单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
        <edit :OperationType=OperationType :linterid=this.rowForm.hmainid :HSouceBillType=this.rowForm.HSourceBillType
          :copyType="copyType" @editClose="editClose" v-if="editShow" />
      </el-dialog>
      <!-- ä¸‹æŽ¨ -->
      <el-dialog title="下推器具领用退库单" :visible.sync="openPush" width="1480px" append-to-body class="xsckdBox" @close="close">
      <el-dialog title="下推容器领用退库单" :visible.sync="openPush" width="1480px" append-to-body class="xsckdBox" @close="close">
        <push :OperationType='4' :propsData='pushData' :HSouceBillType=BillType
         @editClose="pushClose" v-if="pushShow" />
      </el-dialog>
src/views/scMould/warehouse/Sc_MouldMoveStockRequestBillEdit.vue
@@ -7,7 +7,7 @@
      <el-button type="primary" @click="close">退 å‡º</el-button>
      <!-- <el-button @click="cancel">取 æ¶ˆ</el-button> -->
    </div>
    <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">器具调拨申请单</div>
    <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">容器调拨申请单</div>
    <el-form ref="form" :model="form" :rules="rules" label-width="90px">
      <el-tabs v-model="activeName" type="card">
        <el-tab-pane label="基本信息" name="first">
@@ -206,13 +206,13 @@
            @selection-change="handleTableZbEdit" :row-class-name="rowSysZbIndex" show-summary border>
            <el-table-column type="selection" width="55" align="center" />
            <el-table-column align="center" label="序号" type="index" width="80" />
            <el-table-column align="center" label="器具代码" width="120">
            <el-table-column align="center" label="容器代码" width="120">
              <template slot-scope="scope">
                <el-input v-model="scope.row.HMaterNumber" placeholder="请输入" @keyup.native.f7="openDataDialog(8, scope.row)"
                  @dblclick.native="openDataDialog(8, scope.row)" />
              </template>
            </el-table-column>
            <el-table-column align="center" label="器具名称" width="120">
            <el-table-column align="center" label="容器名称" width="120">
              <template slot-scope="scope">
                <span>{{ scope.row.HMaterName }}</span>
              </template>
@@ -358,7 +358,7 @@
      gyEmployeeShow: false,//销售员数据组件
      gySupplierShow: false,//供应商数据组件
      gyCustomerShow: false,//客户数据组件
      gyMouldShow: false,//器具数据组件
      gyMouldShow: false,//容器数据组件
      gyStockPlaceShow: false,//仓位数据组件
      eHWHType:1,//仓库弹窗区分标志
      empType:1,//职员弹窗区分标志
@@ -976,7 +976,7 @@
          this.editData.map((item, index) => {
            if (!item.HMaterID) {
              fhck = true
              this.$modal.msgError("第" + (index + 1) + "行:器具未选择!");
              this.$modal.msgError("第" + (index + 1) + "行:容器未选择!");
            }else if(!item.HQty || item.HQty == 0){
              fhck = true
              this.$modal.msgError("第" + (index + 1) + "行:数量不能为0!");
@@ -1087,7 +1087,7 @@
        this.gyCustomerShow = true
        this.openData = true
      }  else if (num == 8) {
        this.dialogTitle = '器具列表'
        this.dialogTitle = '容器列表'
        this.gyMouldShow = true
        this.openData = true
      }  else if (num == 9) {
src/views/scMould/warehouse/Sc_MouldMoveStockRequestBillList.vue
@@ -40,8 +40,8 @@
            <el-form-item label="部门信息" prop="HDept">
              <el-input v-model="queryParams.HDept" placeholder="请输入部门信息" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="器具代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入器具代码" @keyup.enter.native="handleQuery" />
            <el-form-item label="容器代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入容器代码" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="往来单位" prop="HSupName">
              <el-input v-model="queryParams.HSupName" placeholder="请输入往来单位" @keyup.enter.native="handleQuery" />
@@ -137,7 +137,7 @@
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-tickets" size="mini"
          @click="handlePush(row = rowForm, OperationType = 4)">下推(器具直接调拨单)</el-button>
          @click="handlePush(row = rowForm, OperationType = 4)">下推(容器直接调拨单)</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete">删除
@@ -189,12 +189,12 @@
          v-if="rowHideShow" />
      </el-dialog>
      <!-- ç¼–辑 -->
      <el-dialog title="编辑器具调拨申请单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
      <el-dialog title="编辑容器调拨申请单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
        <edit :OperationType=OperationType :linterid=this.rowForm.hmainid :HSouceBillType=this.rowForm.HSourceBillType
          :copyType="copyType" @editClose="editClose" v-if="editShow" />
      </el-dialog>
      <!-- ä¸‹æŽ¨ -->
      <el-dialog title="下推器具直接调拨单" :visible.sync="openPush" width="1480px" append-to-body class="xsckdBox" @close="close">
      <el-dialog title="下推容器直接调拨单" :visible.sync="openPush" width="1480px" append-to-body class="xsckdBox" @close="close">
        <push :OperationType='4' :propsData='pushData' :HSouceBillType=BillType
         @editClose="pushClose" v-if="pushShow" />
      </el-dialog>
src/views/scMould/warehouse/Sc_MouldOutRequestBillEdit.vue
@@ -7,7 +7,7 @@
      <el-button type="primary" @click="close">退 å‡º</el-button>
      <!-- <el-button @click="cancel">取 æ¶ˆ</el-button> -->
    </div>
    <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">器具领用申请单</div>
    <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">容器领用申请单</div>
    <el-form ref="form" :model="form" :rules="rules" label-width="90px">
      <el-tabs v-model="activeName" type="card">
        <el-tab-pane label="基本信息" name="first">
@@ -206,13 +206,13 @@
            @selection-change="handleTableZbEdit" :row-class-name="rowSysZbIndex" show-summary border>
            <el-table-column type="selection" width="55" align="center" />
            <el-table-column align="center" label="序号" type="index" width="80" />
            <el-table-column align="center" label="器具代码" width="120">
            <el-table-column align="center" label="容器代码" width="120">
              <template slot-scope="scope">
                <el-input v-model="scope.row.HMaterNumber" placeholder="请输入" @keyup.native.f7="openDataDialog(8, scope.row)"
                  @dblclick.native="openDataDialog(8, scope.row)" />
              </template>
            </el-table-column>
            <el-table-column align="center" label="器具名称" width="120">
            <el-table-column align="center" label="容器名称" width="120">
              <template slot-scope="scope">
                <span>{{ scope.row.HMaterName }}</span>
              </template>
@@ -333,7 +333,7 @@
      gyEmployeeShow: false,//销售员数据组件
      gySupplierShow: false,//供应商数据组件
      gyCustomerShow: false,//客户数据组件
      gyMouldShow: false,//器具数据组件
      gyMouldShow: false,//容器数据组件
      gyStockPlaceShow: false,//仓位数据组件
      ScICMOBillShow: false,//生产数据组件
      eHWHType:1,//仓库弹窗区分标志
@@ -972,7 +972,7 @@
          this.editData.map((item, index) => {
            if (!item.HMaterID) {
              fhck = true
              this.$modal.msgError("第" + (index + 1) + "行:器具未选择!");
              this.$modal.msgError("第" + (index + 1) + "行:容器未选择!");
            }else if(!item.HQty || item.HQty == 0){
              fhck = true
              this.$modal.msgError("第" + (index + 1) + "行:数量不能为0!");
@@ -1084,7 +1084,7 @@
        this.gyCustomerShow = true
        this.openData = true
      }  else if (num == 8) {
        this.dialogTitle = '器具列表'
        this.dialogTitle = '容器列表'
        this.gyMouldShow = true
        this.openData = true
      }  else if (num == 9) {
src/views/scMould/warehouse/Sc_MouldOutRequestBillList.vue
@@ -40,8 +40,8 @@
            <el-form-item label="部门信息" prop="HDept">
              <el-input v-model="queryParams.HDept" placeholder="请输入部门信息" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="器具代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入器具代码" @keyup.enter.native="handleQuery" />
            <el-form-item label="容器代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入容器代码" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="往来单位" prop="HSupName">
              <el-input v-model="queryParams.HSupName" placeholder="请输入往来单位" @keyup.enter.native="handleQuery" />
@@ -137,7 +137,7 @@
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-tickets" size="mini"
          @click="handlePush(row = rowForm, OperationType = 4)">下推(器具领用出库单)</el-button>
          @click="handlePush(row = rowForm, OperationType = 4)">下推(容器领用出库单)</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete">删除
@@ -199,12 +199,12 @@
          v-if="rowHideShow" />
      </el-dialog>
      <!-- ç¼–辑 -->
      <el-dialog title="编辑器具领用申请单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
      <el-dialog title="编辑容器领用申请单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
        <edit :OperationType=OperationType :linterid=this.rowForm.hmainid :HSouceBillType=this.rowForm.HSourceBillType
          :copyType="copyType" @editClose="editClose" v-if="editShow" />
      </el-dialog>
      <!-- ä¸‹æŽ¨ -->
      <el-dialog title="下推器具领用出库单" :visible.sync="openPush" width="1480px" append-to-body class="xsckdBox" @close="close">
      <el-dialog title="下推容器领用出库单" :visible.sync="openPush" width="1480px" append-to-body class="xsckdBox" @close="close">
        <push :OperationType='4' :propsData='pushData' :HSouceBillType=BillType
         @editClose="pushClose" v-if="pushShow" />
      </el-dialog>
src/views/scMould/warehouse/Sc_MouldProdBackBillEdit.vue
@@ -7,7 +7,7 @@
      <el-button type="primary" @click="close">退 å‡º</el-button>
      <!-- <el-button @click="cancel">取 æ¶ˆ</el-button> -->
    </div>
    <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">器具领用退库单</div>
    <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">容器领用退库单</div>
    <el-form ref="form" :model="form" :rules="rules" label-width="90px">
      <el-tabs v-model="activeName" type="card">
        <el-tab-pane label="基本信息" name="first">
@@ -211,13 +211,13 @@
            @selection-change="handleTableZbEdit" :row-class-name="rowSysZbIndex" show-summary border>
            <el-table-column type="selection" width="55" align="center" />
            <el-table-column align="center" label="序号" type="index" width="80" />
            <el-table-column align="center" label="器具代码" width="120">
            <el-table-column align="center" label="容器代码" width="120">
              <template slot-scope="scope">
                <el-input v-model="scope.row.HMaterCode" placeholder="请输入" @keyup.native.f7="openDataDialog(8, scope.row)"
                  @dblclick.native="openDataDialog(8, scope.row)" />
              </template>
            </el-table-column>
            <el-table-column align="center" label="器具名称" width="120">
            <el-table-column align="center" label="容器名称" width="120">
              <template slot-scope="scope">
                <span>{{ scope.row.HMaterName }}</span>
              </template>
@@ -407,7 +407,7 @@
      gyEmployeeShow: false,//销售员数据组件
      gySupplierShow: false,//供应商数据组件
      gyCustomerShow: false,//客户数据组件
      gyMouldShow: false,//器具数据组件
      gyMouldShow: false,//容器数据组件
      gyStockPlaceShow: false,//仓位数据组件
      scMouldInShow:false,//源单组件
      eHWHType:1,//仓库弹窗区分标志
@@ -1128,7 +1128,7 @@
          this.editData.map((item, index) => {
            if (!item.HMaterID) {
              fhck = true
              this.$modal.msgError("第" + (index + 1) + "行:器具未选择!");
              this.$modal.msgError("第" + (index + 1) + "行:容器未选择!");
            }else if(!item.HWHID){
              fhck = true
              this.$modal.msgError("第" + (index + 1) + "行:调入仓库未选择!");
@@ -1158,7 +1158,7 @@
                method: 'post',
                url: this.baseURL + "/Sc_MouldProdBackBillController/GetSc_MouldProdBackBill_Save_Json",
                data: {
                  'msg': sMainSub
                  'sMainSub': sMainSub
                },
              }).then(response => {
                if (response.data.count == 1) {
@@ -1242,7 +1242,7 @@
        this.gyCustomerShow = true
        this.openData = true
      }  else if (num == 8) {
        this.dialogTitle = '器具列表'
        this.dialogTitle = '容器列表'
        this.gyMouldShow = true
        this.openData = true
      }  else if (num == 9) {
@@ -1250,7 +1250,7 @@
        this.gyStockPlaceShow = true
        this.openData = true
      }  else if (num == 3851) {
        this.dialogTitle = '器具入库申请单列表'
        this.dialogTitle = '容器入库申请单列表'
        this.scMouldInShow = true
        this.openData = true
      } 
src/views/scMould/warehouse/Sc_MouldProdBackBillList.vue
@@ -40,8 +40,8 @@
            <el-form-item label="部门信息" prop="HDept">
              <el-input v-model="queryParams.HDept" placeholder="请输入部门信息" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="器具代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入器具代码" @keyup.enter.native="handleQuery" />
            <el-form-item label="容器代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入容器代码" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="往来单位" prop="HSupName">
              <el-input v-model="queryParams.HSupName" placeholder="请输入往来单位" @keyup.enter.native="handleQuery" />
@@ -187,7 +187,7 @@
          v-if="rowHideShow" />
      </el-dialog>
      <!-- ç¼–辑 -->
      <el-dialog title="编辑器具领用退库单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
      <el-dialog title="编辑容器领用退库单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
        <edit :OperationType=OperationType :linterid=this.rowForm.hmainid :HSouceBillType=this.rowForm.HSourceBillType
          :copyType="copyType" @editClose="editClose" v-if="editShow" />
      </el-dialog>
src/views/scMould/warehouse/Sc_MouldProdMoveBillEdit.vue
@@ -7,7 +7,7 @@
      <el-button type="primary" @click="close">退 å‡º</el-button>
      <!-- <el-button @click="cancel">取 æ¶ˆ</el-button> -->
    </div>
    <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">器具直接调拨单</div>
    <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">容器直接调拨单</div>
    <el-form ref="form" :model="form" :rules="rules" label-width="90px">
      <el-tabs v-model="activeName" type="card">
        <el-tab-pane label="基本信息" name="first">
@@ -228,13 +228,13 @@
            @selection-change="handleTableZbEdit" :row-class-name="rowSysZbIndex" show-summary border>
            <el-table-column type="selection" width="55" align="center" />
            <el-table-column align="center" label="序号" type="index" width="80" />
            <el-table-column align="center" label="器具代码" width="120">
            <el-table-column align="center" label="容器代码" width="120">
              <template slot-scope="scope">
                <el-input v-model="scope.row.HMaterNumber" placeholder="请输入" @keyup.native.f7="openDataDialog(8, scope.row)"
                  @dblclick.native="openDataDialog(8, scope.row)" />
              </template>
            </el-table-column>
            <el-table-column align="center" label="器具名称" width="120">
            <el-table-column align="center" label="容器名称" width="120">
              <template slot-scope="scope">
                <span>{{ scope.row.HMaterName }}</span>
              </template>
@@ -446,7 +446,7 @@
      gyEmployeeShow: false,//销售员数据组件
      gySupplierShow: false,//供应商数据组件
      gyCustomerShow: false,//客户数据组件
      gyMouldShow: false,//器具数据组件
      gyMouldShow: false,//容器数据组件
      gyStockPlaceShow: false,//仓位数据组件
      scMouldMoveShow:false,//源单组件
      eHWHType:1,//仓库弹窗区分标志
@@ -1203,7 +1203,7 @@
          this.editData.map((item, index) => {
            if (!item.HMaterID) {
              fhck = true
              this.$modal.msgError("第" + (index + 1) + "行:器具未选择!");
              this.$modal.msgError("第" + (index + 1) + "行:容器未选择!");
            }else if(!item.HWHID){
              fhck = true
              this.$modal.msgError("第" + (index + 1) + "行:调入仓库未选择!");
@@ -1236,7 +1236,7 @@
                method: 'post',
                url: this.baseURL + "/Sc_MouldProdMoveBillController/GetSc_MouldProdMoveBill_Save_Json",
                data: {
                  'msg': sMainSub
                  'sMainSub': sMainSub
                },
              }).then(response => {
                if (response.data.count == 1) {
@@ -1320,7 +1320,7 @@
        this.gyCustomerShow = true
        this.openData = true
      }  else if (num == 8) {
        this.dialogTitle = '器具列表'
        this.dialogTitle = '容器列表'
        this.gyMouldShow = true
        this.openData = true
      }  else if (num == 9) {
@@ -1328,7 +1328,7 @@
        this.gyStockPlaceShow = true
        this.openData = true
      } else if (num == 3850) {
        this.dialogTitle = '器具调拨申请单列表'
        this.dialogTitle = '容器调拨申请单列表'
        this.scMouldMoveShow = true
        this.openData = true
      } 
src/views/scMould/warehouse/Sc_MouldProdMoveBillList.vue
@@ -40,8 +40,8 @@
              <el-form-item label="部门信息" prop="HDept">
                <el-input v-model="queryParams.HDept" placeholder="请输入部门信息" @keyup.enter.native="handleQuery" />
              </el-form-item>
              <el-form-item label="器具代码" prop="HModelNumber">
                <el-input v-model="queryParams.HModelNumber" placeholder="请输入器具代码" @keyup.enter.native="handleQuery" />
              <el-form-item label="容器代码" prop="HModelNumber">
                <el-input v-model="queryParams.HModelNumber" placeholder="请输入容器代码" @keyup.enter.native="handleQuery" />
              </el-form-item>
              <el-form-item label="往来单位" prop="HSupName">
                <el-input v-model="queryParams.HSupName" placeholder="请输入往来单位" @keyup.enter.native="handleQuery" />
@@ -187,7 +187,7 @@
          v-if="rowHideShow" />
      </el-dialog>
      <!-- ç¼–辑 -->
      <el-dialog title="编辑器具直接调拨单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
      <el-dialog title="编辑容器直接调拨单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
        <edit :OperationType=OperationType :linterid=this.rowForm.hmainid :HSouceBillType=this.rowForm.HSourceBillType
          :copyType="copyType" @editClose="editClose" v-if="editShow" />
      </el-dialog>
src/views/scMould/warehouse/Sc_MouldProdOutBillEdit.vue
@@ -7,7 +7,7 @@
      <el-button type="primary" @click="close">退 å‡º</el-button>
      <!-- <el-button @click="cancel">取 æ¶ˆ</el-button> -->
    </div>
    <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">器具领用出库单</div>
    <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">容器领用出库单</div>
    <el-form ref="form" :model="form" :rules="rules" label-width="90px">
      <el-tabs v-model="activeName" type="card">
        <el-tab-pane label="基本信息" name="first">
@@ -211,13 +211,13 @@
            @selection-change="handleTableZbEdit" :row-class-name="rowSysZbIndex" show-summary border>
            <el-table-column type="selection" width="55" align="center" />
            <el-table-column align="center" label="序号" type="index" width="80" />
            <el-table-column align="center" label="器具代码" width="120">
            <el-table-column align="center" label="容器代码" width="120">
              <template slot-scope="scope">
                <el-input v-model="scope.row.HMaterCode" placeholder="请输入" @keyup.native.f7="openDataDialog(8, scope.row)"
                  @dblclick.native="openDataDialog(8, scope.row)" />
              </template>
            </el-table-column>
            <el-table-column align="center" label="器具名称" width="120">
            <el-table-column align="center" label="容器名称" width="120">
              <template slot-scope="scope">
                <span>{{ scope.row.HMaterName }}</span>
              </template>
@@ -407,7 +407,7 @@
      gyEmployeeShow: false,//销售员数据组件
      gySupplierShow: false,//供应商数据组件
      gyCustomerShow: false,//客户数据组件
      gyMouldShow: false,//器具数据组件
      gyMouldShow: false,//容器数据组件
      gyStockPlaceShow: false,//仓位数据组件
      scMouldOutShow:false,//源单组件
      eHWHType:1,//仓库弹窗区分标志
@@ -1127,7 +1127,7 @@
          this.editData.map((item, index) => {
            if (!item.HMaterID) {
              fhck = true
              this.$modal.msgError("第" + (index + 1) + "行:器具未选择!");
              this.$modal.msgError("第" + (index + 1) + "行:容器未选择!");
            }else if(!item.HWHID){
              fhck = true
              this.$modal.msgError("第" + (index + 1) + "行:调入仓库未选择!");
@@ -1157,7 +1157,7 @@
                method: 'post',
                url: this.baseURL + "/Sc_MouldProdOutBillController/GetSc_MouldProdOutBill_Save_Json",
                data: {
                  'msg': sMainSub
                  'sMainSub': sMainSub
                },
              }).then(response => {
                if (response.data.count == 1) {
@@ -1241,7 +1241,7 @@
        this.gyCustomerShow = true
        this.openData = true
      }  else if (num == 8) {
        this.dialogTitle = '器具列表'
        this.dialogTitle = '容器列表'
        this.gyMouldShow = true
        this.openData = true
      }  else if (num == 9) {
@@ -1249,7 +1249,7 @@
        this.gyStockPlaceShow = true
        this.openData = true
      } else if (num == 3849) {
        this.dialogTitle = '器具领用出库单列表'
        this.dialogTitle = '容器领用出库单列表'
        this.scMouldOutShow = true
        this.openData = true
      } 
src/views/scMould/warehouse/Sc_MouldProdOutBillList.vue
@@ -40,8 +40,8 @@
            <el-form-item label="部门信息" prop="HDept">
              <el-input v-model="queryParams.HDept" placeholder="请输入部门信息" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="器具代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入器具代码" @keyup.enter.native="handleQuery" />
            <el-form-item label="容器代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入容器代码" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="往来单位" prop="HSupName">
              <el-input v-model="queryParams.HSupName" placeholder="请输入往来单位" @keyup.enter.native="handleQuery" />
@@ -187,7 +187,7 @@
          v-if="rowHideShow" />
      </el-dialog>
      <!-- ç¼–辑 -->
      <el-dialog title="编辑器具领用出库单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
      <el-dialog title="编辑容器领用出库单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
        <edit :OperationType=OperationType :linterid=this.rowForm.hmainid :HSouceBillType=this.rowForm.HSourceBillType
          :copyType="copyType" @editClose="editClose" v-if="editShow" />
      </el-dialog>
src/views/scMould/warehouse/component/Sc_MouldInRequestBill.vue
@@ -40,8 +40,8 @@
            <el-form-item label="部门信息" prop="HDept">
              <el-input v-model="queryParams.HDept" placeholder="请输入部门信息" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="器具代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入器具代码" @keyup.enter.native="handleQuery" />
            <el-form-item label="容器代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入容器代码" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="往来单位" prop="HSupName">
              <el-input v-model="queryParams.HSupName" placeholder="请输入往来单位" @keyup.enter.native="handleQuery" />
@@ -137,7 +137,7 @@
      </el-col>
      <!-- <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-tickets" size="mini"
          @click="handlePush(row = rowForm, OperationType = 4)">下推(器具领用退库单)</el-button>
          @click="handlePush(row = rowForm, OperationType = 4)">下推(容器领用退库单)</el-button>
      </el-col> -->
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete">删除
@@ -199,12 +199,12 @@
          v-if="rowHideShow" />
      </el-dialog>
      <!-- ç¼–辑 -->
      <el-dialog title="编辑器具入库申请单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
      <el-dialog title="编辑容器入库申请单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
        <edit :OperationType=OperationType :linterid=this.rowForm.hmainid :HSouceBillType=this.rowForm.HSourceBillType
          :copyType="copyType" @editClose="editClose" v-if="editShow" />
      </el-dialog>
      <!-- ä¸‹æŽ¨ -->
      <el-dialog title="下推器具领用退库单" :visible.sync="openPush" width="1480px" append-to-body class="xsckdBox" @close="close">
      <el-dialog title="下推容器领用退库单" :visible.sync="openPush" width="1480px" append-to-body class="xsckdBox" @close="close">
        <push :OperationType='4' :propsData='pushData' :HSouceBillType=BillType
         @editClose="pushClose" v-if="pushShow" />
      </el-dialog>
src/views/scMould/warehouse/component/Sc_MouldMoveStockRequestBill.vue
@@ -40,8 +40,8 @@
            <el-form-item label="部门信息" prop="HDept">
              <el-input v-model="queryParams.HDept" placeholder="请输入部门信息" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="器具代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入器具代码" @keyup.enter.native="handleQuery" />
            <el-form-item label="容器代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入容器代码" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="往来单位" prop="HSupName">
              <el-input v-model="queryParams.HSupName" placeholder="请输入往来单位" @keyup.enter.native="handleQuery" />
@@ -137,7 +137,7 @@
      </el-col>
      <!-- <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-tickets" size="mini"
          @click="handleMove(row = rowForm, OperationType = 4)">下推(器具直接调拨单)</el-button>
          @click="handleMove(row = rowForm, OperationType = 4)">下推(容器直接调拨单)</el-button>
      </el-col> -->
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete">删除
@@ -189,12 +189,12 @@
          v-if="rowHideShow" />
      </el-dialog>
      <!-- ç¼–辑 -->
      <el-dialog title="编辑器具调拨申请单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
      <el-dialog title="编辑容器调拨申请单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
        <edit :OperationType=OperationType :linterid=this.rowForm.hmainid :HSouceBillType=this.rowForm.HSourceBillType
          :copyType="copyType" @editClose="editClose" v-if="editShow" />
      </el-dialog>
      <!-- ä¸‹æŽ¨ -->
      <!-- <el-dialog title="下推器具直接调拨单" :visible.sync="openMove" width="1480px" append-to-body class="xsckdBox" @close="close">
      <!-- <el-dialog title="下推容器直接调拨单" :visible.sync="openMove" width="1480px" append-to-body class="xsckdBox" @close="close">
        <move :OperationType='4' :propsData='moveData' :HSouceBillType=BillType
         @editClose="moveClose" v-if="moveShow" />
      </el-dialog> -->
src/views/scMould/warehouse/component/Sc_MouldOutRequestBill.vue
@@ -40,8 +40,8 @@
            <el-form-item label="部门信息" prop="HDept">
              <el-input v-model="queryParams.HDept" placeholder="请输入部门信息" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="器具代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入器具代码" @keyup.enter.native="handleQuery" />
            <el-form-item label="容器代码" prop="HModelNumber">
              <el-input v-model="queryParams.HModelNumber" placeholder="请输入容器代码" @keyup.enter.native="handleQuery" />
            </el-form-item>
            <el-form-item label="往来单位" prop="HSupName">
              <el-input v-model="queryParams.HSupName" placeholder="请输入往来单位" @keyup.enter.native="handleQuery" />
@@ -137,7 +137,7 @@
      </el-col>
      <!-- <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-tickets" size="mini"
          @click="handlePush(row = rowForm, OperationType = 4)">下推(器具领用出库单)</el-button>
          @click="handlePush(row = rowForm, OperationType = 4)">下推(容器领用出库单)</el-button>
      </el-col> -->
      <el-col :span="1.5">
        <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete">删除
@@ -199,12 +199,12 @@
          v-if="rowHideShow" />
      </el-dialog>
      <!-- ç¼–辑 -->
      <el-dialog title="编辑器具领用申请单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
      <el-dialog title="编辑容器领用申请单" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
        <edit :OperationType=OperationType :linterid=this.rowForm.hmainid :HSouceBillType=this.rowForm.HSourceBillType
          :copyType="copyType" @editClose="editClose" v-if="editShow" />
      </el-dialog>
      <!-- ä¸‹æŽ¨ -->
      <el-dialog title="下推器具领用出库单" :visible.sync="openPush" width="1480px" append-to-body class="xsckdBox" @close="close">
      <el-dialog title="下推容器领用出库单" :visible.sync="openPush" width="1480px" append-to-body class="xsckdBox" @close="close">
        <push :OperationType='4' :propsData='pushData' :HSouceBillType=BillType
         @editClose="pushClose" v-if="pushShow" />
      </el-dialog>
src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong.vue
@@ -1,259 +1,159 @@
<template>
    <div v-loading="formLoading" v-if="formShow" style="margin: 10px;">
    <div style="margin: 10px;">
        <div style=" margin-bottom: 10px; border-bottom: 1px solid #f6f6f6;">
            <el-button type="primary" @click="get_PrintReport">预览打印</el-button>
            <el-button type="primary" @click="ToolCreate" :disabled="disabledToolCreate">生成</el-button>
            <!-- <el-button type="primary">重置</el-button>
            <el-button type="primary">库存</el-button>
            <el-button type="primary">同步资料</el-button> -->
            <el-button type="primary" @click="ToolBatch">批次</el-button>
            <el-button type="primary" @click="close">退 å‡º</el-button>
            <el-button type="primary" @click="onClickMethod_BarCodeProduce" :disabled="disabledFlag_BarCodeProduce">生成</el-button>
            <el-button type="primary" @click="get_PrintReport">打印</el-button>
            <!-- <el-button type="primary" @click="close">退 å‡º</el-button> -->
        </div>
        <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">条码生成</div>
        <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form :model="initMainData" label-width="80px">
            <el-row>
                <el-col :span="6">
                    <el-form-item label="组织" prop="HOrgID" @change="HOrgIDChange">
                        <el-select v-model="form.HOrgID" placeholder="请选择组织" style="width: 100%">
                            <el-option v-for="(item, index) in organizationList" :key="index" :label="item.Name"
                                :value="item.ID">
                            </el-option>
                        </el-select>
                    <el-form-item label="日期">
                        <el-date-picker v-model="initMainData.HDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" style="width: 100%"> </el-date-picker>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="工厂代码" prop="HWorksNumber">
                        <el-select v-model="form.HWorksNumber" placeholder="请选择工厂" style="width: 100%">
                            <el-option v-for="(item, index) in HWorksNumberList" :key="index" :label="item"
                                :value="item">
                            </el-option>
                        </el-select>
                    <el-form-item label="源单单号">
                        <el-input v-model="initMainData.HMainSourceBillNo" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="日期" prop="HDate">
                        <el-date-picker v-model="form.HDate" type="date" placeholder="选择日期" value-format="yyyy-MM-ddT"
                            style="width: 100%"> </el-date-picker>
                    <el-form-item label="采购订单号">
                        <el-input v-model="initMainData.HPOOrderBillNo" disabled></el-input>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="6">
                    <el-form-item label="源单类型" prop="HSourceBillType">
                        <el-select v-model="form.HSourceBillType" placeholder="请选择" style="width: 100%"
                            @change="HSourceBillTypeChange">
                            <el-option v-for="(item, index) in HSourceBillTypeList" :key="index" :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select>
                    <el-form-item label="物料代码">
                        <el-input v-model="initMainData.HMaterNumber" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="选单号" prop="HSourceBillNo">
                        <el-input v-model="form.HSourceBillNo" placeholder="请输入选单号" disabled>
                            <el-button class="input-search-btn" slot="append" icon="el-icon-search"
                                @click="openDataDialog(null)"></el-button>
                        </el-input>
                    <el-form-item label="物料名称">
                        <el-input v-model="initMainData.HMaterName" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="条码类型" prop="HBarCodeType">
                        <el-select v-model="form.HBarCodeType" placeholder="请选择" style="width: 100%">
                            <el-option v-for="(item, index) in HBarCodeTypeList" :key="index" :label="item"
                                :value="item">
                            </el-option>
                    <el-form-item label="规格型号">
                        <el-input v-model="initMainData.HMaterModel" disabled></el-input>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="6">
                    <el-form-item label="计量单位">
                        <el-input v-model="initMainData.HUnitName" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="辅助属性代码">
                        <el-input v-model="initMainData.HAuxPropNumber" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="辅助属性名称">
                        <el-input v-model="initMainData.HAuxPropName" disabled></el-input>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="6">
                    <el-form-item label="供应商代码">
                        <el-input v-model="initMainData.HSupNumber" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="供应商名称">
                        <el-input v-model="initMainData.HSupName" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="批号">
                        <el-input v-model="initMainData.HBatchNo"></el-input>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="6">
                    <el-form-item label="源单数量">
                        <el-input-number v-model="initMainData.HQty_SourceBill" @change="onChangeForHQty_SourceBill" />
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="标准包装数">
                        <el-input-number v-model="initMainData.HMinQty" @change="onChangeForHMinQty" />
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="包数">
                        <el-input-number v-model="initMainData.HBQty" disabled />
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="6">
                    <el-form-item label="尾包数量">
                        <el-input-number v-model="initMainData.HEndQty" disabled />
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="采购跟踪号">
                        <el-input v-model="initMainData.HPOOrderBillMTO" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="8">
                    <el-form-item label="复检启用">
                        <el-checkbox v-model="initMainData.HReInspectionFlag" disabled>复检启用</el-checkbox>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="6">
                    <el-form-item label="生产日期">
                        <el-date-picker v-model="initMainData.HInspectionDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" style="width: 100%"> </el-date-picker>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="复检周期">
                        <el-input-number v-model="initMainData.HInspectionCycle" disabled/>天
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="复检日期">
                        <el-date-picker v-model="initMainData.HReInspectionDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" style="width: 100%" disabled> </el-date-picker>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="6">
                    <el-form-item label="客户订单号">
                        <el-input v-model="initMainData.HSeOrderBillNo" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="产品型号">
                        <el-input v-model="initMainData.HCusModel" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="组织" @change="onChangeMethod_HOrganization">
                        <el-select v-model="initMainData.HOrganizationID" placeholder="请选择组织" style="width: 100%">
                            <el-option v-for="(item, index) in HOrganizationList" :key="index" :value="item.ID" :label="item.Name"></el-option>
                        </el-select>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-tabs type="border-card" v-model="barcodeName">
                <el-tab-pane label="物料信息" name="wuliao">
                    <div style="margin-bottom: 10px;">
                        <el-button type="success" plain icon="el-icon-plus" @click="handleAddSysZb()"
                            size="mini">增加一行</el-button>
                        <el-button type="success" plain icon="el-icon-plus" @click="handleCopyZbRow"
                            size="mini">复制一行</el-button>
                    </div>
                    <el-table :data="editWlxxData" style="width: 100%" height="480" width="100%" ref="wlxxzbTable"
                        @selection-change="handleTableWlxxZbEdit" :row-class-name="wlxxzbRowSysZbIndex" border>
                        <el-table-column type="selection" width="55" align="center" />
                        <el-table-column align="center" label="序号" type="index" width="80" fixed
                            show-overflow-tooltip />
                        <el-table-column align="center" label="源单单号" prop="HBillNo" width="120" show-overflow-tooltip>
                            <template slot-scope="scope">{{ scope.row.HBillNo }} </template>
                        </el-table-column>
                        <el-table-column align="center" label="物料代码" prop="HMaterNumber" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope">
                                <el-input v-model="scope.row.HMaterNumber"
                                    @keyup.native.f7="openDataDialog(3, scope.row)"
                                    @dblclick.native="openDataDialog(3, scope.row)" />
                            </template>
                        </el-table-column>
                        <el-table-column align="center" label="物料名称" prop="HMaterName" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope">{{ scope.row.HMaterName }}</template>
                        </el-table-column>
                        <el-table-column align="center" label="规格型号" prop="HMaterModel" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope">{{ scope.row.HMaterModel }}</template>
                        </el-table-column>
                        <el-table-column align="center" label="数量" prop="HQty" width="120" show-overflow-tooltip>
                            <template slot-scope="scope">
                                <el-input-number v-model="scope.row.HQty" :min="0" controls-position="right"
                                    style="width: 100%;" @change="editMainTable(scope.row)" />
                            </template>
                        </el-table-column>
                        <el-table-column align="center" label="最小包装数" prop="HMinQty" width="120" show-overflow-tooltip>
                            <template slot-scope="scope">
                                <el-input-number v-model="scope.row.HMinQty" :min="0" controls-position="right"
                                    style="width: 100%;" @change="editMainTable(scope.row)" />
                            </template>
                        </el-table-column>
                        <el-table-column align="center" label="箱数" prop="HBQty" width="120" show-overflow-tooltip>
                            <template slot-scope="scope">{{ scope.row.HBQty }}</template>
                        </el-table-column>
                        <el-table-column align="center" label="客户规格型号" prop="HCusModel" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HCusModel" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="客户物料名称" prop="HCusMaterName" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope"> <el-input v-model="scope.row.HCusMaterName" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="操作员代码" prop="HEmpNumber" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope"> <el-input v-model="scope.row.HEmpNumber" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="操作员" prop="HEmpName" width="120" show-overflow-tooltip>
                            <template slot-scope="scope">{{ scope.row.HEmpName }}</template>
                        </el-table-column>
                        <el-table-column align="center" label="班组代码" prop="HGroupNumber" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HGroupNumber" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="班组名称" prop="HGroupName" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope">{{ scope.row.HGroupName }}</template>
                        </el-table-column>
                        <el-table-column align="center" label="检验员" prop="HCheckEmpName" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HCheckEmpName" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="批号" prop="HBatchNo" width="120" show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HBatchNo" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="计划跟踪号" prop="HMTONo" width="120" show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HMTONo" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="外箱数" prop="HPackQty" width="120" show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HPackQty" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="钢卷捆包号" prop="HCoilNO" width="120" show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HCoilNO" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="炉号" prop="HFurnaceNO" width="120" show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HFurnaceNO" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="厂商" prop="HFactory" width="120" show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HFactory" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="客户代码" prop="HCusNumber" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HCusNumber" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="客户名称" prop="HCusName" width="120" show-overflow-tooltip>
                            <template slot-scope="scope">{{ scope.row.HCusName }}</template>
                        </el-table-column>
                        <el-table-column align="center" label="销售订单号" prop="HSeOrderBillNo" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope">{{ scope.row.HSeOrderBillNo }}</template>
                        </el-table-column>
                        <el-table-column align="center" label="备注" prop="HRemark" width="120" show-overflow-tooltip>
                            <template slot-scope="scope">{{ scope.row.HRemark }}</template>
                        </el-table-column>
                        <el-table-column align="center" label="生产日期" prop="HProduceDate" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope">
                                <el-date-picker v-model="scope.row.HProduceDate" type="date" placeholder="选择日期"
                                    value-format="yyyy-MM-dd" style="width: 100%"> </el-date-picker>
                            </template>
                        </el-table-column>
                        <el-table-column align="center" label="保质期至" prop="HExpiryDate" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope">
                                <el-date-picker v-model="scope.row.HExpiryDate" type="date" placeholder="选择日期"
                                    value-format="yyyy-MM-dd" style="width: 100%"> </el-date-picker>
                            </template>
                        </el-table-column>
                        <el-table-column align="center" label="热处理" prop="HheatNO" width="120" show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HheatNO" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="辅助属性代码" prop="HAuxPropNumber" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope">
                                <el-input v-model="scope.row.HAuxPropNumber"
                                    @keyup.native.f7="openDataDialog(1, scope.row)"
                                    @dblclick.native="openDataDialog(1, scope.row)" />
                            </template>
                        </el-table-column>
                        <el-table-column align="center" label="辅助属性名称" prop="HAuxPropName" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope">{{ scope.row.HAuxPropName }}</template>
                        </el-table-column>
                        <el-table-column align="center" label="计量单位代码" prop="HUnitNumber" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HUnitNumber" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="计量单位名称" prop="HUnitName" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope">{{ scope.row.HUnitName }}</template>
                        </el-table-column>
                        <el-table-column align="center" label="辅单位数量" prop="HAuxQty" width="120" show-overflow-tooltip>
                            <template slot-scope="scope"><el-input v-model="scope.row.HAuxQty" /></template>
                        </el-table-column>
                        <el-table-column align="center" label="是否启用保质期" prop="HExpirationDateFlag" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope">
                                <el-checkbox v-model="scope.row.HExpirationDateFlag"></el-checkbox>
                            </template>
                        </el-table-column>
                        <el-table-column align="center" label="是否赠品" prop="HGiveAwayFlag" width="120"
                            show-overflow-tooltip>
                            <template slot-scope="scope">
                                <el-checkbox v-model="scope.row.HGiveAwayFlag"></el-checkbox>
                            </template>
                        </el-table-column>
                        <el-table-column align="center" label="操作" width="55" fixed="right">
                            <template slot-scope="scope">
                                <el-button type="danger" icon="el-icon-delete" size="mini" circle
                                    @click="handleDeleteSysZb(scope.row)"></el-button>
                            </template>
                        </el-table-column>
                    </el-table>
                </el-tab-pane>
                <el-tab-pane label="条码信息" name="tiaoma">
                    <el-table :data="editTmData" style="width: 100%" height="480" width="100%" ref="tbzbTable"
                        @selection-change="handleTableWlxxZbEdit" :row-class-name="tiaomaZbIndex" border
                        v-if="editTmData.length > 0">
                        <el-table-column align="center" label="序号" type="index" width="80" fixed />
                        <template v-for="(item, index) in tmBtList">
                            <el-table-column align="center" :prop="item.field" :label="item.title" :width="item.width"
                                :key="index" show-overflow-tooltip v-if="!item.hide" />
                        </template>
                    </el-table>
                </el-tab-pane>
                <el-tab-pane label="档案列表" name="dangan">
                    <el-table :data="editDaData" style="width: 100%" height="480" width="100%" ref="dazbTable"
                        @selection-change="handleTableDangan" :row-class-name="danganZbIndex" border
                        v-if="editDaData.length > 0">
            <el-tabs type="border-card" v-model="SelectedTabName" style="height:400px;">
                <!-- æ¡ç åˆ—表 -->
                <el-tab-pane label="条码列表" name="BarCode">
                    <el-table :data="tableData_BarCode" @selection-change="onSelectionChange_BarCode" :row-class-name="RowIndex_BarCode" style="width: 100%" height="900" width="100%" border v-if="tableData_BarCode.length > 0">
                        <el-table-column type="selection" width="55" align="center" />
                        <el-table-column align="center" label="序号" type="index" width="80" fixed />
                        <template v-for="(item, index) in daBtList">
                            <el-table-column align="center" :prop="item.field" :label="item.title" :width="item.width"
                                :key="index" show-overflow-tooltip v-if="!item.hide">
                        <template v-for="(item, index) in tableColumns_BarCode">
                            <el-table-column :prop="item.field" :label="item.title" :key="index" show-overflow-tooltip :width="item.width" align="center"  v-if="!item.hide">
                                <template slot-scope="{row,  column }">
                                    <div :style="item.style"><span>{{ row[column.label] }}</span> </div>
                                </template>
@@ -263,141 +163,73 @@
                </el-tab-pane>
            </el-tabs>
        </el-form>
        <!-- éƒ¨é—¨å¼¹çª— -->
        <el-dialog :title="dialogTitle" :visible.sync="openData" width="1280px" append-to-body @close="closeBill">
            <HSourceReportHtml @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName"
                :HOrgID='this.form.HOrgID' :HSouceBillType="HSouceBillType" v-if="ScICMOBillShow" />
            <Material @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="materialShow" />
            <GyProperty @deptEmitDb="dbEmitData" @deptEmit="emitData" :openPage="HModName" v-if="propertyShow" />
            <div slot="footer" class="dialog-footer">
                <el-button type="primary" @click="deptClickSub">ç¡® å®š</el-button>
                <el-button @click="deptClose">取 æ¶ˆ</el-button>
            </div>
        </el-dialog>
        <!-- æ‰“印弹窗 -->
        <el-dialog title="打印模板选择" :visible.sync="openPrintList" width="800px" append-to-body>
            <PrintList :linterid="rowSel.toString()" :MyMsg="rowSel.toString()" Type="HGy_BarCodeBill"
                HModName="HGy_BarCodeBill" @rowEditClose="rowSetClose" v-if="printListShow" />
            <!-- <div>111</div> -->
        </el-dialog>
    </div>
</template>
<script>
import axios from 'axios'
import axios from 'axios'                                                   //axios请求方法库
import moment from 'moment';                                                //moment.js库
import PrintList from "@/views/component/printList";                        //打印
import HSourceReportHtml from '@/views/component/HSourceReportHtml'
import PrintList from "@/views/component/printList";
import moment from 'moment';
import GyProperty from "@/views/basic/gyProperty/gyPropertyList.vue";
import Material from '@/views/gyMaterial/GyMaterial.vue'
export default {
    name: 'Gy_BarCodeBill',
    name: 'Gy_BarCodeBill_JinLong',
    components: { HSourceReportHtml, PrintList, GyProperty, Material },
    props: {
        OperationType: { type: Number, },
        linterid: { type: Number, },
        propsData: { type: String, },
        copyType: { type: Number, },
    },
    data() {
        return {
            rowSel: [],
            HModName: "Gy_BarCodeBill",
            danganSelList: [],
            openPrintList: false,
            printListShow: false,
            barcodeName: 'wuliao',
            HOrgSel: sessionStorage["Organization"],
            HMaterInfo: [],
            HSouceBillType: '生产订单',
            disabledToolCreate: false,
            HMinQty2: 0,
            BatchNoArray: [], //用来存储获取到的批号,在批次按钮功能中用到
            HMaterID: "",
            HBatchNo: "",
            openNum: 10,
            zbDataShow: true,
            HSourceBillTypeList: [
                { value: '1', label: '生产订单', },
                { value: '2', label: '生产汇报单', },
                { value: '3', label: '采购订单', },
                { value: '4', label: '收料通知单', },
                { value: '5', label: '委外订单', },
                { value: '6', label: '生产入库单', },
                { value: '7', label: '采购入库单', },
                { value: '8', label: '销售退货单', },
                { value: '9', label: '生产退料单', },
                { value: '10', label: '工序流转卡', },
                { value: '11', label: '销售出库单', },
                { value: '12', label: '领料出库单', }
            ],
            wlxxBtList: [{ field: 'HMainID', title: '源单主内码', width: 100, hide: true }
                , { field: 'HSubID', title: '源单子内码', width: 100, hide: true }
                , { field: 'HSourceBillSEQ', title: '源单行号', width: 100, hide: true }
                , { field: 'HBillNo', title: '源单单号', width: 200 }
                , { field: 'HMaterID', title: '物料ID', width: 100, hide: true }
                , { field: 'HMaterNumber', title: '物料代码', edit: 'text', event: 'HMaterNumber', width: 200 }
                , { field: 'HMaterName', title: '物料名称', width: 200 }
                , { field: 'HMaterModel', title: '规格型号', width: 200 }
                , { field: 'HCusModel', title: '客户规格型号', edit: 'text', width: 200 }
                , { field: 'HCusMaterName', title: '客户物料名称', edit: 'text', width: 200 }
                , { field: 'HEmpID', title: '操作员ID', width: 100, hide: true }
                , { field: 'HEmpNumber', title: '操作员代码', edit: 'text', width: 200, event: 'HEmpNumber' }
                , { field: 'HEmpName', title: '操作员', width: 200 }
                , { field: 'HGroupID', title: '班组ID', width: 100, hide: true }
                , { field: 'HGroupNumber', title: '班组代码', edit: 'text', width: 200, event: 'HGroupNumber' }
                , { field: 'HGroupName', title: '班组名称', width: 200 }
                , { field: 'HCheckEmpName', title: '检验员', width: 200, edit: 'text' }
                , { field: 'HBatchNo', title: '批号', edit: 'text', width: 100 }
                , { field: 'HMTONo', title: '计划跟踪号', width: 100, edit: 'text' }
                , { field: 'HQty', title: '数量', edit: 'number', width: 100, totalRow: true }
                , { field: 'HMinQty', title: '最小包装数', edit: 'number', totalRow: true, width: 100 }
                , { field: 'HBQty', title: '箱数', width: 100, totalRow: true }
                , { field: 'HPackQty', title: '外箱数', edit: 'text', width: 100, totalRow: true }
                , { field: 'HCoilNO', title: '钢卷捆包号', edit: 'text', width: 100 }
                , { field: 'HFurnaceNO', title: '炉号', edit: 'text', width: 100 }
                , { field: 'HFactory', title: '厂商', edit: 'text', width: 100 }
                , { field: 'HCusID', title: '客户ID', width: 100, hide: true }
                , { field: 'HCusNumber', title: '客户代码', edit: 'text', event: 'HCusNumber', width: 120 }
                , { field: 'HCusName', title: '客户名称', width: 120 }
                , { field: 'HSeOrderBillNo', title: '销售订单号', width: 200 }
                , { field: 'HRemark', title: '备注', edit: 'text', width: 100 }
                , { field: 'HProduceDate', title: '生产日期', edit: 'date', event: 'HProduceDate', width: 160 }
                , { field: 'HExpiryDate', title: '保质期至', edit: 'date', event: 'HExpiryDate', width: 160 }
                , { field: 'HheatNO', title: '热处理', edit: 'text', width: 100 }
                , { field: 'HAuxPropID', title: '辅助属性ID', width: 100, hide: true }
                , { field: 'HAuxPropNumber', title: '辅助属性代码', edit: 'text', event: 'HAuxPropNumber', width: 100 }
                , { field: 'HAuxPropName', title: '辅助属性名称', width: 100 }
                , { field: 'HUnitID', title: '计量单位ID', width: 100, hide: true }
                , { field: 'HUnitNumber', title: '计量单位代码', edit: 'text', event: 'HUnitNumber', width: 100 }
                , { field: 'HUnitName', title: '计量单位', width: 100 }
                , { field: 'HAuxQty', title: '辅单位数量', edit: 'text', width: 100, totalRow: true }
                , { field: 'HExpirationDateFlag', title: '是否启用保质期', width: 120, edit: 'checkbox', templet: '#switchTp3', unresize: false }
                , { field: 'HGiveAwayFlag', title: '是否赠品', width: 100, edit: 'checkbox', templet: '#switchTpl', unresize: false }
                , { field: 'HDate', title: '条码日期', width: 100, hide: true }
            ],
            tmBtList: [
                { field: 'HBarCode2', title: '条码编号', width: 100 }
                , { field: 'HMaterNumber2', title: '物料代码', width: 100 }
                , { field: 'HMaterName2', title: '物料名称', width: 100 }
                , { field: 'HMaterModel2', title: '规格型号', width: 100 }
                , { field: 'HAuxPropNumber2', title: '辅助属性代码', width: 100 }
                , { field: 'HAuxPropName2', title: '辅助属性', event: 'HWHCode', width: 120 }
                , { field: 'HGiveAwayFlag2', title: '是否赠品', width: 120, templet: '#switchTpl', unresize: false }
                , { field: 'HUnitCode2', title: '计量单位代码', width: 120 }
                , { field: 'HUnitName2', title: '计量单位', width: 120 }
                , { field: 'HQty2', title: '数量', width: 120 }
                , { field: 'HDate2', title: '进料日期', width: 120 }
                , { field: 'HCusNumber2', title: '客户代码', width: 120 }
                , { field: 'HCusName2', title: '客户', width: 120 }
                , { field: 'HSourceBillNo2', title: '源单单号', width: 120 }
                , { field: 'HSeOrderBillNo2', title: '销售订单号', width: 120 }
                , { field: 'HRemark2', title: '备注', width: 120 }
                , { field: 'HMTONo2', title: '计划跟踪号', width: 120 }
                , { field: 'HShowDate2', title: '日期', width: 100 }
                , { field: 'HInnerBillNo2', title: '内部采购订单号', width: 100 }
                , { field: 'HMaker2', title: '制单人', width: 100 }
            ],
            daBtList: [
            baseURL: process.env.VUE_APP_BASE_API,                      //后端接口访问前缀
            HModName: "Gy_BarCodeBill_JinLong",                         //模块名称
            disabledFlag_BarCodeProduce:false,                           //禁用标记-生成 æŒ‰é’®
            rules:{                                                     //表头form æ ¡éªŒ
            },
            HOrganizationList:[],                                       //组织下拉列表数据
            initMainData:{                                              //表头数据初始化
                HDate: moment().format('YYYY-MM-DD')                    //日期
                ,HMainSourceInterID:0                                   //源单主ID
                ,HMainSourceEntryID:0                                   //源单子ID
                ,HMainSourceBillNo:""                                   //源单单号
                ,HMainSourceBillType:""                                 //源单类型
                ,HPOOrderBillNo:""                                      //采购订单号
                ,HMaterID:0                                             //物料ID
                ,HMaterNumber:""                                        //物料代码
                ,HMaterName:""                                          //物料名称
                ,HMaterModel:""                                         //规格型号
                ,HUnitID:""                                             //计量单位ID
                ,HUnitName:""                                           //计量单位名称
                ,HAuxPropID:0                                           //辅助属性ID
                ,HAuxPropNumber:""                                      //辅助属性代码
                ,HAuxPropName:""                                        //辅助属性
                ,HBatchNo:""                                            //批号
                ,HSupID:0                                               //供应商ID
                ,HSupNumber:""                                          //供应商代码
                ,HSupName:""                                            //供应商
                ,HQty_SourceBill:0                                      //源单数量
                ,HMinQty:0                                              //标准包装数
                ,HBQty:0                                                //包数
                ,HEndQty:0                                              //尾包数量
                ,HReInspectionFlag:false                                //复检启用
                ,HInspectionDate:null                                   //生产日期
                ,HInspectionCycle:0                                     //复检周期(天)
                ,HReInspectionDate:null                                 //复检日期
                ,HPOOrderBillMTO:""                                     //采购跟踪号
                ,HSeOrderBillNo:""                                      //客户订单号
                ,HCusModel:""                                           //产品型号
                ,HOrganizationID:0                                      //组织ID
                ,HOrganization:""                                       //组织名称
            },
            SelectedTabName:"BarCode",                                  //表格页签-当前选择页面name
            tableColumns_BarCode: [                                     //条码列表table åˆ—数据
                { field: 'HItemID', title: 'HItemID', width: 100, hide: true }
                , { field: 'hmainid', title: 'hmainid', width: 100, hide: true }
                , { field: 'hsubid', title: 'hsubid', width: 100, hide: true }
@@ -448,821 +280,416 @@
                , { field: 'HSTOCKORGID', title: 'HSTOCKORGID', width: 100, hide: true }
                , { field: '生成组织', title: '生成组织', width: 120 }
            ],
            HBarCodeTypeList: [],
            HWorksNumberList: [],
            formShow: false,
            temp: undefined,
            formLoading: true,
            zzSelDis: false,
            rowHideShow: false,
            openRowHide: false,
            hPriceTypeList: ['成本价', '结算价'],
            addBtnShow: false,
            zbIndex: null,
            zbSelForm: {},//子表选中数据
            dialogTypeNum: null,//部门弹窗1,仓库弹窗2
            deptShow: false,//部门数据组件
            warehouseShow: false,//仓库数据组件
            materialShow: false,//物料数据组件
            gyEmployeeShow: false,//销售员数据组件
            ScICMOBillShow: false,
            propertyShow: false,
            deptform: {},//弹窗选中数据
            openData: false,//数据弹窗
            dialogTitle: '',
            organizationList: JSON.parse(sessionStorage.getItem('organizationList')),//组织列表
            subDisabled: false,//编辑页面保存按钮是否禁用(true禁用,false可用)
            // OperationType: this.$route.query.OperationType,//保存类型(新增1修改3)
            HInterID: null,
            baseURL: process.env.VUE_APP_BASE_API,
            checkedSysZb: [],
            editWlxxData: [],//子表
            editTmData: [],
            editDaData: [],
            HBarInfo: [],
            HFileList: [],
            editBtData: [],//子表表头
            activeName: 'first',
            // å¼¹å‡ºå±‚标题
            title: "",
            // æ˜¯å¦æ˜¾ç¤ºå¼¹å‡ºå±‚
            open: false,
            // æ—¥æœŸèŒƒå›´
            dateRange: [],
            // æŸ¥è¯¢å‚æ•°
            queryParams: {
                HBillNo: '',
                HInitTimeCycle: 29,
                HProjectNumber: '',
                HCusID: null,
                HMaterNumber: '',
                HMaterName: '',
                ColName1: '',
                ColName2: '',
                ColName: '',
                Comparator1: '',
                Comparator2: '',
                Comparator: '',
                ColContent1: '',
                ColContent2: '',
                ColContent: '',
            },
            // æ˜¾ç¤ºæœç´¢æ¡ä»¶
            showSearch: true,
            // é€‰ä¸­æ•°ç»„
            ids: [],
            // éžå•个禁用
            single: true,
            // éžå¤šä¸ªç¦ç”¨
            multiple: true,
            // é®ç½©å±‚
            loading: true,
            btResList: [],
            // è¡¨å•参数
            form: {},
            // è¡¨å•校验
            rules: {
                HSupName: [
                    { required: true, message: "客户不能为空", trigger: "blur" }
                ],
                HDate: [
                    { required: true, message: "日期不能为空", trigger: "blur" }
                ],
                HExRate: [
                    { required: true, message: "汇率不能为空", trigger: "blur" }
                ]
            }
            tableData_BarCode:[],                                       //条码列表table æ•°æ®
            RowIndex_BarCode:0,                                         //条码列表table è¡Œç´¢å¼•
            openPrintList:false,                                         //打印弹窗显示标记
            printListShow:false,                                        //打印模板数据显示标记
            selectedData_BarCode:0,                                     //条码列表table é€‰ä¸­æ•°æ®é›†åˆ
        };
    },
    created() {
        this.set_HBarCodeType()
        this.getdata()
    async created() {
        this.judgeIsLoging();                                           //判断是否登录,未登录则跳转回登录页面
        await this.get_OrganizationList();                              //页面初始化 èŽ·å–ç»„ç»‡ä¸‹æ‹‰åˆ—è¡¨æ•°æ®
        await this.initPageData();                                      //页面初始化
    },
    methods: {
        closeBill() {
            this.ScICMOBillShow = false
        //#region åˆ¤æ–­æ˜¯å¦ç™»å½•,未登录则跳转回登录页面
        judgeIsLoging(){
            if (sessionStorage["login"] != "login") {
                this.$modal.msgError("登录失效,请重新登录!!");
                this.$router.push({ path: "/" }).catch(() => { })
            }
        },
        //#endregion
        //#region é¡µé¢åˆå§‹åŒ–
        initPageData(){
            var params = this.get_UrlVars();
            var OperationType = params[params[0]];      //操作类型
            if (OperationType == "1" || typeof(OperationType)=="undefined") {                                             //
            }
            else if (OperationType == "4") {                                        //下推
                this.setInit_PushBill();
            }
            else {
                layer.alert("未知操作类型!", { icon: 5 });
            }
        },
        //#endregion
        //#region èŽ·å–ç»„ç»‡ä¸‹æ‹‰åˆ—è¡¨æ•°æ®
        async get_OrganizationList() {
            axios.get(this.baseURL + '/Web/GetOrganizations',{async:false}).then(response => {
                let result = response.data
                if (result.count == 1) {
                    var data = result.data;
                    for (var i = 0; i < data.length; i++) {
                        this.HOrganizationList.push(
                            {
                                ID:data[i].ID,
                                Name:data[i].Name,
                            }
                        )
                    }
                    this.initMainData.HOrganizationID = sessionStorage["OrganizationID"] * 1;
                }else{
                    this.$modal.msgError(result.message);
                }
            }).catch(error => {
                this.$modal.msgError("接口请求失败!" + error);
            });
        },
        //#endregion
        //#region ç»„织下拉列表变更事件
        onChangeMethod_HOrganization(){
        },
        //#endregion
        //#region æºå•数量数据变更事件
        onChangeForHQty_SourceBill(){
            if(this.initMainData.HMinQty>0){
                this.initMainData.HBQty = Math.floor((this.initMainData.HQty_SourceBill / this.initMainData.HMinQty) + (this.initMainData.HQty_SourceBill%this.initMainData.HMinQty == 0?0:1));
            }else{
                this.initMainData.HBQty = 0;
            }
            if(this.initMainData.HMinQty>0){
                this.initMainData.HEndQty = this.initMainData.HQty_SourceBill%this.initMainData.HMinQty;
            }
        },
        //#endregion
        //#region æ ‡å‡†åŒ…装数数据变更事件
        onChangeForHMinQty(){
            if(this.initMainData.HMinQty>0){
                this.initMainData.HBQty = Math.floor((this.initMainData.HQty_SourceBill / this.initMainData.HMinQty) + (this.initMainData.HQty_SourceBill%this.initMainData.HMinQty == 0?0:1));
            }else{
                this.initMainData.HBQty = 0;
            }
            if(this.initMainData.HMinQty>0){
                this.initMainData.HEndQty = this.initMainData.HQty_SourceBill%this.initMainData.HMinQty;
            }
        },
        //#endregion
        //#region ç”Ÿäº§æŒ‰é’®ç‚¹å‡»äº‹ä»¶æ•°æ®æ ¡éªŒ
        AllowLoadData(sSubStr) {
            var Result = true;
            //数值格式校验工具
            var ref = /^\d+(\.\d+)?$/;          //非负数正则表达式
            var ref1 = /^[1-9]\d*$/;            //正整数正则表达式
            var temp = "";
            sSubStr = JSON.parse(sSubStr);
            if (sSubStr[0].HDate == "") {
                this.$modal.msgError("日期未设置!!");
                return Result = false;
            }
            if (sSubStr[0].HSourceInterID == "0" || sSubStr[0].HSourceEntryID == "0" || sSubStr[0].HSourceBillNo == "") {
                this.$modal.msgError("源单信息有误!!【主内码:" + sSubStr[0].HSourceInterID + ";子内码:" + sSubStr[0].HSourceEntryID + ";源单号:" + sSubStr[0].HSourceBillNo + ";】");
                return Result = false;
            }
            if (sSubStr[0].HMaterID == "0") {
                this.$modal.msgError("物料信息有误!!【物料ID:" + sSubStr[0].HMaterID + ";物料代码:" + sSubStr[0].HMaterNumber + ";物料名称:" + sSubStr[0].HMaterName + ";规格型号:" + sSubStr[0].HMaterModel + ";】");
                return Result = false;
            }
            if (sSubStr[0].HSupID == "0") {
                this.$modal.msgError("供应商信息有误!!【供应商ID:" + sSubStr[0].HMaterID + ";供应商代码:" + sSubStr[0].HMaterNumber + ";供应商名称:" + sSubStr[0].HMaterName + ";】");
                return Result = false;
            }
            temp = sSubStr[0].HQty + "";
            if (temp == "0" || temp == "") {
                this.$modal.msgError("源单数量不能为0或空!!");
                return Result = false;
            } else if (!ref.test(temp)) {
                this.$modal.msgError("源单数量请输入大于0的数字!!");
                return Result = false;
            }
            temp = sSubStr[0].HMinQty + "";
            if (temp == "0" || temp == "") {
                this.$modal.msgError("标准包装数不能为0或空!!");
                return Result = false;
            } else if (!ref.test(temp)) {
                this.$modal.msgError("标准包装数请输入大于0的数字!!");
                return Result = false;
            }
            temp = sSubStr[0].HBQty + "";
            if (!ref1.test(temp)) {
                this.$modal.msgError("包数请输入大于0的整数数字!!");
                return Result = false;
            }
            // var HEndQty = this.initMainData.HEndQty;
            // if (HEndQty == "") {
            //     this.$modal.msgError("尾包数量不能为空!!");
            //     return Result = false;
            // } else if (!ref.test(HEndQty)) {
            //     this.$modal.msgError("尾包数量请输入不小于0的数字!!");
            //     return Result = false;
            // }
            return Result;
        },
        //#endregion
        //#region ç”ŸæˆæŒ‰é’®ç‚¹å‡»äº‹ä»¶
        async onClickMethod_BarCodeProduce(){
            this.disabledFlag_BarCodeProduce = true;                                //禁用生成按钮
            if (this.initMainData.HMaterName != null && (this.initMainData.HMaterName.indexOf("\"") != -1 || this.initMainData.HMaterName.indexOf(";") != -1)) {
                this.initMainData.HMaterName = this.initMainData.HMaterName.replaceAll("\"", "”").replaceAll(";", ";")
            }
            if (this.initMainData.HMaterModel != null && (this.initMainData.HMaterModel.indexOf("\"") != -1 || this.initMainData.HMaterModel.indexOf(";") != -1)) {
                this.initMainData.HMaterModel = this.initMainData.HMaterModel.replaceAll("\"", "”").replaceAll(";", ";")
            }
             //判断生成条码数量是否超过可生成条码数量
            var temp = await this.getPushSource_POInStockBillInit(this.initMainData.HMainSourceInterID, this.initMainData.HMainSourceEntryID);
            var dataArray = [];
            dataArray.push(temp);
            var HQty_SourceBill = this.initMainData.HQty_SourceBill * 1;
            if (HQty_SourceBill > ((dataArray[0].数量 * 1) - (dataArray[0].已生成条码数量 * 1))) {
                this.$modal.msgError("条码生成数量大于最大可生成数量【" + ((dataArray[0].数量 * 1) - (dataArray[0].已生成条码数量 * 1)) + "】!!");
                return false;
            }
            var sMainData_temp = [
                {
                    "HMainID": this.initMainData.HMainSourceInterID
                    , "HSubID": this.initMainData.HMainSourceEntryID
                    , "HBillNo": this.initMainData.HMainSourceBillNo
                    , "HBillType": this.initMainData.HMainSourceBillType
                    , "HMaterID": this.initMainData.HMaterID
                    , "HMaterNumber": this.initMainData.HMaterNumber
                    , "HMaterName": this.initMainData.HMaterName
                    , "HMaterModel": this.initMainData.HMaterModel
                    , "HCusModel": this.initMainData.HCusModel
                    , "HCusMaterName": ""
                    , "HEmpID": 0
                    , "HEmpNumber": ""
                    , "HEmpName": ""
                    , "HGroupID": 0
                    , "HGroupNumber": ""
                    , "HGroupName": ""
                    , "HCheckEmpName": ""
                    , "HBatchNo": this.initMainData.HBatchNo
                    , "HQty": this.initMainData.HQty_SourceBill
                    , "HMinQty": this.initMainData.HMinQty
                    , "HBQty": this.initMainData.HBQty
                    , "HPackQty": 0
                    , "HCoilNO": ""
                    , "HFurnaceNO": ""
                    , "HFactory": ""
                    , "HCusID": 0
                    , "HCusNumber": ""
                    , "HCusName": ""
                    , "HSeOrderBillNo": ""
                    , "HRemark": ""
                    , "HProduceDate": this.initMainData.HDate
                    , "HExpiryDate": this.initMainData.HDate
                    , "HheatNO": ""
                    , "HAuxPropID": this.initMainData.HAuxPropID
                    , "HAuxPropNumber": this.initMainData.HAuxPropNumber
                    , "HAuxPropName": this.initMainData.HAuxPropName
                    , "HUnitID": this.initMainData.HUnitID
                    , "HUnitNumber": ""
                    , "HUnitName": this.initMainData.HUnitName
                    , "HAuxQty": 0
                    , "HExpirationDateFlag": 0
                    , "HGiveAwayFlag": 0
                    , "HDate": this.initMainData.HDate
                    , "HMTONo": ""
                    , "HBarCodeType": "唯一条码"
                    , "HSupID": this.initMainData.HSupID
                    , "HSupNumber": this.initMainData.HSupNumber
                    , "HSupName": this.initMainData.HSupName
                    , "HInnerBillNo": this.initMainData.HPOOrderBillNo
                    , "HReInspectionFlag": this.initMainData.HReInspectionFlag
                    , "HInspectionDate": this.initMainData.HInspectionDate
                    , "HInspectionCycle": this.initMainData.HInspectionCycle
                    , "HReInspectionDate": this.initMainData.HReInspectionDate
                    , "HPOOrderBillMTO": this.initMainData.HPOOrderBillMTO
                    , "HSeOrderBillNo": this.initMainData.HSeOrderBillNo
                }
            ]
            var sSubStr = JSON.stringify(sMainData_temp);
            //物料明细信息不为空判断
            if (!this.AllowLoadData(sSubStr))//数据验证
            {
                this.disabledFlag_BarCodeProduce = false;                           //生成按钮启用
                return;
            }
            var HOrgType = sessionStorage["Organization"];                         //获取选择的组织
            var HSourceBillType = this.initMainData.HMainSourceBillType;            //获取选择的源单类型
            var CampanyName = "xxx";                                                //获取选择的工厂代码
            var UserName = sessionStorage["HUserName"];                             //获取当前登录人员
            var sMainSub = sSubStr + ';' + HOrgType + ';' + HSourceBillType + ';' + CampanyName + ';' + UserName;
            this.SaveBarCodeCreate(sMainSub);                                       //条码生成
        },
        //#endregion
        //#region æ‰“印按钮点击事件
        get_PrintReport() {
            if (this.danganSelList.length == 0) {
            if (this.selectedData_BarCode.length == 0) {
                this.$modal.msgError("请选择数据");
            } else {
                this.rowSel = [];
                for (var i = 0; i < this.danganSelList.length; i++) {
                    this.rowSel.push(this.danganSelList[i].HItemID.toString());
                for (var i = 0; i < this.selectedData_BarCode.length; i++) {
                    this.rowSel.push(this.selectedData_BarCode[i].HItemID.toString());
                }
                this.printListShow = true;
                this.openPrintList = true;
                // axios.get(this.baseURL + "/Kf_SellOutBill/CheckSellOutBill_IsExist", {
                //     params: { HInterID: this.rowForm.hmainid },
                // })
                //     .then((response) => {
                //         var result = response.data;
                //         if (result.count == 1) {
                //             this.printListShow = true;
                //             this.openPrintList = true;
                //         } else {
                //             this.$modal.msgError(result.code + result.Message);
                //         }
                //     })
                //     .catch((error) => {
                //         this.$modal.msgError("接口请求失败!");
                //     });
            }
        },
        HOrgIDChange(val) {
            this.organizationList.map(item => {
                if (item.ID == val) {
                    this.HOrgSel = item.Name
                }
        //#endregion
        //#region æ¡ç åˆ—表复选框选择状态变更监听事件
        onSelectionChange_BarCode(selection){
            this.selectedData_BarCode = selection;
        },
        //#endregion
        //#region èŽ·å–å‚æ•°
        get_UrlVars() {
            var vars = [], hash;
            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
            for (var i = 0; i < hashes.length; i++) {
                hash = hashes[i].split('=');
                vars.push(hash[0]);
                vars[hash[0]] = hash[1];
            }
            return vars;
        },
        //#endregion
        //#region æ ¹æ®ä¸»å†…码与子内码获取源单收料通知单数据
        async getPushSource_POInStockBillInit(HSourceInterID, HSourceEntryID) {
            var res = "none";
            var sql = "select * from h_v_IF_POInStockBillList_Source where 1=1 and HMainID = " + HSourceInterID + " and HSubID = " + HSourceEntryID;
            var ModRightNameCheck = "";
            return axios.get(this.baseURL + '/CommonModel/searchMethod', {
                async:false,
                params: {
                    "sql": sql
                    , "user": sessionStorage["HUserName"]
                    , "ModRightNameCheck": ModRightNameCheck
                },
            })
        },
        ToolBatch() {
            if (this.HMinQty2 == 0 && this.HMaterID) {
                axios.get(this.baseURL + '/Sc_BarCode/Batch', {
                    params: {
                        "HMaterID": this.HMaterID, "HBatchNo": this.HBatchNo
                    },
                }).then(response => {
                    let data1 = response.data
                    if (data1.count == 1) {
                        if (data1.code == 1) {
                            this.BatchNoArray[0].HBatchNo = data1.data
                            this.BatchNoArray[0].HMinQty = HMinQty2
                            console.log(this.BatchNoArray)
                            this.$modal.msgSuccess(data1.Message, sessionStorage["HTranSlate"])
                        }
                    } else {
                        this.$modal.msgError(data1.Message);
                    }
                }).catch(error => {
                    this.$modal.msgError("请您在获取批号后在输入最小包装数 ^_^");
                })
            } else {
                this.$modal.msgError(data1.Message);
            }
        },
        ToolCreate() {
            this.disabledToolCreate = true
            for (var i = 0; i < this.editWlxxData.length; i++) {
                this.editWlxxData[i].HDate = moment(this.form.HDate).format('YYYY-MM-DD');
                if (this.editWlxxData[i].HMaterName != null && (this.editWlxxData[i].HMaterName.indexOf("\"") != -1 || this.editWlxxData[i].HMaterName.indexOf(";") != -1)) {
                    this.editWlxxData[i].HMaterName = this.editWlxxData[i].HMaterName.replaceAll("\"", "”").replaceAll(";", ";")
                }
                if (this.editWlxxData[i].HMaterModel != null && (this.editWlxxData[i].HMaterModel.indexOf("\"") != -1 || this.editWlxxData[i].HMaterModel.indexOf(";") != -1)) {
                    this.editWlxxData[i].HMaterModel = this.editWlxxData[i].HMaterModel.replaceAll("\"", "”").replaceAll(";", ";")
                }
                if (this.editWlxxData[i].HPinfan != null && ("HPinfan" in this.editWlxxData[i])) {
                    if (this.editWlxxData[i].HPinfan.indexOf("\"") != -1 || this.editWlxxData[i].HPinfan.indexOf(";") != -1) {
                        this.editWlxxData[i].HPinfan = this.editWlxxData[i].HPinfan.replaceAll("\"", "”").replaceAll(";", ";")
        //#endregion
        //#region ä¸‹æŽ¨é¡µé¢åˆå§‹åŒ–
        async setInit_PushBill(HSourceInterID,HSourceEntryID) {
            //获取参数
            var params = this.get_UrlVars();
            var OperationType = params[params[0]];      //操作类型
            var HSourceInterID = params[params[1]];     //源单主id
            var HSourceEntryID = params[params[2]];     //源单子id
            var HSourceBillType = params[params[3]];    //源单类型
            var HSourceBillNo = params[params[4]];      //源单单号
            //获取源单信息
            var temp = null;
            var res = "none"
            try{
                res = await this.getPushSource_POInStockBillInit(HSourceInterID, HSourceEntryID);
                if(res.data.code=="1"){
                    if(res.data.data.length>0){
                        res = await this.getPushSource_POInStockBillInit(HSourceInterID, HSourceEntryID);
                    }else{
                        res = "none";
                        this.$modal.msgError("未查询到当前单据!!!");
                    }
                }
                else{
                    res = "none";
                    this.$modal.msgError(res.data.Message);
                }
            }catch(error){
                res = "none";
                this.$modal.msgError("接口请求失败!" + error);
            }
            var sSubStr = JSON.stringify(this.editWlxxData);
            this.HMaterInfo = this.editWlxxData
            if (!this.AllowLoadData(sSubStr)) {//数据验证
                this.disabledToolCreate = false//生成按钮启用
                return false
            if(res != "none"){
                temp = res.data.data[0];
            }else{
                return;
            }
            //获取选择的组织
            var HOrgType = this.HOrgSel
            console.log(HOrgType)
            //获取选择的工厂代码
            var CampanyName = this.form.HWorksNumber
            if (CampanyName == "" || CampanyName == null) {
                CampanyName = "xxx";
            var dataArray = [];
            dataArray.push(temp);
            this.initMainData.HDate = moment().format('YYYY-MM-DD');
            this.initMainData.HMainSourceInterID = HSourceInterID;
            this.initMainData.HMainSourceEntryID = HSourceEntryID;
            this.initMainData.HMainSourceBillNo = HSourceBillNo;
            this.initMainData.HMainSourceBillType = HSourceBillType;
            this.initMainData.HPOOrderBillNo = dataArray[0].源单单号==null?"":dataArray[0].源单单号;
            this.initMainData.HMaterID = dataArray[0].HMaterID==null?0:dataArray[0].HMaterID;
            this.initMainData.HMaterNumber = dataArray[0].物料代码==null?"":dataArray[0].物料代码;
            this.initMainData.HMaterName = dataArray[0].物料名称==null?"":dataArray[0].物料名称;
            this.initMainData.HMaterModel = dataArray[0].规格型号==null?"":dataArray[0].规格型号;
            this.initMainData.HUnitID = dataArray[0].HUnitID==null?0:dataArray[0].HUnitID;
            this.initMainData.HUnitName = dataArray[0].计量单位==null?"":dataArray[0].计量单位;
            this.initMainData.HAuxPropID = dataArray[0].HAuxPropID==null?0:dataArray[0].HAuxPropID;
            this.initMainData.HAuxPropNumber = dataArray[0].辅助属性代码==null?"":dataArray[0].辅助属性代码;
            this.initMainData.HAuxPropName = dataArray[0].辅助属性==null?"":dataArray[0].辅助属性;
            this.initMainData.HSupID = dataArray[0].HSupID==null?0:dataArray[0].HSupID;
            this.initMainData.HSupNumber = dataArray[0].供应商代码==null?"":dataArray[0].供应商代码;
            this.initMainData.HSupName = dataArray[0].供应商==null?"":dataArray[0].供应商;
            this.initMainData.HBatchNo = dataArray[0].批号==null?"":dataArray[0].批号;
            this.initMainData.HQty_SourceBill = ((dataArray[0].数量 * 1) - (dataArray[0].已生成条码数量 * 1))<0?0:((dataArray[0].数量 * 1) - (dataArray[0].已生成条码数量 * 1));
            this.initMainData.HReInspectionFlag = dataArray[0].复检标记==1?true:false;
            this.initMainData.HInspectionCycle = dataArray[0].复检标记==1?dataArray[0].复检周期:0;
            this.initMainData.HInspectionDate = dataArray[0].复检标记==1?moment(dataArray[0].检验日期).format('YYYY-MM-DD'):null;
            this.initMainData.HReInspectionDate = dataArray[0].复检标记==1?moment(dataArray[0].检验日期).add(dataArray[0].复检周期,"days").format('YYYY-MM-DD') :null;
            this.initMainData.HPOOrderBillMTO = dataArray[0].采购跟踪号;
            this.initMainData.HSeOrderBillNo = dataArray[0].客户订单号;
            this.initMainData.HCusModel = dataArray[0].产品型号;
            this.initMainData.HMinQty = 0;
            if(this.initMainData.HMinQty>0){
                this.initMainData.HBQty = (this.initMainData.HQty_SourceBill / this.initMainData.HMinQty) + (this.initMainData.HQty_SourceBill%this.initMainData.HMinQty == 0?0:1);
            }else{
                this.initMainData.HBQty = 0;
            }
            //获取选择的源单类型
            var HSourceBillType = this.form.HSourceBillType
            //获取选择的条码类型
            var HSelectBarCodeType = this.form.HBarCodeType
            //获取当前登录人员
            var UserName = sessionStorage["HUserName"];
            //var UserName = "Admin";
            var sMainSub = sSubStr + ';' + HOrgType + ';' + HSourceBillType + ';' + HSelectBarCodeType + ';' + CampanyName + ';' + UserName;
            this.SaveBarCodeCreate(sMainSub);
            if(this.initMainData.HMinQty>0){
                this.initMainData.HEndQty = this.initMainData.HQty_SourceBill%this.initMainData.HMinQty;
            }
        },
        AllowLoadData(sSubStr) {
            var Result = true;
            if (typeof (sSubStr) == "undefined" || sSubStr == "") {
                this.$modal.msgError("没有物料明细记录")
                return Result = false;
            }
            if (typeof (sSubStr) != "undefined" && typeof (sSubStr) != "") {
                sSubStr = JSON.parse(sSubStr);
                sSubStr.map((item, index) => {
                    if (!item.HMaterID) {
                        this.$modal.msgError("明细记录第" + (index + 1) + "行,物料信息为空!")
                        return Result = false;
                    }
                    if (!item.HQty) {
                        this.$modal.msgError("明细记录第" + (index + 1) + "行,数量为空!")
                        return Result = false;
                    }
                })
            }
            else {
                return Result = true;
            }
            return Result;
        },
        //#endregion
        //#region æ¡ç ç”Ÿæˆ
        SaveBarCodeCreate(sMainSub, CampanyName) {
            axios({
                method: 'post',
                url: this.baseURL + "/Sc_BarCode/Sub_SaveBill",
                url: this.baseURL + "/Sc_BarCode/Sub_SaveBill_JinLong",
                data: {
                    "msg": sMainSub, "CampanyName": CampanyName
                },
            }).then(response => {
                let result = response.data
                if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                    this.editTmData = result.list // è°ƒç”¨table.reload é‡æ–°æ¸²æŸ“显示加载追加了数据的表格
                    this.HBarInfo = result.list;
                    //加载档案列表
                    this.editDaData = result.data
                    this.HFileList = result.data;
                    this.barcodeName = 'dangan'
                    this.tableData_BarCode = result.data;
                    console.log(this.tableData_BarCode);
                }
                else {
                    this.disabledToolCreate = false//生成按钮启用
                    this.$modal.msgError(result.Message, sessionStorage["HTranSlate"])
                    this.disabledFlag_BarCodeProduce = false                            //生成按钮启用
                    this.$modal.msgError(result.Message);
                }
            }).catch(error => {
                this.disabledFlag_BarCodeProduce = false                            //生成按钮启用
                this.$modal.msgError("接口请求失败!");
            });
        },
        editMainTable(row) {
            row.HBQty = Math.ceil(row.HQty / row.HMinQty)
        },
        HSourceBillTypeChange(val) {
            if (val == 1) {
                this.openNum == 10
            }
        },
        set_HBarCodeType() {
            //获取条码类型代码
            axios.get(this.baseURL + '/Sc_BarCode/GetHBarCodeTypeBill').then(response => {
                let result = response.data
                if (result.count == 1) {
                    this.HBarCodeTypeList = result.list
                }
            }).catch(error => {
                this.$modal.msgError("接口请求失败!");
            });
            axios.get(this.baseURL + '/Sc_BarCode/GetHWorksNumberBill').then(response => {
                let result = response.data
                if (result.count == 1) {
                    this.HWorksNumberList = result.list
                }
            }).catch(error => {
                this.$modal.msgError("接口请求失败!");
            });
        },
        getdata() {
            this.formShow = false
            this.formLoading = true
            this.handleAdd()
        },
        // èŽ·å–å‚æ•°_传递的JSON格式参数
        getUrlVars_JSON() {
            var datajson;
            var str = this.propsData; //获取链接中传递的参数
            var arr = str.substring(str.lastIndexOf("=") + 1);
            datajson = JSON.parse(decodeURI(arr));
            return datajson;
        },
        handleRowHide() {
            this.rowHideShow = true
            this.openRowHide = true
        },
        rowSetClose(val) {
            this.rowHideShow = false
            this.openRowHide = val
        },
        getSupType() {
            var type = this.form.HSourceBillType
            switch (type) {
                case '1':
                    return "生产订单";
                    break;
                case '2':
                    return "生产汇报单";
                    break;
                case '3':
                    return "采购订单";
                    break;
                case '4':
                    return "收料通知单";
                    break;
                case '5':
                    return "委外订单";
                    break;
                case '6':
                    return "生产入库单";
                    break;
                case '7':
                    return "采购入库单";
                    break;
                case '8':
                    return "销售退货单";
                    break;
                case '9':
                    return "生产退料单";
                    break;
                case '10':
                    return "工序流转卡";
                    break;
                case '11':
                    return '销售出库单';
                    break;
                case '12':
                    return '领料出库单';
                    break;
            }
        },
        isAllEqual(array) {
            return array.every(item => item === array[0])
        },
        //弹窗赋值
        dbEmitData(deptRow, num) {
            console.log(deptRow)
            if (num) {
                if (num == 'gyProperty') {
                    this.editWlxxData[this.zbIndex].HAuxPropID = deptRow.HItemID;
                    this.editWlxxData[this.zbIndex]["HAuxPropName"] = deptRow["辅助属性名称"];
                    this.editWlxxData[this.zbIndex]["HAuxPropNumber"] = deptRow["辅助属性代码"];
                    this.propertyShow = false;
                    this.openData = false;
                } else if (num == 3) {
                    this.editWlxxData = []
                    for (var i = 0; i < deptRow.length; i++) {
                        this.editWlxxData.push({
                            "HMaterID": deptRow[i].HItemID,
                            "HMaterNumber": deptRow[i].物料代码,
                            "HMaterName": deptRow[i].物料名称,
                            "HMaterModel": deptRow[i].规格型号,
                            "HUnitID": deptRow[i].HUnitID,
                            "HUnitNumber": deptRow[i].计量单位代码,
                            "HUnitName": deptRow[i].计量单位,
                            "HAuxQty": 0,
                        })
                    }
                    this.materialShow = false
                    this.openData = false
                }
                return
            }
            if (deptRow.length > 0) {
                this.zbDataShow = false
                this.editWlxxData = []
                var list = []
                var BillSelect = []
                for (var i = 0; i < deptRow.length; i++) {
                    if (!deptRow[i].部门) {
                        list.push(deptRow[i].部门)
                    }
                    BillSelect.push({
                        BillType: deptRow[i].HBillType,
                        BillTitle: this.getSupType(),
                        BillNo: deptRow[i].单据号,
                        BillMainID: deptRow[i].HMainID,
                        BillSubID: deptRow[i].HSubID,
                        SPID: 0,
                        BatchNo: "",
                        HAuxPropID: 0
                    });
                }
                if (this.isAllEqual(list)) { //不允许选择不同部门
                    //获取选中数据
                    var GrdSelectData = JSON.stringify(BillSelect);
                    //获取选择的源单类型
                    var HSourceBillType = this.getSupType();
                    //获取选择的条码类型
                    var HBarCodeType = this.form.HBarCodeType;
                    //获取当前登录人员
                    var UserName = sessionStorage["HUserName"];
                    var Str = GrdSelectData + ";" + HSourceBillType + ";" + HBarCodeType + ";" + UserName;
                    //通过选择的源单主子内码查找详细信息
                    axios({
                        method: 'post',
                        url: this.baseURL + "/Sc_BarCode/SelectReportFromBillList",
                        data: {
                            "msg": Str
                        },
                    }).then(response => {
                        let result = response.data
                        this.HMaterID = result.list[0].HMaterID;
                        this.HBatchNo = result.list[0].HBatchNo;
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            for (let i = 0; i < result.list.length; i++) {
                                result.list[i].HQty = result.list[i].HQty.toString().match(/^\d+(?:\.\d{0,6})?/)[0]  //保留小数点后六位小数
                                if (result.list[i].HMinQty != 0) {
                                    result.list[i].HBQty = Math.ceil(result.list[i].HQty / result.list[i].HMinQty)
                                }
                                result.list[i].HEmpID = sessionStorage["HEmpID"]
                                result.list[i].HEmpNumber = sessionStorage["HEmpNumber"]
                                result.list[i].HEmpName = sessionStorage["HEmpName"]
                            }
                            this.BatchNoArray = result.list;  //获取批号,用来给批次按钮功能中的批号赋值
                            this.editWlxxData = result.list
                            this.ScICMOBillShow = false
                            this.zbDataShow = true
                            this.openData = false
                        }
                    }).catch(error => {
                        this.$modal.msgError("接口请求失败!");
                    })
                } else {
                    this.$modal.msgError("不允许选择不同的部门数据!", sessionStorage["HTranSlate"]);
                }
            } else {
                this.$modal.msgError("请选择数据!");
            }
        },
        emitData(deptRow, num) {
            this.dialogTypeNum = num
            this.deptform = deptRow
        },
        deptClickSub() {
            this.dbEmitData(this.deptform, this.dialogTypeNum)
            this.deptform = {}
        },
        deptClose() {
            this.deptform = {}
            this.openData = false
        },
        //新增编辑表单初始化
        reset() {
            this.form = {
                HOrgID: sessionStorage["OrganizationID"] - 0,
                HWorksNumber: '',
                HDate: moment(new Date()).format('YYYY-MM-DD'),
                HSourceBillType: '1',
                HSourceBillNo: '',
                HBarCodeType: '唯一条码',
            }
            this.editWlxxData = []
            this.editBtData = []
            this.ids = []
            this.subDisabled = false
            this.addBtnShow = false
            this.activeName = 'first'
            this.resetForm("form");
        },
        //退出
        close() {
            this.reset()
            if (!this.OperationType && !this.copyType) {
                const obj = { fullPath: this.$route.path, path: this.$route.path, name: this.$route.name, };
                this.$tab.closePage(obj).then(res => {
                    const latestView = res.visitedViews.slice(-1)[0]
                    if (latestView) {
                        this.$router.push(latestView.fullPath)
                    } else {
                        if (obj.name === 'Dashboard') {
                            this.$router.replace({ path: '/redirect' + obj.fullPath })
                        } else {
                            this.$router.push('/')
                        }
                    }
                });
            } else {
                this.formShow = false
                this.$emit('editClose', false)
            }
        },
        //根据用户获取对应职员、部门、销售主管
        getCzyglByUser() {
            axios.get(this.baseURL + '/Xs_SeOrderBill/getCzyglByUser', {
                params: { "CurUserName": sessionStorage["HUserName"] }
            }).then(response => {
                let dataForm = response.data.data[0]
                this.form.HDeptID = dataForm.HDeptID
                this.form.HDeptName = dataForm.HDeptName
                this.form.HEmpID = dataForm.HEmpID
                this.form.HEmpName = dataForm.HEmpName
                this.form.HManagerID = dataForm.HManagerID
                this.form.HManagerName = dataForm.HManagerName
            }).catch(error => {
                this.$modal.msgError("接口请求失败!");
            });
        },
        /** æ–°å¢žæŒ‰é’®æ“ä½œ */
        handleAdd() {
            this.reset()
            this.handleAddSysZb()
            this.$nextTick(() => {
                this.formShow = true
                this.formLoading = false
            })
        },
        /** ä¿®æ”¹æŒ‰é’®æ“ä½œ */
        handleUpdate() {
            this.reset()
            let rowHmainid = this.linterid
            axios.get(this.baseURL + "/Kf_SellOutBill/cx", {
                params: { 'HInterID': rowHmainid }
            }).then(response => {
                if (response.data.count == 1) {
                    var result = response.data
                    var data = response.data.data[0]
                    this.form.BillType = data.HSourceBillType
                    if (this.copyType == 1) {
                        let date = new Date()
                        this.form.HDate = moment(date).format('YYYY-MM-DDTHH:mm:ss')
                    } else {
                        this.form.HBillNo = data.单据号
                        this.form.HInterID = data.hmainid
                        this.form.HDate = data.日期
                        this.form.HMaker = data.制单人
                        this.form.HUpDater = data.修改人
                        this.form.HChecker = data.审核人
                        this.form.HMakeDate = data.制单日期
                        this.form.HUpDateDate = data.修改日期
                        this.form.HCheckDate = data.审核日期
                        this.form.HCloseMan = data.关闭人
                        this.form.HDeleteMan = data.作废人
                        this.form.HCloseDate = data.关闭日期
                        this.form.HDeleteDate = data.作废日期
                    }
                    this.form.HBillSubType = data.HBillSubType
                    this.form.HMainSourceInterID = data.HMainSourceInterID
                    this.form.HMainSourceEntryID = data.HMainSourceEntryID
                    this.form.HMainSourceBillType = data.HMainSourceBillType
                    this.form.HMainSourceBillNo = data.HMainSourceBillNo
                    this.form.HEmpName = data.业务员
                    this.form.HEmpID = data.HEmpID
                    this.form.HDeptName = data.部门
                    this.form.HDeptID = data.HDeptID
                    this.form.HManagerName = data.主管
                    this.form.HManagerID = data.HManagerID
                    this.form.HSupName = data.客户
                    this.form.HSupID = data.HSupID
                    this.form.HLinkMan = data.联系人
                    this.form.HLinkPhone = data.联系电话
                    this.form.HSecManagerName = data.发货人
                    this.form.HSecManagerID = data.HSecManagerID
                    this.form.HKeeperName = data.保管员
                    this.form.HKeeperID = data.HKeeperID
                    this.form.HRemark = data.表头备注
                    this.form.HProjectNumber = data.项目编码
                    this.form.HProjectID = data.HProjectID
                    this.form.HProjectName = data.项目名称
                    this.form.HGroupName = data.班组
                    this.form.HGroupID = data.HGroupID
                    this.form.HWHName = data.主表仓库
                    this.form.HWHID = data.HWHID_Main
                    this.form.HConveyCompName = data.运输公司
                    this.form.HConveyCompID = data.HConveyCompID
                    this.form.HConveyTypeName = data.运输方式
                    this.form.HConveyTypeID = data.HConveyTypeID
                    this.form.HConveyMoney = data.HConveyMoney
                    this.form.HCarriage = data.运费
                    this.form.HSTOCKORGID = data.HSTOCKORGID
                    this.form.HOWNERID = data.HOWNERID
                    this.form.HSCWHName = data.主表调出仓库
                    this.form.HSCWHID = data.HSCWHID
                    this.form.HCheckStatusMan = data.核销人
                    this.form.HExplanation = data.摘要
                    this.form.HInnerBillNo = data.内部单据号
                    this.form.HCurName = data.币别
                    this.form.HCurID = data.HCurID
                    this.form.HExRate = data.汇率
                    this.form.HSellSName = data.销售方式
                    this.form.HSellSID = data.HSellSID
                    //  this.form.HCusBalance=data
                    //  this.form.HCreditRating_Now=HConveyMoney
                    //  this.form.HAvailableBalance=data
                    this.form.HPriceType = data.单价类型
                    this.form.HOrgID = data.HOrgID
                    for (var i = 0; i < result.data.length; i++) {
                        this.editWlxxData.push(
                            {
                                "HMaterID": result.data[i].HMaterID
                                , "物料代码": result.data[i].物料代码
                                , "物料名称": result.data[i].物料名称
                                , "规格型号": result.data[i].规格型号
                                , "HUnitID": result.data[i].HUnitID
                                , "计量单位": result.data[i].计量单位
                                , "HQtyMust": result.data[i].应发数量.toFixed(6)
                                , "HQty": result.data[i].数量.toFixed(6)
                                , "HPieceQty": result.data[i].件数.toFixed(0)
                                , "HPrice": result.data[i].单价.toFixed(4)
                                , "HTaxPrice": result.data[i].含税单价.toFixed(4)
                                , "HTaxRate": result.data[i].税率
                                , "HMoney": (result.data[i].数量 * result.data[i].单价).toFixed(2)
                                , "HTaxMoney": (result.data[i].数量 * result.data[i].含税单价, 2).toFixed(2)
                                , "HWHID": result.data[i].hwhid
                                , "发货仓库": result.data[i].发货仓库
                                , "HRemark": result.data[i].表体备注
                                , "HQty_Full": result.data[i].满车重量
                                , "HQty_Empty": result.data[i].空车重量
                                , "HQty_Back": result.data[i].回车重量
                                , "HCostPrice": result.data[i].成本单价
                                , "HCostMoney": result.data[i].成本金额
                                , "HSalePrice": result.data[i].销售单价
                                , "HSeOrderInterID": result.data[i].HSeOrderInterID
                                , "HSeOrderEntryID": result.data[i].HSeOrderEntryID
                                , "HSeOrderBillNo": result.data[i].销售订单号
                                , "HSourceInterID": result.data[i].HSourceInterID
                                , "HSourceEntryID": result.data[i].HSourceEntryID
                                , "HSourceBillNo": result.data[i].源单单号
                                , "HSourceBillType": result.data[i].HSourceBillType
                                , "HRelationQty": result.data[i].关联数量
                                , "HRelationMoney": result.data[i].关联金额
                                , 'HSPID': result.data[i].HSPID
                                , 'HSPName': result.data[i].仓位
                                , 'HSPGroupID': result.data[i].HSPGroupID
                                , "HSPGroupName": result.data[i].仓位组
                                , 'HSCWHID': result.data[i].HSCWHID
                                , 'HSCWHName': result.data[i].调出仓库
                                , 'HSCSPID': result.data[i].HSCSPID
                                , 'HSCSPName': result.data[i].调出仓位
                                , 'HBatchNo': result.data[i].批次
                                , 'HPOOrderInterID': result.data[i].采购订单内码
                                , 'HPOOrderEntryID': result.data[i].采购订单子内码
                                , 'HPOOrderBillNo': result.data[i].采购订单号
                                , 'HAuxPropID': result.data[i].HPropertyID
                                , 'HAuxPropName': result.data[i].辅助属性
                                , 'HAuxPropNumber': result.data[i].辅助属性代码
                                , 'HSecUnitID': result.data[i].HSecUnitID
                                , 'HSecUnitName': result.data[i].辅助计量单位
                                , 'HSecUnitRate': result.data[i].换算率
                                , 'HEngineNum': result.data[i].发动机号
                                , 'HUnderPanNum': result.data[i].地盘号
                                , 'HLeaveFactCard': result.data[i].出厂证
                                , 'HReqBuyQty': result.data[i].申请采购数量
                                , 'HReqOutQty': result.data[i].申请出库数量
                                , 'HCurrentInventory': result.data[i].当前库存
                            }
                        );
                    }
                    if (data.状态 != '创建' && this.copyType != 1) {
                        this.$modal.msgError("此条数据不是创建状态,不能修改");
                        this.subDisabled = true
                    }
                    this.formShow = true
                    this.formLoading = false
                }
            }).catch(error => {
                this.$modal.msgError("接口请求失败!");
            });
        },
        //根据客户带出联系人、联系电话
        getCustomerByCusID(HCusID) {
            axios.get(this.baseURL + "/Xs_SeOrderBill/getCustomerByCusID", {
                params: {
                    HCusID: HCusID
                }
            }).then(response => {
                this.form.联系人 = response.data.data[0].HLinkMan
                this.form.联系电话 = response.data.data[0].HLinkPhone
                // this.form = response.data.data[0]
            }).catch(error => {
                this.$modal.msgError("接口请求失败!");
            });
        },
        /** é”€å”®å‡ºåº“子表明细序号 */
        wlxxzbRowSysZbIndex({ row, rowIndex }) {
            row.index = rowIndex + 1;
        },
        tiaomaZbIndex({ row, rowIndex }) {
            row.index = rowIndex + 1;
        },
        danganZbIndex({ row, rowIndex }) {
            row.index = rowIndex + 1;
        },
        /** ç¼–辑页子表添加按钮操作 */
        handleAddSysZb(index, num) {
            if (num == 1 && !index) {
                this.$modal.msgError("请选择一行数据编辑!");
            } else {
                let obj = {
                    HMainID: 0,
                    HSubID: 0,
                    HSourceBillSEQ: '',
                    HBillNo: '',
                    HMaterID: '',
                    HMaterNumber: '',
                    HMaterName: '',
                    HMaterModel: '',
                    HCusModel: '',
                    HCusMaterName: '',
                    HEmpID: 0,
                    HEmpNumber: '',
                    HEmpName: '',
                    HGroupID: 0,
                    HGroupNumber: '',
                    HGroupName: '',
                    HCheckEmpName: '',
                    HBatchNo: '',
                    HMTONo: '',
                    HQty: 0,
                    HMinQty: 0,
                    HBQty: 0,
                    HPackQty: '',
                    HCoilNO: '',
                    HFurnaceNO: '',
                    HFactory: '',
                    HCusID: 0,
                    HCusNumber: '',
                    HCusName: '',
                    HSeOrderBillNo: '',
                    HRemark: '',
                    HProduceDate: this.form.HDate,
                    HExpiryDate: this.form.HDate,
                    HheatNO: '',
                    HAuxPropID: 0,
                    HAuxPropNumber: '',
                    HAuxPropName: '',
                    HUnitID: 0,
                    HUnitNumber: '',
                    HUnitName: '',
                    HAuxQty: '',
                    HExpirationDateFlag: '',
                    HGiveAwayFlag: '',
                    HDate: this.form.HDate,
                }
                if (index) {
                    this.editWlxxData.splice(index, 0, obj);
                    this.$set(this.editWlxxData, index, obj)
                } else {
                    this.editWlxxData.push(obj);
                }
            }
        },
        handleCopyZbRow() {
            if (!this.zbIndex) {
                this.$modal.msgError("请选择一行数据")
            } else {
                let copyRow = JSON.parse(JSON.stringify(this.zbSelForm))
                this.editWlxxData.push(copyRow);
            }
        },
        /** ç¼–辑页子表删除按钮操作 */
        handleDeleteSysZb(row) {
            this.checkedSysZb = []
            this.checkedSysZb.push(row.index)
            if (this.checkedSysZb.length == 0) {
                this.$modal.msgError("请先选择要删除的商品订单明细数据");
            } else {
                const editWlxxData = this.editWlxxData;
                const checkedSysZb = this.checkedSysZb;
                this.editWlxxData = editWlxxData.filter(function (item) {
                    return checkedSysZb.indexOf(item.index) == -1
                });
            }
        },
        /** ç¼–辑页子表复选框选中数据 */
        handleTableWlxxZbEdit(selection) {
            this.checkedSysZb = selection.map(item => item.index)
            this.zbSelForm = selection[0]
            this.zbIndex = this.checkedSysZb[0]
            if (selection.length > 1) {
                const del_row = selection.shift()
                this.$refs.wlxxzbTable.toggleRowSelection(del_row, false) //设置这一行取消选中
            }
        },
        handleTableDangan(selection) {
            this.danganSelList = selection
        },
        showReset() {
            this.materialShow = false
            this.ScICMOBillShow = false
        },
        //  æ‰“开数据列表弹窗
        openDataDialog(num, row) {
            //num1部门,2出库仓库,3物料,4销售员
            if (row) {
                this.zbIndex = row.index - 1
            }
            if (num) {
                switch (num) {
                    case 1:
                        this.dialogTitle = '辅助属性列表'
                        this.propertyShow = true
                        this.openData = true
                            ; break;
                    case 3:
                        this.dialogTitle = '物料列表'
                        this.materialShow = true
                        this.openData = true
                        break;
                }
            } else {
                this.showReset()
                this.HSouceBillType = this.getSupType()
                this.dialogTitle = this.getSupType() + '列表'
                this.ScICMOBillShow = true
                this.openData = true
            }
        },
            });
        }
        //#endregion
    }
};
</script>
src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong_AutoLogin.vue
New file
@@ -0,0 +1,828 @@
<template>
    <div style="margin: 10px;">
        <div style=" margin-bottom: 10px; border-bottom: 1px solid #f6f6f6;">
            <el-button type="primary" @click="onClickMethod_BarCodeProduce" :disabled="disabledFlag_BarCodeProduce">生成</el-button>
            <el-button type="primary" @click="get_PrintReport">打印</el-button>
            <!-- <el-button type="primary" @click="close">退 å‡º</el-button> -->
        </div>
        <div style="margin: 10px; font-size: 28px; font-weight: bold; text-align: center;">条码生成</div>
        <el-form :model="initMainData" label-width="80px">
            <el-row>
                <el-col :span="6">
                    <el-form-item label="日期">
                        <el-date-picker v-model="initMainData.HDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" style="width: 100%"> </el-date-picker>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="源单单号">
                        <el-input v-model="initMainData.HMainSourceBillNo" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="采购订单号">
                        <el-input v-model="initMainData.HPOOrderBillNo" disabled></el-input>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="6">
                    <el-form-item label="物料代码">
                        <el-input v-model="initMainData.HMaterNumber" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="物料名称">
                        <el-input v-model="initMainData.HMaterName" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="规格型号">
                        <el-input v-model="initMainData.HMaterModel" disabled></el-input>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="6">
                    <el-form-item label="计量单位">
                        <el-input v-model="initMainData.HUnitName" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="辅助属性代码">
                        <el-input v-model="initMainData.HAuxPropNumber" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="辅助属性名称">
                        <el-input v-model="initMainData.HAuxPropName" disabled></el-input>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="6">
                    <el-form-item label="供应商代码">
                        <el-input v-model="initMainData.HSupNumber" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="供应商名称">
                        <el-input v-model="initMainData.HSupName" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="批号">
                        <el-input v-model="initMainData.HBatchNo"></el-input>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="6">
                    <el-form-item label="源单数量">
                        <el-input-number v-model="initMainData.HQty_SourceBill" @change="onChangeForHQty_SourceBill" />
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="标准包装数">
                        <el-input-number v-model="initMainData.HMinQty" @change="onChangeForHMinQty" />
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="包数">
                        <el-input-number v-model="initMainData.HBQty" disabled />
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="6">
                    <el-form-item label="尾包数量">
                        <el-input-number v-model="initMainData.HEndQty" disabled />
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="采购跟踪号">
                        <el-input v-model="initMainData.HPOOrderBillMTO" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="8">
                    <el-form-item label="复检启用">
                        <el-checkbox v-model="initMainData.HReInspectionFlag" disabled>复检启用</el-checkbox>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="6">
                    <el-form-item label="生产日期">
                        <el-date-picker v-model="initMainData.HInspectionDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" style="width: 100%"> </el-date-picker>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="复检周期">
                        <el-input-number v-model="initMainData.HInspectionCycle" disabled/>天
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="复检日期">
                        <el-date-picker v-model="initMainData.HReInspectionDate" type="date" placeholder="选择日期" value-format="yyyy-MM-dd" style="width: 100%" disabled> </el-date-picker>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-row>
                <el-col :span="6">
                    <el-form-item label="客户订单号">
                        <el-input v-model="initMainData.HSeOrderBillNo" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="产品型号">
                        <el-input v-model="initMainData.HCusModel" disabled></el-input>
                    </el-form-item>
                </el-col>
                <el-col :span="6">
                    <el-form-item label="组织" @change="onChangeMethod_HOrganization">
                        <el-select v-model="initMainData.HOrganizationID" placeholder="请选择组织" style="width: 100%">
                            <el-option v-for="(item, index) in HOrganizationList" :key="index" :value="item.ID" :label="item.Name"></el-option>
                        </el-select>
                    </el-form-item>
                </el-col>
            </el-row>
            <el-tabs type="border-card" v-model="SelectedTabName" style="height:400px;">
                <!-- æ¡ç åˆ—表 -->
                <el-tab-pane label="条码列表" name="BarCode">
                    <el-table :data="tableData_BarCode" @selection-change="onSelectionChange_BarCode" :row-class-name="RowIndex_BarCode" style="width: 100%" height="900" width="100%" border v-if="tableData_BarCode.length > 0">
                        <el-table-column type="selection" width="55" align="center" />
                        <el-table-column align="center" label="序号" type="index" width="80" fixed />
                        <template v-for="(item, index) in tableColumns_BarCode">
                            <el-table-column :prop="item.field" :label="item.title" :key="index" show-overflow-tooltip :width="item.width" align="center"  v-if="!item.hide">
                                <template slot-scope="{row,  column }">
                                    <div :style="item.style"><span>{{ row[column.label] }}</span> </div>
                                </template>
                            </el-table-column>
                        </template>
                    </el-table>
                </el-tab-pane>
            </el-tabs>
        </el-form>
        <!-- æ‰“印弹窗 -->
        <el-dialog title="打印模板选择" :visible.sync="openPrintList" width="800px" append-to-body>
            <PrintList :linterid="rowSel.toString()" :MyMsg="rowSel.toString()" Type="HGy_BarCodeBill"
                HModName="HGy_BarCodeBill" @rowEditClose="rowSetClose" v-if="printListShow" />
        </el-dialog>
    </div>
</template>
<script>
import axios from 'axios'                                                   //axios请求方法库
import moment from 'moment';                                                //moment.js库
import PrintList from "@/views/component/printList";                        //打印
import HSourceReportHtml from '@/views/component/HSourceReportHtml'
import GyProperty from "@/views/basic/gyProperty/gyPropertyList.vue";
import Material from '@/views/gyMaterial/GyMaterial.vue'
export default {
    name: 'Gy_BarCodeBill_JinLong_AutoLogin',
    components: { HSourceReportHtml, PrintList, GyProperty, Material },
    data() {
        return {
            baseURL: process.env.VUE_APP_BASE_API,                      //后端接口访问前缀
            HModName: "Gy_BarCodeBill_JinLong_AutoLogin",               //模块名称
            disabledFlag_BarCodeProduce:false,                          //禁用标记-生成 æŒ‰é’®
            rules:{                                                     //表头form æ ¡éªŒ
            },
            HOrganizationList:[],                                       //组织下拉列表数据
            initMainData:{                                              //表头数据初始化
                HDate: moment().format('YYYY-MM-DD')                    //日期
                ,HMainSourceInterID:0                                   //源单主ID
                ,HMainSourceEntryID:0                                   //源单子ID
                ,HMainSourceBillNo:""                                   //源单单号
                ,HMainSourceBillType:""                                 //源单类型
                ,HPOOrderBillNo:""                                      //采购订单号
                ,HMaterID:0                                             //物料ID
                ,HMaterNumber:""                                        //物料代码
                ,HMaterName:""                                          //物料名称
                ,HMaterModel:""                                         //规格型号
                ,HUnitID:""                                             //计量单位ID
                ,HUnitName:""                                           //计量单位名称
                ,HAuxPropID:0                                           //辅助属性ID
                ,HAuxPropNumber:""                                      //辅助属性代码
                ,HAuxPropName:""                                        //辅助属性
                ,HBatchNo:""                                            //批号
                ,HSupID:0                                               //供应商ID
                ,HSupNumber:""                                          //供应商代码
                ,HSupName:""                                            //供应商
                ,HQty_SourceBill:0                                      //源单数量
                ,HMinQty:0                                              //标准包装数
                ,HBQty:0                                                //包数
                ,HEndQty:0                                              //尾包数量
                ,HReInspectionFlag:false                                //复检启用
                ,HInspectionDate:null                                   //生产日期
                ,HInspectionCycle:0                                     //复检周期(天)
                ,HReInspectionDate:null                                 //复检日期
                ,HPOOrderBillMTO:""                                     //采购跟踪号
                ,HSeOrderBillNo:""                                      //客户订单号
                ,HCusModel:""                                       //产品型号
                ,HOrganizationID:0                                      //组织ID
                ,HOrganization:""                                       //组织名称
            },
            SelectedTabName:"BarCode",                                  //表格页签-当前选择页面name
            tableColumns_BarCode: [                                     //条码列表table åˆ—数据
                { field: 'HItemID', title: 'HItemID', width: 100, hide: true }
                , { field: 'hmainid', title: 'hmainid', width: 100, hide: true }
                , { field: 'hsubid', title: 'hsubid', width: 100, hide: true }
                , { field: 'HinterID', title: 'HinterID', width: 100, hide: true }
                , { field: '条码类型', title: '条码类型', width: 100 }
                , { field: '条码编号', title: '条码编号', width: 120 }
                , { field: 'HMaterID', title: '物料ID', width: 100, hide: true }
                , { field: '物料代码', title: '物料代码', width: 120 }
                , { field: '物料名称', title: '物料名称', width: 120 }
                , { field: '规格型号', title: '规格型号', width: 120 }
                , { field: 'HUnitID', title: '计量单位ID', width: 100, hide: true }
                , { field: '计量单位代码', title: '计量单位代码', width: 120 }
                , { field: '计量单位', title: '计量单位', width: 120 }
                , { field: 'HAuxPropID', title: '辅助属性ID', width: 100, hide: true }
                , { field: '辅助属性代码', title: '辅助属性代码', width: 120 }
                , { field: '辅助属性', title: '辅助属性', width: 120 }
                , { field: '批号', title: '批号', width: 120 }
                , { field: '数量', title: '数量', width: 100 }
                , { field: '源单单号', title: '源单单号', width: 120 }
                , { field: '计划跟踪号', title: '计划跟踪号', width: 120 }
                , { field: '是否赠品', title: '是否赠品', width: 100 }
                , { field: 'DeptID', title: '车间ID', width: 100, hide: true }
                , { field: '车间', title: '车间', width: 120 }
                , { field: 'HSupID', title: '供应商ID', width: 100, hide: true }
                , { field: '供应商代码', title: '供应商代码', width: 120 }
                , { field: '供应商', title: '供应商', width: 120 }
                , { field: '客户条码编号', title: '客户条码编号', width: 120 }
                , { field: '客户型号', title: '客户型号', width: 120 }
                , { field: '往来单位', title: '往来单位', width: 120 }
                , { field: '销售订单号', title: '销售订单号', width: 120 }
                , { field: '销售订单行号', title: '销售订单行号', width: 120 }
                , { field: '托号', title: '托号', width: 120 }
                , { field: '总托数', title: '总托数', width: 100 }
                , { field: '条码日期', title: '条码日期', width: 120 }
                , { field: '生产入库日期', title: '生产入库日期', width: 120 }
                , { field: '生产入库单号', title: '生产入库单号', width: 120 }
                , { field: '生产入库次数', title: '生产入库次数', width: 100 }
                , { field: '销售出库日期', title: '销售出库日期', width: 120 }
                , { field: '销售出库单号', title: '销售出库单号', width: 120 }
                , { field: '销售出库次数', title: '销售出库次数', width: 100 }
                , { field: '作废标记', title: '作废标记', width: 100 }
                , { field: '作废人', title: '作废人', width: 100 }
                , { field: '备注', title: '备注', width: 120 }
                , { field: '制作人', title: '制作人', width: 100 }
                , { field: '日期', title: '日期', width: 120 }
                , { field: '计划完工日期', title: '计划完工日期', width: 120 }
                , { field: '打印次数', title: '打印次数', width: 100 }
                , { field: 'HSTOCKORGID', title: 'HSTOCKORGID', width: 100, hide: true }
                , { field: '生成组织', title: '生成组织', width: 120 }
            ],
            tableData_BarCode:[],                                       //条码列表table æ•°æ®
            RowIndex_BarCode:0,                                         //条码列表table è¡Œç´¢å¼•
            openPrintList:false,                                         //打印弹窗显示标记
            printListShow:false,                                        //打印模板数据显示标记
            selectedData_BarCode:0,                                     //条码列表table é€‰ä¸­æ•°æ®é›†åˆ
        };
    },
    async created() {
        await this.loging();                                            //自动登录
        this.judgeIsLoging();                                           //判断是否登录,未登录则跳转回登录页面
        await this.get_OrganizationList();                              //页面初始化 èŽ·å–ç»„ç»‡ä¸‹æ‹‰åˆ—è¡¨æ•°æ®
        await this.initPageData();                                      //页面初始化
    },
    methods: {
        //#region åˆ¤æ–­æ˜¯å¦ç™»å½•,未登录则跳转回登录页面
        judgeIsLoging(){
            if (sessionStorage["login"] != "login") {
                this.$modal.msgError("登录失效,请重新登录!!");
                this.$router.push({ path: "/" }).catch(() => { })
            }
        },
        //#endregion
        //#region é¡µé¢åˆå§‹åŒ–
        initPageData(){
            var params = this.get_UrlVars();
            var OperationType = params[params[0]];      //操作类型
            if (OperationType == "1" || typeof(OperationType)=="undefined") {                                             //
            }
            else if (OperationType == "4") {                                        //下推
                this.setInit_PushBill();
            }
            else {
                layer.alert("未知操作类型!", { icon: 5 });
            }
        },
        //#endregion
        //#region èŽ·å–ç»„ç»‡ä¸‹æ‹‰åˆ—è¡¨æ•°æ®
        async get_OrganizationList() {
            axios.get(this.baseURL + '/Web/GetOrganizations',{async:false}).then(response => {
                let result = response.data
                if (result.count == 1) {
                    var data = result.data;
                    for (var i = 0; i < data.length; i++) {
                        this.HOrganizationList.push(
                            {
                                ID:data[i].ID,
                                Name:data[i].Name,
                            }
                        )
                    }
                    this.initMainData.HOrganizationID = sessionStorage["OrganizationID"] * 1;
                }else{
                    this.$modal.msgError(result.message);
                }
            }).catch(error => {
                this.$modal.msgError("接口请求失败!" + error);
            });
        },
        //#endregion
        //#region ç»„织下拉列表变更事件
        onChangeMethod_HOrganization(){
        },
        //#endregion
        //#region æºå•数量数据变更事件
        onChangeForHQty_SourceBill(){
            if(this.initMainData.HMinQty>0){
                this.initMainData.HBQty = Math.floor((this.initMainData.HQty_SourceBill / this.initMainData.HMinQty) + (this.initMainData.HQty_SourceBill%this.initMainData.HMinQty == 0?0:1));
            }else{
                this.initMainData.HBQty = 0;
            }
            if(this.initMainData.HMinQty>0){
                this.initMainData.HEndQty = this.initMainData.HQty_SourceBill%this.initMainData.HMinQty;
            }
        },
        //#endregion
        //#region æ ‡å‡†åŒ…装数数据变更事件
        onChangeForHMinQty(){
            if(this.initMainData.HMinQty>0){
                this.initMainData.HBQty = Math.floor((this.initMainData.HQty_SourceBill / this.initMainData.HMinQty) + (this.initMainData.HQty_SourceBill%this.initMainData.HMinQty == 0?0:1));
            }else{
                this.initMainData.HBQty = 0;
            }
            if(this.initMainData.HMinQty>0){
                this.initMainData.HEndQty = this.initMainData.HQty_SourceBill%this.initMainData.HMinQty;
            }
        },
        //#endregion
        //#region ç”Ÿäº§æŒ‰é’®ç‚¹å‡»äº‹ä»¶æ•°æ®æ ¡éªŒ
        AllowLoadData(sSubStr) {
            var Result = true;
            //数值格式校验工具
            var ref = /^\d+(\.\d+)?$/;          //非负数正则表达式
            var ref1 = /^[1-9]\d*$/;            //正整数正则表达式
            var temp = "";
            sSubStr = JSON.parse(sSubStr);
            if (sSubStr[0].HDate == "") {
                this.$modal.msgError("日期未设置!!");
                return Result = false;
            }
            if (sSubStr[0].HSourceInterID == "0" || sSubStr[0].HSourceEntryID == "0" || sSubStr[0].HSourceBillNo == "") {
                this.$modal.msgError("源单信息有误!!【主内码:" + sSubStr[0].HSourceInterID + ";子内码:" + sSubStr[0].HSourceEntryID + ";源单号:" + sSubStr[0].HSourceBillNo + ";】");
                return Result = false;
            }
            if (sSubStr[0].HMaterID == "0") {
                this.$modal.msgError("物料信息有误!!【物料ID:" + sSubStr[0].HMaterID + ";物料代码:" + sSubStr[0].HMaterNumber + ";物料名称:" + sSubStr[0].HMaterName + ";规格型号:" + sSubStr[0].HMaterModel + ";】");
                return Result = false;
            }
            if (sSubStr[0].HSupID == "0") {
                this.$modal.msgError("供应商信息有误!!【供应商ID:" + sSubStr[0].HMaterID + ";供应商代码:" + sSubStr[0].HMaterNumber + ";供应商名称:" + sSubStr[0].HMaterName + ";】");
                return Result = false;
            }
            temp = sSubStr[0].HQty + "";
            if (temp == "0" || temp == "") {
                this.$modal.msgError("源单数量不能为0或空!!");
                return Result = false;
            } else if (!ref.test(temp)) {
                this.$modal.msgError("源单数量请输入大于0的数字!!");
                return Result = false;
            }
            temp = sSubStr[0].HMinQty + "";
            if (temp == "0" || temp == "") {
                this.$modal.msgError("标准包装数不能为0或空!!");
                return Result = false;
            } else if (!ref.test(temp)) {
                this.$modal.msgError("标准包装数请输入大于0的数字!!");
                return Result = false;
            }
            temp = sSubStr[0].HBQty + "";
            if (!ref1.test(temp)) {
                this.$modal.msgError("包数请输入大于0的整数数字!!");
                return Result = false;
            }
            // var HEndQty = this.initMainData.HEndQty;
            // if (HEndQty == "") {
            //     this.$modal.msgError("尾包数量不能为空!!");
            //     return Result = false;
            // } else if (!ref.test(HEndQty)) {
            //     this.$modal.msgError("尾包数量请输入不小于0的数字!!");
            //     return Result = false;
            // }
            return Result;
        },
        //#endregion
        //#region ç”ŸæˆæŒ‰é’®ç‚¹å‡»äº‹ä»¶
        async onClickMethod_BarCodeProduce(){
            this.disabledFlag_BarCodeProduce = true;                                //禁用生成按钮
            if (this.initMainData.HMaterName != null && (this.initMainData.HMaterName.indexOf("\"") != -1 || this.initMainData.HMaterName.indexOf(";") != -1)) {
                this.initMainData.HMaterName = this.initMainData.HMaterName.replaceAll("\"", "”").replaceAll(";", ";")
            }
            if (this.initMainData.HMaterModel != null && (this.initMainData.HMaterModel.indexOf("\"") != -1 || this.initMainData.HMaterModel.indexOf(";") != -1)) {
                this.initMainData.HMaterModel = this.initMainData.HMaterModel.replaceAll("\"", "”").replaceAll(";", ";")
            }
             //判断生成条码数量是否超过可生成条码数量
            var temp = await this.getPushSource_POInStockBillInit(this.initMainData.HMainSourceInterID, this.initMainData.HMainSourceEntryID);
            var dataArray = [];
            dataArray.push(temp);
            var HQty_SourceBill = this.initMainData.HQty_SourceBill * 1;
            if (HQty_SourceBill > ((dataArray[0].数量 * 1) - (dataArray[0].已生成条码数量 * 1))) {
                this.$modal.msgError("条码生成数量大于最大可生成数量【" + ((dataArray[0].数量 * 1) - (dataArray[0].已生成条码数量 * 1)) + "】!!");
                return false;
            }
            var sMainData_temp = [
                {
                    "HMainID": this.initMainData.HMainSourceInterID
                    , "HSubID": this.initMainData.HMainSourceEntryID
                    , "HBillNo": this.initMainData.HMainSourceBillNo
                    , "HBillType": this.initMainData.HMainSourceBillType
                    , "HMaterID": this.initMainData.HMaterID
                    , "HMaterNumber": this.initMainData.HMaterNumber
                    , "HMaterName": this.initMainData.HMaterName
                    , "HMaterModel": this.initMainData.HMaterModel
                    , "HCusModel": this.initMainData.HCusModel
                    , "HCusMaterName": ""
                    , "HEmpID": 0
                    , "HEmpNumber": ""
                    , "HEmpName": ""
                    , "HGroupID": 0
                    , "HGroupNumber": ""
                    , "HGroupName": ""
                    , "HCheckEmpName": ""
                    , "HBatchNo": this.initMainData.HBatchNo
                    , "HQty": this.initMainData.HQty_SourceBill
                    , "HMinQty": this.initMainData.HMinQty
                    , "HBQty": this.initMainData.HBQty
                    , "HPackQty": 0
                    , "HCoilNO": ""
                    , "HFurnaceNO": ""
                    , "HFactory": ""
                    , "HCusID": 0
                    , "HCusNumber": ""
                    , "HCusName": ""
                    , "HSeOrderBillNo": ""
                    , "HRemark": ""
                    , "HProduceDate": this.initMainData.HDate
                    , "HExpiryDate": this.initMainData.HDate
                    , "HheatNO": ""
                    , "HAuxPropID": this.initMainData.HAuxPropID
                    , "HAuxPropNumber": this.initMainData.HAuxPropNumber
                    , "HAuxPropName": this.initMainData.HAuxPropName
                    , "HUnitID": this.initMainData.HUnitID
                    , "HUnitNumber": ""
                    , "HUnitName": this.initMainData.HUnitName
                    , "HAuxQty": 0
                    , "HExpirationDateFlag": 0
                    , "HGiveAwayFlag": 0
                    , "HDate": this.initMainData.HDate
                    , "HMTONo": ""
                    , "HBarCodeType": "唯一条码"
                    , "HSupID": this.initMainData.HSupID
                    , "HSupNumber": this.initMainData.HSupNumber
                    , "HSupName": this.initMainData.HSupName
                    , "HInnerBillNo": this.initMainData.HPOOrderBillNo
                    , "HReInspectionFlag": this.initMainData.HReInspectionFlag
                    , "HInspectionDate": this.initMainData.HInspectionDate
                    , "HInspectionCycle": this.initMainData.HInspectionCycle
                    , "HReInspectionDate": this.initMainData.HReInspectionDate
                    , "HPOOrderBillMTO": this.initMainData.HPOOrderBillMTO
                    , "HSeOrderBillNo": this.initMainData.HSeOrderBillNo
                }
            ]
            var sSubStr = JSON.stringify(sMainData_temp);
            //物料明细信息不为空判断
            if (!this.AllowLoadData(sSubStr))//数据验证
            {
                this.disabledFlag_BarCodeProduce = false;                           //生成按钮启用
                return;
            }
            var HOrgType = sessionStorage["Organization"];                         //获取选择的组织
            var HSourceBillType = this.initMainData.HMainSourceBillType;            //获取选择的源单类型
            var CampanyName = "xxx";                                                //获取选择的工厂代码
            var UserName = sessionStorage["HUserName"];                             //获取当前登录人员
            var sMainSub = sSubStr + ';' + HOrgType + ';' + HSourceBillType + ';' + CampanyName + ';' + UserName;
            this.SaveBarCodeCreate(sMainSub);                                       //条码生成
        },
        //#endregion
        //#region æ‰“印按钮点击事件
        get_PrintReport() {
            if (this.selectedData_BarCode.length == 0) {
                this.$modal.msgError("请选择数据");
            } else {
                this.rowSel = [];
                for (var i = 0; i < this.selectedData_BarCode.length; i++) {
                    this.rowSel.push(this.selectedData_BarCode[i].HItemID.toString());
                }
                this.printListShow = true;
                this.openPrintList = true;
            }
        },
        //#endregion
        //#region æ¡ç åˆ—表复选框选择状态变更监听事件
        onSelectionChange_BarCode(selection){
            this.selectedData_BarCode = selection;
        },
        //#endregion
        //#region èŽ·å–å‚æ•°
        get_UrlVars() {
            var vars = [], hash;
            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
            for (var i = 0; i < hashes.length; i++) {
                hash = hashes[i].split('=');
                vars.push(hash[0]);
                vars[hash[0]] = hash[1];
            }
            return vars;
        },
        //#endregion
        //#region æ ¹æ®ä¸»å†…码与子内码获取源单收料通知单数据
        async getPushSource_POInStockBillInit(HSourceInterID, HSourceEntryID) {
            var res = "none";
            var sql = "select * from h_v_IF_POInStockBillList_Source where 1=1 and HMainID = " + HSourceInterID + " and HSubID = " + HSourceEntryID;
            var ModRightNameCheck = "";
            return axios.get(this.baseURL + '/CommonModel/searchMethod', {
                async:false,
                params: {
                    "sql": sql
                    , "user": sessionStorage["HUserName"]
                    , "ModRightNameCheck": ModRightNameCheck
                },
            })
        },
        //#endregion
        //#region ä¸‹æŽ¨é¡µé¢åˆå§‹åŒ–
        async setInit_PushBill(HSourceInterID,HSourceEntryID) {
            //获取参数
            var params = this.get_UrlVars();
            var OperationType = params[params[0]];      //操作类型
            var HSourceInterID = params[params[1]];     //源单主id
            var HSourceEntryID = params[params[2]];     //源单子id
            var HSourceBillType = params[params[3]];    //源单类型
            var HSourceBillNo = params[params[4]];      //源单单号
            //获取源单信息
            var temp = null;
            var res = "none"
            try{
                res = await this.getPushSource_POInStockBillInit(HSourceInterID, HSourceEntryID);
                if(res.data.code=="1"){
                    if(res.data.data.length>0){
                        res = await this.getPushSource_POInStockBillInit(HSourceInterID, HSourceEntryID);
                    }else{
                        res = "none";
                        this.$modal.msgError("未查询到当前单据!!!");
                    }
                }
                else{
                    res = "none";
                    this.$modal.msgError(res.data.Message);
                }
            }catch(error){
                res = "none";
                this.$modal.msgError("接口请求失败!" + error);
            }
            if(res != "none"){
                temp = res.data.data[0];
            }else{
                return;
            }
            var dataArray = [];
            dataArray.push(temp);
            this.initMainData.HDate = moment().format('YYYY-MM-DD');
            this.initMainData.HMainSourceInterID = HSourceInterID;
            this.initMainData.HMainSourceEntryID = HSourceEntryID;
            this.initMainData.HMainSourceBillNo = HSourceBillNo;
            this.initMainData.HMainSourceBillType = HSourceBillType;
            this.initMainData.HPOOrderBillNo = dataArray[0].源单单号==null?"":dataArray[0].源单单号;
            this.initMainData.HMaterID = dataArray[0].HMaterID==null?0:dataArray[0].HMaterID;
            this.initMainData.HMaterNumber = dataArray[0].物料代码==null?"":dataArray[0].物料代码;
            this.initMainData.HMaterName = dataArray[0].物料名称==null?"":dataArray[0].物料名称;
            this.initMainData.HMaterModel = dataArray[0].规格型号==null?"":dataArray[0].规格型号;
            this.initMainData.HUnitID = dataArray[0].HUnitID==null?0:dataArray[0].HUnitID;
            this.initMainData.HUnitName = dataArray[0].计量单位==null?"":dataArray[0].计量单位;
            this.initMainData.HAuxPropID = dataArray[0].HAuxPropID==null?0:dataArray[0].HAuxPropID;
            this.initMainData.HAuxPropNumber = dataArray[0].辅助属性代码==null?"":dataArray[0].辅助属性代码;
            this.initMainData.HAuxPropName = dataArray[0].辅助属性==null?"":dataArray[0].辅助属性;
            this.initMainData.HSupID = dataArray[0].HSupID==null?0:dataArray[0].HSupID;
            this.initMainData.HSupNumber = dataArray[0].供应商代码==null?"":dataArray[0].供应商代码;
            this.initMainData.HSupName = dataArray[0].供应商==null?"":dataArray[0].供应商;
            this.initMainData.HBatchNo = dataArray[0].批号==null?"":dataArray[0].批号;
            this.initMainData.HQty_SourceBill = ((dataArray[0].数量 * 1) - (dataArray[0].已生成条码数量 * 1))<0?0:((dataArray[0].数量 * 1) - (dataArray[0].已生成条码数量 * 1));
            this.initMainData.HReInspectionFlag = dataArray[0].复检标记==1?true:false;
            this.initMainData.HInspectionCycle = dataArray[0].复检标记==1?dataArray[0].复检周期:0;
            this.initMainData.HInspectionDate = dataArray[0].复检标记==1?moment(dataArray[0].检验日期).format('YYYY-MM-DD'):null;
            this.initMainData.HReInspectionDate = dataArray[0].复检标记==1?moment(dataArray[0].检验日期).add(dataArray[0].复检周期,"days").format('YYYY-MM-DD') :null;
            this.initMainData.HPOOrderBillMTO = dataArray[0].采购跟踪号;
            this.initMainData.HSeOrderBillNo = dataArray[0].客户订单号;
            this.initMainData.HCusModel = dataArray[0].产品型号;
            this.initMainData.HMinQty = 0;
            if(this.initMainData.HMinQty>0){
                this.initMainData.HBQty = (this.initMainData.HQty_SourceBill / this.initMainData.HMinQty) + (this.initMainData.HQty_SourceBill%this.initMainData.HMinQty == 0?0:1);
            }else{
                this.initMainData.HBQty = 0;
            }
            if(this.initMainData.HMinQty>0){
                this.initMainData.HEndQty = this.initMainData.HQty_SourceBill%this.initMainData.HMinQty;
            }
        },
        //#endregion
        //#region æ¡ç ç”Ÿæˆ
        SaveBarCodeCreate(sMainSub, CampanyName) {
            axios({
                method: 'post',
                url: this.baseURL + "/Sc_BarCode/Sub_SaveBill_JinLong",
                data: {
                    "msg": sMainSub, "CampanyName": CampanyName
                },
            }).then(response => {
                let result = response.data
                if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                    this.tableData_BarCode = result.data;
                    console.log(this.tableData_BarCode);
                }
                else {
                    this.disabledFlag_BarCodeProduce = false                            //生成按钮启用
                    this.$modal.msgError(result.Message);
                }
            }).catch(error => {
                this.disabledFlag_BarCodeProduce = false                            //生成按钮启用
                this.$modal.msgError("接口请求失败!");
            });
        },
        //#endregion
        //#region è‡ªåŠ¨ç™»å½•
        async loging() {
            var params = this.get_UrlVars();
            var OperationType = params[params[0]];          //操作类型
            var HSourceInterID = params[params[1]];         //源单主id
            var HSourceEntryID = params[params[2]];         //源单子id
            var HSourceBillType = params[params[3]];        //源单类型
            var HSourceBillNo = params[params[4]];          //源单单号
            //var encodedString = params[params[6]];      // ä»ŽC#获取的编码字符串
            //var decodedBytes = atob(encodedString);     // è§£ç Base64字符串为二进制字符串
            //var decodedString = decodeURIComponent(escape(window.atob(encodedString))); // å°†äºŒè¿›åˆ¶å­—符串转换为UTF-8字符串
            //var HUserName = decodedString;                //登录名
            var HUserName = params[params[5]];              //登录名
            var HPwdWord = params[params[6]];               //登录密码
            var HOrgID = params[params[7]];                 //组织id
            var HOrgName = "";
            if (HOrgID == 0) {
                //判断是否登录 æœªç™»å½•则跳到登录页
                if (sessionStorage.login != "login") {
                    this.$modal.msgError("登录失效,请重新登录!!");
                    this.$router.push({ path: "/" }).catch(() => { })
                }
                return;
            }
            var sql_getHOrgName = "select HName from Xt_Organizations where HItemID = " + HOrgID;
            var ModRightNameCheck = "";
            axios.get(this.baseURL + "/CommonModel/searchMethod", {
                params: {
                    "sql": sql_getHOrgName
                    , "user": HUserName
                    , "ModRightNameCheck": ModRightNameCheck
                }
            }).then(response => {
                var data1 = response.data
                if (data1.count == 1) {
                    if (data1.data.length > 0) {
                        HOrgName = data1.data[0]["HName"];
                    } else {
                        this.$modal.msgError("登录失败!!组织不存在,请重新登录!!");
                        this.$router.push({ path: "/" }).catch(() => { })
                    }
                }
                else {
                    this.$modal.msgError(data1.code + data1.Message);
                    this.$router.push({ path: "/" }).catch(() => { })
                }
            }).catch(error => {
                this.$modal.msgError("接口请求失败!");
                this.$router.push({ path: "/" }).catch(() => { })
            });
            var sql_login = "select * from h_v_Gy_Czygl_Login where Czymc = '" + HUserName + "'";
            axios.get(this.baseURL + "/CommonModel/searchMethod", {
                params: {
                    "sql": sql_login
                    , "user": HUserName
                    , "ModRightNameCheck": ""
                }
            }).then(response => {
                var data1 = response.data
                if (data1.count == 1) {
                    if (data1.data.length > 0) {
                        HUserName = data1.data[0]["Czybm"];
                        var result = data1;
                        sessionStorage["HCloudUserName"] = result.data[0].HCloudUserName;//金蝶云账号
                        sessionStorage["HCloudUserPsd"] = result.data[0].HCloudUserPsd;
                        sessionStorage["HMaker"] = result.data[0].Czymc;
                        sessionStorage["HUserName"] = result.data[0].Czymc;
                        sessionStorage["HBillerID"] = result.data[0].HK3UserID;
                        sessionStorage["SourceFlag"] = false;
                        sessionStorage["HKeeperID"] = result.data[0].HKeeperID;
                        sessionStorage["HKeeper"] = result.data[0].HKeeper;
                        sessionStorage["HSecManagerID"] = result.data[0].HSecManagerID;
                        sessionStorage["HSecManager"] = result.data[0].HSecManager;
                        sessionStorage["HSellManID"] = result.data[0].HSellManID;
                        sessionStorage["HSellMan"] = result.data[0].HSellMan;
                        sessionStorage["HDeptID"] = result.data[0].HDeptID;
                        sessionStorage["HDept"] = result.data[0].HDept;
                        sessionStorage["HWHID"] = result.data[0].HWhID;
                        sessionStorage["HWHName"] = result.data[0].HWHName;
                        sessionStorage["HSPID"] = result.data[0].HSPID;
                        sessionStorage["HSPName"] = result.data[0].HSPName;
                        sessionStorage["HSupID"] = result.data[0].HSupID;
                        sessionStorage["HSupName"] = result.data[0].HSupName;
                        sessionStorage["Czmm"] = result.data[0].Czmm;
                        sessionStorage["Czybm"] = result.data[0].Czybm;
                        sessionStorage["HEmpID"] = result.data[0].HEmpID;
                        sessionStorage["HEmpNumber"] = result.data[0].HEmpNumber;
                        sessionStorage["HEmpName"] = result.data[0].HEmpName;
                        sessionStorage["HGroup"] = result.data[0].HGroup;
                        sessionStorage["HGroupID"] = result.data[0].HGroupID;
                        sessionStorage["HProc"] = result.data[0].HProc;
                        sessionStorage["HProcNo"] = result.data[0].HProcNo;
                        sessionStorage["HSource"] = result.data[0].HSource;
                        sessionStorage["HSourceID"] = result.data[0].HSourceID;
                        sessionStorage["HWorkCenter"] = result.data[0].HWorkCenter;
                        sessionStorage["HWorkCenterID"] = result.data[0].HWorkCenterID;
                        sessionStorage["HProcName"] = result.data[0].HProcName;
                        sessionStorage["HProcID"] = result.data[0].HProcID;
                        sessionStorage["HCheckEmpID"] = result.data[0].HCheckEmpID;
                        sessionStorage["HCheckEmpName"] = result.data[0].HCheckEmpName;
                        sessionStorage["login"] = "login";
                        sessionStorage["OrganizationID"] = HOrgID;
                        sessionStorage["Organization"] = HOrgName;
                        sessionStorage["HTranSlate"] = "1";
                        sessionStorage["HAutoLogin"] = "1";
                    } else {
                        this.$modal.msgError("加载失败!!账号不存在,请联系管理员维护账号信息!!");
                        this.$router.push({ path: "/" }).catch(() => { });
                    }
                } else {
                    this.$modal.msgError("登录失败!!"+result.Message);
                    this.$router.push({ path: "/" }).catch(() => { })
                }
            }).catch(error => {
                this.$modal.msgError("接口请求失败!");
                this.$router.push({ path: "/" }).catch(() => { })
            });
        },
        //#endregion
    }
};
</script>
<style>
.input-search-btn {
    background-color: rgb(24, 144, 255) !important;
    color: #fff !important;
}
</style>
src/views/warehouse/transfer/Kf_MoveStockRequestBillEdit.vue
@@ -151,7 +151,7 @@
            </el-col>
            <el-col :span="6">
              <el-form-item label="调出组织" prop="HSTOCKOUTORGID">
                <el-select v-model="form.HSTOCKOUTORGID" placeholder="请选择调入组织" :disabled="OperationType == 3">
                <el-select v-model="form.HSTOCKOUTORGID" placeholder="请选择调出组织" :disabled="OperationType == 3" @change="StockOutOrgChangeHandler">
                  <el-option
                    v-for="(item, index) in organizationList"
                    :key="index"
@@ -631,6 +631,17 @@
    this.getdata()
  },
  methods: {
    StockInOrgChangeHandler(e) {
      for(let i=0;i<this.editData.length;i++) {
        this.editData[i].HSTOCKORGINID = e
      }
    },
    StockOutOrgChangeHandler(e) {
      for(let i=0;i<this.editData.length;i++) {
        this.editData[i].HOtherOrgID = e
        this.editData[i].HSTOCKORGID = e
      }
    },
    getdata() {
      this.formShow = false;
      this.formLoading = true;
@@ -725,7 +736,7 @@
          this.gySupplierShow = false;
          this.openData = false;
        } else if (num == "gyProperty") {
          this.editData[this.zbIndex].HPropertyID = deptRow.HItemID;
          this.editData[this.zbIndex].HAuxPropID = deptRow.HItemID;
          this.editData[this.zbIndex]["辅助属性"] = deptRow["辅助属性名称"];
          this.propertyShow = false;
@@ -964,7 +975,8 @@
                HEXTAUXUNITID: data[i].HEXTAUXUNITID,
                è¾…单位: data[i].辅单位,
                HSTOCKORGID: data[i]["HSTOCKORGID"],
                HPropertyID: data[i]["HPropertyID"],
                HOtherOrgID: data[i]["HSTOCKORGID"],
                HAuxPropID: data[i]["HAuxPropID"],
                è¾…助属性: data[i]["辅助属性"],
              });
            }
@@ -1021,8 +1033,9 @@
          è¾…单位: "",
          HRemark: "",
          HSTOCKORGID: sessionStorage["OrganizationID"],
          HOtherOrgID: sessionStorage["OrganizationID"],
          HSTOCKORGINID: this.form.HSTOCKINORGID,
          HPropertyID: 0,
          HAuxPropID: 0,
          è¾…助属性: "",
        };
        if (index) {
@@ -1167,6 +1180,7 @@
      this.gyEmployeeShow = false;
      this.gySupplierShow = false;
      this.materialShow = false;
      this.propertyShow = false;
    },
    //  æ‰“开数据列表弹窗
    openDataDialog(num, row) {