|
@@ -986,18 +986,9 @@ import {dateFormat} from "@/util/date";
|
|
|
this.form.billNoFormat = 'HYCK'
|
|
|
this.form.businessTypeId = '1714186930489712641'
|
|
|
// 把拼接的数据拆开 开始 🐒🐒🐒🐒🐒🐒🐒🐒🐒🐒🐒🐒🐒🐒
|
|
|
- // 发货人
|
|
|
- this.form.hShipperCnName = this.form.hShipperCnName.split(' - ')[0]
|
|
|
- // 收货人
|
|
|
- this.form.hConsigneeCnName = this.form.hConsigneeCnName.split(' - ')[0]
|
|
|
- // 通知人
|
|
|
- this.form.hNotifyCnName = this.form.hNotifyCnName.split(' - ')[0]
|
|
|
- // 船公司
|
|
|
- this.form.carrierCnName = this.form.carrierCnName.split(' - ')[0]
|
|
|
-
|
|
|
+ this.searchSplit()
|
|
|
// 把拼接的数据拆开 结束 💩💩💩💩💩💩💩💩💩💩💩💩💩💩
|
|
|
console.log(this.form,985)
|
|
|
- // return
|
|
|
|
|
|
billsSubmit(this.form).then(res=>{
|
|
|
this.$message({
|
|
@@ -1051,6 +1042,25 @@ import {dateFormat} from "@/util/date";
|
|
|
}
|
|
|
|
|
|
},
|
|
|
+ // 下拉 把拼接的拆分
|
|
|
+ searchSplit(){
|
|
|
+ // 发货人
|
|
|
+ if (this.form.hShipperCnName) {
|
|
|
+ this.form.hShipperCnName = this.form.hShipperCnName.split(' - ')[0]
|
|
|
+ }
|
|
|
+ // 收货人
|
|
|
+ if (this.form.hConsigneeCnName) {
|
|
|
+ this.form.hConsigneeCnName = this.form.hConsigneeCnName.split(' - ')[0]
|
|
|
+ }
|
|
|
+ // 通知人
|
|
|
+ if (this.form.hNotifyCnName) {
|
|
|
+ this.form.hNotifyCnName = this.form.hNotifyCnName.split(' - ')[0]
|
|
|
+ }
|
|
|
+ // 船公司
|
|
|
+ if (this.form.carrierCnName) {
|
|
|
+ this.form.carrierCnName = this.form.carrierCnName.split(' - ')[0]
|
|
|
+ }
|
|
|
+ },
|
|
|
// 下拉 中文名称和编号拼接
|
|
|
searchMontage(){
|
|
|
// 发货人
|