作者 朱兆平

Merge remote-tracking branch 'origin/master'

@@ -259,6 +259,9 @@ @@ -259,6 +259,9 @@
259 }); 259 });
260 260
261 }, 261 },
  262 + consignee_data(){
  263 + (this.filters.companyName = '')
  264 + },
262 //删除 265 //删除
263 handleDel: function (index, row) { 266 handleDel: function (index, row) {
264 this.$confirm('确认删除该记录吗?', '提示', { 267 this.$confirm('确认删除该记录吗?', '提示', {
@@ -227,7 +227,6 @@ @@ -227,7 +227,6 @@
227 }, 227 },
228 mounted() { 228 mounted() {
229 this.getConsignee(); 229 this.getConsignee();
230 -  
231 }, 230 },
232 methods: { 231 methods: {
233 232
@@ -255,6 +254,9 @@ @@ -255,6 +254,9 @@
255 } 254 }
256 }); 255 });
257 }, 256 },
  257 + consigner_data(){
  258 + (this.filters.companyName = '')
  259 + },
258 //删除 260 //删除
259 handleDel: function (index, row) { 261 handleDel: function (index, row) {
260 this.$confirm('确认删除该记录吗?', '提示', { 262 this.$confirm('确认删除该记录吗?', '提示', {
@@ -42,7 +42,8 @@ @@ -42,7 +42,8 @@
42 <el-col style="width: 40%;margin-left:5px"> 42 <el-col style="width: 40%;margin-left:5px">
43 <el-form-item> 43 <el-form-item>
44 <el-input minlength="1" maxlength="25" onkeyup="this.value=this.value.toUpperCase()" 44 <el-input minlength="1" maxlength="25" onkeyup="this.value=this.value.toUpperCase()"
45 - @keyup.native="shp_contact.contact_number.replace(/[^0-9]/g,'')" v-model="shp_contact.contact_number" auto-complete="off" placeholder="电话/传真" size="mini"></el-input> 45 + @keyup.native="shp_contact.contact_number=shp_contact.contact_number.replace(/[^0-9]/g,'')"
  46 + v-model="shp_contact.contact_number" auto-complete="off" placeholder="电话/传真" size="mini"></el-input>
46 <!-- <el-select v-model="form.shp.shp_detail_number" placeholder="电话/传真">--> 47 <!-- <el-select v-model="form.shp.shp_detail_number" placeholder="电话/传真">-->
47 <!-- <el-option label="电话" value="2"></el-option>--> 48 <!-- <el-option label="电话" value="2"></el-option>-->
48 <!-- <el-option label="传真" value="3"></el-option>--> 49 <!-- <el-option label="传真" value="3"></el-option>-->
@@ -2286,19 +2287,23 @@ Handling Information @@ -2286,19 +2287,23 @@ Handling Information
2286 // 获取发货人信息 2287 // 获取发货人信息
2287 getShpFwb() { 2288 getShpFwb() {
2288 this.dialogVisible = true; 2289 this.dialogVisible = true;
  2290 + this.$refs.consigner.getConsignee();
2289 }, 2291 },
2290 // 获取收货人信息 2292 // 获取收货人信息
2291 getCneFwb() { 2293 getCneFwb() {
2292 this.dialogVisible1 = true; 2294 this.dialogVisible1 = true;
  2295 + this.$refs.consignee.getConsignee();
2293 }, 2296 },
2294 // 分单 2297 // 分单
2295 // 获取发货人信息 2298 // 获取发货人信息
2296 getShp() { 2299 getShp() {
2297 this.dialogVisible = true; 2300 this.dialogVisible = true;
  2301 + this.$refs.consigner.getConsignee();
2298 }, 2302 },
2299 // 获取收货人信息 2303 // 获取收货人信息
2300 getCne() { 2304 getCne() {
2301 this.dialogVisible1 = true; 2305 this.dialogVisible1 = true;
  2306 + this.$refs.consignee.getConsignee();
2302 }, 2307 },
2303 //发货人选中事件处理方法 2308 //发货人选中事件处理方法
2304 consigerSelect(row){ 2309 consigerSelect(row){
@@ -2314,6 +2319,7 @@ Handling Information @@ -2314,6 +2319,7 @@ Handling Information
2314 // this.form.oci.push(this.shp_oci); 2319 // this.form.oci.push(this.shp_oci);
2315 this.shp_contact.contact_number=row.conPhone; 2320 this.shp_contact.contact_number=row.conPhone;
2316 // this.form.shp.shp_contacts.push(this.shp_contact); 2321 // this.form.shp.shp_contacts.push(this.shp_contact);
  2322 + this.$refs.consigner.consigner_data();
2317 this.dialogVisible = false; 2323 this.dialogVisible = false;
2318 } 2324 }
2319 else if(this.activeName=='second'){ 2325 else if(this.activeName=='second'){
@@ -2326,9 +2332,11 @@ Handling Information @@ -2326,9 +2332,11 @@ Handling Information
2326 this.shp_aeo.oci_supplementary=row.conAeo; 2332 this.shp_aeo.oci_supplementary=row.conAeo;
2327 this.shp_aeo.oci_country_code=row.country; 2333 this.shp_aeo.oci_country_code=row.country;
2328 // this.addForm.oci.push(this.shp_aeo); 2334 // this.addForm.oci.push(this.shp_aeo);
  2335 + this.$refs.consigner.consigner_data();
2329 this.dialogVisible = false; 2336 this.dialogVisible = false;
2330 } 2337 }
2331 else{ 2338 else{
  2339 + this.$refs.consigner.consigner_data();
2332 this.dialogVisible = false; 2340 this.dialogVisible = false;
2333 } 2341 }
2334 }, 2342 },
@@ -2346,6 +2354,7 @@ Handling Information @@ -2346,6 +2354,7 @@ Handling Information
2346 // this.form.oci.push(this.cne_oci); 2354 // this.form.oci.push(this.cne_oci);
2347 this.cne_contact.contact_number=row.conPhone; 2355 this.cne_contact.contact_number=row.conPhone;
2348 // this.form.cne.cne_contacts.push(this.cne_contact); 2356 // this.form.cne.cne_contacts.push(this.cne_contact);
  2357 + this.$refs.consignee.consignee_data();
2349 this.dialogVisible1 = false; 2358 this.dialogVisible1 = false;
2350 } 2359 }
2351 else if(this.activeName=='second'){ 2360 else if(this.activeName=='second'){
@@ -2358,9 +2367,11 @@ Handling Information @@ -2358,9 +2367,11 @@ Handling Information
2358 this.cne_aeo.oci_supplementary=row.conAeo; 2367 this.cne_aeo.oci_supplementary=row.conAeo;
2359 this.cne_aeo.oci_country_code=row.country; 2368 this.cne_aeo.oci_country_code=row.country;
2360 // this.addForm.oci.push(this.cne_aeo); 2369 // this.addForm.oci.push(this.cne_aeo);
  2370 + this.$refs.consignee.consignee_data();
2361 this.dialogVisible1 = false; 2371 this.dialogVisible1 = false;
2362 } 2372 }
2363 else{ 2373 else{
  2374 + this.$refs.consignee.consignee_data();
2364 this.dialogVisible1 = false; 2375 this.dialogVisible1 = false;
2365 } 2376 }
2366 }, 2377 },