sale-client 3.6.91 → 3.6.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -713,37 +713,36 @@ export default {
|
|
|
713
713
|
f_depname: this.$login.f.deps
|
|
714
714
|
}
|
|
715
715
|
let self = this
|
|
716
|
-
this.$resetpost('rs/logic/newPrepareSettleFileImport',param, {rejectMsg:'上传失败'},10 * 60 * 1000).then(res => {
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
}
|
|
721
|
-
})
|
|
722
|
-
// try {
|
|
723
|
-
// axios.post('rs/logic/newPrepareSettleFileImport',
|
|
724
|
-
// {data: param}, {timeout: 10 * 60 * 1000}).then((res) => {
|
|
725
|
-
// if (res.data) {
|
|
726
|
-
// self.$showMessage(`本次上传共上传${res.data.totalsum}条数据, 成功${res.data.successnum}条,失败${res.data.errorsum}条,具体失败数据请在稽查查询错误查询中查看!!`)
|
|
727
|
-
// self.iswork = false
|
|
728
|
-
// // this.$showAlert('导入成功','success',2000)
|
|
729
|
-
// }
|
|
730
|
-
// })
|
|
731
|
-
// } catch (error) {
|
|
732
|
-
// if (error.response) {
|
|
733
|
-
// if (error.response.status == 500) {
|
|
734
|
-
// this.$showAlert('服务繁忙,请重试!!!', 'danger', 3000)
|
|
735
|
-
// } else if (error.response.status == 404) {
|
|
736
|
-
// this.$showAlert('服务运行中,请耐心等待后进行重试!!', 'danger', 3000)
|
|
737
|
-
// } else {
|
|
738
|
-
// this.$showAlert(error.response.data, 'danger', 2000)
|
|
739
|
-
// }
|
|
740
|
-
// } else if (error.request) {
|
|
741
|
-
// this.$showAlert(error.request, 'danger', 2000)
|
|
742
|
-
// } else {
|
|
743
|
-
// this.$showAlert(error.message, 'danger', 2000)
|
|
716
|
+
// this.$resetpost('rs/logic/newPrepareSettleFileImport',param, {rejectMsg:'上传失败'},10 * 60 * 1000).then(res => {
|
|
717
|
+
// if (res.data) {
|
|
718
|
+
// self.$showMessage(`本次上传共上传${res.data.totalsum}条数据, 成功${res.data.successnum}条,失败${res.data.errorsum}条,具体失败数据请在稽查查询错误查询中查看!!`)
|
|
719
|
+
// self.iswork = false
|
|
744
720
|
// }
|
|
745
|
-
//
|
|
746
|
-
|
|
721
|
+
// })
|
|
722
|
+
try {
|
|
723
|
+
axios.post('rs/logic/newPrepareSettleFileImport',
|
|
724
|
+
{data: param}, {timeout: 10 * 60 * 1000}).then((res) => {
|
|
725
|
+
if (res.data) {
|
|
726
|
+
self.$showMessage(`本次上传共上传${res.data.totalsum}条数据, 成功${res.data.successnum}条,失败${res.data.errorsum}条,具体失败数据请在稽查查询错误查询中查看!!`)
|
|
727
|
+
self.iswork = false
|
|
728
|
+
}
|
|
729
|
+
})
|
|
730
|
+
} catch (error) {
|
|
731
|
+
if (error.response) {
|
|
732
|
+
if (error.response.status == 500) {
|
|
733
|
+
this.$showAlert('服务繁忙,请重试!!!', 'danger', 3000)
|
|
734
|
+
} else if (error.response.status == 404) {
|
|
735
|
+
this.$showAlert('服务运行中,请耐心等待后进行重试!!', 'danger', 3000)
|
|
736
|
+
} else {
|
|
737
|
+
this.$showAlert(error.response.data, 'danger', 2000)
|
|
738
|
+
}
|
|
739
|
+
} else if (error.request) {
|
|
740
|
+
this.$showAlert(error.request, 'danger', 2000)
|
|
741
|
+
} else {
|
|
742
|
+
this.$showAlert(error.message, 'danger', 2000)
|
|
743
|
+
}
|
|
744
|
+
this.iswork = false
|
|
745
|
+
}
|
|
747
746
|
this.$refs.file.$el.querySelector('input').value = ''
|
|
748
747
|
this.batchMeterShow = false
|
|
749
748
|
this.search()
|