关联主单校验文本调整
This commit is contained in:
parent
4be96f53f4
commit
42d8ea2de8
@ -161,7 +161,7 @@
|
|||||||
|
|
||||||
</el-row>
|
</el-row>
|
||||||
<!-- v-if="action=='add' || action=='preAdd'" -->
|
<!-- 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;">
|
<div style="display:inline-flex;font-size: 15px;font-weight: 700;">
|
||||||
|
|
||||||
@ -934,7 +934,7 @@ data() {
|
|||||||
//校验关联主单线路
|
//校验关联主单线路
|
||||||
var checkmasterProductType = (rule, value, callback) => {
|
var checkmasterProductType = (rule, value, callback) => {
|
||||||
if (this.masterBillProductType && this.masterBillProductType != this.form.productType) {
|
if (this.masterBillProductType && this.masterBillProductType != this.form.productType) {
|
||||||
callback(new Error('输入单号不正确'));// 关联主单和运单线路不一致
|
callback(new Error('主单和虚拟单线路不一致'));// 关联主单和运单线路不一致
|
||||||
} else {
|
} else {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
@ -967,7 +967,7 @@ data() {
|
|||||||
mainHasCnt:0,
|
mainHasCnt:0,
|
||||||
subHasCnt:0
|
subHasCnt:0
|
||||||
},
|
},
|
||||||
|
sendSiteSelectCount:0,//寄件网点变化次数
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
billCode: [
|
billCode: [
|
||||||
@ -1563,7 +1563,7 @@ methods: {
|
|||||||
|
|
||||||
this.reset();
|
this.reset();
|
||||||
this.form.productTypeSelArr=null;
|
this.form.productTypeSelArr=null;
|
||||||
|
this.sendSiteSelectCount =0;
|
||||||
if(this.billCode && this.billCode!=undefined) {
|
if(this.billCode && this.billCode!=undefined) {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
getWaybillDetail(this.billCode).then(response => {
|
getWaybillDetail(this.billCode).then(response => {
|
||||||
@ -1806,6 +1806,7 @@ methods: {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onSendSiteSelect(item){
|
onSendSiteSelect(item){
|
||||||
|
this.sendSiteSelectCount ++ ;
|
||||||
////console.log("==onSendSiteSelect==>",item)
|
////console.log("==onSendSiteSelect==>",item)
|
||||||
////console.log("==onSendSiteSelect==this.form=>",this.form)
|
////console.log("==onSendSiteSelect==this.form=>",this.form)
|
||||||
|
|
||||||
@ -1818,8 +1819,10 @@ methods: {
|
|||||||
}
|
}
|
||||||
this.form.sendSiteCode=item.siteCode;
|
this.form.sendSiteCode=item.siteCode;
|
||||||
this.form.sendSiteName=item.siteName;
|
this.form.sendSiteName=item.siteName;
|
||||||
this.form.startSiteCode=item.siteCode;
|
if(this.sendSiteSelectCount > 2){
|
||||||
this.form.startSiteName=item.siteName;
|
this.form.startSiteCode = item.siteCode;
|
||||||
|
this.form.startSiteName = item.siteName;
|
||||||
|
}
|
||||||
this.initGetTotalAvailablePag(this.form.sendSiteCode);
|
this.initGetTotalAvailablePag(this.form.sendSiteCode);
|
||||||
// this.calcBillFee();
|
// this.calcBillFee();
|
||||||
},
|
},
|
||||||
|
|||||||
@ -936,7 +936,7 @@ data() {
|
|||||||
//校验关联主单线路
|
//校验关联主单线路
|
||||||
var checkmasterProductType = (rule, value, callback) => {
|
var checkmasterProductType = (rule, value, callback) => {
|
||||||
if (this.masterBillProductType && this.masterBillProductType != this.form.productType) {
|
if (this.masterBillProductType && this.masterBillProductType != this.form.productType) {
|
||||||
callback(new Error('输入单号不正确'));// 关联主单和运单线路不一致
|
callback(new Error('主单和虚拟单线路不一致'));// 关联主单和运单线路不一致
|
||||||
} else {
|
} else {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1292,7 +1292,7 @@ export default {
|
|||||||
//校验关联主单线路
|
//校验关联主单线路
|
||||||
var checkmasterProductType = (rule, value, callback) => {
|
var checkmasterProductType = (rule, value, callback) => {
|
||||||
if (this.masterBillProductType && this.masterBillProductType != this.form.productType) {
|
if (this.masterBillProductType && this.masterBillProductType != this.form.productType) {
|
||||||
callback(new Error('输入单号不正确'));// 关联主单和运单线路不一致
|
callback(new Error('主单和虚拟单线路不一致'));// 关联主单和运单线路不一致
|
||||||
} else {
|
} else {
|
||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user