关联主单校验文本调整

This commit is contained in:
wuteng 2025-06-23 11:33:49 +08:00
parent 4be96f53f4
commit 42d8ea2de8
3 changed files with 11 additions and 8 deletions

View File

@ -161,7 +161,7 @@
</el-row>
<!-- v-if="action=='add' || action=='preAdd'" -->
<div style="position: absolute;right: 80px;top: 60px;z-index: 100;">
<div style="position: absolute;right: 80px;top: 40px;z-index: 100;">
<!-- -->
<div style="display:inline-flex;font-size: 15px;font-weight: 700;">
@ -934,7 +934,7 @@ data() {
//校验关联主单线路
var checkmasterProductType = (rule, value, callback) => {
if (this.masterBillProductType && this.masterBillProductType != this.form.productType) {
callback(new Error('输入单号不正确'));// 关联主单和运单线路不一致
callback(new Error('主单和虚拟单线路不一致'));// 关联主单和运单线路不一致
} else {
callback();
}
@ -967,7 +967,7 @@ data() {
mainHasCnt:0,
subHasCnt:0
},
sendSiteSelectCount:0,//寄件网点变化次数
// 表单校验
rules: {
billCode: [
@ -1563,7 +1563,7 @@ methods: {
this.reset();
this.form.productTypeSelArr=null;
this.sendSiteSelectCount =0;
if(this.billCode && this.billCode!=undefined) {
this.loading = true;
getWaybillDetail(this.billCode).then(response => {
@ -1806,6 +1806,7 @@ methods: {
}
},
onSendSiteSelect(item){
this.sendSiteSelectCount ++ ;
////console.log("==onSendSiteSelect==>",item)
////console.log("==onSendSiteSelect==this.form=>",this.form)
@ -1818,8 +1819,10 @@ methods: {
}
this.form.sendSiteCode=item.siteCode;
this.form.sendSiteName=item.siteName;
this.form.startSiteCode=item.siteCode;
this.form.startSiteName=item.siteName;
if(this.sendSiteSelectCount > 2){
this.form.startSiteCode = item.siteCode;
this.form.startSiteName = item.siteName;
}
this.initGetTotalAvailablePag(this.form.sendSiteCode);
// this.calcBillFee();
},

View File

@ -936,7 +936,7 @@ data() {
//校验关联主单线路
var checkmasterProductType = (rule, value, callback) => {
if (this.masterBillProductType && this.masterBillProductType != this.form.productType) {
callback(new Error('输入单号不正确'));// 关联主单和运单线路不一致
callback(new Error('主单和虚拟单线路不一致'));// 关联主单和运单线路不一致
} else {
callback();
}

View File

@ -1292,7 +1292,7 @@ export default {
//校验关联主单线路
var checkmasterProductType = (rule, value, callback) => {
if (this.masterBillProductType && this.masterBillProductType != this.form.productType) {
callback(new Error('输入单号不正确'));// 关联主单和运单线路不一致
callback(new Error('主单和虚拟单线路不一致'));// 关联主单和运单线路不一致
} else {
callback();
}