From c3ceee9402fd69f87797ed82137b82217aff63e4 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期日, 04 一月 2026 18:16:23 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-VUEUI
---
src/views/scMould/basicModeling/Gy_MouldFile.vue | 183 +++--
src/permission.js | 1
src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong.vue | 1445 ++++++++++++++++++++++++++++++++++++++++++++++++
src/store/modules/permission.js | 15
src/router/index.js | 25
src/views/system/user/xtUserListEdit.vue | 84 +-
6 files changed, 1,636 insertions(+), 117 deletions(-)
diff --git a/src/permission.js b/src/permission.js
index b9e977d..c548866 100644
--- a/src/permission.js
+++ b/src/permission.js
@@ -22,6 +22,7 @@
"/gyMaterial",
"/FbStepFoldinBillList",
"/FbStepFoldOutBillList",
+ "/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong",
]; // no redirect whitelist
const isWhiteList = (path) => {
diff --git a/src/router/index.js b/src/router/index.js
index 345c7b7..8b70f48 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -139,6 +139,31 @@
},
//#endregion
+ //#region 鏉$爜鐢熸垚_閿﹂殕
+ {
+ path: "/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong",
+ component: Layout,
+ hidden: true,
+ redirect: "noredirect",
+ meta: {
+ breadcrumb: false, // 濡傛灉璁剧疆涓篺alse锛屽垯涓嶄細鍦╞readcrumb闈㈠寘灞戜腑鏄剧ず
+ activeMenu: "/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong", // 褰撹矾鐢辫缃簡璇ュ睘鎬э紝鍒欎細楂樹寒鐩稿搴旂殑渚ц竟鏍忋��
+ },
+ children: [
+ {
+ path: "/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong",
+ component: () =>
+ import("@/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong.vue"),
+ name: "Gy_BarCodeBill_JinLong",
+ meta: {
+ title: "鏉$爜鐢熸垚_閿﹂殕",
+ activeMenu: "warehouse/barcodeMaster",
+ },
+ },
+ ],
+ },
+ //#endregion
+
//#region 鏉$爜涓绘尅
{
path: "/warehouse/barcodeMaster/Gy_BarCodeBillList",
diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js
index 47c18d8..91ff54a 100644
--- a/src/store/modules/permission.js
+++ b/src/store/modules/permission.js
@@ -428,6 +428,21 @@
icon: "build",
link: null,
noCache: false,
+ title: "鏉$爜鐢熸垚_閿﹂殕",
+ },
+ component: () =>
+ import(
+ "@/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong.vue"
+ ),
+ hidden: false,
+ name: "Gy_BarCodeBill_JinLong",
+ path: "Gy_BarCodeBill_JinLong",
+ },
+ {
+ meta: {
+ icon: "build",
+ link: null,
+ noCache: false,
title: "鏉$爜涓绘。",
},
component: () =>
diff --git a/src/views/scMould/basicModeling/Gy_MouldFile.vue b/src/views/scMould/basicModeling/Gy_MouldFile.vue
index 76e0213..47d96bc 100644
--- a/src/views/scMould/basicModeling/Gy_MouldFile.vue
+++ b/src/views/scMould/basicModeling/Gy_MouldFile.vue
@@ -11,18 +11,18 @@
<el-tab-pane label="鍩烘湰淇℃伅" name="first">
<el-row>
<el-col :span="6">
- <el-form-item label="鍗曟嵁鍙�" prop="HBillNo">
+ <el-form-item label="鍗曟嵁鍙�" prop="HBillNo" v-show="isShow">
<el-input v-model="form.HBillNo" placeholder="璇疯緭鍏ュ崟鎹彿" />
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="鏃ユ湡" prop="HDate">
+ <el-form-item label="鏃ユ湡" prop="HDate" v-show="isShow">
<el-date-picker v-model="form.HDate" type="date" placeholder="閫夋嫨鏃ユ湡" value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="璐т富绫诲瀷" prop="HMouldOWNER">
+ <el-form-item label="璐т富绫诲瀷" prop="HMouldOWNER" v-show="isHide">
<el-select v-model="form.HMouldOWNER" placeholder="璇烽�夋嫨">
<el-option label="鑷垂" value="鑷垂" />
<el-option label="瀹緵" value="瀹緵" />
@@ -30,79 +30,79 @@
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="鍣ㄥ叿缂栧彿" prop="HMouldNo">
+ <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">
+ <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">
+ <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">
+ <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">
- <el-form-item label="鐩村緞" prop="HDiameter">
+ <el-form-item label="鐩村緞" prop="HDiameter" v-show="isHide">
<el-input v-model="form.HDiameter" placeholder="璇疯緭鍏ョ洿寰�" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
- <el-form-item label="杈呭姪灞炴��" prop="HSubjoin">
+ <el-form-item label="杈呭姪灞炴��" prop="HSubjoin" v-show="isHide">
<el-input v-model="form.HSubjoin" placeholder="璇疯緭鍏ヨ緟鍔╁睘鎬�" />
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="杈呭姪灞炴��2" prop="HSubjoin2">
+ <el-form-item label="杈呭姪灞炴��2" prop="HSubjoin2" v-show="isHide">
<el-input v-model="form.HSubjoin2" placeholder="璇疯緭鍏ヨ緟鍔╁睘鎬�2" />
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="鍥惧彿" prop="HPICNo">
+ <el-form-item label="鍥惧彿" prop="HPICNo" v-show="isHide">
<el-input v-model="form.HPICNo" placeholder="璇疯緭鍏ュ浘鍙�" />
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="鐢熶骇浜у搧鍨嬪彿" prop="HWorkMaterModel">
+ <el-form-item label="鐢熶骇浜у搧鍨嬪彿" prop="HWorkMaterModel" v-show="isHide">
<el-input v-model="form.HWorkMaterModel" placeholder="璇疯緭鍏ョ敓浜т骇鍝佸瀷鍙�" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
- <el-form-item label="瀵瑰簲ERP鐗╂枡" prop="HMaterNumber">
+ <el-form-item label="瀵瑰簲ERP鐗╂枡" prop="HMaterNumber" v-show="isHide">
<el-input v-model="form.HMaterNumber" placeholder="璇疯緭鍏ュ搴擡RP鐗╂枡" disabled>
<el-button slot="append" icon="el-icon-search" @click="openDataDialog(3)"></el-button>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="鍣ㄥ叿鍒嗙被" prop="HMouleTypeName">
+ <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>
</el-col>
<el-col :span="6">
- <el-form-item label="鍗曚綅" prop="HUnitName">
+ <el-form-item label="鍗曚綅" prop="HUnitName" v-show="isHide">
<el-input v-model="form.HUnitName" placeholder="璇疯緭鍏ュ崟浣�" disabled>
<el-button slot="append" icon="el-icon-search"></el-button>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="鍑哄巶鏃ユ湡" prop="HOutComDate">
+ <el-form-item label="鍑哄巶鏃ユ湡" prop="HOutComDate" v-show="isHide">
<el-date-picker v-model="form.HOutComDate" type="date" placeholder="閫夋嫨鏃ユ湡" value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
@@ -110,26 +110,26 @@
</el-row>
<el-row>
<el-col :span="6">
- <el-form-item label="鍑哄巶缂栧彿" prop="HOutComNo">
+ <el-form-item label="鍑哄巶缂栧彿" prop="HOutComNo" v-show="isHide">
<el-input v-model="form.HOutComNo" placeholder="璇疯緭鍏ュ嚭鍘傜紪鍙�" />
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="浣跨敤閮ㄩ棬" prop="HDeptName">
+ <el-form-item label="浣跨敤閮ㄩ棬" prop="HDeptName" v-show="isHide">
<el-input v-model="form.HDeptName" placeholder="璇疯緭鍏ヤ娇鐢ㄩ儴闂�" disabled>
<el-button slot="append" icon="el-icon-search" @click="openDataDialog(1)"></el-button>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="渚涘簲鍟�" prop="HSupName">
+ <el-form-item label="渚涘簲鍟�" prop="HSupName" v-show="isHide">
<el-input v-model="form.HSupName" placeholder="璇疯緭鍏ヤ緵搴斿晢" disabled>
<el-button slot="append" icon="el-icon-search" @click="openDataDialog(6)"></el-button>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="鍣ㄥ叿鐘舵��" prop="HMouldStatus">
+ <el-form-item label="鍣ㄥ叿鐘舵��" prop="HMouldStatus" v-show="isHide">
<el-select v-model="form.HMouldStatus" placeholder="璇烽�夋嫨">
<el-option label="鍦ㄥ簱" value="鍦ㄥ簱" />
<el-option label="涓婃満" value="涓婃満" />
@@ -147,24 +147,24 @@
</el-row>
<el-row>
<el-col :span="6">
- <el-form-item label="瀹夊叏瀵垮懡" prop="HSaveLife">
+ <el-form-item label="瀹夊叏瀵垮懡" prop="HSaveLife" v-show="isHide">
<el-input v-model="form.HSaveLife" placeholder="璇疯緭鍏ュ畨鍏ㄥ鍛�" />
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="榛樿浠撳簱" prop="HWHName">
+ <el-form-item label="榛樿浠撳簱" prop="HWHName" v-show="isHide">
<el-input v-model="form.HWHName" placeholder="璇疯緭鍏ラ粯璁や粨搴�" disabled>
<el-button slot="append" icon="el-icon-search" @click="openDataDialog(2, ckType = 1)"></el-button>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="鐗堟湰鍙�" prop="HVersion">
+ <el-form-item label="鐗堟湰鍙�" prop="HVersion" v-show="isHide">
<el-input v-model="form.HVersion" placeholder="璇疯緭鍏ョ増鏈彿" disabled />
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="榛樿浠撲綅" prop="HSPName">
+ <el-form-item label="榛樿浠撲綅" prop="HSPName" v-show="isHide">
<el-input v-model="form.HSPName" placeholder="璇疯緭鍏ラ粯璁や粨浣�" disabled>
<el-button slot="append" icon="el-icon-search" @click="openDataDialog(9, cwType = 1)"></el-button>
</el-input>
@@ -173,66 +173,66 @@
</el-row>
<el-row>
<el-col :span="6">
- <el-form-item label="璁捐瀵垮懡" prop="HDesignLife">
+ <el-form-item label="璁捐瀵垮懡" prop="HDesignLife" v-show="isHide">
<el-input v-model="form.HDesignLife" placeholder="璇疯緭鍏ヨ璁″鍛�" />
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="浣跨敤瀵垮懡" prop="HUseLife">
+ <el-form-item label="浣跨敤瀵垮懡" prop="HUseLife" v-show="isHide">
<el-input v-model="form.HUseLife" placeholder="璇疯緭鍏ヤ娇鐢ㄥ鍛�" disabled />
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="鍓╀綑瀵垮懡" prop="HLeaveLife">
+ <el-form-item label="鍓╀綑瀵垮懡" prop="HLeaveLife" v-show="isHide">
<el-input v-model="form.HLeaveLife" placeholder="璇疯緭鍏ュ墿浣欏鍛�" disabled />
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="宸茬敓浜ф暟閲�" prop="HProdQty">
+ <el-form-item label="宸茬敓浜ф暟閲�" prop="HProdQty" v-show="isHide">
<el-input v-model="form.HProdQty" placeholder="璇疯緭鍏ュ凡鐢熶骇鏁伴噺" disabled />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
- <el-form-item label="宸茬敓浜ч噸閲�" prop="HProdWeight">
+ <el-form-item label="宸茬敓浜ч噸閲�" prop="HProdWeight" v-show="isHide">
<el-input v-model="form.HProdWeight" placeholder="璇疯緭鍏ュ凡鐢熶骇閲嶉噺" disabled />
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="绌存暟" prop="HCaveQty">
+ <el-form-item label="绌存暟" prop="HCaveQty" v-show="isHide">
<el-input v-model="form.HCaveQty" placeholder="璇疯緭鍏ョ┐鏁�" />
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="榛樿淇濆吇瑙勭▼" prop="HMouldMaintainRuleInterName">
+ <el-form-item label="榛樿淇濆吇瑙勭▼" prop="HMouldMaintainRuleInterName" v-show="isHide">
<el-input v-model="form.HMouldMaintainRuleInterName" placeholder="璇疯緭鍏ラ粯璁や繚鍏昏绋�" disabled>
<el-button slot="append" icon="el-icon-search"></el-button>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="鏉$爜缂栧彿" prop="HBarCode">
+ <el-form-item label="鏉$爜缂栧彿" prop="HBarCode" v-show="isHide">
<el-input v-model="form.HBarCode" placeholder="璇疯緭鍏ユ潯鐮佺紪鍙�" disabled />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
- <el-form-item label="鍒堕�犲巶鍟�" prop="HMadeSupName">
+ <el-form-item label="鍒堕�犲巶鍟�" prop="HMadeSupName" v-show="isHide">
<el-input v-model="form.HMadeSupName" placeholder="璇疯緭鍏ュ埗閫犲巶鍟�" disabled>
<el-button slot="append" icon="el-icon-search"></el-button>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="涓嬫淇濆吇/鏍℃鏃ユ湡" prop="HNextMainDate">
+ <el-form-item label="涓嬫淇濆吇/鏍℃鏃ユ湡" prop="HNextMainDate" v-show="isHide">
<el-date-picker v-model="form.HNextMainDate" type="date" placeholder="閫夋嫨鏃ユ湡" value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="鍣ㄥ叿绫诲瀷" prop="HMouldClass">
+ <el-form-item label="鍣ㄥ叿绫诲瀷" prop="HMouldClass" v-show="isHide">
<el-select v-model="form.HMouldClass" placeholder="璇烽�夋嫨">
<el-option label="妯″叿" value="妯″叿" />
<el-option label="宸ヨ" value="宸ヨ" />
@@ -245,28 +245,28 @@
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="涓婄嚎鍒濆鍖栧鍛�" prop="HInitLife">
+ <el-form-item label="涓婄嚎鍒濆鍖栧鍛�" prop="HInitLife" v-show="isHide">
<el-input v-model="form.HInitLife" placeholder="璇疯緭鍏ヤ笂绾垮垵濮嬪寲瀵垮懡" disabled />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
- <el-form-item label="褰撳墠浠撳簱" prop="HNowWHName">
+ <el-form-item label="褰撳墠浠撳簱" prop="HNowWHName" v-show="isHide">
<el-input v-model="form.HNowWHName" placeholder="璇疯緭鍏ュ綋鍓嶄粨搴�" disabled>
<el-button slot="append" icon="el-icon-search" @click="openDataDialog(2, ckType = 2)"></el-button>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="褰撳墠浠撲綅" prop="HNowSPName">
+ <el-form-item label="褰撳墠浠撲綅" prop="HNowSPName" v-show="isHide">
<el-input v-model="form.HNowSPName" placeholder="璇疯緭鍏ュ綋鍓嶄粨搴�" disabled>
<el-button slot="append" icon="el-icon-search" @click="openDataDialog(9, cwType = 2)"></el-button>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
- <el-form-item label="鍣ㄥ叿鍙敤鐘舵��" prop="HMouldUseStatus">
+ <el-form-item label="鍣ㄥ叿鍙敤鐘舵��" prop="HMouldUseStatus" v-show="isHide">
<el-select v-model="form.HMouldUseStatus" placeholder="璇烽�夋嫨">
<el-option label="姝e父" value="姝e父" />
<el-option label="寮傚父" value="寮傚父" />
@@ -275,47 +275,49 @@
</el-select>
</el-form-item>
</el-col>
+ </el-row>
+ <el-row>
<el-col :span="6">
- <el-form-item label="浣跨敤缁勭粐" prop="HCREATEORGID">
+ <el-form-item label="闀�" prop="HMouldLength" v-show="isShow">
+ <el-input v-model="form.HMouldLength" placeholder="璇疯緭鍏ラ暱" />
+ </el-form-item>
+ </el-col>
+ <el-col :span="6">
+ <el-form-item label="瀹�" prop="HMouldWidth" v-show="isShow">
+ <el-input v-model="form.HMouldWidth" placeholder="璇疯緭鍏ュ" />
+ </el-form-item>
+ </el-col>
+ <el-col :span="6">
+ <el-form-item label="楂�" prop="HMouldHeight" v-show="isShow">
+ <el-input v-model="form.HMouldHeight" placeholder="璇疯緭鍏ラ珮" />
+ </el-form-item>
+ </el-col>
+ </el-row>
+ <el-row>
+ <el-col :span="6">
+ <el-form-item label="鎶樺彔楂樺害" prop="HMouldFoldHeight" v-show="isShow">
+ <el-input v-model="form.HMouldFoldHeight" placeholder="璇疯緭鍏ユ姌鍙犻珮搴�" />
+ </el-form-item>
+ </el-col>
+ <el-col :span="6">
+ <el-form-item label="" prop="HTransPackFlag" v-show="isShow">
+ <el-checkbox v-model="form.HTransPackFlag">鍛ㄨ浆瀹瑰櫒鏍囪</el-checkbox>
+ </el-form-item>
+ </el-col>
+ <el-col :span="6">
+ <el-form-item label="" prop="HSendPackFlag" v-show="isShow">
+ <el-checkbox v-model="form.HSendPackFlag">鍙戣揣瀹瑰櫒鏍囪</el-checkbox>
+ </el-form-item>
+ </el-col>
+ </el-row>
+ <el-row>
+ <el-col :span="6">
+ <el-form-item label="浣跨敤缁勭粐" prop="HCREATEORGID" v-show="isShow">
<el-select v-model="form.HCREATEORGID" placeholder="璇烽�夋嫨缁勭粐浣跨敤" @change="organizationChange"
:disabled="zzSelDis">
<el-option v-for="(item, index) in organizationList" :key="index" :label="item.Name" :value="item.ID">
</el-option>
</el-select>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="6">
- <el-form-item label="闀�" prop="HMouldLength">
- <el-input v-model="form.HMouldLength" placeholder="璇疯緭鍏ラ暱" />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="瀹�" prop="HMouldWidth">
- <el-input v-model="form.HMouldWidth" placeholder="璇疯緭鍏ュ" />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="楂�" prop="HMouldHeight">
- <el-input v-model="form.HMouldHeight" placeholder="璇疯緭鍏ラ珮" />
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="鎶樺彔楂樺害" prop="HMouldFoldHeight">
- <el-input v-model="form.HMouldFoldHeight" placeholder="璇疯緭鍏ユ姌鍙犻珮搴�" />
- </el-form-item>
- </el-col>
- </el-row>
- <el-row>
- <el-col :span="6">
- <el-form-item label="鍛ㄨ浆瀹瑰櫒鏍囪" prop="HTransPackFlag">
- <el-checkbox v-model="form.HTransPackFlag"></el-checkbox>
- </el-form-item>
- </el-col>
- <el-col :span="6">
- <el-form-item label="鍙戣揣瀹瑰櫒鏍囪" prop="HSendPackFlag">
- <el-checkbox v-model="form.HSendPackFlag"></el-checkbox>
</el-form-item>
</el-col>
</el-row>
@@ -386,7 +388,7 @@
</el-row>
</el-tab-pane>
</el-tabs>
- <el-tabs type="border-card">
+ <el-tabs type="border-card" v-show="isHide">
<el-tab-pane label="瀛愬櫒鍏�">
<div style="margin-bottom: 10px;">
<el-button type="success" plain icon="el-icon-plus" @click="handleAddSysZb(type = 'edit')"
@@ -539,6 +541,8 @@
},
data() {
return {
+ isShow: true,
+ isHide: false,
HModName: "Gy_MouldFile",
ckType: null,
cwType: null,
@@ -917,7 +921,7 @@
this.form = {
HInterID: 0,
HBillNo: '',
- HDate: moment(new Date()).format('YYYY-MM-DDTHH:mm:ss'),
+ HDate: moment(new Date()).format('YYYY-MM-DD'),
HMouldOWNER: '',
HMouldNo: '',
HName: '',
@@ -934,7 +938,7 @@
HMouleTypeName: '',
HUnitID: 0,
HUnitName: '',
- HOutComDate: moment(new Date()).format('YYYY-MM-DDTHH:mm:ss'),
+ HOutComDate: moment(new Date()).format('YYYY-MM-DD'),
HOutComNo: '',
HDeptID: 0,
HDeptName: '',
@@ -977,7 +981,7 @@
HTransPackFlag: 0,
HSendPackFlag: 0,
HMaker: sessionStorage["HUserName"],
- HMakeDate: '',
+ HMakeDate: moment(new Date()).format('YYYY-MM-DD'),
HChecker: '',
HCheckDate: '',
HUpDater: '',
@@ -986,6 +990,8 @@
HCloseDate: '',
HDeleteMan: '',
HDeleteDate: '',
+ HInComDate: moment(new Date()).format('YYYY-MM-DD'),
+ DateTime: moment(new Date()).format('YYYY-MM-DD'),
}
this.editData = []
this.editBtData = []
@@ -1017,6 +1023,8 @@
HBillType: '3899'
}
}).then(response => {
+ console.log(response)
+ this.form.HInterID = response.data.data[0].HInterID
this.form.HBillNo = response.data.data[0].HBillNo
}).catch(error => {
this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
@@ -1441,10 +1449,20 @@
this.form.HTransPackFlag = this.form.HTransPackFlag == false ? 0 : 1
this.form.HSendPackFlag = this.form.HSendPackFlag == false ? 0 : 1
var sMainStr = JSON.stringify(this.form);
- var sSubStr = JSON.stringify(this.editData);
- var mainTableMaintainRuleStr = JSON.stringify(this.maintainData);
- var mainTableDotCheckRuleStr = JSON.stringify(this.dotCheckData);
+ var sSubStr = JSON.stringify(this.editData)
+ var mainTableMaintainRuleStr = JSON.stringify(this.maintainData)
+ var mainTableDotCheckRuleStr = JSON.stringify(this.dotCheckData)
+ // if (this.editData.length > 0) {
+ // sSubStr = JSON.stringify(this.editData);
+ // }
+ // if (this.maintainData.length > 0) {
+ // mainTableMaintainRuleStr = JSON.stringify(this.maintainData);
+ // }
+ // if (this.dotCheckData.length > 0) {
+ // mainTableDotCheckRuleStr = JSON.stringify(this.dotCheckData);
+ // }
var oMain = sMainStr + ";" + ModRightNameAdd + ";" + user + ";" + sSubStr + ";" + mainTableMaintainRuleStr + ";" + mainTableDotCheckRuleStr;
+ console.log(oMain)
axios({
method: 'post',
url: this.baseURL + url,
@@ -1453,13 +1471,14 @@
},
}).then(response => {
console.log(response)
-
if (response.data.count == 1) {
// this.subDisabled = true//璁剧疆淇濆瓨鎸夐挳涓嶅彲鐢�
this.$modal.msgSuccess(response.data.Message);
// this.addBtnShow = true
this.formShow = false
this.$emit('editClose', false)
+ } else {
+ this.$modal.msgError(response.data.Message);
}
}).catch(error => {
console.log(error)
diff --git a/src/views/system/user/xtUserListEdit.vue b/src/views/system/user/xtUserListEdit.vue
index 3a83f71..00c11d1 100644
--- a/src/views/system/user/xtUserListEdit.vue
+++ b/src/views/system/user/xtUserListEdit.vue
@@ -327,9 +327,6 @@
Czybm: [
{ required: true, message: "缂栫爜涓嶈兘涓虹┖!", trigger: "blur" }
],
- Czybm: [
- { required: true, message: "缂栫爜涓嶈兘涓虹┖!", trigger: "blur" }
- ],
Czymc: [
{ required: true, message: "鐢ㄦ埛鍚嶄笉鑳戒负绌�!", trigger: "blur" }
],
@@ -660,39 +657,56 @@
},
// 缂栬緫鎻愪氦淇濆瓨
submitForm() {
- this.$refs["form"].validate(valid => {
- if (valid) {
- var num = [];
- var Sav = ''
- if (this.OperationType == 1) {
- Sav = 'Add'
- } else if (this.OperationType == 3) {
- Sav = "Update"
- }
- for (var i = 0; i < this.checkedSysZb.length; i++) {
- num.push(this.checkedSysZb[i].HGroupID)
- }
- var sSubStr = num.toString() == "" ? "-1" : num.toString();
- var sMainStr = JSON.stringify(this.form) + ';' + Sav + ';' + sSubStr;
- axios({
- method: 'post',
- url: this.baseURL + "/Xt_User/SaveUser",
- data: {
- 'msg': sMainStr
- },
- }).then(response => {
- if (response.data.count == 1) {
- this.formShow = false
- this.$emit('editClose', false)
- this.$modal.msgSuccess(response.data.Message);
- } else {
- this.$modal.msgError(response.data.Message)
+ if (!this.form.Czybm) {
+ this.$modal.msgError("缂栫爜涓嶈兘涓虹┖!");
+ } else if (!this.form.Czymc) {
+ this.$modal.msgError("鐢ㄦ埛鍚嶄笉鑳戒负绌�!");
+ } else if (!this.form.Czmm) {
+ this.$modal.msgError("瀵嗙爜涓嶈兘涓虹┖!");
+ } else if (!this.form.Czyyz) {
+ this.$modal.msgError("纭瀵嗙爜涓嶈兘涓虹┖!");
+ } else if (this.form.Czmm != this.form.Czyyz) {
+ this.$modal.msgError("瀵嗙爜鍜岀‘璁ゅ瘑鐮佷笉涓�鏍�!");
+ } else if (!this.form.HDept) {
+ this.$modal.msgError("閮ㄩ棬涓嶈兘涓虹┖!");
+ } else if (this.form.HWHName == this.form.HSCWHName) {
+ this.$modal.msgError("瀵瑰簲浠撳簱鍜岃皟鍏ヤ粨搴撲笉鑳界浉鍚岋紒");
+ } else {
+ this.$refs["form"].validate(valid => {
+ if (valid) {
+
+ var num = [];
+ var Sav = ''
+ if (this.OperationType == 1) {
+ Sav = 'Add'
+ } else if (this.OperationType == 3) {
+ Sav = "Update"
}
- }).catch(error => {
- this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
- });
- }
- });
+ for (var i = 0; i < this.checkedSysZb.length; i++) {
+ num.push(this.checkedSysZb[i].HGroupID)
+ }
+ var sSubStr = num.toString() == "" ? "-1" : num.toString();
+ var sMainStr = JSON.stringify(this.form) + ';' + Sav + ';' + sSubStr;
+ axios({
+ method: 'post',
+ url: this.baseURL + "/Xt_User/SaveUser",
+ data: {
+ 'msg': sMainStr
+ },
+ }).then(response => {
+ if (response.data.count == 1) {
+ this.formShow = false
+ this.$emit('editClose', false)
+ this.$modal.msgSuccess(response.data.Message);
+ } else {
+ this.$modal.msgError(response.data.Message)
+ }
+ }).catch(error => {
+ this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+ });
+ }
+ });
+ }
},
showReset() {
this.deptShow = false
diff --git a/src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong.vue b/src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong.vue
new file mode 100644
index 0000000..c55f01f
--- /dev/null
+++ b/src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong.vue
@@ -0,0 +1,1445 @@
+<template>
+ <div v-loading="formLoading" v-if="formShow" 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>
+ </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-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>
+ </el-col>
+ <el-col :span="6">
+ <el-form-item label="宸ュ巶浠g爜" 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>
+ </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>
+ </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>
+ </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>
+ </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-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="鐗╂枡浠g爜" 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="鐝粍浠g爜" 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="瀹㈡埛浠g爜" 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="璁¢噺鍗曚綅浠g爜" 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="妗f鍒楄〃" 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-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 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="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 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',
+ 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: '鐗╂枡浠g爜', 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: '鎿嶄綔鍛業D', 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: '鐝粍浠g爜', 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: '瀹㈡埛浠g爜', 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: '杈呭姪灞炴�D', 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: '璁¢噺鍗曚綅浠g爜', 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: '鐗╂枡浠g爜', 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: '璁¢噺鍗曚綅浠g爜', width: 120 }
+ , { field: 'HUnitName2', title: '璁¢噺鍗曚綅', width: 120 }
+ , { field: 'HQty2', title: '鏁伴噺', width: 120 }
+ , { field: 'HDate2', title: '杩涙枡鏃ユ湡', width: 120 }
+ , { field: 'HCusNumber2', title: '瀹㈡埛浠g爜', 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: [
+ { 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: '鐗╂枡浠g爜', title: '鐗╂枡浠g爜', width: 120 }
+ , { field: '鐗╂枡鍚嶇О', title: '鐗╂枡鍚嶇О', width: 120 }
+ , { field: '瑙勬牸鍨嬪彿', title: '瑙勬牸鍨嬪彿', width: 120 }
+ , { field: 'HUnitID', title: '璁¢噺鍗曚綅ID', width: 100, hide: true }
+ , { field: '璁¢噺鍗曚綅浠g爜', title: '璁¢噺鍗曚綅浠g爜', width: 120 }
+ , { field: '璁¢噺鍗曚綅', title: '璁¢噺鍗曚綅', width: 120 }
+ , { field: 'HAuxPropID', title: '杈呭姪灞炴�D', 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: '渚涘簲鍟咺D', 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 }
+ ],
+ 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绂佺敤锛宖alse鍙敤)
+ // 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" }
+ ]
+ },
+
+
+ paramsForAutoLogin:{ //鑷姩鐧诲綍鑾峰彇瓒呴摼鎺ュ弬鏁�
+
+ }
+ };
+ },
+ created() {
+ this.get_ParamsForAutoLogin() //鑷姩鐧诲綍鑾峰彇瓒呴摼鎺ュ弬鏁�
+ this.initDataForAutoLogin() //鑷姩鐧诲綍
+ this.get_LoginIs() //鍒ゆ柇鏄惁鐧诲綍鎴愬姛锛屾湭鐧诲綍鎴愬姛鍒欒烦杞埌鐧诲綍椤甸潰
+ this.set_HBarCodeType()
+ this.getdata()
+ },
+ methods: {
+ closeBill() {
+ this.ScICMOBillShow = false
+ },
+ get_PrintReport() {
+ if (this.danganSelList.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());
+ }
+ 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
+ }
+ })
+ },
+ 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(";", "锛�")
+ }
+ }
+ }
+ var sSubStr = JSON.stringify(this.editWlxxData);
+ this.HMaterInfo = this.editWlxxData
+ if (!this.AllowLoadData(sSubStr)) {//鏁版嵁楠岃瘉
+ this.disabledToolCreate = false//鐢熸垚鎸夐挳鍚敤
+ return false
+ }
+ //鑾峰彇閫夋嫨鐨勭粍缁�
+ var HOrgType = this.HOrgSel
+ console.log(HOrgType)
+ //鑾峰彇閫夋嫨鐨勫伐鍘備唬鐮�
+ var CampanyName = this.form.HWorksNumber
+ if (CampanyName == "" || CampanyName == null) {
+ CampanyName = "xxx";
+ }
+ //鑾峰彇閫夋嫨鐨勬簮鍗曠被鍨�
+ 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);
+ },
+ 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;
+ },
+ SaveBarCodeCreate(sMainSub, CampanyName) {
+ axios({
+ method: 'post',
+ url: this.baseURL + "/Sc_BarCode/Sub_SaveBill",
+ 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;
+ //鍔犺浇妗f鍒楄〃
+ this.editDaData = result.data
+ this.HFileList = result.data;
+ this.barcodeName = 'dangan'
+ }
+ else {
+ this.disabledToolCreate = false//鐢熸垚鎸夐挳鍚敤
+ this.$modal.msgError(result.Message, sessionStorage["HTranSlate"])
+ }
+ }).catch(error => {
+ this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+ });
+
+ },
+ editMainTable(row) {
+ row.HBQty = Math.ceil(row.HQty / row.HMinQty)
+ },
+ HSourceBillTypeChange(val) {
+ if (val == 1) {
+ this.openNum == 10
+ }
+ },
+ set_HBarCodeType() {
+ //鑾峰彇鏉$爜绫诲瀷浠g爜
+ 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].鐗╂枡浠g爜,
+ "HMaterName": deptRow[i].鐗╂枡鍚嶇О,
+ "HMaterModel": deptRow[i].瑙勬牸鍨嬪彿,
+ "HUnitID": deptRow[i].HUnitID,
+ "HUnitNumber": deptRow[i].璁¢噺鍗曚綅浠g爜,
+ "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)
+ }
+
+ this.$router.push({ path: this.redirect || "/" }).catch(() => { })
+ },
+ //鏍规嵁鐢ㄦ埛鑾峰彇瀵瑰簲鑱屽憳銆侀儴闂ㄣ�侀攢鍞富绠�
+ 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
+ , "鐗╂枡浠g爜": result.data[i].鐗╂枡浠g爜
+ , "鐗╂枡鍚嶇О": 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
+ }
+
+ },
+
+ //#region 鑷姩鐧诲綍
+ //#region 鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
+ get_LoginIs() {
+ if (sessionStorage["login"] != "login") {
+ this.$modal.msgError("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛侊紒");
+ this.$router.push({ path: "/" }).catch(() => { })
+ }
+ },
+ //#endregion
+
+ //#region 鑷姩鐧诲綍鑾峰彇瓒呴摼鎺ュ弬鏁�
+ get_ParamsForAutoLogin(){
+ var params = this.get_UrlVars();
+ this.paramsForAutoLogin.OperationType = params[params[0]]; //鎿嶄綔绫诲瀷
+ this.paramsForAutoLogin.HSourceInterID = params[params[1]]; //婧愬崟涓籭d
+ this.paramsForAutoLogin.HSourceEntryID = params[params[2]]; //婧愬崟瀛恑d
+ this.paramsForAutoLogin.HSourceBillType = params[params[3]]; //婧愬崟绫诲瀷
+ this.paramsForAutoLogin.HSourceBillNo = params[params[4]]; //婧愬崟鍗曞彿
+ this.paramsForAutoLogin.HUserName = params[params[5]]; //鐧诲綍鍚�
+ this.paramsForAutoLogin.HPwdWord = params[params[6]]; //鐧诲綍瀵嗙爜
+ this.paramsForAutoLogin.HOrgID = params[params[7]]; //缁勭粐id
+ },
+ //#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 鑷姩鐧诲綍
+ initDataForAutoLogin(){
+ var params = this.get_UrlVars();
+ var OperationType = params[params[0]]; //鎿嶄綔绫诲瀷
+ var HSourceInterID = params[params[1]]; //婧愬崟涓籭d
+ var HSourceEntryID = params[params[2]]; //婧愬崟瀛恑d
+ var HSourceBillType = params[params[3]]; //婧愬崟绫诲瀷
+ var HSourceBillNo = params[params[4]]; //婧愬崟鍗曞彿
+ var HUserName = params[params[5]]; //鐧诲綍鍚�
+ var HPwdWord = params[params[6]]; //鐧诲綍瀵嗙爜
+ var HOrgID = params[params[7]]; //缁勭粐id
+ var HOrgName = "";
+
+ if (HOrgID == 0) {
+ this.$modal.msgError("璇烽�夋嫨缁勭粐锛侊紒");
+ //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
+ 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 => {
+ let data1 = response.data
+ if (data1.count == 1) {
+ if (data1.data.length > 0) {
+ HOrgName = data1.data[0]["HName"];
+ } else {
+ this.$modal.msgError("缁勭粐涓嶅瓨鍦紒锛�");
+ }
+ } else {
+ this.$modal.msgError(data1.code + data1.Message);
+ }
+ }).catch(error => {
+ this.$modal.msgError("鎺ュ彛閿欒锛侊紒锛�");
+ })
+
+ var sql_login = "select * from h_v_Gy_Czygl_Login where Czybm = '" + "101" + "'";
+ axios.get(this.baseURL + '/CommonModel/searchMethod', {
+ params: {
+ "sql": sql_login, "user": HUserName, "ModRightNameCheck": ""
+ },
+ }).then(response => {
+ let 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["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("鍔犺浇澶辫触锛侊紒璇ラ噾铦惰处鍙锋湭缁戝畾鏉$爜绯荤粺璐﹀彿锛侊紒");
+ //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
+ if (sessionStorage["login"] != "login") {
+ this.$modal.msgError("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛侊紒");
+ this.$router.push({ path: "/" }).catch(() => { })
+ }
+ }
+ } else {
+ this.$modal.msgError(result.Message);
+ //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
+ if (sessionStorage["login"] != "login") {
+ this.$modal.msgError("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛侊紒");
+ this.$router.push({ path: "/" }).catch(() => { })
+ }
+ }
+ }).catch(error => {
+ this.$modal.msgError("鎺ュ彛閿欒锛侊紒锛�");
+ //鍒ゆ柇鏄惁鐧诲綍 鏈櫥褰曞垯璺冲埌鐧诲綍椤�
+ if (sessionStorage["login"] != "login") {
+ this.$modal.msgError("鐧诲綍澶辨晥锛岃閲嶆柊鐧诲綍锛侊紒");
+ this.$router.push({ path: "/" }).catch(() => { })
+ }
+ })
+ },
+ //#endregion
+ //#endregion
+ }
+};
+</script>
+<style>
+.input-search-btn {
+ background-color: rgb(24, 144, 255) !important;
+ color: #fff !important;
+}
+</style>
\ No newline at end of file
--
Gitblit v1.9.1