apply-clients 3.5.4-66 → 3.5.4-68
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 +1 -1
- package/src/components/product/Function/Service/FunctionServiceControl.vue +1 -1
- package/src/components/product/ServiceView.vue +1 -0
- package/src/filiale/gongyi/android/AppSign.vue +16 -3
- package/src/filiale/gongyi/pc/ApplyUpload.vue +30 -37
- package/src/filiale/gongyi/pc/PcAddLogs.vue +4 -0
- package/src/filiale/gongyi/pc/PcLegacyIssues.vue +8 -13
- package/src/filiale/gongyi/pc/addMaterialScience.vue +12 -1
- package/src/filiale/gongyi/pc/chargeManagement.vue +2 -0
- package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +7 -3
package/package.json
CHANGED
|
@@ -31,6 +31,19 @@ export default {
|
|
|
31
31
|
console.log('在ready里打印一下this.filePath',this.filePath)
|
|
32
32
|
this.f_sign_path = this.filePath
|
|
33
33
|
console.log('在ready里打印一下this.f_sign_path',this.f_sign_path)
|
|
34
|
+
//判断this.filePath
|
|
35
|
+
if (this.filePath !== null || this.filePath !== '') {
|
|
36
|
+
// 定义照片格式的扩展名数组
|
|
37
|
+
const imageExtensions = ['.jpg', '.jpeg', '.png', '.gif', '.bmp', '.tiff'];
|
|
38
|
+
// 获取文件扩展名
|
|
39
|
+
const fileExtension = this.filePath.toLowerCase().substring(this.filePath.lastIndexOf('.'));
|
|
40
|
+
// 判断文件扩展名是否在照片格式数组中
|
|
41
|
+
if (imageExtensions.includes(fileExtension)) {
|
|
42
|
+
console.log('这是一个照片文件');
|
|
43
|
+
} else {
|
|
44
|
+
this.f_sign_path=null
|
|
45
|
+
}
|
|
46
|
+
}
|
|
34
47
|
this.getFiles()
|
|
35
48
|
},
|
|
36
49
|
methods: {
|
|
@@ -80,8 +93,8 @@ export default {
|
|
|
80
93
|
console.log('-----------bzLogic-----------------')
|
|
81
94
|
console.log(JSON.stringify(data))
|
|
82
95
|
let res = HostApp.bzLogic({
|
|
83
|
-
|
|
84
|
-
|
|
96
|
+
'logic': 'appFileUpload',
|
|
97
|
+
'data': data
|
|
85
98
|
})
|
|
86
99
|
console.log('===============上传回调=================')
|
|
87
100
|
console.log(JSON.stringify(res))
|
|
@@ -108,7 +121,7 @@ export default {
|
|
|
108
121
|
debugger
|
|
109
122
|
fileUrl= `${this.$androidUtil.getProxyUrl()}/${newPath}`
|
|
110
123
|
}else {
|
|
111
|
-
|
|
124
|
+
fileUrl = `${this.$androidUtil.getProxyUrl()}/${res.data[0].f_downloadpath.substring(res.data[0].f_downloadpath.lastIndexOf(":\\") + 2)}`
|
|
112
125
|
}
|
|
113
126
|
console.log(fileUrl)
|
|
114
127
|
this.f_sign_path = fileUrl
|
|
@@ -2,14 +2,25 @@
|
|
|
2
2
|
<div class="col-sm-12" style="background-color: #FFFFFF">
|
|
3
3
|
<div class="col-sm-12" style="padding:50px 100px;height: 25%">
|
|
4
4
|
<div class="form-group col-sm-5" v-if="issearch">
|
|
5
|
+
<label class="col-sm-2 control-label">文件类型:</label>
|
|
5
6
|
<v-select
|
|
6
7
|
class="select select_list"
|
|
7
8
|
:value.sync="useType"
|
|
8
|
-
width="
|
|
9
|
+
width="50%"
|
|
9
10
|
v-model="useType"
|
|
10
11
|
:options='typeOfUse'
|
|
11
12
|
:valueSingle="true"></v-select>
|
|
12
13
|
</div>
|
|
14
|
+
<div class="form-group col-sm-5" v-if="issearch" >
|
|
15
|
+
<label class="col-sm-2 control-label">环节:</label>
|
|
16
|
+
<v-select
|
|
17
|
+
class="select select_list"
|
|
18
|
+
:value.sync="defname"
|
|
19
|
+
width="50%"
|
|
20
|
+
v-model="defname"
|
|
21
|
+
:options='defnames'
|
|
22
|
+
:valueSingle="true"></v-select>
|
|
23
|
+
</div>
|
|
13
24
|
<div class="form-group col-sm-2" style="text-align: center" v-if="issearch">
|
|
14
25
|
<button type="button" class="btn btn-primary item_btn" @click="load">搜索</button>
|
|
15
26
|
</div>
|
|
@@ -43,7 +54,7 @@
|
|
|
43
54
|
<p :title="row.fremarks" class="clears"><strong>文件说明:</strong>{{row.fremarks}}</p>
|
|
44
55
|
<p class="clears">
|
|
45
56
|
<a v-if="row.f_filetype === 'jpg' || row.f_filetype === 'txt' || row.f_filetype==='png' || row.f_filetype==='gif' || row.f_filetype==='bmp'" :href="row.f_downloadURL" style="background:#6aa6e2" class="btn btn-primary" target="_blank" role="button">预览</a>
|
|
46
|
-
<a v-else @click="downloadfile(row.f_downloadURL)" style="background:#6aa6e2" class="btn btn-primary" role="button">下载</a>
|
|
57
|
+
<a v-else @click="downloadfile(row.f_downloadURL,row)" style="background:#6aa6e2" class="btn btn-primary" role="button">下载</a>
|
|
47
58
|
<a v-if="isdelete" @click="delet($index, row)" href="#" class="btn btn-default" role="button" role="button">删除</a>
|
|
48
59
|
</p>
|
|
49
60
|
</div>
|
|
@@ -102,11 +113,14 @@ export default {
|
|
|
102
113
|
props: ['blodid', 'businessid', 'isremark', 'isusetype', 'takeimg', 'defname', 'isupload', 'isdelete', 'bootstraped', 'issearch','source'],
|
|
103
114
|
data () {
|
|
104
115
|
return {
|
|
116
|
+
unlookfile: [ ...this.$appdata.getParam('附件限制类型')],
|
|
117
|
+
defnames: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建节点')],
|
|
105
118
|
fileInfoData: [], // 数据库存储的文件记录对象数组
|
|
106
119
|
headers: {'username': this.$login.f.name, 'blodid': '','businessid':'', 'fremarks': '','defname':'','fusetype':''}, // 调用rs/file/uploadFile 的参数
|
|
107
120
|
showUpload: false, // 上传模态框控制
|
|
108
121
|
showhighmeter: false, // 高拍仪组件控制
|
|
109
|
-
useType: null
|
|
122
|
+
useType: null,
|
|
123
|
+
defname:null
|
|
110
124
|
}
|
|
111
125
|
},
|
|
112
126
|
ready () {
|
|
@@ -118,31 +132,6 @@ export default {
|
|
|
118
132
|
}
|
|
119
133
|
},
|
|
120
134
|
methods: {
|
|
121
|
-
checkrole(){
|
|
122
|
-
let arry =this.$appdata.getParam(this.defname+'附件')
|
|
123
|
-
if(arry!==undefined && arry!==null){
|
|
124
|
-
for (let i = 0; i < arry.length; i++) {
|
|
125
|
-
if(this.$login.f.rolestr.includes(arry[i].value )){
|
|
126
|
-
this.look=true
|
|
127
|
-
}
|
|
128
|
-
if(this.$login.r.includes('查看全部附件') || this.look){
|
|
129
|
-
this.headers.blodid = this.blodid
|
|
130
|
-
this.headers.businessid = this.businessid
|
|
131
|
-
this.headers.defname = this.defname
|
|
132
|
-
if (this.blodid || this.businessid) {
|
|
133
|
-
this.load()
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}else{
|
|
138
|
-
this.headers.blodid = this.blodid
|
|
139
|
-
this.headers.businessid = this.businessid
|
|
140
|
-
this.headers.defname = this.defname
|
|
141
|
-
if (this.blodid || this.businessid) {
|
|
142
|
-
this.load()
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
135
|
delet(index, row) {
|
|
147
136
|
//判断是否有删除文件的权限
|
|
148
137
|
if(this.$login.r.includes('附件删除')){
|
|
@@ -155,7 +144,16 @@ export default {
|
|
|
155
144
|
}
|
|
156
145
|
},
|
|
157
146
|
// 下载
|
|
158
|
-
downloadfile(filepath){
|
|
147
|
+
downloadfile(filepath,row){
|
|
148
|
+
//判断当前文件的使用类型,是否是限制查看的附件
|
|
149
|
+
for (let i = 0; i < this.unlookfile.length; i++) {
|
|
150
|
+
if(row.fusetype===this.unlookfile[i].value){
|
|
151
|
+
if(!this.$login.r.includes('查看全部附件')){
|
|
152
|
+
this.$showMessage('您暂无查看当前附件的权限')
|
|
153
|
+
return
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
159
157
|
let name1= this.extractFileNameFromUrl(filepath)
|
|
160
158
|
let name=this.extractFileName(name1)
|
|
161
159
|
if(filepath.toString().endsWith(".dwg")){
|
|
@@ -218,13 +216,12 @@ export default {
|
|
|
218
216
|
}else{
|
|
219
217
|
condition = `f_blobid= '${this.headers.blodid}' `
|
|
220
218
|
}
|
|
221
|
-
if(!this.$login.r.includes('查看全部附件')){
|
|
222
|
-
//有权限查看所有,没有权限,限制环节
|
|
223
|
-
condition +=` and defname not in ${this.appDefnames} `
|
|
224
|
-
}
|
|
225
219
|
if (!isEmpty(this.useType)) {
|
|
226
220
|
condition += `and fusetype like '${this.useType}'`
|
|
227
221
|
}
|
|
222
|
+
if (!isEmpty(this.defname)) {
|
|
223
|
+
condition += `and defname = '${this.defname}'`
|
|
224
|
+
}
|
|
228
225
|
let http = new HttpResetClass()
|
|
229
226
|
let data = {
|
|
230
227
|
tablename: 't_files',
|
|
@@ -322,10 +319,6 @@ export default {
|
|
|
322
319
|
computed: {
|
|
323
320
|
typeOfUse () {
|
|
324
321
|
return [{label: '全部', value: ''}, ...this.$appdata.getParam('报建-使用类型')]
|
|
325
|
-
},
|
|
326
|
-
appDefnames () {
|
|
327
|
-
let list = this.$appdata.getParam('附件限制节点')
|
|
328
|
-
return `(${list.map(item => `'${item.value}'`).toString()})`
|
|
329
322
|
}
|
|
330
323
|
},
|
|
331
324
|
events: {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
<data-grid :model="onetomany" class="list_area table_sy">
|
|
4
4
|
<template partial='head'>
|
|
5
5
|
<tr>
|
|
6
|
+
<th class="textNoLineBreak">记录人</th>
|
|
6
7
|
<th class="textNoLineBreak">日期</th>
|
|
7
8
|
<th class="textNoLineBreak">类型</th>
|
|
8
9
|
<th class="textNoLineBreak">内容</th>
|
|
@@ -14,6 +15,9 @@
|
|
|
14
15
|
</template>
|
|
15
16
|
<template partial='body'>
|
|
16
17
|
<tr>
|
|
18
|
+
<td style="text-align: center;">
|
|
19
|
+
<nobr>{{row.f_operator}}</nobr>
|
|
20
|
+
</td>
|
|
17
21
|
<td style="text-align: center;">
|
|
18
22
|
<nobr>{{row.f_operation_date}}</nobr>
|
|
19
23
|
</td>
|
|
@@ -99,14 +99,9 @@
|
|
|
99
99
|
</div>
|
|
100
100
|
</div>
|
|
101
101
|
<div class="form-group col-sm-6" >
|
|
102
|
-
<label class="col-sm-4 control-label"
|
|
102
|
+
<label class="col-sm-4 control-label">处理结果:</label>
|
|
103
103
|
<div class="col-sm-8">
|
|
104
|
-
<input-
|
|
105
|
-
class="select select_list"
|
|
106
|
-
:value.sync="item.f_dispose_manner"
|
|
107
|
-
v-model="item.f_dispose_manner"
|
|
108
|
-
:options="disOptions"
|
|
109
|
-
:valueSingle="true"></input-select>
|
|
104
|
+
<input v-model="item.f_dispose_manner"></input>
|
|
110
105
|
</div>
|
|
111
106
|
</div>
|
|
112
107
|
</div>
|
|
@@ -182,7 +177,7 @@ export default {
|
|
|
182
177
|
id:this.content[0].id,
|
|
183
178
|
f_process_id:this.selectdata.f_process_id,
|
|
184
179
|
f_dispose_time:new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
185
|
-
f_dispose_person:
|
|
180
|
+
f_dispose_person:this.$login.f.name,
|
|
186
181
|
f_dispose_manner:this.content[0].f_dispose_manner,
|
|
187
182
|
f_is_dispose:this.content[0].f_is_dispose
|
|
188
183
|
}
|
|
@@ -218,8 +213,8 @@ export default {
|
|
|
218
213
|
f_process_id:this.selectdata.f_process_id,
|
|
219
214
|
f_operation_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
220
215
|
f_log_content:this.materials[0].f_log_content,
|
|
221
|
-
f_operator:
|
|
222
|
-
f_operator_id:
|
|
216
|
+
f_operator:this.$login.f.name,
|
|
217
|
+
f_operator_id:this.$login.f.id
|
|
223
218
|
}
|
|
224
219
|
let data = {
|
|
225
220
|
tableName:'t_legacy_issues',
|
|
@@ -240,8 +235,8 @@ export default {
|
|
|
240
235
|
f_process_id:this.selectdata.f_process_id,
|
|
241
236
|
f_operation_date:new Date().Format('yyyy-MM-dd HH:mm:ss'),
|
|
242
237
|
f_log_content:this.materials[0].f_log_content,
|
|
243
|
-
f_operator:
|
|
244
|
-
f_operator_id:
|
|
238
|
+
f_operator:this.$login.f.name,
|
|
239
|
+
f_operator_id:this.$login.f.id
|
|
245
240
|
}
|
|
246
241
|
let data = {
|
|
247
242
|
tableName:'t_legacy_issues',
|
|
@@ -300,9 +295,9 @@ export default {
|
|
|
300
295
|
this.showMaterialModal = true
|
|
301
296
|
},
|
|
302
297
|
closeMaterials() {
|
|
298
|
+
this.showdispose= false
|
|
303
299
|
this.getOnetoManyData()
|
|
304
300
|
this.showMaterialModal = false
|
|
305
|
-
this.showdispose= false
|
|
306
301
|
}
|
|
307
302
|
}
|
|
308
303
|
}
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
:value.sync="item.material"
|
|
98
98
|
v-model="item.material"
|
|
99
99
|
:options="meterialOptions"
|
|
100
|
-
:disable="mark
|
|
100
|
+
:disable="mark===1"
|
|
101
101
|
@change="modifyOtherValue(i)"
|
|
102
102
|
:valueSingle="true"></input-select>
|
|
103
103
|
</div>
|
|
@@ -107,6 +107,7 @@
|
|
|
107
107
|
<div class="col-sm-8">
|
|
108
108
|
<input class="form-control input_view" style="" type="text"
|
|
109
109
|
placeholder="材料名称"
|
|
110
|
+
:readonly="enable"
|
|
110
111
|
v-model="item.f_material_name"
|
|
111
112
|
:value="item.f_material_name"
|
|
112
113
|
/>
|
|
@@ -117,6 +118,7 @@
|
|
|
117
118
|
<div class="col-sm-8">
|
|
118
119
|
<input class="form-control input_view" style="" type="text"
|
|
119
120
|
placeholder="材料型号"
|
|
121
|
+
:readonly="enable"
|
|
120
122
|
v-model="item.f_material_style"
|
|
121
123
|
:value="item.f_material_style"
|
|
122
124
|
/>
|
|
@@ -127,6 +129,7 @@
|
|
|
127
129
|
<div class="col-sm-8">
|
|
128
130
|
<input class="form-control input_view" style="" type="text"
|
|
129
131
|
placeholder="材料编码"
|
|
132
|
+
:readonly="enable"
|
|
130
133
|
v-model="item.f_material_code"
|
|
131
134
|
:value="item.f_material_code"
|
|
132
135
|
/>
|
|
@@ -137,6 +140,7 @@
|
|
|
137
140
|
<div class="col-sm-8">
|
|
138
141
|
<input class="form-control input_view" style="" type="text"
|
|
139
142
|
placeholder="材料单位"
|
|
143
|
+
:readonly="enable"
|
|
140
144
|
v-model="item.f_material_unit"
|
|
141
145
|
:value="item.f_material_unit"
|
|
142
146
|
/>
|
|
@@ -157,6 +161,7 @@
|
|
|
157
161
|
<div class="col-sm-8">
|
|
158
162
|
<input class="form-control input_view" style="" type="number"
|
|
159
163
|
placeholder="使用数量"
|
|
164
|
+
:readonly="enable"
|
|
160
165
|
v-model="item.f_use_number"
|
|
161
166
|
:value="item.f_use_number"
|
|
162
167
|
/>
|
|
@@ -169,6 +174,7 @@
|
|
|
169
174
|
<input class="form-control input_view" style="" type="number"
|
|
170
175
|
placeholder="退库数量"
|
|
171
176
|
v-model="item.f_back_number"
|
|
177
|
+
:readonly="enable"
|
|
172
178
|
:value.sync="item.f_back_number"
|
|
173
179
|
/>
|
|
174
180
|
</div>
|
|
@@ -179,6 +185,7 @@
|
|
|
179
185
|
<input class="form-control input_view" style=""
|
|
180
186
|
placeholder="材料标识"
|
|
181
187
|
v-model="item.f_material_code"
|
|
188
|
+
:readonly="enable"
|
|
182
189
|
:value.sync="item.f_material_code"
|
|
183
190
|
/>
|
|
184
191
|
</div>
|
|
@@ -213,6 +220,7 @@
|
|
|
213
220
|
},
|
|
214
221
|
data () {
|
|
215
222
|
return {
|
|
223
|
+
enable:false,
|
|
216
224
|
showMaterial: false,
|
|
217
225
|
showFile: false,
|
|
218
226
|
Rematerials:[
|
|
@@ -262,6 +270,9 @@
|
|
|
262
270
|
},
|
|
263
271
|
ready(){
|
|
264
272
|
this.getOnetoManyData()
|
|
273
|
+
if(this.selectdata.defname==="材料用量审核"){
|
|
274
|
+
this.enable = true
|
|
275
|
+
}
|
|
265
276
|
},
|
|
266
277
|
methods: {
|
|
267
278
|
ReturnInventory(row) {
|
|
@@ -624,17 +624,21 @@
|
|
|
624
624
|
let otherdetail = []
|
|
625
625
|
if (this.payNumber == 0) {
|
|
626
626
|
otherdetail.push({
|
|
627
|
-
f_brand_spec: ['
|
|
627
|
+
f_brand_spec: ['报建通气物料'],
|
|
628
628
|
f_typename: ['材料费'],
|
|
629
629
|
f_typenumber: [],
|
|
630
630
|
f_unitprice: 0,
|
|
631
631
|
f_number: this.material.length
|
|
632
632
|
})
|
|
633
633
|
} else {
|
|
634
|
+
var str="报建通气物料"
|
|
634
635
|
this.material.forEach((row) => {
|
|
635
|
-
if (row.f_material_price
|
|
636
|
+
if (row.f_material_price !== 0) {
|
|
637
|
+
if(row.f_material_name.name==="自闭阀"){
|
|
638
|
+
str="自闭阀"
|
|
639
|
+
}
|
|
636
640
|
otherdetail.push({
|
|
637
|
-
f_brand_spec: [`${
|
|
641
|
+
f_brand_spec: [`${str}`],
|
|
638
642
|
f_typename: [`${row.f_material_name.name}`],
|
|
639
643
|
f_typenumber: [`${row.f_typenumber.name}`],
|
|
640
644
|
f_unitprice: row.f_material_price,
|