|
@@ -535,24 +535,46 @@ export default {
|
|
if(code == 200) {
|
|
if(code == 200) {
|
|
// puOrderExecuteList puOrderItemList
|
|
// puOrderExecuteList puOrderItemList
|
|
|
|
|
|
- for (const key in data) {
|
|
|
|
- // this.params[key] = data[key];
|
|
|
|
- this.params[key].push(...data[key]);
|
|
|
|
- }
|
|
|
|
|
|
+ let size = 20;
|
|
|
|
+ let num = 1;
|
|
|
|
+ let total = Math.ceil(data['puOrderItemList'].length / size);
|
|
|
|
|
|
- let {setVisible} = this.$refs.batchImport;
|
|
|
|
|
|
+ let resultData = {...data};
|
|
|
|
+
|
|
|
|
+ let intervalPush = setInterval(()=>{
|
|
|
|
|
|
- setVisible(false);
|
|
|
|
|
|
+ if(num > total) clearInterval(intervalPush);
|
|
|
|
+
|
|
|
|
+ for (const key in resultData) {
|
|
|
|
+
|
|
|
|
+ resultData[key].slice(size*(num-1), (size*num) ).forEach(item =>{
|
|
|
|
+
|
|
|
|
+ this.params[key].push(item);
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
- this.handleGetPrice();
|
|
|
|
|
|
+ num++;
|
|
|
|
+
|
|
|
|
+ },200);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ let {setVisible} = this.$refs.batchImport;
|
|
|
|
+
|
|
|
|
+ setVisible(false);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ if(num > total) this.handleGetPrice();
|
|
}
|
|
}
|
|
|
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
|
|
|
}finally{
|
|
}finally{
|
|
this.$modal.closeLoading();
|
|
this.$modal.closeLoading();
|
|
|
|
+
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
async handleTemDownload(){
|
|
async handleTemDownload(){
|