apply-clients 3.5.5-8 → 3.5.5-80

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 (90) hide show
  1. package/build/dev-server.js +5 -13
  2. package/package.json +6 -4
  3. package/src/App.vue +25 -25
  4. package/src/apply.js +141 -141
  5. package/src/components/QXClient.js +333 -0
  6. package/src/components/SignTools.js +65 -0
  7. package/src/components/android/Process/AppChargeList.vue +8 -0
  8. package/src/components/android/Process/AppExplorationUser.vue +1 -2
  9. package/src/components/product/Function/Service/FunctionServiceControl.vue +497 -497
  10. package/src/components/product/Install/ContractCharge.vue +3 -3
  11. package/src/components/product/MaterialsManage/MaterialsBase.vue +181 -181
  12. package/src/components/product/MaterialsManage/MaterialsManage.vue +60 -60
  13. package/src/components/product/Process/Processes/contractModel.vue +436 -424
  14. package/src/components/product/Supervisory/SupervisoryList.vue +452 -452
  15. package/src/filiale/baiyin/android/ByAddMaterialScience.vue +2 -0
  16. package/src/filiale/dingcheng/pc/SupervisoryList.vue +441 -441
  17. package/src/filiale/fugou/android/AppAddMaterialScience.vue +20 -16
  18. package/src/filiale/fugou/android/AppAddReplacement.vue +512 -341
  19. package/src/filiale/fugou/android/AppDevicesManagement.vue +3 -1
  20. package/src/filiale/fugou/android/AppExplorationUser.vue +3 -3
  21. package/src/filiale/fugou/android/AppInstallationDetails.vue +2 -1
  22. package/src/filiale/fugou/android/AppServiceControl.vue +11 -7
  23. package/src/filiale/fugou/android/AppZhihuanManagement.vue +3 -1
  24. package/src/filiale/fugou/pc/AddReplacement.vue +511 -340
  25. package/src/filiale/fugou/pc/ApplyChargeList.vue +487 -480
  26. package/src/filiale/fugou/pc/Applybatchdispatch.vue +754 -0
  27. package/src/filiale/fugou/pc/ExplorationSelect.vue +3 -4
  28. package/src/filiale/fugou/pc/ServiceControl.vue +1720 -1705
  29. package/src/filiale/fugou/pc/StopApplyList.vue +291 -0
  30. package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +1 -1
  31. package/src/filiale/fugou/pc/chargeReport.vue +87 -15
  32. package/src/filiale/fugou/pc/devicesManagement.vue +1 -0
  33. package/src/filiale/fugou/pc.js +19 -17
  34. package/src/filiale/gongyi/android/AppDisclosurerecord.vue +214 -214
  35. package/src/filiale/gongyi/android/AppInstallationDetails.vue +500 -500
  36. package/src/filiale/gongyi/android/AppLegacyIssues.vue +309 -309
  37. package/src/filiale/gongyi/android/AppSign.vue +170 -170
  38. package/src/filiale/gongyi/android/AppSupplementalAgreement.vue +298 -298
  39. package/src/filiale/gongyi/android.js +18 -18
  40. package/src/filiale/gongyi/pc/ApplyUpload.vue +371 -371
  41. package/src/filiale/gongyi/pc/PcAddLogs.vue +221 -221
  42. package/src/filiale/gongyi/pc/PcDisclosurerecord.vue +218 -218
  43. package/src/filiale/gongyi/pc/PcLegacyIssues.vue +309 -309
  44. package/src/filiale/gongyi/pc/SupervisoryServiceControl.vue +894 -894
  45. package/src/filiale/gongyi/pc/SupervisoryServiceView.vue +1005 -1005
  46. package/src/filiale/gongyi/pc/addMaterialScience.vue +575 -575
  47. package/src/filiale/gongyi/pc/chargeManagement.vue +765 -765
  48. package/src/filiale/gongyi/pc/supplementalAgreement.vue +277 -277
  49. package/src/filiale/gongyi/pc.js +24 -24
  50. package/src/filiale/hongda/pc/SupervisoryList.vue +422 -422
  51. package/src/filiale/jingyang/pc/SupervisoryList.vue +459 -459
  52. package/src/filiale/jinhuang/android/AppAddMaterialScience.vue +635 -0
  53. package/src/filiale/jinhuang/android.js +6 -0
  54. package/src/filiale/jinhuang/pc/ContractList.vue +220 -0
  55. package/src/filiale/jinhuang/pc/ExplorationSelect.vue +523 -0
  56. package/src/filiale/jinhuang/pc/ServiceControl.vue +7 -0
  57. package/src/filiale/jinhuang/pc/addMaterialScience.vue +638 -0
  58. package/src/filiale/jinhuang/pc/addressAndUserinfoManagement.vue +41 -1
  59. package/src/filiale/jinhuang/pc.js +3 -0
  60. package/src/filiale/qianneng/android/AppServiceView.vue +13 -13
  61. package/src/filiale/qianneng/pc/ApplyMaterialDetailed.vue +1 -1
  62. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +8 -5
  63. package/src/filiale/qianneng/pc/Applydetail.vue +1 -1
  64. package/src/filiale/qianneng/pc/FunctionServiceControl.vue +10 -3
  65. package/src/filiale/qianneng/pc/ServiceControl.vue +8 -3
  66. package/src/filiale/ruihua/pc/ServiceControl.vue +2 -1
  67. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +11 -4
  68. package/src/filiale/yangchunboneng/android/AppContractCharge.vue +3 -3
  69. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +72 -5
  70. package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +30 -1
  71. package/src/filiale/yangchunboneng/android/AppProcessSupervisory.vue +331 -0
  72. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +219 -43
  73. package/src/filiale/yangchunboneng/android/MaterIialOne.vue +21 -1
  74. package/src/filiale/yangchunboneng/android.js +2 -1
  75. package/src/filiale/yangchunboneng/pc/ApplyChargeList.vue +32 -4
  76. package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +3 -3
  77. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +114 -49
  78. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +4 -2
  79. package/src/filiale/yangchunboneng/pc/StopApplyList.vue +294 -0
  80. package/src/filiale/yangchunboneng/pc/SupervisoryControl.vue +141 -0
  81. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +54 -42
  82. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +5 -1
  83. package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1 -1
  84. package/src/filiale/yangchunboneng/pc/buildOrderList.vue +411 -0
  85. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +5 -1
  86. package/src/filiale/yangchunboneng/pc/constructionInfo.vue +84 -0
  87. package/src/filiale/yangchunboneng/pc/printBuildOrder.vue +175 -0
  88. package/src/filiale/yangchunboneng/pc.js +6 -1
  89. package/src/main.js +1 -1
  90. package/~/chatbot/main.py +0 -57
@@ -0,0 +1,220 @@
1
+ <template>
2
+ <div class="flex-row">
3
+ <div class="basic-main">
4
+ <criteria-paged :model="model" v-ref:cp>
5
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
6
+ <div class="form-horizontal select-overspread container-fluid auto" partial>
7
+ <div class="row">
8
+ <div class="form-group col-sm-3">
9
+ <label class="font_normal_body">组织机构:</label>
10
+ <res-select
11
+ restype='organization'
12
+ :initresid='$parent.$parent.curorgid'
13
+ @res-select="$parent.$parent.getorg"
14
+ is-mul="false"
15
+ ></res-select>
16
+ </div>
17
+ <div class="form-group col-sm-3">
18
+ <label class="font_normal_body">工程编号:</label>
19
+ <input type="text" style="width: 60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
20
+ v-on:keyup.enter="$parent.$parent.search()"
21
+ condition="f_apply_num = '{}'">
22
+ </div>
23
+ <div class="form-group col-sm-3">
24
+ <label class="font_normal_body">签订状态:</label>
25
+ <v-select
26
+ v-model="model.f_signature_state"
27
+ condition=" f_signature_state ='{}'"
28
+ :value.sync="model.f_signature_state"
29
+ :options='$parent.$parent.Status'
30
+ class="select select_list"
31
+ :value-single="true"
32
+ close-on-select ></v-select>
33
+ </div>
34
+ <div class="form-group col-sm-3 button-range">
35
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
36
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
37
+ <div
38
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
39
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
40
+ class="button_spacing"
41
+ style="float: right">
42
+ </div>
43
+ </div>
44
+ </div>
45
+ <div class="row" v-show="$parent.$parent.criteriaShow">
46
+ </div>
47
+ </div>
48
+ </criteria>
49
+ <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
50
+ <template partial='head'>
51
+ <tr>
52
+ <th>序号</th>
53
+ <th>工程编号</th>
54
+ <th>工程名称</th>
55
+ <th>合同名称</th>
56
+ <th>签订状态</th>
57
+ <th>操作</th>
58
+ </tr>
59
+ </template>
60
+ <template partial='body'>
61
+ <tr>
62
+ <td style="text-align: center;">
63
+ <nobr><font>{{$index+1}}</font></nobr>
64
+ </td>
65
+ <td style="text-align: center;" >
66
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
67
+ </td>
68
+ <td style="text-align: center;" >
69
+ <nobr><font>{{row.f_entry_name}}</font></nobr>
70
+ </td>
71
+ <td style="text-align: center;" >
72
+ <nobr><font>{{row.f_contract_name}}</font></nobr>
73
+ </td>
74
+ <td style="text-align: center;" >
75
+ <nobr><font>{{row.f_signature_state}}</font></nobr>
76
+ </td>
77
+ <td style="text-align: center;" >
78
+ <button v-if="row.f_signature_state!=='已签订'" type="button" name="button" class="btn btn-link"
79
+ @click.stop="$parent.$parent.$parent.Signed(row)">签字
80
+ </button>
81
+ </td>
82
+ </tr>
83
+ </template>
84
+ </data-grid>
85
+ </criteria-paged>
86
+ </div>
87
+ </div>
88
+ </template>
89
+ <script>
90
+ import {HttpResetClass, PagedList} from 'vue-client'
91
+ import QXClient from '../../../components/QXClient'
92
+ import { urlToBase64 } from '../../../components/SignTools'
93
+ import {runLogic} from 'vue-client/src/util/apiUtils';
94
+ export default {
95
+ title: '合同列表',
96
+ data () {
97
+ return {
98
+ model: new PagedList('rs/sql/getContractList', 30),
99
+ curorgid: [this.$login.f.orgid],
100
+ curdepid: [],
101
+ curuserid: [],
102
+ contractname: [{ label: '全部', value: ''},...this.$appdata.getParam('报建签订合同')],
103
+ Status: [
104
+ {label: '全部', value: ''},
105
+ {label: '已签订', value: '已签订'},
106
+ {label: '待签订', value: '待签订'}
107
+ ],
108
+ criteriaShow: false,
109
+ }
110
+ },
111
+ ready () {
112
+ this.search()
113
+ },
114
+ methods: {
115
+ Signed (record) {
116
+ this.$showMessage(`是否选择当前合同进行签字`, ['confirm']).then( (res) => {
117
+ if (res === 'confirm') {
118
+ if (record.f_contract_url) {
119
+ const base64Data =urlToBase64(record.f_signature_url)
120
+ QXClient.openPDFSign({
121
+ data: {
122
+ pdfdata: base64Data
123
+ },
124
+ successCallback: (response) => {
125
+ console.log('>>> 签名结果:', JSON.stringify(response))
126
+ if (response.image) {
127
+ runLogic('contractSignature', {
128
+ image: response.image,
129
+ ...record
130
+ },'af-revenue').then(async res2 => {
131
+ console.log('PDF 签名成功:', res2)
132
+ if (res2.f_signature_url) {
133
+ //修改t_files文件
134
+ let http = new HttpResetClass()
135
+ let sql = `update t_files set f_downloadpath= '${res2.f_signature_url}' , f_realpath= '${res2.f_signature_path}' where f_process_id= '${row.f_process_id}' and fusetype='${row.f_contract_signature_id}'`
136
+ let res = await http.load('POST', `rs/logic/runSQL`, {data: {sql: sql}}, {
137
+ resolveMsg: null,
138
+ rejectMsg: '修改文件失败!!!'
139
+ })
140
+ } else {
141
+ console.error('未找到合同URL,无法打开预览')
142
+
143
+ }
144
+ })
145
+ }
146
+ },
147
+ errorCallback: (error) => {
148
+ this.$showMessage('签字失败')
149
+ }
150
+ })
151
+ } else {
152
+ this.$showMessage("未找到该合同文件")
153
+ }
154
+ }
155
+ })
156
+ },
157
+ clear () {
158
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
159
+ this.$refs.cp.$refs.cri.model[key] = ''
160
+ })
161
+ this.curdepid = []
162
+ this.curuserid = []
163
+ },
164
+ searchCondition (args) {
165
+ args.condition = args.condition + ` and tcs.f_orgid in (${this.curorgid})`
166
+ if( args.model.f_contract_name==='' || args.model.f_contract_name==null){
167
+ args.condition = args.condition + ` and tcs.f_contract_name in ${this.getname}`
168
+ }
169
+ this.model.search(args.condition, args.model)
170
+ },
171
+ // 查询
172
+ search () {
173
+ this.$refs.cp.$refs.cri.search()
174
+ },
175
+
176
+ getuser (val) {
177
+ if (val.length <= 0) {
178
+ return
179
+ }
180
+ this.curuserid = val
181
+ this.search()
182
+ },
183
+ getdep (val) {
184
+ if (val.length <= 0) {
185
+ return
186
+ }
187
+ this.curdepid = val
188
+ this.curuserid = []
189
+ this.search()
190
+ },
191
+ getorg (val) {
192
+ if (val.length <= 0) {
193
+ return
194
+ }
195
+ this.curorgid = val
196
+ this.curdepid = []
197
+ this.curuserid = []
198
+ this.search()
199
+ },
200
+
201
+ },
202
+ computed: {
203
+ getname () {
204
+ let list = this.$appdata.getParam('报建签订合同')
205
+ return `(${list.map(item => `'${item.value}'`).toString()})`
206
+ },
207
+ getCondition () {
208
+ return {
209
+ condition: this.model.condition
210
+ }
211
+ }
212
+ }
213
+ }
214
+ </script>
215
+
216
+ <style scoped>
217
+ </style>
218
+
219
+ <style scoped>
220
+ </style>