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.vue | 127 +++++++++++++++++++++++++++++++-----------
1 files changed, 94 insertions(+), 33 deletions(-)
diff --git a/src/views/warehouse/barcodeMaster/Gy_BarCodeBill.vue b/src/views/warehouse/barcodeMaster/Gy_BarCodeBill.vue
index 166f8e7..c731604 100644
--- a/src/views/warehouse/barcodeMaster/Gy_BarCodeBill.vue
+++ b/src/views/warehouse/barcodeMaster/Gy_BarCodeBill.vue
@@ -51,7 +51,8 @@
<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(openNum)"></el-button>
+ <el-button class="input-search-btn" slot="append" icon="el-icon-search"
+ @click="openDataDialog(null)"></el-button>
</el-input>
</el-form-item>
</el-col>
@@ -83,7 +84,11 @@
</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" /></template>
+ <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>
@@ -93,7 +98,7 @@
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"
@@ -188,7 +193,11 @@
</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" /></template>
+ <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>
@@ -227,7 +236,8 @@
</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">
+ @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"
@@ -237,7 +247,8 @@
</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">
+ @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">
@@ -256,13 +267,15 @@
<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"
+ <PrintList :linterid="rowSel.toString()" :MyMsg="rowSel.toString()" Type="HGy_BarCodeBill"
HModName="HGy_BarCodeBill" @rowEditClose="rowSetClose" v-if="printListShow" />
<!-- <div>111</div> -->
</el-dialog>
@@ -273,10 +286,12 @@
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 },
+ components: { HSourceReportHtml, PrintList, GyProperty, Material },
props: {
OperationType: { type: Number, },
linterid: { type: Number, },
@@ -285,7 +300,7 @@
},
data() {
return {
- rowSel:[],
+ rowSel: [],
HModName: "Gy_BarCodeBill",
danganSelList: [],
openPrintList: false,
@@ -451,6 +466,7 @@
materialShow: false,//鐗╂枡鏁版嵁缁勪欢
gyEmployeeShow: false,//閿�鍞憳鏁版嵁缁勪欢
ScICMOBillShow: false,
+ propertyShow: false,
deptform: {},//寮圭獥閫変腑鏁版嵁
openData: false,//鏁版嵁寮圭獥
dialogTitle: '',
@@ -523,8 +539,8 @@
this.getdata()
},
methods: {
- closeBill(){
- this.ScICMOBillShow=false
+ closeBill() {
+ this.ScICMOBillShow = false
},
get_PrintReport() {
if (this.danganSelList.length == 0) {
@@ -532,11 +548,11 @@
} else {
this.rowSel = [];
for (var i = 0; i < this.danganSelList.length; i++) {
- this.rowSel.push(this.danganSelList[i].HItemID.toString());
+ this.rowSel.push(this.danganSelList[i].HItemID.toString());
}
this.printListShow = true;
this.openPrintList = true;
- // axios.get(this.baseURL + "/Kf_SellOutBill/CheckSellOutBill_IsExist", {
+ // axios.get(this.$baseUrl + "/Kf_SellOutBill/CheckSellOutBill_IsExist", {
// params: { HInterID: this.rowForm.hmainid },
// })
// .then((response) => {
@@ -562,7 +578,7 @@
},
ToolBatch() {
if (this.HMinQty2 == 0 && this.HMaterID) {
- axios.get(this.baseURL + '/Sc_BarCode/Batch', {
+ axios.get(this.$baseUrl + '/Sc_BarCode/Batch', {
params: {
"HMaterID": this.HMaterID, "HBatchNo": this.HBatchNo
},
@@ -652,7 +668,7 @@
SaveBarCodeCreate(sMainSub, CampanyName) {
axios({
method: 'post',
- url: this.baseURL + "/Sc_BarCode/Sub_SaveBill",
+ url: this.$baseUrl + "/Sc_BarCode/Sub_SaveBill",
data: {
"msg": sMainSub, "CampanyName": CampanyName
},
@@ -685,7 +701,7 @@
},
set_HBarCodeType() {
//鑾峰彇鏉$爜绫诲瀷浠g爜
- axios.get(this.baseURL + '/Sc_BarCode/GetHBarCodeTypeBill').then(response => {
+ axios.get(this.$baseUrl + '/Sc_BarCode/GetHBarCodeTypeBill').then(response => {
let result = response.data
if (result.count == 1) {
this.HBarCodeTypeList = result.list
@@ -693,7 +709,7 @@
}).catch(error => {
this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
});
- axios.get(this.baseURL + '/Sc_BarCode/GetHWorksNumberBill').then(response => {
+ axios.get(this.$baseUrl + '/Sc_BarCode/GetHWorksNumberBill').then(response => {
let result = response.data
if (result.count == 1) {
this.HWorksNumberList = result.list
@@ -771,13 +787,41 @@
//寮圭獥璧嬪��
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].閮ㄩ棬 != "" && deptRow[i].閮ㄩ棬 != null) {
+ if (!deptRow[i].閮ㄩ棬) {
list.push(deptRow[i].閮ㄩ棬)
}
BillSelect.push({
@@ -804,7 +848,7 @@
//閫氳繃閫夋嫨鐨勬簮鍗曚富瀛愬唴鐮佹煡鎵捐缁嗕俊鎭�
axios({
method: 'post',
- url: this.baseURL + "/Sc_BarCode/SelectReportFromBillList",
+ url: this.$baseUrl + "/Sc_BarCode/SelectReportFromBillList",
data: {
"msg": Str
},
@@ -892,7 +936,7 @@
},
//鏍规嵁鐢ㄦ埛鑾峰彇瀵瑰簲鑱屽憳銆侀儴闂ㄣ�侀攢鍞富绠�
getCzyglByUser() {
- axios.get(this.baseURL + '/Xs_SeOrderBill/getCzyglByUser', {
+ axios.get(this.$baseUrl + '/Xs_SeOrderBill/getCzyglByUser', {
params: { "CurUserName": sessionStorage["HUserName"] }
}).then(response => {
let dataForm = response.data.data[0]
@@ -919,7 +963,7 @@
handleUpdate() {
this.reset()
let rowHmainid = this.linterid
- axios.get(this.baseURL + "/Kf_SellOutBill/cx", {
+ axios.get(this.$baseUrl + "/Kf_SellOutBill/cx", {
params: { 'HInterID': rowHmainid }
}).then(response => {
if (response.data.count == 1) {
@@ -1041,8 +1085,9 @@
, 'HPOOrderInterID': result.data[i].閲囪喘璁㈠崟鍐呯爜
, 'HPOOrderEntryID': result.data[i].閲囪喘璁㈠崟瀛愬唴鐮�
, 'HPOOrderBillNo': result.data[i].閲囪喘璁㈠崟鍙�
- , 'HPropertyID': result.data[i].HPropertyID
- , 'HPropertyName': 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].鎹㈢畻鐜�
@@ -1069,7 +1114,7 @@
},
//鏍规嵁瀹㈡埛甯﹀嚭鑱旂郴浜恒�佽仈绯荤數璇�
getCustomerByCusID(HCusID) {
- axios.get(this.baseURL + "/Xs_SeOrderBill/getCustomerByCusID", {
+ axios.get(this.$baseUrl + "/Xs_SeOrderBill/getCustomerByCusID", {
params: {
HCusID: HCusID
}
@@ -1187,6 +1232,7 @@
this.danganSelList = selection
},
showReset() {
+ this.materialShow = false
this.ScICMOBillShow = false
},
// 鎵撳紑鏁版嵁鍒楄〃寮圭獥
@@ -1195,19 +1241,34 @@
if (row) {
this.zbIndex = row.index - 1
}
- this.showReset()
- this.HSouceBillType = this.getSupType()
- this.dialogTitle = this.getSupType() + '鍒楄〃'
- this.ScICMOBillShow = true
- this.openData = true
+ 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
+ }
},
}
};
</script>
<style>
- .input-search-btn {
- background-color: rgb(24, 144, 255) !important;
- color: #fff !important;
- }
+.input-search-btn {
+ background-color: rgb(24, 144, 255) !important;
+ color: #fff !important;
+}
</style>
\ No newline at end of file
--
Gitblit v1.9.1