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/sell/xsSeOrderBill/xsSeOrderBillEdit.vue | 170 +++++++++++++++++++++++++++++---------------------------
1 files changed, 89 insertions(+), 81 deletions(-)
diff --git a/src/views/sell/xsSeOrderBill/xsSeOrderBillEdit.vue b/src/views/sell/xsSeOrderBill/xsSeOrderBillEdit.vue
index c71d57b..7eb086b 100644
--- a/src/views/sell/xsSeOrderBill/xsSeOrderBillEdit.vue
+++ b/src/views/sell/xsSeOrderBill/xsSeOrderBillEdit.vue
@@ -435,18 +435,18 @@
</el-table-column>
<el-table-column align="center" label="浠撳簱" width="120">
<template slot-scope="scope">
- <el-input-number
- v-model="scope.row.HQty"
+ <el-input
+ v-model="scope.row.浠撳簱"
:min="1"
style="width: 90px"
controls-position="right"
- ></el-input-number>
+ ></el-input>
</template>
</el-table-column>
<el-table-column align="center" label="鏁伴噺2" width="120">
<template slot-scope="scope">
<el-input-number
- v-model="scope.row.HPrice"
+ v-model="scope.row.HQty"
:min="0"
style="width: 90px"
controls-position="right"
@@ -455,22 +455,22 @@
</el-table-column>
<el-table-column align="center" label="鍗曚环" width="120">
<template slot-scope="scope">
- <span>{{ scope.row.HTaxPrice }}</span>
+ <span>{{ scope.row.HPrice }}</span>
</template>
</el-table-column>
- <el-table-column align="center" label="鍔犵◣鍚堣" width="120">
+ <el-table-column align="center" label="浠风◣鍚堣" width="120">
<template slot-scope="scope">
- <span>{{ scope.row.HTaxRate }}</span>
+ <span>{{ scope.row.HTaxMoney }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="瀹㈡埛瑙勬牸鍨嬪彿" width="120">
<template slot-scope="scope">
- <span>{{ scope.row.HPrice * scope.row.HQty }}</span>
+ <span>{{ scope.row.HPrice * scope.row.瑙勬牸鍨嬪彿 }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="浜よ揣鏃ユ湡" width="120">
<template slot-scope="scope">
- <span>{{ scope.row.HTaxPrice * scope.row.HQty }}</span>
+ <span>{{ scope.row.HTaxPrice * scope.row.HDate }}</span>
</template>
</el-table-column>
<el-table-column align="center" label="澶囨敞" width="120">
@@ -630,7 +630,7 @@
methods: {
fetchData() {
axios
- .get(this.baseURL + "/Web/GetOrganizations", {})
+ .get(this.$baseUrl + "/Web/GetOrganizations", {})
.then((response) => {
if (response.data.count == 1) {
this.organizationList = response.data.data.map((item) => {
@@ -648,8 +648,8 @@
getdata() {
this.HInterID2 = this.$route.query.HInterID || this.linterid || 0;
this.OperationType2 = this.$route.query.OperationType || this.OperationType || 1;
- this.CopyType2 = this.$route.query.copyType || this.copyType || -1;
- console.log(this.CopyType2, this.OperationType2, this.HInterID2);
+ this.CopyType2 = this.$route.query.CopyType || this.copyType || -1;
+ console.log("浼犻�掔殑鍙傛暟",this.$route.query.CopyType,this.$route.query.OperationType, this.$route.query.HInterID);
this.formShow = false;
this.formLoading = true;
@@ -661,7 +661,7 @@
for (var i = 0; i < data.length; i++) {
// this.getPushSourceBillInit(data[i].hmainid, data[i].hsubid);
axios
- .get(this.baseURL + "/Xs_SeOrderBill/loadXs_SeOrderBill_Push", {
+ .get(this.$baseUrl + "/Xs_SeOrderBill/loadXs_SeOrderBill_Push", {
params: {
HInterID: data[i].hmainid,
},
@@ -712,7 +712,7 @@
HMoney: dataArray[i].閲戦.toFixed(2),
HTaxMoney: dataArray[i].浠风◣鍚堣.toFixed(2),
HWHID: dataArray[i].HWHID,
- 鍙戣揣浠撳簱: dataArray[i].HWHName,
+ 浠撳簱: dataArray[i].HWHName,
HRemark: "",
HQty_Full: "0",
HQty_Empty: "0",
@@ -784,7 +784,7 @@
//鏍规嵁涓诲唴鐮佷笌瀛愬唴鐮佽幏鍙栨簮鍗曢攢鍞鍗曟暟鎹�
getPushSourceBillInit(HSourceInterID, HSourceEntryID) {
axios
- .get(this.baseURL + "/Xs_SeOrderBill/loadXs_SeOrderBill_Push", {
+ .get(this.$baseUrl + "/Xs_SeOrderBill/loadXs_SeOrderBill_Push", {
params: {
HInterID: HSourceInterID,
HSubID: HSourceEntryID,
@@ -935,8 +935,10 @@
//閫�鍑�
close() {
this.reset();
-
- if (!this.OperationType2 && !this.copyType) {
+ if (window.top != window.self) {
+ // iframe 椤甸潰 璋冪敤鐖堕〉闈㈢殑鍑芥暟鍏抽棴寮圭獥
+ window.parent.editGyClose();
+ } else if (!this.OperationType2 && !this.copyType) {
// this.$router.back()
window.close();
} else {
@@ -947,7 +949,7 @@
//鏍规嵁鐢ㄦ埛鑾峰彇瀵瑰簲鑱屽憳銆侀儴闂ㄣ�侀攢鍞富绠�
getCzyglByUser() {
axios
- .get(this.baseURL + "/Xs_SeOrderBill/getCzyglByUser", {
+ .get(this.$baseUrl + "/Xs_SeOrderBill/getCzyglByUser", {
params: { CurUserName: sessionStorage["HUserName"] },
})
.then((response) => {
@@ -980,7 +982,7 @@
},
getHBillNo() {
axios
- .get(this.baseURL + "/WEBSController/GetMaxBillNoAndID_Json", {
+ .get(this.$baseUrl + "/WEBSController/GetMaxBillNoAndID_Json", {
params: {
HBillType: "1401",
},
@@ -999,7 +1001,7 @@
//鑾峰彇閿�鍞嚭搴撳崟瀵瑰簲鐨勬潯鐮佹槑缁�
getBarCodeNoteBySellOutBill(rowHmainid) {
axios
- .get(this.baseURL + "/Kf_SellOutBill/BarCodeNote", {
+ .get(this.$baseUrl + "/Kf_SellOutBill/BarCodeNote", {
params: { HInterID: rowHmainid },
})
.then((response) => {
@@ -1018,7 +1020,7 @@
//#region 鏍规嵁瀹㈡埛鑾峰彇瀹㈡埛浣欓
getCustomerBalance(HCusID) {
axios
- .get(this.baseURL + "/Xs_CusRatingChangeBill/getCustomerBalance", {
+ .get(this.$baseUrl + "/Xs_CusRatingChangeBill/getCustomerBalance", {
params: { HCusID: HCusID, CurUserName: sessionStorage["HUserName"] },
})
.then((response) => {
@@ -1036,7 +1038,7 @@
this.reset();
let rowHmainid = this.HInterID2;
axios
- .get(this.baseURL + "/Xs_SeOrderBill/loadXs_SeOrderBill_Edit", {
+ .get(this.$baseUrl + "/Xs_SeOrderBill/loadXs_SeOrderBill_Edit", {
params: { HInterID: rowHmainid },
})
.then((response) => {
@@ -1044,61 +1046,63 @@
var result = response.data;
var data = response.data.data[0];
this.form.BillType = data.HSourceBillType;
- Object.assign(this.form, {
- HBillNo: data.鍗曟嵁鍙�,
- HDate: dayjs(data.鏃ユ湡).format("YYYY-MM-DD"),
- HInnerBillNo: data.杈呭姪瀛楁,
- HAddress: data.浜よ揣鍦板潃,
- HDeptID: data.HDeptID,
- HDeptName: data.閮ㄩ棬,
- HCusID: data.HCusID,
- HCusName: data.瀹㈡埛,
- HEmpID: data.HEmpID,
- HEmpName: data.涓氬姟鍛�,
- HCurID: data.HCurID,
- HCurName: data.甯佸埆,
- HExRate: data.姹囩巼,
- HEarnestRate: data.瀹氶噾姣斾緥,
- HBillSubType: data.HBillSubType,
- HManagerID: data.HManagerID,
- HManagerName: data.涓荤,
- HSellSID: data.HSellSID,
- HSellSName: data.閿�鍞柟寮�,
- HSSID: data.HSSID,
- HSSName: data.缁撶畻鏂瑰紡,
- HSSDate: dayjs(data.缁撶畻鏃ユ湡).format("YYYY-MM-DD"),
- HPayCusID: data.HPayCusID,
- HPayCusName: data.缁撶畻鏂�,
- HLinkMan: data.鑱旂郴浜�,
- HExplanation: data.鎽樿,
- HLinkPhone: data.鑱旂郴鐢佃瘽,
- HProjectID: data.HProjectID,
- HProjectNumber: data.椤圭洰缂栫爜,
- HProjectName: data.椤圭洰鍚嶇О,
- HWHID: data.涓讳粨搴搃d,
- HWHName: data.涓讳粨搴�,
- HProductType: data.浜у搧绫诲瀷,
- HCreditRating_Now: data.HCreditRating_Now,
- HRemark: data.琛ㄥご澶囨敞,
- HMaker: data.鍒跺崟浜�,
- HMakeDate:
- data.鍒跺崟浜� == "" ? "" : dayjs(data.鍒跺崟鏃ユ湡).format("YYYY-MM-DD"),
- HUpDater: data.淇敼浜�,
- HUpDateDate:
- data.淇敼浜� == "" ? "" : dayjs(data.淇敼鏃ユ湡).format("YYYY-MM-DD"),
- HChecker: data.瀹℃牳浜�,
- HCheckDate:
- data.瀹℃牳浜� == "" ? "" : dayjs(data.瀹℃牳鏃ユ湡).format("YYYY-MM-DD"),
- HCloseMan: data.鍏抽棴浜�,
- HCloseDate:
- data.鍏抽棴浜� == "" ? "" : dayjs(data.鍏抽棴鏃ユ湡).format("YYYY-MM-DD"),
- HDeleteMan: data.浣滃簾浜�,
- HDeleteDate:
- data.浣滃簾浜� == "" ? "" : dayjs(data.浣滃簾鏃ユ湡).format("YYYY-MM-DD"),
- HChangeMan: data.鍙樻洿浜�,
- HChangeDate:
- data.鍙樻洿浜� == "" ? "" : dayjs(data.鍙樻洿鏃ユ湡).format("YYYY-MM-DD"),
- });
+ this.form = {
+ ...{
+ HBillNo: data.鍗曟嵁鍙�,
+ HDate: dayjs(data.鏃ユ湡).format("YYYY-MM-DD"),
+ HInnerBillNo: data.杈呭姪瀛楁,
+ HAddress: data.浜よ揣鍦板潃,
+ HDeptID: data.HDeptID,
+ HDeptName: data.閮ㄩ棬,
+ HCusID: data.HCusID,
+ HCusName: data.瀹㈡埛,
+ HEmpID: data.HEmpID,
+ HEmpName: data.涓氬姟鍛�,
+ HCurID: data.HCurID,
+ HCurName: data.甯佸埆,
+ HExRate: data.姹囩巼,
+ HEarnestRate: data.瀹氶噾姣斾緥,
+ HBillSubType: data.HBillSubType,
+ HManagerID: data.HManagerID,
+ HManagerName: data.涓荤,
+ HSellSID: data.HSellSID,
+ HSellSName: data.閿�鍞柟寮�,
+ HSSID: data.HSSID,
+ HSSName: data.缁撶畻鏂瑰紡,
+ HSSDate: dayjs(data.缁撶畻鏃ユ湡).format("YYYY-MM-DD"),
+ HPayCusID: data.HPayCusID,
+ HPayCusName: data.缁撶畻鏂�,
+ HLinkMan: data.鑱旂郴浜�,
+ HExplanation: data.鎽樿,
+ HLinkPhone: data.鑱旂郴鐢佃瘽,
+ HProjectID: data.HProjectID,
+ HProjectNumber: data.椤圭洰缂栫爜,
+ HProjectName: data.椤圭洰鍚嶇О,
+ HWHID: data.涓讳粨搴搃d,
+ HWHName: data.涓讳粨搴�,
+ HProductType: data.浜у搧绫诲瀷,
+ HCreditRating_Now: data.HCreditRating_Now,
+ HRemark: data.琛ㄥご澶囨敞,
+ HMaker: data.鍒跺崟浜�,
+ HMakeDate:
+ data.鍒跺崟浜� == "" ? "" : dayjs(data.鍒跺崟鏃ユ湡).format("YYYY-MM-DD"),
+ HUpDater: data.淇敼浜�,
+ HUpDateDate:
+ data.淇敼浜� == "" ? "" : dayjs(data.淇敼鏃ユ湡).format("YYYY-MM-DD"),
+ HChecker: data.瀹℃牳浜�,
+ HCheckDate:
+ data.瀹℃牳浜� == "" ? "" : dayjs(data.瀹℃牳鏃ユ湡).format("YYYY-MM-DD"),
+ HCloseMan: data.鍏抽棴浜�,
+ HCloseDate:
+ data.鍏抽棴浜� == "" ? "" : dayjs(data.鍏抽棴鏃ユ湡).format("YYYY-MM-DD"),
+ HDeleteMan: data.浣滃簾浜�,
+ HDeleteDate:
+ data.浣滃簾浜� == "" ? "" : dayjs(data.浣滃簾鏃ユ湡).format("YYYY-MM-DD"),
+ HChangeMan: data.鍙樻洿浜�,
+ HChangeDate:
+ data.鍙樻洿浜� == "" ? "" : dayjs(data.鍙樻洿鏃ユ湡).format("YYYY-MM-DD"),
+ },
+ };
if (this.copyType == 1) {
this.getHBillNo();
let date = new Date();
@@ -1181,12 +1185,16 @@
//鏍规嵁瀹㈡埛甯﹀嚭鑱旂郴浜恒�佽仈绯荤數璇�
getCustomerByCusID(HCusID) {
axios
- .get(this.baseURL + "/Xs_SeOrderBill/getCustomerByCusID", {
+ .get(this.$baseUrl + "/Xs_SeOrderBill/getCustomerByCusID", {
params: {
HCusID: HCusID,
},
})
.then((response) => {
+ if (response.data.count == 0) {
+ this.$modal.msgWarning(response.data.Message);
+ return
+ }
this.form.鑱旂郴浜� = response.data.data[0].HLinkMan;
this.form.鑱旂郴鐢佃瘽 = response.data.data[0].HLinkPhone;
// this.form = response.data.data[0]
@@ -1334,7 +1342,7 @@
var sql = `exec h_p_Xt_GetMaxBillNo_SubType '1205','${this.form.HDate}',0,0,0,'${Type}','${this.form.HDeptID}'`;
axios({
method: "get",
- url: this.baseURL + "/CommonModel/searchMethod",
+ url: this.$baseUrl + "/CommonModel/searchMethod",
params: { sql: sql, user: sessionStorage["HUserName"], ModRightNameCheck: "" },
})
.then((response) => {
@@ -1373,7 +1381,7 @@
this.OperationType;
axios({
method: "post",
- url: this.baseURL + "/Kf_SellOutBill/SaveSellOutBillList",
+ url: this.$baseUrl + "/Kf_SellOutBill/SaveSellOutBillList",
data: {
msg: sMainSub,
},
@@ -1403,7 +1411,7 @@
var InterID = form.hmainid || form.HInterID;
//閫昏緫瀹℃牳鏂规硶
axios
- .get(this.baseURL + "/Kf_SellOutBill/AuditKf_SellOutBill", {
+ .get(this.$baseUrl + "/Kf_SellOutBill/AuditKf_SellOutBill", {
params: {
HInterID: InterID,
IsAudit: num,
--
Gitblit v1.9.1