|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <vxe-modal v-model="value" id="supplierModal" :width="width?width+'px':'60%'" @show="show" :height="height?height+'px':'80%'" min-width="500" min-height="400"
|
|
|
+ <vxe-modal v-model="value" id="supplierModal" v-loading="load" :width="width?width+'px':'60%'" @show="show" :height="height?height+'px':'80%'" min-width="500" min-height="400"
|
|
|
show-zoom resize transfer show-footer :zIndex="zIndex">
|
|
|
<template #title>
|
|
|
<span>{{title?title:'选择供应商'}}</span>
|
|
@@ -24,6 +24,7 @@ export default class SupplierModal extends Vue {
|
|
|
data:Array<any>=[]
|
|
|
time:any;
|
|
|
timeNum = 0;
|
|
|
+ load=false;
|
|
|
|
|
|
@Prop()
|
|
|
title?:string
|
|
@@ -157,11 +158,13 @@ export default class SupplierModal extends Vue {
|
|
|
let query:any = (this.$refs.view as any).getQuery();
|
|
|
query.isLikeSearch = '1';
|
|
|
this.$emit('supplierRequestAfter',query);
|
|
|
+ this.load = true;
|
|
|
(this as any).$request({
|
|
|
url: '/maindata/maindataMaterialSupplier/page',
|
|
|
method: 'get',
|
|
|
params:query
|
|
|
}).then((res:any) => {
|
|
|
+ this.load = false;
|
|
|
if(res.data.records){
|
|
|
(this.$refs.view as any).setTableValue(res.data.records);
|
|
|
this.data = res.data.records;
|
|
@@ -172,6 +175,8 @@ export default class SupplierModal extends Vue {
|
|
|
};
|
|
|
(this.$refs.view as any).setPage(page)
|
|
|
}
|
|
|
+ }).catch(()=>{
|
|
|
+ this.load = false;
|
|
|
})
|
|
|
}
|
|
|
}
|