apply-clients 3.3.220 → 3.3.222

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.220",
3
+ "version": "3.3.222",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
package/src/apply.js CHANGED
@@ -81,7 +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
+ Vue.component('apply-order', (resolve) => { require(['./components/android/Order/ApplyOrder'], resolve) })
85
85
  if (filiale) {
86
86
  let filialeComp = require(`./filiale/${filiale}/pc`).specialComp
87
87
  for (let key in filialeComp) {
@@ -1,86 +1,141 @@
1
- <template>
2
- <validator name='v'>
3
- <div partial class="auto">
4
- <div class="row form-group app-input" style="margin-top: 20px">
5
- <label class="font_normal_body">用&ensp;户&ensp;名</label>
6
- <input type="text" class="input_search" v-model="selectdata.f_user_name" v-validate:f_user_name = "['required']"/>
7
- </div>
8
- <div class="row form-group app-input">
9
- <label class="font_normal_body">电&ensp;&ensp;&ensp;话</label>
10
- <input type="text" class="input_search" v-model="selectdata.f_phone" v-validate:f_phone = "['required']" />
11
- </div>
12
- <div class="row form-group app-input">
13
- <label class="font_normal_body">地&ensp;&ensp;&ensp;址</label>
14
- <input type="text" class="input_search" v-model="selectdata.f_address" v-validate:f_address = "['required']" />
15
- </div>
16
- <div class="row form-group app-input">
17
- <label class="font_normal_body">公&ensp;&ensp;&ensp;司</label>
18
- <input type="text" class="input_search" v-model="selectdata.f_orgname" v-validate:f_orgname = "['required']" />
19
- </div>
20
- <div class="row form-group app-input">
21
- <label class="font_normal_body">用气位置</label>
22
- <input type="text" class="input_search" v-model="selectdata.f_usegasposition" v-validate:f_usegasposition = "['required']" />
23
- </div>
24
- <div class="row form-group app-input">
25
- <label class="font_normal_body">用戶类型</label>
26
- <input type="text" class="input_search" v-model="selectdata.f_user_type" v-validate:f_user_type = "['required']" />
27
- </div>
28
- <div class="row form-group app-input">
29
- <label class="font_normal_body">省&ensp;市&ensp;区</label>
30
- <input type="text" class="input_search" v-model="selectdata.f_pcd" v-validate:f_pcd = "['required']" />
31
- </div>
32
- <div class="row form-group app-input">
33
- <label class="font_normal_body">备用电话</label>
34
- <input type="text" class="input_search" v-model="selectdata.f_spare_phone" v-validate:f_spare_phone = "['required']" />
35
- </div>
36
- <div class="row form-group app-input">
37
- <label class="font_normal_body">安装情况</label>
38
- <input type="text" class="input_search" v-model="selectdata.f_installation_situation" v-validate:f_installation_situation = "['required']" />
39
- </div>
40
-
41
- <div class="row form-group text-right" style="">
42
- <button class="button_search button_spacing" :disabled='!$v.valid'
43
- v-if="type !== 'view'"
44
- @click="checkOrder()">保存</button>
45
- <button class="button_clear button_spacing" @click="clear()">清除</button>
46
- </div>
47
- </div>
48
- </validator>
49
- </template>
50
-
51
- <script>
52
- export default {
53
- title: '预约报装',
54
- name: "ApplyOrder",
55
- data() {
56
- return {
57
- selectdata: null
58
- }
59
- },
60
- methods: {
61
- async checkOrder() {
62
- let data = {
63
- selectdata: this.selectdata,
64
- check: this.check,
65
- user: this.$login.f
66
- }
67
-
68
- let res = await this.$resetpost(
69
- `rs/logic/ApplyOrder`,
70
- data,
71
- {resolveMsg: null, rejectMsg: '申请报装失败,请检查内容!!!'}
72
- )
73
- this.clear()
74
- },
75
- clear() {
76
- Object.keys(this.selectdata).forEach((key) => {
77
- this.selectdata[key] = null
78
- })
79
- }
80
- }
81
- }
82
- </script>
83
-
84
- <style scoped>
85
-
86
- </style>
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>
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -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 ==='预埋管报建'
222
223
  })
223
224
  }
224
225
  },