apply-clients 3.0.6-93 → 3.0.6-97

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 (36) hide show
  1. package/package.json +1 -1
  2. package/src/components/product/Bill/BillXSDMakeInfo.vue +206 -206
  3. package/src/components/product/Function/InstallFunction.vue +122 -122
  4. package/src/components/product/Function/InstallInfoSelect.vue +221 -221
  5. package/src/components/product/Function/Service/FunctionServiceControl.vue +368 -368
  6. package/src/components/product/Function/functions/AddContract.vue +294 -294
  7. package/src/components/product/Function/functions/BuyerMessage.vue +522 -522
  8. package/src/components/product/Function/functions/InstallFee.vue +1125 -1125
  9. package/src/components/product/Function/functions/InstallFeeInfo.vue +95 -95
  10. package/src/components/product/Function/functions/StopInstall.vue +128 -128
  11. package/src/components/product/Procedures/ProceduresDataGrid.vue +1022 -1022
  12. package/src/components/product/Process/ExplorationSelect.vue +1 -1
  13. package/src/components/product/Process/ExplorationUser.vue +142 -142
  14. package/src/components/product/Process/ProcessInfo/history_control.vue +132 -132
  15. package/src/components/product/Process/Processes/CustomerBuildingMessage.vue +251 -251
  16. package/src/components/product/Process/Processes/CustomerEquipmentMessage.vue +172 -172
  17. package/src/components/product/Process/Processes/CustomerMaterialMessage.vue +1059 -1059
  18. package/src/components/product/Process/Processes/CustomerRecordMessage.vue +949 -949
  19. package/src/components/product/Process/Processes/ProjectSettlement.vue +812 -812
  20. package/src/components/product/Process/Processes/ReceiveBatch.vue +1146 -1146
  21. package/src/components/product/Process/Processes/Service/ApplyChangeHistory.vue +105 -105
  22. package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +218 -218
  23. package/src/components/product/Process/Processes/Service/ServiceControl.vue +2877 -2872
  24. package/src/components/product/Process/Processes/WatchManagement.vue +96 -93
  25. package/src/components/product/Process/ShowBackReason.vue +18 -18
  26. package/src/components/product/ServiceView.vue +828 -828
  27. package/src/components/product/Statistics/ApplyStatisticsROOT.vue +27 -27
  28. package/src/components/product/Supervisory/AddressInfoQuery.vue +254 -254
  29. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +264 -264
  30. package/src/components/product/Supervisory/SupervisoryControl.vue +138 -138
  31. package/src/components/product/Supervisory/SupervisoryList.vue +1 -1
  32. package/src/components/product/Supervisory/SupervisoryhCart.vue +99 -99
  33. package/src/components/product/VueUtils/Tree.vue +330 -330
  34. package/src/components/product/VueUtils/rightview/InstallCardList2.vue +260 -260
  35. package/src/components/product/VueUtils/rightview/carddetail/StopApplyDetail2.vue +70 -70
  36. package/yarn.lock +0 -9013
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.0.6-93",
3
+ "version": "3.0.6-97",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -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="text" 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>
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="text" 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>