sale-client 3.5.191 → 3.5.192

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.
@@ -6,16 +6,10 @@ const app = express()
6
6
  const compiler = webpack(config)
7
7
 
8
8
  // 自己改了这里不要提交 来回覆盖挺麻烦的
9
- const [local, server] = ['http://192.168.50.4:8400', 'http://192.168.50.4:8400']
9
+ const [local, server] = ['http://127.0.0.1:8080', 'http://192.168.50.4:8400']
10
10
  const port = 8089
11
11
 
12
12
  const proxyTable = {
13
- '/rs/report/hand_bill': {
14
- target: 'http://127.0.0.1:8084'
15
- },
16
- '/rs/sql/open_eticket_JBquery': {
17
- target: local
18
- },
19
13
  '/text': {
20
14
  target: local
21
15
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.5.191",
3
+ "version": "3.5.192",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -681,7 +681,7 @@ let loadParamGem = async function (self) {
681
681
  this.search()
682
682
  })
683
683
  },
684
- 'onFileUpload': function (file, res) {
684
+ 'onFileUpload': async function (file, res) {
685
685
  if (this.batchmoneyShow) {
686
686
  let param = {
687
687
  filepath: res.f_downloadpath,
@@ -700,7 +700,9 @@ let loadParamGem = async function (self) {
700
700
  }
701
701
 
702
702
  if (this.batchMeterShow) {
703
- this.iswork = true
703
+ // this.iswork = true
704
+ this.$showMessage(`本次预备户批量建档任务已在后台执行请勿重复导入,具体进度稍后可在我的任务中查看!!`)
705
+ this.batchMeterShow = false
704
706
  // 当前上传的是批量导入的档案
705
707
  let batchParam = {
706
708
  filepath: res.f_downloadpath,
@@ -714,7 +716,7 @@ let loadParamGem = async function (self) {
714
716
  let jobParam = {
715
717
  f_operatorid: this.$login.f.id,
716
718
  total: 0,
717
- operator: this.$login.f.orgs +":"+ this.$login.f.deps +":"+ Vue.$login.f.name,
719
+ operator: this.$login.f.orgs + ":" + this.$login.f.deps + ":" + Vue.$login.f.name,
718
720
  jobType: "预备户批量建档"
719
721
  }
720
722
  let param = {
@@ -723,14 +725,14 @@ let loadParamGem = async function (self) {
723
725
  }
724
726
  let self = this
725
727
  try {
726
- axios.post('rs/business/batchRunExcelProgress/filemanage_fileSave_gehua/newPrepareSettleFileImport',
727
- {data: param}, {timeout: 10 * 60 * 1000}).then((res) => {
728
- if (res.data) {
729
- self.$showMessage(`本次批量建档共上传${res.data.totalCount}条数据,符合条件的共${res.data.totalsum}条,不符合条件的共${res.data.totalCount -res.data.totalsum}条, 建档成功${res.data.successsum}条,建档失败${res.data.errorsum}条,具体失败数据请在稽查查询错误查询中查看!!`)
730
- self.iswork = false
728
+ await axios.post('rs/business/batchRunExcelProgress/filemanage_fileSave_gehua/newPrepareSettleFileImport',
729
+ {data: param}, {timeout: 10 * 60 * 1000}).then((res) => {
730
+ if (res.data) {
731
+ self.$showMessage(`本次批量建档共上传${res.data.totalCount}条数据,符合条件的共${res.data.totalsum}条,不符合条件的共${res.data.totalCount - res.data.totalsum}条, 建档成功${res.data.successsum}条,建档失败${res.data.errorsum}条,具体失败数据请在稽查查询错误查询中查看!!`)
732
+ self.iswork = false
731
733
  // this.$showAlert('导入成功','success',2000)
732
- }
733
- })
734
+ }
735
+ })
734
736
  } catch (error) {
735
737
  if (error.response) {
736
738
  if (error.response.status == 500) {
@@ -746,6 +748,8 @@ let loadParamGem = async function (self) {
746
748
  this.$showAlert(error.message, 'danger', 2000)
747
749
  }
748
750
  this.iswork = false
751
+ }finally {
752
+ this.iswork = false
749
753
  }
750
754
  this.$refs.file.$el.querySelector('input').value = ''
751
755
  this.batchMeterShow = false
package/src/main.js CHANGED
@@ -11,7 +11,7 @@ Vue.config.silent = true
11
11
 
12
12
  all()
13
13
  system(false)
14
- sale()
14
+ sale('wuhai')
15
15
  address()
16
16
  ldap()
17
17
  require('system-clients/src/styles/less/bootstrap.less')