apply-clients 5.0.35-2 → 5.0.35-20

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.
Files changed (56) hide show
  1. package/.eslintrc.js +16 -16
  2. package/package.json +2 -2
  3. package/src/android.js +18 -18
  4. package/src/apply.js +2 -0
  5. package/src/assets//347/224/250/346/210/267/345/234/260/345/235/200.png +0 -0
  6. package/src/assets//347/224/250/346/210/267/345/247/223/345/220/215.png +0 -0
  7. package/src/assets//347/224/250/346/210/267/347/224/265/350/257/235.png +0 -0
  8. package/src/components/app_apply/ApplyDownList.vue +9 -5
  9. package/src/components/app_apply/ApplyInfo.vue +56 -56
  10. package/src/components/app_apply/ApplyListUpload.vue +1 -1
  11. package/src/components/app_apply/ApplyToDoList.vue +2690 -51
  12. package/src/components/app_apply/PlaceControler.vue +217 -186
  13. package/src/components/app_apply/ServiceControl.vue +18 -5
  14. package/src/components/app_apply/ServiceView.vue +2 -2
  15. package/src/components/app_apply/ezhou/ServiceView.vue +336 -195
  16. package/src/components/product/Function/functions/InstallFee.vue +500 -339
  17. package/src/components/product/Process/ExplorationSelect.vue +2 -2
  18. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
  19. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +25 -27
  20. package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
  21. package/src/components/product/ServiceView.vue +1 -1
  22. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +6 -5
  23. package/src/components/product/Supervisory/SupervisoryList.vue +1 -1
  24. package/src/ezhouAndroid.js +44 -45
  25. package/src/main.js +32 -32
  26. package/src/plugins/commonService.js +11 -7
  27. package/static/newStyle/clear.png +0 -0
  28. package/static/newStyle/fife.png +0 -0
  29. package/static/newStyle/hidden.png +0 -0
  30. package/static/newStyle/label-clear.png +0 -0
  31. package/static/newStyle/left-img.png +0 -0
  32. package/static/newStyle/list_ok.png +0 -0
  33. package/static/newStyle/login-check.png +0 -0
  34. package/static/newStyle/login-con.png +0 -0
  35. package/static/newStyle/login-do.gif +0 -0
  36. package/static/newStyle/login-f.png +0 -0
  37. package/static/newStyle/login-info.png +0 -0
  38. package/static/newStyle/login-left.png +0 -0
  39. package/static/newStyle/login-org.png +0 -0
  40. package/static/newStyle/login-pwd.png +0 -0
  41. package/static/newStyle/login-user.png +0 -0
  42. package/static/newStyle/loginbg.gif +0 -0
  43. package/static/newStyle/loginbg1280.gif +0 -0
  44. package/static/newStyle/loginbg1366.gif +0 -0
  45. package/static/newStyle/loginbg_1.gif +0 -0
  46. package/static/newStyle/searchin.png +0 -0
  47. package/static/newStyle/searchout.png +0 -0
  48. package/static/newStyle/setting.png +0 -0
  49. package/static/newStyle/setting1.png +0 -0
  50. package/static/newStyle/shirk.png +0 -0
  51. package/static/newStyle/stretch_bottom.png +0 -0
  52. package/static/newStyle/stretch_left.png +0 -0
  53. package/static/newStyle/stretch_right.png +0 -0
  54. package/static/newStyle/stretch_top.png +0 -0
  55. package/static/newStyle/system-off.png +0 -0
  56. package/static/newStyle//350/261/252/344/275/263/347/207/203/346/260/224.png +0 -0
@@ -94,7 +94,7 @@
94
94
  <label class="col-sm-4 control-label">报建类型</label>
95
95
  <div class="col-sm-8">
96
96
  <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'报装申请',value:'报装申请'},{label:'集体报建',value:'集体报建'}]"
97
- condition="f_apply_type = '{}'" placeholder='报建类型'
97
+ condition="f_apply_type = '{}'" placeholder='报建类型' :search="true"
98
98
  v-model="model.f_apply_type" :value.sync="model.f_apply_type" close-on-select>
99
99
  </v-select>
100
100
  </div>
@@ -112,7 +112,7 @@
112
112
  <div class="col-sm-2" style="float: left">
113
113
  <label class="col-sm-4 control-label">报装来源</label>
114
114
  <div class="col-sm-8">
115
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'微信',value:'微信'}]"
115
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'微信',value:'微信'},{label:'住建局',value:'住建局'}]"
116
116
  condition="f_apply_source = '{}'" placeholder='报装来源'
117
117
  v-model="model.f_apply_source" :value.sync="model.f_apply_source" close-on-select>
118
118
  </v-select>
@@ -598,21 +598,18 @@
598
598
  if (!this.selectdata)
599
599
  return
600
600
  let data = {
601
- tablename: 't_userinfo',
601
+ tablename: 't_userinfo u left join t_user_address ua on u.f_userinfo_id=ua.f_userinfo_id',
602
602
  condition: 'f_process_id=' + '\'' + this.selectdata.f_process_id + '\''
603
603
  }
604
604
  let self = this
605
605
  let http = new HttpResetClass()
606
- let res = await http.load('POST', 'rs/sql/singleTable', {data: data}, {
606
+ let res = await http.load('POST', 'rs/sql/singleTableUserInfo', {data: data}, {
607
607
  resolveMsg: null,
608
608
  rejectMsg: '获取户档案信息失败'
609
609
  })
610
610
  self.model.rows = []
611
-
612
611
  self.model.rows = res.data
613
612
  self.params = res.data
614
-
615
-
616
613
  },
617
614
  impexcel() {
618
615
  this.importtype='1'
@@ -196,57 +196,57 @@
196
196
  filialeNameStr: null,
197
197
  filialeCodeStr: this.$login.f.f_orgids,
198
198
  userid: this.$login.f.id,
199
- source:`tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
199
+ source: `tool.getFullTree(this.getRights().where(row.getType() != $zone$).where(row.getType() != $role$))`,
200
200
  // f_operate_start_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
201
201
  // f_operate_end_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
202
- model: new PagedList('rs/sql/getApplyCharge', 30, { orderitem: '`id`'}),
203
- modeluse: new PagedList('rs/sql/getApplyCharge', 999999, { orderitem: '`id`'}),
204
- price: new PagedList('rs/sql/getChargeAll', 999999, { orderitem: '`f_charge_money`'}),
205
- human:[],
206
- filiale:[],
207
- method:[],
208
- correct:[
202
+ model: new PagedList('rs/sql/getApplyCharge', 30, {orderitem: '`id`'}),
203
+ modeluse: new PagedList('rs/sql/getApplyCharge', 999999, {orderitem: '`id`'}),
204
+ price: new PagedList('rs/sql/getChargeAll', 999999, {orderitem: '`f_charge_money`'}),
205
+ human: [],
206
+ filiale: [],
207
+ method: [],
208
+ correct: [
209
209
  {label: '是', value: '是'},
210
- {label:'否', value: '否'}
210
+ {label: '否', value: '否'}
211
211
  ],
212
- state:[
212
+ state: [
213
213
  {label: '有效', value: '有效'},
214
- {label:'无效', value: '无效'}
214
+ {label: '无效', value: '无效'}
215
215
  ]
216
216
  }
217
217
  },
218
218
  ready () {
219
- this.$refs.cp.$refs.cri.model.f_operate_start_date = Util.toStandardDateString() + ' 00:00:00'
220
- this.$refs.cp.$refs.cri.model.f_operate_end_date = Util.toStandardDateString() + ' 23:59:59'
219
+ this.$refs.paged.$refs.criteria.model.f_operate_start_date = Util.toStandardDateString() + ' 00:00:00'
220
+ this.$refs.paged.$refs.criteria.model.f_operate_end_date = Util.toStandardDateString() + ' 23:59:59'
221
221
  this.search()
222
222
  this.gethuman()
223
223
  },
224
224
  methods: {
225
- clear(){
226
- this.$refs.cp.$refs.cri.model = {}
225
+ clear () {
226
+ this.$refs.paged.$refs.criteria.model = {}
227
227
  },
228
- getRes(obj) {
228
+ getRes (obj) {
229
229
  this.filialeNameStr = obj.res
230
230
  this.filialeCodeStr = obj.resids
231
231
  console.log(this.filialeNameStr)
232
232
  console.log(this.filialeCodeStr)
233
233
  },
234
- showpager() {
234
+ showpager () {
235
235
  // this.$refs.cp.pager = true
236
236
  this.$dispatch('hiddenbtn')
237
237
  },
238
238
  search () {
239
- let condition = "1=1 and r.f_filiale like '%"+this.$login.f.f_fengongsi+"%'"
239
+ let condition = "1=1 and r.f_filiale like '%" + this.$login.f.f_fengongsi + "%'"
240
240
  this.model.search(condition)
241
241
  this.modeluse.search(condition)
242
242
  this.price.search(condition)
243
243
  },
244
244
 
245
- selfSearch(args) {
245
+ selfSearch (args) {
246
246
  args.condition = args.condition + ` and tbd.f_orgstr like '%${this.filialeCodeStr}%'`
247
247
  this.model.search(args.condition, args.model)
248
248
  },
249
- cleaner() {
249
+ cleaner () {
250
250
  Object.keys(this.$refs.paged.$refs.criteria.model).forEach((key) => {
251
251
  this.$refs.paged.$refs.criteria.model[key] = ''
252
252
  })
@@ -256,14 +256,14 @@
256
256
  this.modeluse.search(this.$refs.paged.$refs.criteria.condition)
257
257
  this.price.search(this.$refs.paged.$refs.criteria.condition)
258
258
  },
259
- gethuman(){
259
+ gethuman () {
260
260
  console.log('获取人员')
261
261
  this.$resetpost('rs/logic/getChargeList', {data: {condition: `1=1`}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
262
262
  // this.params.rows.splice(index, 1)
263
- console.log('获取成功',res)
263
+ console.log('获取成功', res)
264
264
  let house = []
265
- for (let row of res.data.human){
266
- house.push({label: row.f_charge_collectors,value: row.f_charge_collectors})
265
+ for (let row of res.data.human) {
266
+ house.push({label: row.f_charge_collectors, value: row.f_charge_collectors})
267
267
  }
268
268
  this.human = house
269
269
  let house2 = []
@@ -277,9 +277,7 @@
277
277
  }
278
278
  this.method = house3
279
279
  })
280
-
281
- },
282
-
280
+ }
283
281
  },
284
282
  computed: {
285
283
 
@@ -0,0 +1,85 @@
1
+ <template>
2
+ <div class="auto form-horizontal" >
3
+ <modal :show.sync="show" v-ref:modal large backdrop="false">
4
+ <header slot="modal-header" class="modal-header">
5
+ <h3 style="color:black" class="modal-title">发票号</h3>
6
+ </header>
7
+ <article slot="modal-body" class="modal-body">
8
+
9
+ <validator name='v'>
10
+ <form class="form-horizontal select-overspread">
11
+ <div class="row" style="display: flex;justify-content: center;" id='normal-bill' >
12
+ <div class="form-group col-sm-6">
13
+ <label class=" col-sm-2 control-label">发票代码:</label>
14
+ <input type="text" class="form-control" v-model="model.f_bill_code" style="width:60%"
15
+ placeholder="发票代码" disabled
16
+ >
17
+ </div>
18
+ <div class="form-group col-sm-6">
19
+ <label class=" col-sm-2 control-label">发票号码:</label>
20
+ <input type="text" class="form-control" v-model="model.f_bill_number" style="width:60%"
21
+ placeholder="发票号码" disabled
22
+ >
23
+ </div>
24
+ </div>
25
+ </form>
26
+ </validator>
27
+ </article>
28
+ <footer slot="modal-footer" class="modal-footer">
29
+ <button type="button" class="btn btn-default" @click='cancel()' >取消</button>
30
+ </footer>
31
+ </modal>
32
+ </div>
33
+ </template>
34
+ <script>
35
+ import { DataModel } from 'vue-client'
36
+ let getBillData = async function(self) {
37
+ if(self.data.eticketid){
38
+ let res=await self.$resetpost("rs/sql/applysingleTable",{data:{tablename:"t_eticket",condition:` id= ${self.data.eticketid}`}})
39
+ console.log("看看res",res)
40
+ self.model.f_bill_code=res.data[0].f_bill_code
41
+ self.model.f_bill_number=res.data[0].f_bill_number
42
+ }else{
43
+ let res=await self.$resetpost("rs/sql/applysingleTable",{data:{tablename:"t_eticket",condition:` f_sell_id=${self.data.id}`}})
44
+ console.log("看看res",res)
45
+ self.model.f_bill_code=res.data[0].f_bill_code
46
+ self.model.f_bill_number=res.data[0].f_bill_number
47
+ }
48
+ }
49
+
50
+ export default {
51
+ title: '收费发票',
52
+ data () {
53
+ return {
54
+ model:{
55
+ f_bill_code:'',
56
+ f_bill_number:''
57
+ }
58
+ }
59
+ },
60
+ props: ['show', 'data'],
61
+ ready () {
62
+ },
63
+ methods: {
64
+ cancel () {
65
+ this.$dispatch('toggle')
66
+ },
67
+ },
68
+ watch: {
69
+ 'show' (val) {
70
+ if (val) {
71
+ getBillData(this, val).then(() => {
72
+ this.$emit('ready')
73
+ }).catch((error) => {
74
+ this.$emit('error', error)
75
+ })
76
+ }
77
+ }
78
+ },
79
+ events: {
80
+ }
81
+ }
82
+
83
+ </script>
84
+ <style >
85
+ </style>
@@ -13,7 +13,7 @@
13
13
  <div class="col-sm-12 form-group">
14
14
  <div v-for="(index,item) in data.fields">
15
15
  <!--input-->
16
- <div :style="item.style? item.style+';height: 34px;':'height: 34px;'"
16
+ <div :style="item.style+';height: 34px;'"
17
17
  v-if="item.type==='input' || item.type==='number'||item.type === 'tel'||item.type === 'email'"
18
18
  v-show="!item.hidden"
19
19
  :class="[data.fields[index].required&&!(data.fields[index].value) ? 'has-error' : '',data.fields[index].bootstraped?data.fields[index].bootstraped+' form-group':'col-sm-4 form-group']">
@@ -133,11 +133,7 @@
133
133
  }
134
134
  ]
135
135
  }
136
- // 完成时间和完成人,部门,分公司
137
- this.data.filiale = this.selectdata.f_filiale
138
- this.data.f_parentname = this.selectdata.f_parentname
139
- this.data.operate_date = this.selectdata.finishtime
140
- this.data.operator = this.selectdata.sender
136
+
141
137
  }
142
138
  },
143
139
  events:{
@@ -393,6 +389,11 @@
393
389
  if (sum == 1) {
394
390
  this.data = jsonData
395
391
  this.initializtion()
392
+ // 完成时间和完成人,部门,分公司
393
+ this.data.filiale = this.selectdata.f_filiale
394
+ this.data.f_parentname = this.selectdata.f_parentname
395
+ this.data.operate_date = this.selectdata.finishtime
396
+ this.data.operator = this.selectdata.sender
396
397
  this.showview = true
397
398
  } else if (sum == 0) {
398
399
  this.$showMessage(`没有在JSON配置文件中找到活动名为:(${this.selectdata.defname})的节点配置`)
@@ -113,7 +113,7 @@
113
113
  <div class="col-sm-2" style="float: left">
114
114
  <label class="col-sm-4 control-label">报装来源</label>
115
115
  <div class="col-sm-8">
116
- <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'微信',value:'微信'}]"
116
+ <v-select style="min-width: 100%;" @change="$dispatch('setQueryCondition',model)" :options="[{label:'全部',value:''},{label:'燃气系统',value:'燃气系统'},{label:'微信',value:'微信'},{label:'住建局',value:'住建局'}]"
117
117
  condition="f_apply_source = '{}'" placeholder='报装来源'
118
118
  v-model="model.f_apply_source" :value.sync="model.f_apply_source" close-on-select>
119
119
  </v-select>
@@ -1,45 +1,44 @@
1
- import Vue from 'vue'
2
- import { all } from 'vue-client'
3
- Vue.config.silent = true
4
- import ApplyGetSaleParam from './stores/ApplyGetSaleParams'
5
- import ApplyLoadParams from './stores/ApplyLoadParams'
6
- /** ****************服务插件*********************/
7
-
8
- export default function () {
9
- Vue.use(ApplyGetSaleParam)
10
- Vue.use(ApplyLoadParams)
11
- /** ***************************报建模块*********************************/
12
- // 报建 总入口
13
- Vue.component('apply_app', (resolve) => { require(['./components/app_apply/ApplyApp'], resolve) })
14
- //报建 待办流程页
15
- Vue.component('placecontrolerapp', (resolve) => { require(['./components/app_apply/PlaceControler'], resolve) })
16
- //报建 已办事项
17
- Vue.component('applydownlist', (resolve) => { require(['./components/app_apply/ApplyDownList'], resolve) })
18
- //报建 上传
19
- Vue.component('applylistupload', (resolve) => { require(['./components/app_apply/ApplyListUpload'], resolve) })
20
- //报建 待办事项
21
- Vue.component('applytodolist', (resolve) => { require(['./components/app_apply/ApplyToDoList'], resolve) })
22
- //报建 用户信息
23
- Vue.component('apply-user-info', (resolve) => { require(['./components/app_apply/ApplyUserInfo'], resolve) })
24
- //报建 报建流程信息
25
- Vue.component('apply-info', (resolve) => { require(['./components/app_apply/ApplyInfo'], resolve) })
26
- //报建 现场勘探
27
- Vue.component('fieldexploration', (resolve) => { require(['./components/app_apply/FieldExploration'], resolve) })
28
- //报建 竣工验收
29
- Vue.component('acceptance', (resolve) => { require(['./components/app_apply/Acceptance'], resolve) })
30
- //报建 通气点火
31
- Vue.component('ventilation', (resolve) => { require(['./components/app_apply/Ventilation'], resolve) })
32
-
33
- Vue.component('back-page', (resolve) => { require(['./components/app_apply/ToolsPage.vue'], resolve) })
34
-
35
- // 业务tab(control层)页
36
- Vue.component('service-control-app', (resolve) => { require(['./components/app_apply/ServiceControl'], resolve) })
37
- // 公共业务显示(view层)页
38
- Vue.component('service-view-app', (resolve) => { require(['./components/app_apply/ezhou/ServiceView'], resolve) })
39
- Vue.component('minyong', (resolve) => { require(['./components/app_apply/ezhou/MinYong'], resolve) })
40
- Vue.component('feiminyongv', (resolve) => { require(['./components/app_apply/ezhou/FeiMinYongV'], resolve) })
41
- Vue.component('feiminyongvv', (resolve) => { require(['./components/app_apply/ezhou/FeiMinYongVV'], resolve) })
42
- // Vue.component('hetong-minyong', (resolve) => { require(['./components/app_apply/ezhou/HeTongMinYong'], resolve) })
43
- // Vue.component('hetong-feiminyongv', (resolve) => { require(['./components/app_apply/ezhou/HeTongFeiMinYongV'], resolve) })
44
-
45
- }
1
+ import Vue from 'vue'
2
+ import { all } from 'vue-client'
3
+ Vue.config.silent = true
4
+ import ApplyGetSaleParam from './stores/ApplyGetSaleParams'
5
+ import ApplyLoadParams from './stores/ApplyLoadParams'
6
+ /** ****************服务插件*********************/
7
+
8
+ export default function () {
9
+ Vue.use(ApplyGetSaleParam)
10
+ Vue.use(ApplyLoadParams)
11
+ /** ***************************报建模块*********************************/
12
+ // 报建 总入口
13
+ Vue.component('apply_app', (resolve) => { require(['./components/app_apply/ApplyApp'], resolve) })
14
+ // 报建 待办流程页
15
+ Vue.component('placecontrolerapp', (resolve) => { require(['./components/app_apply/PlaceControler'], resolve) })
16
+ // 报建 已办事项
17
+ Vue.component('applydownlist', (resolve) => { require(['./components/app_apply/ApplyDownList'], resolve) })
18
+ // 报建 上传
19
+ Vue.component('applylistupload', (resolve) => { require(['./components/app_apply/ApplyListUpload'], resolve) })
20
+ // 报建 待办事项
21
+ Vue.component('applytodolist', (resolve) => { require(['./components/app_apply/ApplyToDoList'], resolve) })
22
+ // 报建 用户信息
23
+ Vue.component('apply-user-info', (resolve) => { require(['./components/app_apply/ApplyUserInfo'], resolve) })
24
+ // 报建 报建流程信息
25
+ Vue.component('apply-info', (resolve) => { require(['./components/app_apply/ApplyInfo'], resolve) })
26
+ // 报建 现场勘探
27
+ Vue.component('fieldexploration', (resolve) => { require(['./components/app_apply/FieldExploration'], resolve) })
28
+ // 报建 竣工验收
29
+ Vue.component('acceptance', (resolve) => { require(['./components/app_apply/Acceptance'], resolve) })
30
+ // 报建 通气点火
31
+ Vue.component('ventilation', (resolve) => { require(['./components/app_apply/Ventilation'], resolve) })
32
+
33
+ Vue.component('back-page', (resolve) => { require(['./components/app_apply/ToolsPage.vue'], resolve) })
34
+
35
+ // 业务tab(control层)页
36
+ Vue.component('service-control-app', (resolve) => { require(['./components/app_apply/ServiceControl'], resolve) })
37
+ // 公共业务显示(view层)页
38
+ Vue.component('service-view-app', (resolve) => { require(['./components/app_apply/ezhou/ServiceView'], resolve) })
39
+ Vue.component('minyong', (resolve) => { require(['./components/app_apply/ezhou/MinYong'], resolve) })
40
+ Vue.component('feiminyongv', (resolve) => { require(['./components/app_apply/ezhou/FeiMinYongV'], resolve) })
41
+ Vue.component('feiminyongvv', (resolve) => { require(['./components/app_apply/ezhou/FeiMinYongVV'], resolve) })
42
+ // Vue.component('hetong-minyong', (resolve) => { require(['./components/app_apply/ezhou/HeTongMinYong'], resolve) })
43
+ // Vue.component('hetong-feiminyongv', (resolve) => { require(['./components/app_apply/ezhou/HeTongFeiMinYongV'], resolve) })
44
+ }
package/src/main.js CHANGED
@@ -1,32 +1,32 @@
1
- import Vue from 'vue'
2
- import App from './App'
3
- import { all } from 'vue-client'
4
- import {ldap} from 'ldap-clients'
5
- import {system} from 'system-clients'
6
- import {sale} from 'sale-client'
7
- import {material} from 'material-client'
8
-
9
- import apply from './apply'
10
- import applyAndroid from './applyAndroid'
11
- import 'lib-flexible/flexible.js'
12
- /*import vueBubble from 'vue-bubble'
13
- Vue.use(vueBubble)*/
14
- // import AndroidPlugin from './AndroidPlugin.js'
15
- import {systemphonegrid} from 'system-phone'
16
- // var Verificationfalg = false
17
- // system(Verificationfalg)
18
- all()
19
- system(false)
20
- apply()
21
- ldap()
22
- sale()
23
- material()
24
-
25
- applyAndroid()
26
- // Vue.use(AndroidPlugin)
27
- require('./bootstrap/less/bootstrap.less')
28
-
29
- new Vue({
30
- el: 'body',
31
- components: { App }
32
- })
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import { all } from 'vue-client'
4
+ import {ldap} from 'ldap-clients'
5
+ import {system} from 'system-clients'
6
+ import {sale} from 'sale-client'
7
+ import {material} from 'material-client'
8
+
9
+ import apply from './apply'
10
+ import applyAndroid from './ezhouAndroid'
11
+ import 'lib-flexible/flexible.js'
12
+ /*import vueBubble from 'vue-bubble'
13
+ Vue.use(vueBubble)*/
14
+ // import AndroidPlugin from './AndroidPlugin.js'
15
+ import {systemphonegrid} from 'system-phone'
16
+ // var Verificationfalg = false
17
+ // system(Verificationfalg)
18
+ all()
19
+ system(false)
20
+ apply()
21
+ ldap()
22
+ sale()
23
+ material()
24
+
25
+ applyAndroid()
26
+ // Vue.use(AndroidPlugin)
27
+ require('./bootstrap/less/bootstrap.less')
28
+
29
+ new Vue({
30
+ el: 'body',
31
+ components: { App }
32
+ })
@@ -1,12 +1,15 @@
1
1
  import Vue from 'vue'
2
2
 
3
- let openEticketGen = async function (id, type, conf) {
3
+ let openEticketGen = async function (param, type, conf) {
4
4
  // 组织数据
5
- let getEticket = await Vue.resetpost('rs/logic/combineData', {id: id, charge_type: type, eticket: conf}, {resolveMsg: null, rejectMsg: '获取电子票数据出错'})
5
+ let getEticket = await Vue.resetpost('rs/logic/bjcombineData', {param: param, charge_type: type, eticket: conf}, {resolveMsg: null, rejectMsg: '获取电子票数据出错'})
6
6
  console.log('获取的电子票数据', getEticket)
7
- // 请求电子票
8
- await Vue.resetpost('rs/logic/openEticket', {id: getEticket.data, eticket: conf}, {resolveMsg: '开票成功', rejectMsg: '开具电子票出错, 请到票据管理重新开具'})
9
- }
7
+ try{
8
+ let url= await Vue.resetpost('rs/logic/bjopenEticket', {sell_id: param.id,eticket_id:getEticket.data.eticket_id,conf:conf},{resolveMsg: null, rejectMsg: null})
9
+ return url
10
+ }catch (e) {
11
+ Vue.showAlert(`电子发票开票失败,请在发票管理处重新开具`,'warning',3000)
12
+ }}
10
13
 
11
14
  let correctEticketGen = async function (id, type, conf) {
12
15
  let param = {
@@ -110,13 +113,14 @@ let commonService = {
110
113
  await Vue.resetpost('rs/logic/sale_reissueBill', {data: param}, {resolveMsg: null, rejectMsg: '更新发票号失败,请从右侧操作卡片进行补打!!'})
111
114
  },
112
115
 
113
- async openEticket (sellId, chargeType) {
116
+ async openEticket (param, chargeType) {
114
117
  // 获取各分公司下的电子票配置文件
115
118
  // 从vues目录下获取电子票配置
116
119
  try {
117
120
  let conf = await commonService.getSelfConfig()
118
121
  console.log('看看配置文件', conf)
119
- await openEticketGen(sellId, chargeType, conf)
122
+ let tecket =await openEticketGen(param, chargeType, conf)
123
+ return tecket
120
124
  } catch (error) {
121
125
  console.log('电子发票开票失败', JSON.stringify(error))
122
126
  Vue.showAlert(`电子发票开票失败!!请到发票管理重新开票。错误原因: ${JSON.stringify(error)}。`, 'danger', 0)
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file