apply-clients 6.0.4 → 6.0.7

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 (30) hide show
  1. package/build/dev-server.js +2 -2
  2. package/package.json +1 -1
  3. package/src/components/apply/base/rightview/InstallCardList2.vue +3 -2
  4. package/src/components/apply/base/rightview/carddetail/BuildFeeDetail2.vue +1 -1
  5. package/src/components/apply/base/rightview/carddetail/ChangeFeeDetail2.vue +1 -1
  6. package/src/components/apply/base/rightview/carddetail/ReduceFeeDetail2.vue +2 -2
  7. package/src/components/apply/base/rightview/carddetail/StopApplyDetail2.vue +70 -70
  8. package/src/components/build/Install/InstallFee/AddContract.vue +257 -257
  9. package/src/components/build/Install/InstallFee/InstallFee.vue +929 -929
  10. package/src/components/build/Install/InstallFee/PreparationFee.vue +223 -223
  11. package/src/components/build/Install/InstallFee/PrestoreFee.vue +630 -630
  12. package/src/components/build/Install/Process/CustomerBuildingMessage.vue +251 -251
  13. package/src/components/build/Install/Process/CustomerEquipmentMessage.vue +172 -172
  14. package/src/components/build/Install/Process/CustomerFile.vue +423 -423
  15. package/src/components/build/Install/Process/CustomerMaterialMessage.vue +414 -414
  16. package/src/components/build/Install/Process/CustomerRecordMessage.vue +749 -749
  17. package/src/components/build/Install/Process/FeeNormeAndContratSigne.vue +376 -376
  18. package/src/components/build/Install/Process/MeterType.vue +379 -379
  19. package/src/components/build/Install/Process/PlaceControler.vue +304 -304
  20. package/src/components/build/Install/Process/zhongran/ZR_Construction.vue +388 -388
  21. package/src/components/build/Install/Process/zhongran/ZR_CustomerEssentialInfo.vue +416 -415
  22. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlan.vue +259 -259
  23. package/src/components/build/Install/Process/zhongran/ZR_MaterialPlanExamine.vue +243 -243
  24. package/src/components/build/Install/Process/zhongran/ZR_PlaceControler.vue +426 -426
  25. package/src/components/build/Install/Process/zhongran/ZR_TestDesign.vue +441 -441
  26. package/src/components/build/Install/ProcessInfo/ApplyRecordCancel.vue +135 -135
  27. package/src/components/build/Install/bill/BillGZKMakeInfo.vue +58 -58
  28. package/src/components/build/Install/bill/BillQRKMakeInfo.vue +79 -79
  29. package/src/components/build/Install/bill/BillXSDMakeInfo.vue +206 -206
  30. package/src/main.js +25 -25
@@ -1,206 +1,206 @@
1
- <template>
2
- <div class="col-sm-12">
3
- <div class="col-sm-12" style="height: auto;margin-top: 10px">
4
- <div class="form-group col-sm-4">
5
- <label class="col-sm-4">摘要:</label>
6
- <div class="col-sm-8">
7
- <input class="form-control" type="text" v-model="billinfo.f_remark">
8
- </div>
9
- </div>
10
- <div class="col-sm-12" v-for="row in info">
11
- <div class="form-group col-sm-2">
12
- <label class="col-sm-6">商品名称:</label>
13
- <div class="col-sm-6">
14
- <input-select :value.sync="row.f_commodity_name" v-model="row.f_commodity_name" v-ref:customertype
15
- :options='fcommodityname'
16
- close-on-select @change="change($index)"></input-select>
17
- </div>
18
- </div>
19
- <div class="form-group col-sm-2">
20
- <label class="col-sm-6">单价:</label>
21
- <div class="col-sm-6">
22
- <input class="form-control col-sm-6" type="text" v-model="row.f_price" @change="temp($index)">
23
- </div>
24
- </div>
25
- <div class="form-group col-sm-2">
26
- <label class="col-sm-6">数量:</label>
27
- <div class="col-sm-6">
28
- <input class="form-control col-sm-6" type="number" v-model="row.f_quantity" @change="temp($index)">
29
- </div>
30
- </div>
31
- <div class="form-group col-sm-2">
32
- <label class="col-sm-6">金额:</label>
33
- <div class="col-sm-6">
34
- <input class="form-control col-sm-6" type="text" v-model="row.f_money" disabled>
35
- </div>
36
- </div>
37
- <div class="form-group col-sm-2">
38
- <label class="col-sm-6">折后金额:</label>
39
- <div class="col-sm-6">
40
- <input class="form-control col-sm-6" type="text" v-model="row.f_sale_money">
41
- </div>
42
- </div>
43
- </div>
44
- <div class="col-sm-12">
45
- <div class="form-group col-sm-2 form-input-group">
46
- <button type="button" @click="add()" class="btn btn-primary "
47
- style="width:80px; margin-left:50px;">
48
- 增加
49
- </button>
50
- </div>
51
- <div class="col-sm-6"></div>
52
- <div class="form-group col-sm-2 form-input-group">
53
- <button type="button" @click="confirm()" class="btn btn-primary "
54
- style="width:80px; margin-left:50px;">
55
- 确定
56
- </button>
57
- </div>
58
- </div>
59
- </div>
60
- <div class="col-sm-12">
61
- <billxsd v-if="billinfo" v-ref:billxsdx :billinfo="billinfo" :billselect="billselect" :info="info"></billxsd>
62
- </div>
63
- </div>
64
- </template>
65
-
66
- <script>
67
- import {HttpResetClass} from 'vue-client'
68
- import * as Util from '../../../Util'
69
-
70
- export default {
71
- title: "售单销信息",
72
- props: ['billselect','selectone'],
73
- data() {
74
- return {
75
- fcommodityname: [],
76
- showbill: false,
77
- number: null, //从数据库获取到的单据编号对象
78
- billinfo: {}, // 根据规则制作单据数据
79
- info: [{
80
- f_commodity_name: '',
81
- f_quantity: '',
82
- f_price: '',
83
- f_sale_money: '',
84
- f_money: ''
85
- }]
86
- }
87
- },
88
- async ready() {
89
- let http = new HttpResetClass()
90
- let data = {
91
- columnname: 'f_commodity_name',
92
- tablename: 't_billrecord_commodity',
93
- condition: `1=1`
94
- }
95
- let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
96
- resolveMsg: null,
97
- rejectMsg: "获取商品名称失败"
98
- }, {silent: true})
99
- res.data.forEach((row)=>{
100
- let temp = {
101
- label: row.f_commodity_name,
102
- value: row.f_commodity_name
103
- }
104
- this.fcommodityname.push(temp)
105
- })
106
- let http2 = new HttpResetClass()
107
- let data2 = {
108
- tablename: 't_singlevalue',
109
- condition: `name = '销售单编号'`
110
- }
111
- let res2 = await http2.load('POST', 'rs/sql/applysingleTable', {data: data2}, {
112
- resolveMsg: null,
113
- rejectMsg: "获取销售单编号失败"
114
- }, {silent: true})
115
- this.number = res2.data[0]
116
- this.handle()
117
- this.billinfo.f_billnumber = 'XS-' + Util.toStandardDateString2() + '-' + this.number.value
118
- },
119
- methods: {
120
- change(index){
121
- if(this.info[index].f_commodity_name === '入户安装费' ){
122
- this.info[index].f_price =this.billselect.f_construction_cost
123
- this.info[index].f_quantity = this.billselect.f_payfee_num
124
- this.temp(index)
125
- }
126
- if(this.info[index].f_commodity_name === '材料费' ){
127
- this.info[index].f_price =this.billselect.f_material_cost
128
- this.info[index].f_quantity = this.billselect.f_payfee_num
129
- this.temp(index)
130
- }
131
- if(this.info[index].f_commodity_name === '人工费' ){
132
- this.info[index].f_price =this.billselect.f_labor_cost
133
- this.info[index].f_quantity = this.billselect.f_payfee_num
134
- this.temp(index)
135
- }
136
- if(this.info[index].f_commodity_name === '改管费' ){
137
- this.info[index].f_price =this.billselect.f_change_pipeline_cost
138
- this.info[index].f_quantity = this.billselect.f_payfee_num
139
- this.temp(index)
140
- }
141
- if(this.info[index].f_commodity_name === '设备安装费' ){
142
- this.info[index].f_price =this.billselect.f_sbaz_cost
143
- this.info[index].f_quantity = this.billselect.f_payfee_num
144
- this.temp(index)
145
- }
146
- },
147
- // 处理数字,例如: 1 转换成 001
148
- handle() {
149
- while (this.number.value.length < 3) {
150
- this.number.value = '0' + this.number.value
151
- }
152
- },
153
- add() {
154
- let temp = {
155
- f_commodity_name: '',
156
- f_quantity: '',
157
- f_price: '',
158
- f_sale_money: '',
159
- f_money: ''
160
- }
161
- this.info.push(temp)
162
- },
163
- // 确定按钮制作表单数据
164
- confirm() {
165
- this.info.forEach((item) => {
166
- if (item.f_commodity_name[0].length != 1) {
167
- item.f_commodity_name = item.f_commodity_name[0] ? item.f_commodity_name[0] : ''
168
- }
169
- })
170
- this.billinfo.f_username = this.$login.f.name
171
- this.billinfo.f_date = Util.toStandardDateString()
172
- this.$refs.billxsdx.load()
173
- },
174
- temp(index) {
175
- let f_quantity = this.info[index].f_quantity
176
- let price = this.info[index].f_price
177
- this.info[index].f_money = Number(f_quantity) * Number(price) ? Number(f_quantity) * Number(price) : 0
178
- this.info[index].f_money = this.info[index].f_money
179
- return this.info[index].f_money
180
- },
181
- // 更新 单据编号
182
- async updateNumber() {
183
- let http = new HttpResetClass()
184
- this.number.value = String(Number(this.number.value) + 1)
185
- await http.load('POST', 'rs/logic/updatesinglevalue', {data: this.number}, {resolveMsg: null, rejectMsg: "存储销售单编号失败"})
186
- http = new HttpResetClass()
187
- let billinfo = Object.assign({}, this.billselect, this.billinfo)
188
- delete billinfo.id
189
- // 票据类型
190
- billinfo.f_bill_type = this.selectone
191
- for(let i=0;i<this.info.length;i++){
192
- this.info[i].f_quantity = Number(this.info[i].f_quantity)
193
- }
194
- let data = {
195
- billinfo: billinfo,
196
- array:this.info
197
- }
198
- await http.load('POST', 'rs/logic/makebillrecord', {data: data}, {resolveMsg: null, rejectMsg: "票据记录存储失败"})
199
- }
200
- }
201
- }
202
- </script>
203
-
204
- <style scoped>
205
-
206
- </style>
1
+ <template>
2
+ <div class="col-sm-12">
3
+ <div class="col-sm-12" style="height: auto;margin-top: 10px">
4
+ <div class="form-group col-sm-4">
5
+ <label class="col-sm-4">摘要:</label>
6
+ <div class="col-sm-8">
7
+ <input class="form-control" type="text" v-model="billinfo.f_remark">
8
+ </div>
9
+ </div>
10
+ <div class="col-sm-12" v-for="row in info">
11
+ <div class="form-group col-sm-2">
12
+ <label class="col-sm-6">商品名称:</label>
13
+ <div class="col-sm-6">
14
+ <input-select :value.sync="row.f_commodity_name" v-model="row.f_commodity_name" v-ref:customertype
15
+ :options='fcommodityname'
16
+ close-on-select @change="change($index)"></input-select>
17
+ </div>
18
+ </div>
19
+ <div class="form-group col-sm-2">
20
+ <label class="col-sm-6">单价:</label>
21
+ <div class="col-sm-6">
22
+ <input class="form-control col-sm-6" type="text" v-model="row.f_price" @change="temp($index)">
23
+ </div>
24
+ </div>
25
+ <div class="form-group col-sm-2">
26
+ <label class="col-sm-6">数量:</label>
27
+ <div class="col-sm-6">
28
+ <input class="form-control col-sm-6" type="number" v-model="row.f_quantity" @change="temp($index)">
29
+ </div>
30
+ </div>
31
+ <div class="form-group col-sm-2">
32
+ <label class="col-sm-6">金额:</label>
33
+ <div class="col-sm-6">
34
+ <input class="form-control col-sm-6" type="text" v-model="row.f_money" disabled>
35
+ </div>
36
+ </div>
37
+ <div class="form-group col-sm-2">
38
+ <label class="col-sm-6">折后金额:</label>
39
+ <div class="col-sm-6">
40
+ <input class="form-control col-sm-6" type="text" v-model="row.f_sale_money">
41
+ </div>
42
+ </div>
43
+ </div>
44
+ <div class="col-sm-12">
45
+ <div class="form-group col-sm-2 form-input-group">
46
+ <button type="button" @click="add()" class="btn btn-primary "
47
+ style="width:80px; margin-left:50px;">
48
+ 增加
49
+ </button>
50
+ </div>
51
+ <div class="col-sm-6"></div>
52
+ <div class="form-group col-sm-2 form-input-group">
53
+ <button type="button" @click="confirm()" class="btn btn-primary "
54
+ style="width:80px; margin-left:50px;">
55
+ 确定
56
+ </button>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ <div class="col-sm-12">
61
+ <billxsd v-if="billinfo" v-ref:billxsdx :billinfo="billinfo" :billselect="billselect" :info="info"></billxsd>
62
+ </div>
63
+ </div>
64
+ </template>
65
+
66
+ <script>
67
+ import {HttpResetClass} from 'vue-client'
68
+ import * as Util from '../../../Util'
69
+
70
+ export default {
71
+ title: "售单销信息",
72
+ props: ['billselect','selectone'],
73
+ data() {
74
+ return {
75
+ fcommodityname: [],
76
+ showbill: false,
77
+ number: null, //从数据库获取到的单据编号对象
78
+ billinfo: {}, // 根据规则制作单据数据
79
+ info: [{
80
+ f_commodity_name: '',
81
+ f_quantity: '',
82
+ f_price: '',
83
+ f_sale_money: '',
84
+ f_money: ''
85
+ }]
86
+ }
87
+ },
88
+ async ready() {
89
+ let http = new HttpResetClass()
90
+ let data = {
91
+ columnname: 'f_commodity_name',
92
+ tablename: 't_billrecord_commodity',
93
+ condition: `1=1`
94
+ }
95
+ let res = await http.load('POST', 'rs/sql/getdistinct', {data: data}, {
96
+ resolveMsg: null,
97
+ rejectMsg: "获取商品名称失败"
98
+ }, {silent: true})
99
+ res.data.forEach((row)=>{
100
+ let temp = {
101
+ label: row.f_commodity_name,
102
+ value: row.f_commodity_name
103
+ }
104
+ this.fcommodityname.push(temp)
105
+ })
106
+ let http2 = new HttpResetClass()
107
+ let data2 = {
108
+ tablename: 't_singlevalue',
109
+ condition: `name = '销售单编号'`
110
+ }
111
+ let res2 = await http2.load('POST', 'rs/sql/singleTable', {data: data2}, {
112
+ resolveMsg: null,
113
+ rejectMsg: "获取销售单编号失败"
114
+ }, {silent: true})
115
+ this.number = res2.data[0]
116
+ this.handle()
117
+ this.billinfo.f_billnumber = 'XS-' + Util.toStandardDateString2() + '-' + this.number.value
118
+ },
119
+ methods: {
120
+ change(index){
121
+ if(this.info[index].f_commodity_name === '入户安装费' ){
122
+ this.info[index].f_price =this.billselect.f_construction_cost
123
+ this.info[index].f_quantity = this.billselect.f_payfee_num
124
+ this.temp(index)
125
+ }
126
+ if(this.info[index].f_commodity_name === '材料费' ){
127
+ this.info[index].f_price =this.billselect.f_material_cost
128
+ this.info[index].f_quantity = this.billselect.f_payfee_num
129
+ this.temp(index)
130
+ }
131
+ if(this.info[index].f_commodity_name === '人工费' ){
132
+ this.info[index].f_price =this.billselect.f_labor_cost
133
+ this.info[index].f_quantity = this.billselect.f_payfee_num
134
+ this.temp(index)
135
+ }
136
+ if(this.info[index].f_commodity_name === '改管费' ){
137
+ this.info[index].f_price =this.billselect.f_change_pipeline_cost
138
+ this.info[index].f_quantity = this.billselect.f_payfee_num
139
+ this.temp(index)
140
+ }
141
+ if(this.info[index].f_commodity_name === '设备安装费' ){
142
+ this.info[index].f_price =this.billselect.f_sbaz_cost
143
+ this.info[index].f_quantity = this.billselect.f_payfee_num
144
+ this.temp(index)
145
+ }
146
+ },
147
+ // 处理数字,例如: 1 转换成 001
148
+ handle() {
149
+ while (this.number.value.length < 3) {
150
+ this.number.value = '0' + this.number.value
151
+ }
152
+ },
153
+ add() {
154
+ let temp = {
155
+ f_commodity_name: '',
156
+ f_quantity: '',
157
+ f_price: '',
158
+ f_sale_money: '',
159
+ f_money: ''
160
+ }
161
+ this.info.push(temp)
162
+ },
163
+ // 确定按钮制作表单数据
164
+ confirm() {
165
+ this.info.forEach((item) => {
166
+ if (item.f_commodity_name[0].length != 1) {
167
+ item.f_commodity_name = item.f_commodity_name[0] ? item.f_commodity_name[0] : ''
168
+ }
169
+ })
170
+ this.billinfo.f_username = this.$login.f.name
171
+ this.billinfo.f_date = Util.toStandardDateString()
172
+ this.$refs.billxsdx.load()
173
+ },
174
+ temp(index) {
175
+ let f_quantity = this.info[index].f_quantity
176
+ let price = this.info[index].f_price
177
+ this.info[index].f_money = Number(f_quantity) * Number(price) ? Number(f_quantity) * Number(price) : 0
178
+ this.info[index].f_money = this.info[index].f_money
179
+ return this.info[index].f_money
180
+ },
181
+ // 更新 单据编号
182
+ async updateNumber() {
183
+ let http = new HttpResetClass()
184
+ this.number.value = String(Number(this.number.value) + 1)
185
+ await http.load('POST', 'rs/logic/updatesinglevalue', {data: this.number}, {resolveMsg: null, rejectMsg: "存储销售单编号失败"})
186
+ http = new HttpResetClass()
187
+ let billinfo = Object.assign({}, this.billselect, this.billinfo)
188
+ delete billinfo.id
189
+ // 票据类型
190
+ billinfo.f_bill_type = this.selectone
191
+ for(let i=0;i<this.info.length;i++){
192
+ this.info[i].f_quantity = Number(this.info[i].f_quantity)
193
+ }
194
+ let data = {
195
+ billinfo: billinfo,
196
+ array:this.info
197
+ }
198
+ await http.load('POST', 'rs/logic/makebillrecord', {data: data}, {resolveMsg: null, rejectMsg: "票据记录存储失败"})
199
+ }
200
+ }
201
+ }
202
+ </script>
203
+
204
+ <style scoped>
205
+
206
+ </style>
package/src/main.js CHANGED
@@ -1,25 +1,25 @@
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 apply from './apply'
8
- //import applyAndroid from './applyAndroid'
9
- import 'lib-flexible/flexible.js'
10
- // import AndroidPlugin from './AndroidPlugin.js'
11
- import {systemphonegrid} from 'system-phone'
12
-
13
- all()
14
- system()
15
- apply()
16
- ldap()
17
- sale()
18
- //applyAndroid()
19
- // Vue.use(AndroidPlugin)
20
- require('./bootstrap/less/bootstrap.less')
21
-
22
- new Vue({
23
- el: 'body',
24
- components: { App }
25
- })
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 apply from './apply'
8
+ import applyAndroid from './applyAndroid'
9
+ import 'lib-flexible/flexible.js'
10
+ // import AndroidPlugin from './AndroidPlugin.js'
11
+ import {systemphonegrid} from 'system-phone'
12
+
13
+ all()
14
+ system()
15
+ apply()
16
+ ldap()
17
+ sale()
18
+ applyAndroid()
19
+ // Vue.use(AndroidPlugin)
20
+ require('./bootstrap/less/bootstrap.less')
21
+
22
+ new Vue({
23
+ el: 'body',
24
+ components: { App }
25
+ })