apply-clients 3.4.55 → 3.4.56

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.
@@ -8,8 +8,8 @@ var compiler = webpack(config)
8
8
  // var proxy = httpProxy.createProxyServer()
9
9
  // var ldap = 'http://121.36.79.201:8400'
10
10
  // var applyinstall = 'http://121.36.79.201:8400'
11
- var ldap = 'http://117.33.181.102:8400/#'
12
- var applyinstall = 'http://117.33.181.102:8400/#'
11
+ var ldap = 'http://219.138.226.181:8401/'
12
+ var applyinstall = 'http://219.138.226.181:8401/'
13
13
 
14
14
  var proxyTable = {
15
15
  '/rs/logic/getSaleInitData': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.4.55",
3
+ "version": "3.4.56",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -171,7 +171,8 @@
171
171
  <h4 class="modal-title">打印预览</h4>
172
172
  </header>
173
173
  <article slot="modal-body" class="modal-body">
174
- <print-build-order :selectdata="selectdata" :type="type" v-ref:print></print-build-order>
174
+ <print-build-order v-if="selectdata.f_apply_type!='团购报建'" :selectdata="selectdata" :type="type" v-ref:print></print-build-order>
175
+ <print-build-ordertg v-if="selectdata.f_apply_type =='团购报建'" :selectdata="selectdata" :type="type" v-ref:printtg></print-build-ordertg>
175
176
  </article>
176
177
  <footer slot="modal-footer" class="modal-footer">
177
178
  <button type="button" class="btn btn-primary" @click="print()">打印</button>
@@ -268,7 +269,11 @@ export default {
268
269
  return total <= 0? "0%" : Math.round((num / total) * 10000) / 100.0 + "%";
269
270
  },
270
271
  print () {
271
- this.$refs.print.print()
272
+ if(this.selectdata.f_apply_type!='团购报建'){
273
+ this.$refs.print.print()
274
+ }else{
275
+ this.$refs.printtg.print()
276
+ }
272
277
  },
273
278
  colseModal () {
274
279
  this.showPrint = false
@@ -29,30 +29,6 @@
29
29
  }
30
30
  </style>
31
31
 
32
- <div id="printBuildOrderTg" v-if="selectdata.f_apply_type=='团购报建'">
33
- <modal style="width: 100%">
34
- <header slot="modal-header" class="modal-header">
35
- <h2><span style="letter-spacing: 15px">施工安装通知单</span></h2>
36
- </header>
37
- <article slot="modal-body" class="modal-body"style="width: 100%">
38
- <div >
39
- <div id="print">
40
- <br />
41
- {{{ model.data }}}
42
- </div>
43
- </div>
44
- </article>
45
-
46
- <footer slot="modal-footer" class="modal-footer">
47
- <print-element v-ref:print v-show="false" id='print' styleid='style2'
48
- top='10' left='60' width='100%' height='100%'>
49
- </print-element>
50
- <button type="button" class="btn btn-primary" @click="print()">打印</button>
51
- </footer>
52
-
53
- </modal>
54
- </div>
55
-
56
32
  <div id="printBuildOrder" v-if="this.selectdata.f_apply_type=='散户报建' || this.selectdata.f_apply_type=='工商户报建'">
57
33
  <p style="letter-spacing:15px ;font-size: 15px;margin-left: 35%">施工队施工通知单</p>
58
34
  <p>
@@ -201,15 +177,7 @@ export default {
201
177
  this.day =year + ' 年' + mouth + ' 月' + dateday +' 日'
202
178
  },
203
179
  methods: {
204
- async loadName () {
205
- let http = new HttpResetClass()
206
- let response = await http.load('POST', 'rs/report/buildOrderGehua', {data:this.selectdata},{resolveMsg: null, rejectMsg: null})
207
- this.model=response
208
- },
209
180
  print () {
210
- if(this.selectdata.f_apply_type=='团购报建'){
211
- this.loadName()
212
- }
213
181
  this.$refs.print.PrintTable()
214
182
  }
215
183
  },
@@ -0,0 +1,55 @@
1
+ <template>
2
+ <div id="printi">
3
+ {{{ model.data }}}
4
+ </div>
5
+ <print-element v-ref:print v-show="false" id='printi' styleid='style1'
6
+ top='10' left='60' width='100%' height='100%'>
7
+ </print-element>
8
+
9
+ </template>
10
+
11
+ <script>
12
+ import Vue from 'vue'
13
+ import {HttpResetClass} from 'vue-client'
14
+
15
+ export default {
16
+ title: '打印任务单',
17
+ props: {
18
+ selectdata: {
19
+ type: Object
20
+ }
21
+ },
22
+
23
+ data() {
24
+ return {
25
+ showQuery: false,
26
+ model: '',
27
+ showPrint: false,
28
+ }
29
+ },
30
+ methods: {
31
+ // 获取页面配置json文件
32
+ async loadName() {
33
+ let http = new HttpResetClass()
34
+ let response = await http.load('POST', 'rs/report/buildOrderGehua', {data: this.selectdata}, {
35
+ resolveMsg: null,
36
+ rejectMsg: null
37
+ })
38
+ this.model = response
39
+ console.log('-------------', this.model)
40
+ },
41
+ print() {
42
+ this.loadName()
43
+ this.$refs.print.PrintTable()
44
+ }
45
+ },
46
+ ready() {
47
+ debugger
48
+ this.loadName()
49
+ },
50
+ }
51
+ </script>
52
+
53
+ <style scoped>
54
+
55
+ </style>
@@ -6,6 +6,7 @@ let specialComp = {
6
6
  'supervisory-service-control': (resolve) => { require(['./pc/SupervisoryServiceControl'], resolve) },
7
7
  'supervisory-control': (resolve) => { require(['./pc/SupervisoryControl'], resolve) },
8
8
  'build-order-list': (resolve) => { require(['./pc/buildOrderList'], resolve) },
9
- 'print-build-order': (resolve) => { require(['./pc/printBuildOrder'], resolve) }
9
+ 'print-build-order': (resolve) => { require(['./pc/printBuildOrder'], resolve) },
10
+ 'print-build-ordertg': (resolve) => { require(['./pc/printBuildOrderTg'], resolve) }
10
11
  }
11
12
  exports.specialComp = specialComp
package/src/main.js CHANGED
@@ -9,7 +9,7 @@ import {material} from 'material-client'
9
9
  import apply from './apply'
10
10
 
11
11
  all()
12
- apply('')
12
+ apply('gehua')
13
13
  ldap()
14
14
  sale()
15
15
  material()