|
@@ -515,6 +515,73 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="场站" prop="cyCnName" >
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #4c9e44;cursor: pointer;text-decoration: underline" @click="emailJump('cy')">场站</span>
|
|
|
+ </span>
|
|
|
+ <search-query :datalist="cyData"
|
|
|
+ :selectValue="assemblyForm.cyCnName"
|
|
|
+ :filterable="true"
|
|
|
+ :clearable="true"
|
|
|
+ :remote="true"
|
|
|
+ :disabled="detailData.seeDisabled || generateBillsfalse"
|
|
|
+ :buttonIf="false"
|
|
|
+ :forParameter="{key:'id',label:'cnName',value:'cnName'}"
|
|
|
+ placeholder="请选择场站"
|
|
|
+ @remoteMethod="remoteMethod($event,'cy')"
|
|
|
+ @corpChange="corpChange($event,'cy')"
|
|
|
+ @corpFocus="remoteMethod($event, 'cy')" >
|
|
|
+ </search-query>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="联系人" prop="cyContacts" >
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">联系人</span>
|
|
|
+ </span>
|
|
|
+ <!--<el-input type="age" style="width: 100%;" v-model="assemblyForm.cyContacts"-->
|
|
|
+ <!-- size="small" autocomplete="off"-->
|
|
|
+ <!-- :disabled="detailData.seeDisabled || generateBillsfalse"-->
|
|
|
+ <!-- clearable placeholder="请输入联系人" ></el-input>-->
|
|
|
+ <search-query :datalist="cyContactsData"
|
|
|
+ :selectValue="assemblyForm.cyContacts"
|
|
|
+ :filterable="true"
|
|
|
+ :clearable="true"
|
|
|
+ :allowCreate="true"
|
|
|
+ :disabled="detailData.seeDisabled || generateBillsfalse || !assemblyForm.cyCnName"
|
|
|
+ :buttonIf="false"
|
|
|
+ :forParameter="{key:'id',label:'cname',value:'cname'}"
|
|
|
+ placeholder="联系人"
|
|
|
+ @corpChange="corpChange($event,'cyContacts')"
|
|
|
+ @corpFocus="remoteMethod($event, 'cyContacts')" >
|
|
|
+ </search-query>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <el-form-item label="地址" prop="cyAddress" >
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">地址</span>
|
|
|
+ </span>
|
|
|
+ <el-input type="age" style="width: 100%;" v-model="assemblyForm.cyAddress"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="detailData.seeDisabled || generateBillsfalse || !assemblyForm.cyCnName"
|
|
|
+ clearable placeholder="地址" ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-form-item label="场站备注" prop="cyRemarks" >
|
|
|
+ <span slot="label">
|
|
|
+ <span style="color: #1e9fff">场站备注</span>
|
|
|
+ </span>
|
|
|
+ <el-input type="textarea" style="width: 100%;" v-model="assemblyForm.cyRemarks"
|
|
|
+ size="small" autocomplete="off"
|
|
|
+ :disabled="detailData.seeDisabled || generateBillsfalse" rows="3"
|
|
|
+ clearable placeholder="请输入场站备注" ></el-input>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
|
|
|
|
|
@@ -702,6 +769,7 @@ import emailhash from '@/views/iosBasicData/OceanFreightImport/bills/assembly/Js
|
|
|
import bcorps from "@/views/iosBasicData/bcorps/index.vue";
|
|
|
import {NdayDate} from "@/util/date";
|
|
|
import {regularFloating, regularInteger} from "@/util/regularJudgment";
|
|
|
+import {getBcorpsattnList} from "@/api/iosBasicData/bcorpsattn";
|
|
|
|
|
|
export default {
|
|
|
props:{
|
|
@@ -730,6 +798,9 @@ import {regularFloating, regularInteger} from "@/util/regularJudgment";
|
|
|
}
|
|
|
},
|
|
|
emailhash:emailhash, // 邮箱跳转地址
|
|
|
+ // 场站
|
|
|
+ cyData:[],
|
|
|
+ cyContactsData:[], // 场站联系人
|
|
|
// 多选的数据
|
|
|
tabsMultipleChoice:[],
|
|
|
// 发货人数据
|
|
@@ -825,6 +896,14 @@ import {regularFloating, regularInteger} from "@/util/regularJudgment";
|
|
|
else if (portArr.indexOf(name) != -1) {
|
|
|
this[name + 'BportsListfun'](value)
|
|
|
}
|
|
|
+ // 场站
|
|
|
+ else if (name == 'cy') {
|
|
|
+ this.cyBcorpslistByType(value)
|
|
|
+ }
|
|
|
+ // 场站联系人
|
|
|
+ else if (name == 'cyContacts') {
|
|
|
+ this.cyBcorpsattnListfun()
|
|
|
+ }
|
|
|
// 包装
|
|
|
else if (name == 'packingUnit') {
|
|
|
this.packingUnitBpackagesListfun(value)
|
|
@@ -990,6 +1069,51 @@ import {regularFloating, regularInteger} from "@/util/regularJudgment";
|
|
|
this.DangerousGoodsAdd()
|
|
|
}
|
|
|
}
|
|
|
+ else if (name == 'cy') {
|
|
|
+ if (!value) {
|
|
|
+ this.$set(this.assemblyForm,'cyId','')
|
|
|
+ this.$set(this.assemblyForm,'cyCode','')
|
|
|
+ this.$set(this.assemblyForm,'cyCnName','')
|
|
|
+ this.$set(this.assemblyForm,'cyEnName','')
|
|
|
+ this.$set(this.assemblyForm,'cyRemarks','')
|
|
|
+ // 联系人
|
|
|
+ this.$set(this.assemblyForm,'cyTel','')
|
|
|
+ this.$set(this.assemblyForm,'cyAddress','')
|
|
|
+ this.$set(this.assemblyForm,'cyContacts','')
|
|
|
+ }
|
|
|
+ for(let item of this.cyData) {
|
|
|
+ if (item.cnName == value) {
|
|
|
+ this.$set(this.assemblyForm,'cyId',item.id)
|
|
|
+ this.$set(this.assemblyForm,'cyCode',item.code)
|
|
|
+ this.$set(this.assemblyForm,'cyCnName',item.cnName)
|
|
|
+ this.$set(this.assemblyForm,'cyEnName',item.enName)
|
|
|
+ this.$set(this.assemblyForm,'cyRemarks',item.details) // 客户里的详情信息
|
|
|
+ // 查询场站联系人
|
|
|
+ getBcorpsattnList(1,20,{pid:this.assemblyForm.cyId}).then(res=>{
|
|
|
+ if (res.data.data.records.length > 0) {
|
|
|
+ this.$set(this.assemblyForm,'cyTel',res.data.data.records[0].tel)
|
|
|
+ this.$set(this.assemblyForm,'cyAddress',res.data.data.records[0].addr)
|
|
|
+ this.$set(this.assemblyForm,'cyContacts',res.data.data.records[0].cname)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 场站联系人
|
|
|
+ else if (name == 'cyContacts') {
|
|
|
+ if (!value) {
|
|
|
+ this.$set(this.assemblyForm,'cyTel','')
|
|
|
+ this.$set(this.assemblyForm,'cyAddress','')
|
|
|
+ this.$set(this.assemblyForm,'cyContacts','')
|
|
|
+ }
|
|
|
+ for(let item of this.cyContactsData) {
|
|
|
+ if (item.cname == value) {
|
|
|
+ this.$set(this.assemblyForm,'cyTel',item.tel)
|
|
|
+ this.$set(this.assemblyForm,'cyAddress',item.addr)
|
|
|
+ this.$set(this.assemblyForm,'cyContacts',item.cname)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
else {
|
|
|
this.$set(this.assemblyForm,name,value?value:'')
|
|
|
}
|
|
@@ -1147,6 +1271,19 @@ import {regularFloating, regularInteger} from "@/util/regularJudgment";
|
|
|
},
|
|
|
|
|
|
// 接口数据请求🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
|
|
|
+ // 获取场站数据
|
|
|
+ cyBcorpslistByType(cnName){
|
|
|
+ let corpTypeName = '场站'
|
|
|
+ getBcorpslistByType(1,10,{cnName,status: 0,corpTypeName}).then(res=>{
|
|
|
+ this.cyData = res.data.data.records
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 获取场站下的联系人数据
|
|
|
+ cyBcorpsattnListfun(){
|
|
|
+ getBcorpsattnList(1,20,{pid:this.assemblyForm.cyId}).then(res=>{
|
|
|
+ this.cyContactsData = res.data.data.records
|
|
|
+ })
|
|
|
+ },
|
|
|
// 获取发货人数据 (往来单位 前四个代理)
|
|
|
hshipperBcorpsListfun(cnName){
|
|
|
let corpTypeName = '国内直接客户,国内同行及代理,国外直接客户,国外同行及代理'
|