From 7fb0a8f0ab16c149484bf043754cd10cfa94de2f Mon Sep 17 00:00:00 2001
From: wangyi <2946747746@qq.com>
Date: 星期一, 19 一月 2026 14:48:05 +0800
Subject: [PATCH] 增加了业务员,保管员和验收员的对应的显示

---
 src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong_AutoLogin.vue |   53 ++++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 42 insertions(+), 11 deletions(-)

diff --git a/src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong_AutoLogin.vue b/src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong_AutoLogin.vue
index 45fda7c..25fc7de 100644
--- a/src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong_AutoLogin.vue
+++ b/src/views/warehouse/barcodeMaster/Gy_BarCodeBill_JinLong_AutoLogin.vue
@@ -3,14 +3,14 @@
         <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> -->
+            <el-button type="primary" @click="get_BarCodeBillList">鏉$爜妗f</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-ddT" style="width: 100%"> </el-date-picker>
+                        <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">
@@ -112,7 +112,7 @@
             <el-row>
                 <el-col :span="6">
                     <el-form-item label="鐢熶骇鏃ユ湡">
-                        <el-date-picker v-model="initMainData.HInspectionDate" type="date" placeholder="閫夋嫨鏃ユ湡" value-format="yyyy-MM-ddT" style="width: 100%"> </el-date-picker>
+                        <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">
@@ -122,11 +122,21 @@
                 </el-col>
                 <el-col :span="6">
                     <el-form-item label="澶嶆鏃ユ湡">
-                        <el-date-picker v-model="initMainData.HReInspectionDate" type="date" placeholder="閫夋嫨鏃ユ湡" value-format="yyyy-MM-ddT" style="width: 100%" disabled> </el-date-picker>
+                        <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%">
@@ -211,6 +221,9 @@
                 ,HInspectionCycle:0                                     //澶嶆鍛ㄦ湡(澶�)
                 ,HReInspectionDate:null                                 //澶嶆鏃ユ湡
                 ,HPOOrderBillMTO:""                                     //閲囪喘璺熻釜鍙�
+                ,HSeOrderBillNo:""                                      //瀹㈡埛璁㈠崟鍙�
+                ,HCusModel:""                                           //浜у搧鍨嬪彿
+                ,HMTONo:null                                            //璁″垝璺熻釜鍙�
                 
                 ,HOrganizationID:0                                      //缁勭粐ID
                 ,HOrganization:""                                       //缁勭粐鍚嶇О
@@ -271,7 +284,7 @@
             tableData_BarCode:[],                                       //鏉$爜鍒楄〃table 鏁版嵁
             RowIndex_BarCode:0,                                         //鏉$爜鍒楄〃table 琛岀储寮�
 
-            openPrintList:true,                                         //鎵撳嵃寮圭獥鏄剧ず鏍囪
+            openPrintList:false,                                         //鎵撳嵃寮圭獥鏄剧ず鏍囪
             printListShow:false,                                        //鎵撳嵃妯℃澘鏁版嵁鏄剧ず鏍囪
             selectedData_BarCode:0,                                     //鏉$爜鍒楄〃table 閫変腑鏁版嵁闆嗗悎
         };
@@ -311,7 +324,7 @@
 
         //#region 鑾峰彇缁勭粐涓嬫媺鍒楄〃鏁版嵁
         async get_OrganizationList() {
-            axios.get(this.baseURL + '/Web/GetOrganizations',{async:false}).then(response => {
+            axios.get(this.$baseUrl + '/Web/GetOrganizations',{async:false}).then(response => {
                 let result = response.data
                 if (result.count == 1) {
                     var data = result.data;
@@ -416,6 +429,13 @@
                 return Result = false;
             }
 
+            var regex = /^\d{4}-\d{2}-\d{2}$/;                              //姝e垯琛ㄨ揪寮忥細鏍¢獙 yyyy-MM-dd
+            temp = this.initMainData.HInspectionDate;
+            if(!regex.test(temp)){
+                this.$modal.msgError("璇疯缃敓浜ф棩鏈燂紒锛侊紒");
+                return Result = false;
+            }
+
             // var HEndQty = this.initMainData.HEndQty;
             // if (HEndQty == "") {
             //     this.$modal.msgError("灏惧寘鏁伴噺涓嶈兘涓虹┖锛侊紒");
@@ -460,7 +480,7 @@
                     , "HMaterNumber": this.initMainData.HMaterNumber
                     , "HMaterName": this.initMainData.HMaterName
                     , "HMaterModel": this.initMainData.HMaterModel
-                    , "HCusModel": ""
+                    , "HCusModel": this.initMainData.HCusModel
                     , "HCusMaterName": ""
                     , "HEmpID": 0
                     , "HEmpNumber": ""
@@ -506,6 +526,8 @@
                     , "HInspectionCycle": this.initMainData.HInspectionCycle
                     , "HReInspectionDate": this.initMainData.HReInspectionDate
                     , "HPOOrderBillMTO": this.initMainData.HPOOrderBillMTO
+                    , "HSeOrderBillNo": this.initMainData.HSeOrderBillNo
+                    , "HMTONo": this.initMainData.HMTONo
                 }
             ]
 
@@ -540,6 +562,12 @@
         },
         //#endregion
 
+        //#region 鏉$爜妗f鎸夐挳鐐瑰嚮浜嬩欢
+        get_BarCodeBillList(){
+            this.$router.push({ path: "/warehouse/barcodeMaster/Gy_BarCodeBillList_JinLong_AutoLogin" }).catch(() => { });
+        },
+        //#endregion
+
         //#region 鏉$爜鍒楄〃澶嶉�夋閫夋嫨鐘舵�佸彉鏇寸洃鍚簨浠�
         onSelectionChange_BarCode(selection){
             this.selectedData_BarCode = selection;
@@ -564,7 +592,7 @@
             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', {
+            return axios.get(this.$baseUrl + '/CommonModel/searchMethod', {
                 async:false,
                 params: {
                     "sql": sql
@@ -640,6 +668,9 @@
             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.HMTONo = 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);
@@ -656,7 +687,7 @@
         SaveBarCodeCreate(sMainSub, CampanyName) {
             axios({
                 method: 'post',
-                url: this.baseURL + "/Sc_BarCode/Sub_SaveBill_JinLong",
+                url: this.$baseUrl + "/Sc_BarCode/Sub_SaveBill_JinLong",
                 data: {
                     "msg": sMainSub, "CampanyName": CampanyName
                 },
@@ -707,7 +738,7 @@
 
             var sql_getHOrgName = "select HName from Xt_Organizations where HItemID = " + HOrgID;
             var ModRightNameCheck = "";
-            axios.get(this.baseURL + "/CommonModel/searchMethod", {
+            axios.get(this.$baseUrl + "/CommonModel/searchMethod", {
                 params: { 
                     "sql": sql_getHOrgName
                     , "user": HUserName
@@ -733,7 +764,7 @@
             });
 
             var sql_login = "select * from h_v_Gy_Czygl_Login where Czymc = '" + HUserName + "'";
-            axios.get(this.baseURL + "/CommonModel/searchMethod", {
+            axios.get(this.$baseUrl + "/CommonModel/searchMethod", {
                 params: { 
                     "sql": sql_login
                     , "user": HUserName

--
Gitblit v1.9.1