apply-clients 6.0.3 → 6.0.4

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 (28) hide show
  1. package/build/dev-server.js +72 -72
  2. package/package.json +1 -1
  3. package/src/components/apply/base/rightview/InstallCardList2.vue +267 -268
  4. package/src/components/apply/base/rightview/carddetail/BuildFeeDetail2.vue +77 -77
  5. package/src/components/apply/base/rightview/carddetail/ChangeFeeDetail2.vue +116 -116
  6. package/src/components/apply/base/rightview/carddetail/ReduceFeeDetail2.vue +1 -1
  7. package/src/components/build/Install/InstallFee/AddContract.vue +257 -257
  8. package/src/components/build/Install/InstallFee/InstallFee.vue +929 -929
  9. package/src/components/build/Install/InstallFee/PreparationFee.vue +223 -223
  10. package/src/components/build/Install/InstallFee/PrestoreFee.vue +630 -630
  11. package/src/components/build/Install/Process/CustomerBuildingMessage.vue +251 -251
  12. package/src/components/build/Install/Process/CustomerEquipmentMessage.vue +172 -172
  13. package/src/components/build/Install/Process/CustomerFile.vue +423 -423
  14. package/src/components/build/Install/Process/CustomerMaterialMessage.vue +414 -414
  15. package/src/components/build/Install/Process/CustomerRecordMessage.vue +749 -749
  16. package/src/components/build/Install/Process/FeeNormeAndContratSigne.vue +376 -376
  17. package/src/components/build/Install/Process/MeterType.vue +379 -379
  18. package/src/components/build/Install/Process/PlaceControler.vue +304 -304
  19. package/src/components/build/Install/Process/zhongran/ZR_Construction.vue +388 -388
  20. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlan.vue +259 -259
  21. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlanExamine.vue +243 -243
  22. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler.vue +426 -426
  23. package/src/components/build/Install/Process/zhongran/ZR_TestDesign.vue +441 -441
  24. package/src/components/build/Install/ProcessInfo/ApplyRecordCancel.vue +135 -135
  25. package/src/components/build/Install/bill/BillGZKMakeInfo.vue +58 -58
  26. package/src/components/build/Install/bill/BillQRKMakeInfo.vue +79 -79
  27. package/src/components/build/Install/bill/BillXSDMakeInfo.vue +206 -206
  28. package/src/main.js +25 -25
@@ -1,172 +1,172 @@
1
- <template>
2
- <div class="flex-row flex-deviceinfo">
3
- <div class="flex-row flex-two-info panel panel-default" v-for="row in devicesinfo">
4
- <avatar-upload :img-src.sync="row.img.content" :filename.sync="row.img.filename "></avatar-upload>
5
- <form class="form-horizontal" style="flex: 1;">
6
- <div class="form-group auto" style="margin-top: 10px;margin-left: 10px;">
7
- <div class="col-sm-6" style="padding-right: 5px;" id=userfiles-useDevInf-设备类型>
8
- <v-select :is-all-line="true" :value.sync="row.f_devices_type" v-model="row.f_devices_type"
9
- :options='devicetypes' placeholder='设备类型'
10
- close-on-select></v-select>
11
- </div>
12
- <div class="col-sm-6" style="padding-right: 5px;">
13
- <input type="text" class="form-control" v-else v-model="row.f_devices_no" placeholder='设备编号' v-next-el="{id: $index+'brand'}" >
14
- </div>
15
- </div>
16
- <div class="form-group auto" style="margin-left: 10px;">
17
- <div class="col-sm-6" style="padding-right: 5px;">
18
- <input type="text" class="form-control" v-model="row.f_brand" placeholder='设备品牌' v-next-el="{id: $index+'devicesmodel'}" :id="$index+'brand'">
19
- </div>
20
- <div class="col-sm-6" style="padding-right: 5px;">
21
- <input type="text" class="form-control" v-model="row.f_devices_model" placeholder='设备型号' :id="$index+'devicesmodel'">
22
- </div>
23
- </div>
24
- <div class="form-group auto" style="margin-left: 10px;">
25
- <div class="col-sm-6" style="padding-right: 5px;">
26
- <input type="number" class="form-control" v-model="row.f_devices_num" placeholder='设备数量' :id="$index+'devicesnum'">
27
- </div>
28
- <div class="col-sm-6" style="padding-right: 5px;">
29
- <input type="text" class="form-control" v-model="row.f_userinfo_id" placeholder='户档案编号' >
30
- </div>
31
- <div class="col-sm-6" style="padding-right: 5px;">
32
- <!--<input type="text" v-show="false" v-model="$refs.installtime.value"-->
33
- <!--v-validate:installtime='{required: true}'/>-->
34
- <!--<datepicker-->
35
- <!--v-model="row.f_install_date" v-ref:installtime-->
36
- <!--:disabled-days-of-Week="[]"-->
37
- <!--:value.sync="row.f_install_date"-->
38
- <!--:show-reset-button="reset"-->
39
- <!--:format="'yyyy-MM-dd'" readonly="readonly">-->
40
- <!--</datepicker>-->
41
- </div>
42
- </div>
43
- <div class="form-group auto" style="margin-left: 10px;">
44
- <div class="col-sm-6 " style="padding-right: 5px;">
45
- <button type="button" @click="deleteDevice($index, row)" class="btn btn-primary" v-show="edit">
46
- 删除
47
- </button>
48
- </div>
49
- <div class="col-sm-6 " style="padding-right: 5px;" v-if="!row.id">
50
- <button type="button" @click="confirm(row,$index)" class="btn btn-primary" v-show="edit">
51
- 提交
52
- </button>
53
- </div>
54
- </div>
55
- </form>
56
- <!--<img :src="imgdelete" alt="图片加载失败" class="img-rounded" style="width: 60px;padding: 20px;margin-left: -15px;cursor: pointer;"-->
57
- <!--@click="deleteDevice($index, row)" v-if="row.f_devices_state !== '有效'">-->
58
- </div>
59
- <div class="panel panel-default flex-two-info text-center" style="line-height: 164px;">
60
- <img :src="imgadd" alt="图片加载失败" class="img-rounded" style="width: 60px;padding: 10px;cursor: pointer;" @click="addDevice()">
61
- </div>
62
- </div>
63
- </template>
64
-
65
- <script>
66
- import {HttpResetClass} from 'vue-client'
67
- export default {
68
- title: '设备信息',
69
- data () {
70
- return {
71
- devicetypes: this.$appdata.getParam('设备类型'),
72
- flagg: true,
73
- devicesinfo:[],
74
- userinfoid:'',
75
- imgdelete: 'images/mainicon/deletedevice.png',
76
- imgadd: 'images/mainicon/adddevice.png'
77
- }
78
- },
79
- props: ['selectdata','edit'],
80
- ready() {
81
- // 获取数据
82
- this.load()
83
- },
84
- methods: {
85
- load() {
86
- if (!this.selectdata)
87
- return
88
- let data = {
89
- tablename: 't_devices',
90
- condition: 'f_process_id=' + '\'' + String(this.selectdata.f_process_id) + '\''
91
- }
92
- this.$resetpost('rs/sql/singleTable', {data: data}, {resolveMsg: null, rejectMsg: '查询失败'})
93
- .then((res) => {
94
- this.devicesinfo = []
95
- this.devicesinfo = res.data
96
- })
97
- },
98
- confirm(row, index) {
99
- //提交前先判断填写的户档案编号是否存在
100
- this.$resetpost('rs/sql/findUserInfo', {data:{f_userinfo_id:row.f_userinfo_id,process_id:this.selectdata.f_process_id}}).then((res) => {
101
- if(res.data.length > 0){
102
- row.f_process_id = this.selectdata.f_process_id
103
- row.f_devices_state = '正常'
104
- if(row.f_devices_type == '[]'){
105
- delete row.f_devices_type
106
- }else{
107
- row.f_devices_type = row.f_devices_type[0]
108
- }
109
- let data ={
110
- tablename:'t_devices',
111
- parameters:row
112
- }
113
- if(!(row.f_brand&&row.f_devices_model&&row.f_devices_num)){
114
- this.$showMessage("请检查设备品牌,设备型号,设备数量是否填写")
115
-
116
- }else{
117
- this.$resetpost('rs/logic/saveentity', {data:data},{
118
- resolveMsg: null,
119
- rejectMsg: '添加失败!'
120
- }).then((res) => {
121
- this.flagg = false
122
- // 如果没有id,需要在数组中添加
123
- this.load()
124
- this.$showMessage("添加成功!")
125
- })
126
- }
127
- }else {
128
- this.$showMessage("不存在的户档案编号!")
129
- }
130
- })
131
-
132
- },
133
- deleteDevice (index, row) {
134
- // this.devicesinfo.splice(index, 1)
135
- if (!row.id) {
136
- // 没有id 从数组里删除
137
- this.devicesinfo.splice(index, 1)
138
- } else {
139
- this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
140
- if (res === 'confirm') {
141
- let http = new HttpResetClass()
142
- http.load('DELETE',`rs/entity/t_devices/${row.id}`).then((res) => {
143
- this.load()
144
- })
145
- }
146
- })
147
- }
148
- },
149
- addDevice () {
150
- this.devicesinfo.push({
151
- f_devices_type: '',
152
- f_userinfo_id: this.userinfoid
153
- // f_install_date: this.$login.toStandardTimeString()
154
- })
155
- },
156
- },
157
-
158
- }
159
- </script>
160
- <style lang="less">
161
- .flex-deviceinfo {
162
- padding: 0px 20px;
163
- justify-content: space-between;
164
- height: auto;
165
- flex-wrap: wrap;
166
- }
167
- .flex-two-info {
168
- margin-bottom: 10px;
169
- align-items: center;
170
- width: 48%;
171
- }
172
- </style>
1
+ <template>
2
+ <div class="flex-row flex-deviceinfo">
3
+ <div class="flex-row flex-two-info panel panel-default" v-for="row in devicesinfo">
4
+ <avatar-upload :img-src.sync="row.img.content" :filename.sync="row.img.filename "></avatar-upload>
5
+ <form class="form-horizontal" style="flex: 1;">
6
+ <div class="form-group auto" style="margin-top: 10px;margin-left: 10px;">
7
+ <div class="col-sm-6" style="padding-right: 5px;" id=userfiles-useDevInf-设备类型>
8
+ <v-select :is-all-line="true" :value.sync="row.f_devices_type" v-model="row.f_devices_type"
9
+ :options='devicetypes' placeholder='设备类型'
10
+ close-on-select></v-select>
11
+ </div>
12
+ <div class="col-sm-6" style="padding-right: 5px;">
13
+ <input type="text" class="form-control" v-else v-model="row.f_devices_no" placeholder='设备编号' v-next-el="{id: $index+'brand'}" >
14
+ </div>
15
+ </div>
16
+ <div class="form-group auto" style="margin-left: 10px;">
17
+ <div class="col-sm-6" style="padding-right: 5px;">
18
+ <input type="text" class="form-control" v-model="row.f_brand" placeholder='设备品牌' v-next-el="{id: $index+'devicesmodel'}" :id="$index+'brand'">
19
+ </div>
20
+ <div class="col-sm-6" style="padding-right: 5px;">
21
+ <input type="text" class="form-control" v-model="row.f_devices_model" placeholder='设备型号' :id="$index+'devicesmodel'">
22
+ </div>
23
+ </div>
24
+ <div class="form-group auto" style="margin-left: 10px;">
25
+ <div class="col-sm-6" style="padding-right: 5px;">
26
+ <input type="number" class="form-control" v-model="row.f_devices_num" placeholder='设备数量' :id="$index+'devicesnum'">
27
+ </div>
28
+ <div class="col-sm-6" style="padding-right: 5px;">
29
+ <input type="text" class="form-control" v-model="row.f_userinfo_id" placeholder='户档案编号' >
30
+ </div>
31
+ <div class="col-sm-6" style="padding-right: 5px;">
32
+ <!--<input type="text" v-show="false" v-model="$refs.installtime.value"-->
33
+ <!--v-validate:installtime='{required: true}'/>-->
34
+ <!--<datepicker-->
35
+ <!--v-model="row.f_install_date" v-ref:installtime-->
36
+ <!--:disabled-days-of-Week="[]"-->
37
+ <!--:value.sync="row.f_install_date"-->
38
+ <!--:show-reset-button="reset"-->
39
+ <!--:format="'yyyy-MM-dd'" readonly="readonly">-->
40
+ <!--</datepicker>-->
41
+ </div>
42
+ </div>
43
+ <div class="form-group auto" style="margin-left: 10px;">
44
+ <div class="col-sm-6 " style="padding-right: 5px;">
45
+ <button type="button" @click="deleteDevice($index, row)" class="btn btn-primary" v-show="edit">
46
+ 删除
47
+ </button>
48
+ </div>
49
+ <div class="col-sm-6 " style="padding-right: 5px;" v-if="!row.id">
50
+ <button type="button" @click="confirm(row,$index)" class="btn btn-primary" v-show="edit">
51
+ 提交
52
+ </button>
53
+ </div>
54
+ </div>
55
+ </form>
56
+ <!--<img :src="imgdelete" alt="图片加载失败" class="img-rounded" style="width: 60px;padding: 20px;margin-left: -15px;cursor: pointer;"-->
57
+ <!--@click="deleteDevice($index, row)" v-if="row.f_devices_state !== '有效'">-->
58
+ </div>
59
+ <div class="panel panel-default flex-two-info text-center" style="line-height: 164px;">
60
+ <img :src="imgadd" alt="图片加载失败" class="img-rounded" style="width: 60px;padding: 10px;cursor: pointer;" @click="addDevice()">
61
+ </div>
62
+ </div>
63
+ </template>
64
+
65
+ <script>
66
+ import {HttpResetClass} from 'vue-client'
67
+ export default {
68
+ title: '设备信息',
69
+ data () {
70
+ return {
71
+ devicetypes: this.$appdata.getParam('设备类型'),
72
+ flagg: true,
73
+ devicesinfo:[],
74
+ userinfoid:'',
75
+ imgdelete: 'images/mainicon/deletedevice.png',
76
+ imgadd: 'images/mainicon/adddevice.png'
77
+ }
78
+ },
79
+ props: ['selectdata','edit'],
80
+ ready() {
81
+ // 获取数据
82
+ this.load()
83
+ },
84
+ methods: {
85
+ load() {
86
+ if (!this.selectdata)
87
+ return
88
+ let data = {
89
+ tablename: 't_devices',
90
+ condition: 'f_process_id=' + '\'' + String(this.selectdata.f_process_id) + '\''
91
+ }
92
+ this.$resetpost('rs/sql/applysingleTable', {data: data}, {resolveMsg: null, rejectMsg: '查询失败'})
93
+ .then((res) => {
94
+ this.devicesinfo = []
95
+ this.devicesinfo = res.data
96
+ })
97
+ },
98
+ confirm(row, index) {
99
+ //提交前先判断填写的户档案编号是否存在
100
+ this.$resetpost('rs/sql/findUserInfo', {data:{f_userinfo_id:row.f_userinfo_id,process_id:this.selectdata.f_process_id}}).then((res) => {
101
+ if(res.data.length > 0){
102
+ row.f_process_id = this.selectdata.f_process_id
103
+ row.f_devices_state = '正常'
104
+ if(row.f_devices_type == '[]'){
105
+ delete row.f_devices_type
106
+ }else{
107
+ row.f_devices_type = row.f_devices_type[0]
108
+ }
109
+ let data ={
110
+ tablename:'t_devices',
111
+ parameters:row
112
+ }
113
+ if(!(row.f_brand&&row.f_devices_model&&row.f_devices_num)){
114
+ this.$showMessage("请检查设备品牌,设备型号,设备数量是否填写")
115
+
116
+ }else{
117
+ this.$resetpost('rs/logic/saveentity', {data:data},{
118
+ resolveMsg: null,
119
+ rejectMsg: '添加失败!'
120
+ }).then((res) => {
121
+ this.flagg = false
122
+ // 如果没有id,需要在数组中添加
123
+ this.load()
124
+ this.$showMessage("添加成功!")
125
+ })
126
+ }
127
+ }else {
128
+ this.$showMessage("不存在的户档案编号!")
129
+ }
130
+ })
131
+
132
+ },
133
+ deleteDevice (index, row) {
134
+ // this.devicesinfo.splice(index, 1)
135
+ if (!row.id) {
136
+ // 没有id 从数组里删除
137
+ this.devicesinfo.splice(index, 1)
138
+ } else {
139
+ this.$showMessage('删除后不可恢复,确认删除吗?', ['confirm', 'cancel']).then((res) => {
140
+ if (res === 'confirm') {
141
+ let http = new HttpResetClass()
142
+ http.load('DELETE',`rs/entity/t_devices/${row.id}`).then((res) => {
143
+ this.load()
144
+ })
145
+ }
146
+ })
147
+ }
148
+ },
149
+ addDevice () {
150
+ this.devicesinfo.push({
151
+ f_devices_type: '',
152
+ f_userinfo_id: this.userinfoid
153
+ // f_install_date: this.$login.toStandardTimeString()
154
+ })
155
+ },
156
+ },
157
+
158
+ }
159
+ </script>
160
+ <style lang="less">
161
+ .flex-deviceinfo {
162
+ padding: 0px 20px;
163
+ justify-content: space-between;
164
+ height: auto;
165
+ flex-wrap: wrap;
166
+ }
167
+ .flex-two-info {
168
+ margin-bottom: 10px;
169
+ align-items: center;
170
+ width: 48%;
171
+ }
172
+ </style>