apply-clients 3.3.218 → 3.3.223

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.3.218",
3
+ "version": "3.3.223",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -93,7 +93,7 @@
93
93
  "style": "0.0.3",
94
94
  "style-loader": "^0.20.3",
95
95
  "system-clients": "3.1.87",
96
- "system-phone": "1.1.18",
96
+ "system-phone": "1.2.81-1",
97
97
  "url-loader": "^0.5.7",
98
98
  "vue-client": "1.24.25",
99
99
  "vue-hot-reload-api": "^1.2.0",
package/src/apply.js CHANGED
@@ -81,6 +81,7 @@ export default function (filiale) {
81
81
  Vue.component('apply-upload', (resolve) => { require(['./components/product/VueUtils/ApplyUpload'], resolve) })
82
82
  Vue.component('apply-high-meter', (resolve) => { require(['./components/product/VueUtils/GaoPaiYi/HighMeter'], resolve) })
83
83
 
84
+ Vue.component('apply-order', (resolve) => { require(['./components/android/Order/ApplyOrder'], resolve) })
84
85
  if (filiale) {
85
86
  let filialeComp = require(`./filiale/${filiale}/pc`).specialComp
86
87
  for (let key in filialeComp) {
@@ -43,7 +43,8 @@ export default function (filiale) {
43
43
  Vue.component('market_survey', (resolve) => { require(['./components/product/Function/MarketSurvey'], resolve) })
44
44
  // 安装标准告知单
45
45
  Vue.component('inform', (resolve) => { require(['./components/product/Function/Inform'], resolve) })
46
-
46
+ //手机预约报装页面
47
+ Vue.component('apply-order', (resolve) => { require(['./components/android/Order/ApplyOrder'], resolve) })
47
48
  if (filiale) {
48
49
  let filialeComp = require(`./filiale/${filiale}/android`).specialComp
49
50
  for (let key in filialeComp) {
@@ -0,0 +1,141 @@
1
+ <template>
2
+ <div style="background-color: aliceblue">
3
+ <validator name='v'>
4
+ <div partial class="auto" >
5
+ <div style="width:auto;height: 50px; background-color: #0b87e2;margin-top: 40px ">
6
+ <label style="color:white;margin-top:10px ;font-size: 20px;margin-left: 20px;">报装预约</label>
7
+ </div>
8
+ <div class="row form-group app-input" style="margin-top: 10px">
9
+ <img src="../../image/name.png" style="width: 20px;height: 20px; margin-top: 15px; float: left;">
10
+ <label class="font_normal_body">用&ensp;户&ensp;名</label>
11
+ <input type="text" class="input" placeholder='请输入用户名' style="margin-top: 15px;" v-model="selectdata.f_user_name" v-validate:f_user_name = "['required']"/>
12
+ </div>
13
+ <div class="row form-group app-input">
14
+ <img src="../../image/phone.png" style="width: 20px;height: 20px; margin-top: 15px;float: left;">
15
+ <label class="font_normal_body">电&ensp;&ensp;&ensp;&ensp;话</label>
16
+ <input type="number" class="input" style="margin-top: 15px;"placeholder='请输入用户人电话' v-model="selectdata.f_phone" v-validate:f_phone = "['required']" />
17
+ </div>
18
+ <div class="row form-group app-input">
19
+ <img src="../../image/dizhi.png" style="width: 20px;height: 20px; margin-top: 15px;float: left;">
20
+ <label class="font_normal_body">地&ensp;&ensp;&ensp;&ensp;址</label>
21
+ <input type="text" class="input" style="margin-top: 15px;" placeholder='请输入用户人地址' v-model="selectdata.f_address" v-validate:f_address = "['required']" />
22
+ </div>
23
+ <div class="row form-group app-input">
24
+ <img src="../../image/danwei.png" style="width: 20px;height: 20px;margin-top: 15px; float: left;">
25
+ <label class="font_normal_body">预约公司</label>
26
+ <v-select
27
+ v-model="selectdata.f_orgname"
28
+ class="select select_list"
29
+ :options='orgnames'
30
+ :value-single="true"
31
+ :search="false"
32
+ placeholder='请选择要预约的公司'
33
+ style="margin-top: 15px;"
34
+ width="77%"
35
+ close-on-select >
36
+ </v-select>
37
+ </div>
38
+ <!-- <div class="row form-group app-input">-->
39
+ <!-- <label class="font_normal_body">公&ensp;&ensp;&ensp;司</label>-->
40
+ <!--&lt;!&ndash; <input type="text" class="input_search" v-model="selectdata.f_orgname" v-validate:f_orgname = "['required']" />&ndash;&gt;-->
41
+ <!-- </div>-->
42
+ <div class="row form-group app-input">
43
+ <img src="../../image/type.png" style="width: 20px;height: 20px; margin-top: 15px;float: left;">
44
+ <label class="font_normal_body">用气位置</label>
45
+ <input type="text" class="input" style="margin-top: 15px;" placeholder='请输入用气位置' v-model="selectdata.f_usegasposition" v-validate:f_usegasposition = "['required']" />
46
+ </div>
47
+ <div class="row form-group app-input">
48
+ <img src="../../image/我的.png" style="width: 20px;height: 20px;margin-top: 15px; float: left;">
49
+ <label class="font_normal_body">用戶类型</label>
50
+ <input type="text" class="input" style="margin-top: 15px;"placeholder='请输入用户类型' v-model="selectdata.f_user_type" v-validate:f_user_type = "['required']" />
51
+ </div>
52
+ <div class="row form-group app-input">
53
+ <img src="../../image/zizhukaitong.png" style="width: 20px;height: 20px;margin-top: 15px; float: left">
54
+ <label class="font_normal_body">省&ensp;市&ensp;区</label>
55
+ <input type="text" class="input" style="margin-top: 15px;"placeholder='请输入所在省市区' v-model="selectdata.f_pcd" v-validate:f_pcd = "['required']" />
56
+ </div>
57
+ <div class="row form-group app-input">
58
+ <img src="../../image/phone.png" style="width: 20px;height: 20px; margin-top: 15px; float: left;">
59
+ <label class="font_normal_body">备用电话</label>
60
+ <input type="number" class="input" style="margin-top: 15px;" placeholder='请输入备用电话' v-model="selectdata.f_spare_phone" v-validate:f_spare_phone = "['required']" />
61
+ </div>
62
+ <div class="row form-group app-input">
63
+ <img src="../../image/zizhukaitong.png" style="width: 20px;height: 20px; margin-top: 15px; float: left;">
64
+ <label class="font_normal_body">安装情况</label>
65
+ <input type="text" class="input" style="margin-top: 15px;" placeholder='请输入安装情况' v-model="selectdata.f_installation_situation" v-validate:f_installation_situation = "['required']" />
66
+ </div>
67
+
68
+ <div class="row form-group text-right" style="">
69
+ <button class="button_search button_spacing" :disabled='!$v.valid'
70
+ @click="checkOrder()">保存</button>
71
+ <button class="button_clear button_spacing" @click="clear()">清除</button>
72
+ </div>
73
+ </div>
74
+ </validator>
75
+ </div>
76
+ </template>
77
+
78
+ <script>
79
+ import Vue from "vue";
80
+
81
+ export default {
82
+ title: '预约报装',
83
+ name: "ApplyOrder",
84
+ data() {
85
+ return {
86
+ selectdata: null,
87
+ orgnames:null
88
+ // orgnames: [{label: '全部', value: ''}, ...this.$appdata.getParam('预约公司')]
89
+ }
90
+ },
91
+ methods: {
92
+ async GS(){
93
+ let res = await this.$resetpost(
94
+ `rs/sql/ApplyOrder`,
95
+ {"data":{}},
96
+ {resolveMsg: null, rejectMsg: '公司查询失败,请检查内容!!!'}
97
+ )
98
+ this.orgnames=res.data
99
+ },
100
+
101
+
102
+ async checkOrder() {
103
+ let data = {
104
+ selectdata: this.selectdata,
105
+ check: this.check,
106
+ user: this.$login.f
107
+ }
108
+
109
+ let res = await this.$resetpost(
110
+ `rs/logic/ApplyOrder`,
111
+ data,
112
+ {resolveMsg: null, rejectMsg: '申请报装失败,请检查内容!!!'}
113
+ )
114
+ this.clear()
115
+ },
116
+ clear() {
117
+ Object.keys(this.selectdata).forEach((key) => {
118
+ this.selectdata[key] = null
119
+ })
120
+ }
121
+ },
122
+ ready(){
123
+ this.GS()
124
+ }
125
+ }
126
+ </script>
127
+
128
+ <style scoped>
129
+ /*查询输入框*/
130
+ .input {
131
+ padding: 6px;
132
+ width: 77%;
133
+ height: 28px;
134
+ background-color: #ffffff;
135
+ border-radius: 2px;
136
+ border: solid 1px #c7c7c7;
137
+ color: #333333;
138
+ font-size: 12px;
139
+ font-family: PingFang;
140
+ }
141
+ </style>
@@ -157,7 +157,7 @@ export default {
157
157
  }
158
158
  }),
159
159
  criteriaShow: false,
160
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')], // 所有报建类型
160
+ applytype: this.$appdata.getParam('报建类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')]:[{label: '全部', value: ''}], // 所有报建类型
161
161
  // applytype: [{label: '全部', value: ''},{label: '散户报建', value: '散户报建'}], // 所有报建类型
162
162
 
163
163
  defnames: [{label: '全部', value: ''}]
@@ -162,7 +162,7 @@
162
162
  }
163
163
  }),
164
164
  criteriaShow: false,
165
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')], // 所有报建类型
165
+ applytype: this.$appdata.getParam('报建类型')?[{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')]:[{label: '全部', value: ''}], // 所有报建类型
166
166
  // applytype: [{label: '全部', value: ''},{label: '散户报建', value: '散户报建'}], // 所有报建类型
167
167
  defnames: [{label: '全部', value: ''}]
168
168
  }
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -180,7 +180,7 @@
180
180
  >审核</button>
181
181
  <button class="button_search button_spacing width-60"
182
182
  @click="$parent.$parent.$parent.handleOrder('process', row)"
183
- v-if="row.f_orderstate === '待处理' && row.f_ordertype !== '预约点火'"
183
+ v-if="row.f_orderstate === '待处理'"
184
184
  >处理</button>
185
185
  </td>
186
186
  </tr>
@@ -237,7 +237,6 @@
237
237
  events: {
238
238
  },
239
239
  methods: {
240
- // 处理
241
240
  handleOrder (type, row) {
242
241
  this.$dispatch('handleOrder', type, row)
243
242
  },
@@ -218,7 +218,8 @@ export default {
218
218
  computed: {
219
219
  applyType () {
220
220
  return this.$appdata.getParam("报建类型").filter(item => {
221
- return item.label === '工商户报建' || item.label === '散户报建' || item.label ==='开发商集体报建' || item.label ==='预埋管报建'
221
+ debugger
222
+ return item.label === '工商户代建' || item.label === '居民散户代建' || item.label ==='居民社区代建' || item.label ==='预埋管报建'|| item.label ==='外线工程建设'
222
223
  })
223
224
  }
224
225
  },
@@ -266,25 +266,30 @@
266
266
  let data = {
267
267
  f_apply_type: this.applyType
268
268
  }
269
- if (this.applyType === '开发商集体报建') {
269
+ debugger
270
+ if (this.applyType === '居民社区代建') {
270
271
  data.processname = '开发商集体报建流程'
271
272
  data.defname = '用户受理'
272
- } else if (this.applyType === '工商户报建') {
273
+ } else if (this.applyType === '工商户代建') {
273
274
  data.processname = '工商户报建流程'
274
275
  data.defname = '用户受理'
275
- } else if (this.applyType === '散户报建') {
276
+ } else if (this.applyType === '居民散户代建') {
276
277
  data.processname = '散户报建流程'
277
278
  data.defname = '用户受理'
278
279
  } else if (this.applyType === '预埋管报建') {
279
280
  data.processname = '预埋管报建流程'
280
281
  data.defname = '用户受理'
281
- } else {
282
+ }else if (this.applyType === '外线工程建设') {
283
+ data.processname = '外线工程建设流程'
284
+ data.defname = '方案确定'
285
+ }
286
+ else {
282
287
  this.$showMessage('暂无此类报装')
283
288
  return
284
289
  }
285
290
 
286
291
  data.f_sub_state = "新增"
287
- data.f_apply_source = "线下发起"
292
+ data.f_apply_source = "线下报装"
288
293
  data.f_process_id = await this.getProcessId(data.processname)
289
294
 
290
295
  // 调用ExplorationUser事件
@@ -747,7 +747,7 @@
747
747
  }
748
748
  }
749
749
 
750
- if ((this.show_data.f_apply_type==='工商户报建' ||this.show_data.f_apply_type==='开发商集体报建'||this.show_data.f_apply_type==='预埋管报建')&&this.show_data.defname === '用户受理') {
750
+ if ((this.show_data.f_apply_type==='工商户代建' ||this.show_data.f_apply_type==='居民社区代建'||this.show_data.f_apply_type==='预埋管报建')&&this.show_data.defname === '用户受理') {
751
751
  if (
752
752
  this.show_data.fields[index].label === '街道' ||
753
753
  this.show_data.fields[index].label === '区域'
@@ -763,7 +763,7 @@
763
763
 
764
764
  }
765
765
  }
766
- if(this.show_data.f_apply_type==='散户报建'&& this.show_data.f_address_type==='民用地址' && this.show_data.defname === '用户受理'){
766
+ if(this.show_data.f_apply_type==='居民散户代建'&& this.show_data.f_address_type==='民用地址' && this.show_data.defname === '用户受理'){
767
767
  if (
768
768
  this.show_data.fields[index].label === '区域' ||
769
769
  this.show_data.fields[index].label === '街道'||
@@ -787,7 +787,7 @@
787
787
  this.setLabelValue('地址',f_address)
788
788
  }
789
789
  }
790
- if(this.show_data.f_apply_type==='散户报建'&& this.show_data.f_address_type==='特殊地址' && this.show_data.defname === '用户受理'){
790
+ if(this.show_data.f_apply_type==='居民散户代建'&& this.show_data.f_address_type==='特殊地址' && this.show_data.defname === '用户受理'){
791
791
  if (
792
792
  this.show_data.fields[index].label === '区域'
793
793
  ){
@@ -43,21 +43,29 @@
43
43
  },
44
44
  //点击获取节点名
45
45
  getdefname (row) {
46
- // 发起节点都可查看
47
- // if(row.defname === this.$workflow_vue.start_activity){
48
- // row = Object.assign({},this.selectdata,row)
49
- // this.$dispatch('apply', row)
50
- // return
51
- // }
52
- // if(this.check(row.actorexpression)){
53
- // row = Object.assign({},this.selectdata,row)
54
- // this.$dispatch('apply', row)
55
- // return
56
- // }
57
- // this.$showMessage("对不起,您没有查看此节点的权限!")
46
+ //发起节点都可查看
47
+ if(row.defname === this.$workflow_vue.start_activity){
48
+ row = Object.assign({},this.selectdata,row)
49
+ this.$dispatch('apply', row)
50
+ return
51
+ }
52
+ if(this.check(row.actorexpression)){
53
+ row = Object.assign({},this.selectdata,row)
54
+ this.$dispatch('apply', row)
55
+ return
56
+ }
57
+
58
+ if(this.$login.f.orgs==='华东大区' || this.$login.f.orgs==='华中大区'|| this.$login.f.orgs==='华北大区' || this.$login.f.orgs==='东北大区'
59
+ ||this.$login.f.orgs==='鲁北区域'|| this.$login.f.orgs==='广西区域' || this.$login.f.orgs==='苏皖区域'|| this.$login.f.orgs === '奥德装备集团'||
60
+ this.$login.f.orgs==='黑龙江区域'){
61
+ row = Object.assign({},this.selectdata,row)
62
+ this.$dispatch('apply', row)
63
+ return
64
+ }
65
+ this.$showMessage("对不起,您没有查看此节点的权限!")
58
66
 
59
- row = Object.assign({},this.selectdata,row)
60
- this.$dispatch('apply', row)
67
+ // row = Object.assign({},this.selectdata,row)
68
+ // this.$dispatch('apply', row)
61
69
  },
62
70
  // 检测是否有权限
63
71
  check (actorexpression){