|
@@ -260,7 +260,7 @@ import edicode from '@/views/iosBasicData/AirtransportExport/bills/assembly/edic
|
|
|
import filescenter from "@/views/iosBasicData/AirtransportExport/bills/assembly/filescenter.vue";
|
|
|
import DistributionBox from "@/views/iosBasicData/AirtransportExport/bills/assembly/DistributionBox.vue";
|
|
|
import feecenter from '@/views/iosBasicData/AirtransportExport/bills/assembly/feecenter.vue'
|
|
|
-import {getList as userGetList} from '@/api/system/user'
|
|
|
+import {getList, getList as userGetList} from '@/api/system/user'
|
|
|
import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
|
|
|
import TreeSelect from "@/components/iosbasic-data/TreeSelect.vue";
|
|
|
import bcorps from "@/views/iosBasicData/bcorps/index.vue";
|
|
@@ -292,7 +292,7 @@ import {
|
|
|
aeabillsCheckBills,
|
|
|
aeabillsCopyBills,
|
|
|
aeabillsDetail,
|
|
|
- aeabillsRevokeCheckBills
|
|
|
+ aeabillsRevokeCheckBills, aeabillsSubmit
|
|
|
} from "@/api/iosBasicData/aeabills";
|
|
|
export default {
|
|
|
components:{
|
|
@@ -344,7 +344,7 @@ import {
|
|
|
srcType:'OWN', // 业务来源默认公司 来源 内容 默认登录人所属公司
|
|
|
numberOfObl:'THREE', // 正本份数 默认 THREE
|
|
|
numberOfCopy:'ONE', // 副本份数 默认 ONE
|
|
|
- seaType:'E', // 进出口 默认出口 E=出口 I=进口"
|
|
|
+ seaType:'直航', // 进出口 默认出口 E=出口 I=进口"
|
|
|
marks:'N/M',
|
|
|
filesList:[], // 文件中心
|
|
|
feeCenterListD:[], // 收
|
|
@@ -524,12 +524,12 @@ import {
|
|
|
},
|
|
|
],
|
|
|
{
|
|
|
- label: "制单人", // 操作id 用户管理下拉 模糊搜索
|
|
|
+ label: "制单人",
|
|
|
text:"制单人",
|
|
|
prop: "createUserName",
|
|
|
type:'select',
|
|
|
dicData:[],
|
|
|
- disabled:true,
|
|
|
+ disabled:false,
|
|
|
buttonIf:false,
|
|
|
forParameter:{
|
|
|
key:'id',
|
|
@@ -548,22 +548,21 @@ import {
|
|
|
buttonIf:false,
|
|
|
forParameter:{
|
|
|
key:'id',
|
|
|
- label:'name',
|
|
|
- value:'name',
|
|
|
+ label:'cnName',
|
|
|
+ value:'cnName',
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- label: "运输类型",
|
|
|
+ label: "运输类型", // HB/L 付款方式 PP=预付, CC=到付, FPA, Other', 申请之后默认 PP
|
|
|
text:"运输类型",
|
|
|
prop: "transportType",
|
|
|
+ disabled:false,
|
|
|
type:'select',
|
|
|
dicData:[],
|
|
|
- disabled:false,
|
|
|
- buttonIf:false,
|
|
|
forParameter:{
|
|
|
- key:'id',
|
|
|
- label:'name',
|
|
|
- value:'name',
|
|
|
+ key:'dictKey',
|
|
|
+ label:'dictValue',
|
|
|
+ value:'dictKey',
|
|
|
},
|
|
|
},
|
|
|
]
|
|
@@ -587,39 +586,30 @@ import {
|
|
|
value:'mblno',
|
|
|
},
|
|
|
{
|
|
|
- name:'外提单号',
|
|
|
+ name:'Reference NO',
|
|
|
value:'refno',
|
|
|
},
|
|
|
{
|
|
|
- name:'船名(VSL)',
|
|
|
- value:'vesselCnName',
|
|
|
- },
|
|
|
- {
|
|
|
- name:'航次(VOY)',
|
|
|
+ name:'航班号',
|
|
|
value:'voyageNo',
|
|
|
},
|
|
|
{
|
|
|
- name:'ETD',
|
|
|
- value:'etd',
|
|
|
- },
|
|
|
- {
|
|
|
name:'目的港',
|
|
|
- value:'destinationNamePrint',
|
|
|
+ value:'finalDestinationName',
|
|
|
},
|
|
|
{
|
|
|
name:'包装单位',
|
|
|
value:'packingUnit',
|
|
|
},
|
|
|
{
|
|
|
- name:'船公司',
|
|
|
+ name:'航空公司',
|
|
|
value:'carrierCnName',
|
|
|
},
|
|
|
{
|
|
|
- name:'场站',
|
|
|
+ name:'航站',
|
|
|
value:'cyCnName',
|
|
|
},
|
|
|
],
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
watch:{
|
|
@@ -714,6 +704,12 @@ import {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 获取运输类型字典数据
|
|
|
+ transportTypeWorkDictsfun(){
|
|
|
+ getWorkDicts('transportation_type_los').then(res=>{
|
|
|
+ this.columnforfun('transportType').dicData = res.data.data
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取用户管理数据
|
|
|
userGetListfun(account = undefined,type = false,){
|
|
|
userGetList(1,10,{account}).then(res=>{
|
|
@@ -739,6 +735,12 @@ import {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ // 获取委托人数据 往来单位数据
|
|
|
+ clientNameBcorpsListfun(cnName){
|
|
|
+ getBcorpsList(1,10,{cnName}).then(res=>{
|
|
|
+ this.columnforfun('clientName').dicData = res.data.data.records
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取客户联系人 客户OP
|
|
|
getBcorpsattnListfun(cnName){
|
|
|
getBcorpsattnList(1,10,{pid:this.form.corpId,cnName}).then(res=>{
|
|
@@ -781,6 +783,12 @@ import {
|
|
|
this.columnforfun('srcCnName').dicData = res.data.data.records
|
|
|
})
|
|
|
},
|
|
|
+ // 获取制单人数据 用户数据
|
|
|
+ createUserUserGetListfun(account){
|
|
|
+ userGetList(1,10,{account}).then(res=>{
|
|
|
+ this.columnforfun('createUserName').dicData = res.data.data.records
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取公司名称 用户管理左侧
|
|
|
ownDeptLazyTreefun(){
|
|
|
getDeptLazyTree(0).then(res=>{
|
|
@@ -797,14 +805,17 @@ import {
|
|
|
},
|
|
|
// 申请B/L NO
|
|
|
billsGetBillNofun(){
|
|
|
- let billNoFormat = ''
|
|
|
- if (this.form.cargoType == 'dry') {
|
|
|
- billNoFormat = 'KYCK-PH'
|
|
|
- }else if (this.form.cargoType == 'danger') {
|
|
|
+ let billNoFormat = 'KYCK'
|
|
|
+ // if (this.form.cargoType == 'dry') {
|
|
|
+ // billNoFormat = 'KYCK-PH'
|
|
|
+ // }else if (this.form.cargoType == 'danger') {
|
|
|
+ // billNoFormat = 'KYCK-WXP'
|
|
|
+ // }else if (this.form.cargoType == 'reefer') {
|
|
|
+ // billNoFormat = 'KYCK-DG'
|
|
|
+ // }else {}
|
|
|
+ if (this.form.cargoType) {
|
|
|
billNoFormat = 'KYCK-WXP'
|
|
|
- }else if (this.form.cargoType == 'reefer') {
|
|
|
- billNoFormat = 'KYCK-DG'
|
|
|
- }else {}
|
|
|
+ }
|
|
|
billsGetBillNo({
|
|
|
businessTypeCode:'KYCK',
|
|
|
billNoFormat:billNoFormat
|
|
@@ -826,7 +837,7 @@ import {
|
|
|
this.getBcorpsattnListfun(value)
|
|
|
}else if (name == 'srcType') {
|
|
|
this.srcTypeWorkDictsfun()
|
|
|
- } else if (name == 'srcCnName') {
|
|
|
+ }else if (name == 'srcCnName') {
|
|
|
if (this.form.srcType == 'SALES') {
|
|
|
// 业务员
|
|
|
this.columnforfun('srcCnName').forParameter = { key:'id', label:'name', value:'name'}
|
|
@@ -840,8 +851,13 @@ import {
|
|
|
this.columnforfun('srcCnName').forParameter = { key:'id', label:'title', value:'title'}
|
|
|
this.ownDeptLazyTreefun()
|
|
|
}else {}
|
|
|
- }else {
|
|
|
-
|
|
|
+ }else if (name == 'transportType') {
|
|
|
+ this.transportTypeWorkDictsfun()
|
|
|
+ }else if (name == 'clientName') {
|
|
|
+ this.clientNameBcorpsListfun(value)
|
|
|
+ }else if (name == 'createUserName') {
|
|
|
+ this.createUserUserGetListfun(value)
|
|
|
+ } else {
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -982,6 +998,22 @@ import {
|
|
|
// 分单付费方式
|
|
|
this.form[name] = value
|
|
|
}
|
|
|
+ else if (name == 'clientName') {
|
|
|
+ for(let item of this.columnforfun('clientName').dicData) {
|
|
|
+ if (item.cnName == value) {
|
|
|
+ this.$set(this.form,'clientName',item.cnName)
|
|
|
+ this.$set(this.form,'clientId',item.id)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if (name == 'createUserName') {
|
|
|
+ for(let item of this.columnforfun('createUserName').dicData) {
|
|
|
+ if (item.cnName == value) {
|
|
|
+ this.$set(this.form,'createUserName',item.name)
|
|
|
+ this.$set(this.form,'createUserId',item.id)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
else {
|
|
|
this.form[name] = value
|
|
|
}
|
|
@@ -1199,15 +1231,20 @@ import {
|
|
|
},
|
|
|
// 主表保存接口大保存
|
|
|
billsSubmitfun(){
|
|
|
- if (this.form.cargoType = 'dry') {
|
|
|
- // 普货
|
|
|
- this.form.billNoFormat = 'KYCK-PH'
|
|
|
- }else if (this.form.cargoType = 'danger'){
|
|
|
- // 危险品
|
|
|
+ // if (this.form.cargoType = 'dry') {
|
|
|
+ // // 普货
|
|
|
+ // this.form.billNoFormat = 'KYCK-PH'
|
|
|
+ // }else if (this.form.cargoType = 'danger'){
|
|
|
+ // // 危险品
|
|
|
+ // this.form.billNoFormat = 'KYCK-WXP'
|
|
|
+ // }else if (this.form.cargoType = 'reefer') {
|
|
|
+ // // 冻柜
|
|
|
+ // this.form.billNoFormat = 'KYCK-DG'
|
|
|
+ // }else {
|
|
|
+ //
|
|
|
+ // }
|
|
|
+ if (this.form.cargoType) {
|
|
|
this.form.billNoFormat = 'KYCK-WXP'
|
|
|
- }else if (this.form.cargoType = 'reefer') {
|
|
|
- // 冻柜
|
|
|
- this.form.billNoFormat = 'KYCK-DG'
|
|
|
}else {
|
|
|
this.form.billNoFormat = 'KYCK'
|
|
|
}
|
|
@@ -1308,7 +1345,7 @@ import {
|
|
|
}
|
|
|
})
|
|
|
this.pageLoading = true
|
|
|
- billsSubmit(this.form).then(res=>{
|
|
|
+ aeabillsSubmit(this.form).then(res=>{
|
|
|
this.pageLoading = false
|
|
|
this.$message({
|
|
|
type: "success",
|