作者 小范

收发货人弹框清空搜索条件

@@ -252,6 +252,9 @@ @@ -252,6 +252,9 @@
252 }); 252 });
253 253
254 }, 254 },
  255 + consignee_data(){
  256 + (this.filters.companyName = '')
  257 + },
255 //删除 258 //删除
256 handleDel: function (index, row) { 259 handleDel: function (index, row) {
257 this.$confirm('确认删除该记录吗?', '提示', { 260 this.$confirm('确认删除该记录吗?', '提示', {
@@ -220,7 +220,6 @@ @@ -220,7 +220,6 @@
220 }, 220 },
221 mounted() { 221 mounted() {
222 this.getConsignee(); 222 this.getConsignee();
223 -  
224 }, 223 },
225 methods: { 224 methods: {
226 225
@@ -248,6 +247,9 @@ @@ -248,6 +247,9 @@
248 } 247 }
249 }); 248 });
250 }, 249 },
  250 + consigner_data(){
  251 + (this.filters.companyName = '')
  252 + },
251 //删除 253 //删除
252 handleDel: function (index, row) { 254 handleDel: function (index, row) {
253 this.$confirm('确认删除该记录吗?', '提示', { 255 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 },