xiaobai
3 years ago
60 changed files with 797 additions and 1810 deletions
@ -0,0 +1,11 @@ |
|||||
|
import api from '@/utils/api' |
||||
|
|
||||
|
export function getList(params) { |
||||
|
return api({ |
||||
|
url: '/sedirectory/getList', |
||||
|
method: 'get', |
||||
|
params |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export default { getList } |
@ -0,0 +1,39 @@ |
|||||
|
import api from '@/utils/api' |
||||
|
import qs from 'qs' |
||||
|
|
||||
|
export function add(data) { |
||||
|
return api({ |
||||
|
url: '/user', |
||||
|
method: 'post', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function edit(data) { |
||||
|
return api({ |
||||
|
url: '/user', |
||||
|
method: 'put', |
||||
|
data |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function del(params) { |
||||
|
return api({ |
||||
|
url: '/user', |
||||
|
method: 'delete', |
||||
|
params, |
||||
|
paramsSerializer: function(params) { |
||||
|
return qs.stringify(params, { indices: false }) |
||||
|
} |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export function getList(params) { |
||||
|
return api({ |
||||
|
url: '/user/list', |
||||
|
method: 'get', |
||||
|
params |
||||
|
}) |
||||
|
} |
||||
|
|
||||
|
export default { add, edit, del, getList } |
@ -0,0 +1,11 @@ |
|||||
|
import sedirectory from '@/api/sedirectory' |
||||
|
|
||||
|
export default { |
||||
|
/** |
||||
|
* 获取设备目录 |
||||
|
* @param params |
||||
|
*/ |
||||
|
getList(params) { |
||||
|
return sedirectory.getList(params) |
||||
|
} |
||||
|
} |
@ -1,132 +0,0 @@ |
|||||
<template> |
|
||||
<center> |
|
||||
<div style="width: 60%;text-align: left;margin-top: 20px;"> |
|
||||
<span style="font-size: 20px;font-weight: bold;">通用材料清单</span><span>(支持上传PDF以及Jpeg\Png图片格式)</span> |
|
||||
<div slot="tip" class="el-upload__tip" style="font-size: 14px"> |
|
||||
默认图片大小不超过2M,PDF文件不超过8M。超过大小请访问<a href="https://docsmall.com/" target="_blank"><span style="color: #00afff">https://docsmall.com/</span></a>压缩后在上传。 |
|
||||
<br> |
|
||||
<span style="color: red;">图片上传前如存在颠倒方向请纠正后在上传!!!PDF压缩后请保证文件内容清晰度(建议强力压缩)。</span> |
|
||||
</div> |
|
||||
<fieldset v-for="list in listDicData" :key="list.title"> |
|
||||
<legend>{{ list.title }}</legend> |
|
||||
<el-upload |
|
||||
:action="url" |
|
||||
:headers="headers" |
|
||||
accept="image/jpeg,image/png,.pdf" |
|
||||
multiple |
|
||||
list-type="picture-card" |
|
||||
:on-preview="handlePictureCardPreview" |
|
||||
:on-remove="handleRemove" |
|
||||
:on-success="getListDic" |
|
||||
:file-list="list.picList" |
|
||||
:limit="list.counts" |
|
||||
:on-exceed="handleExceed" |
|
||||
:before-upload="beforeAvatarUpload" |
|
||||
:data="{filesId: list.id, zhonglei: list.zhonglei, bjdId: bjdId}" |
|
||||
> |
|
||||
<i class="el-icon-plus" /> |
|
||||
</el-upload> |
|
||||
<el-dialog :visible.sync="dialogVisible"> |
|
||||
<img width="100%" :src="dialogImageUrl" alt=""> |
|
||||
</el-dialog> |
|
||||
</fieldset> |
|
||||
</div> |
|
||||
</center> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
export default { |
|
||||
name: 'UploadSjse', |
|
||||
data() { |
|
||||
return { |
|
||||
url: process.env.VUE_APP_BJD_API + 'bjdfiles/upload', |
|
||||
dialogImageUrl: '', |
|
||||
dialogVisible: false, |
|
||||
disabled: false, |
|
||||
zhonglei: '', |
|
||||
bjdId: '', |
|
||||
listDicData: [], |
|
||||
headers: { |
|
||||
'Authorization': this.$route.query.tkey |
|
||||
} |
|
||||
} |
|
||||
}, |
|
||||
created() { |
|
||||
this.zhonglei = this.$route.params.sbzl |
|
||||
this.bjdId = window.atob(this.$route.params.bjid) |
|
||||
localStorage.setItem('token', this.$route.query.tkey) |
|
||||
}, |
|
||||
mounted() { |
|
||||
this.getListDic() |
|
||||
}, |
|
||||
methods: { |
|
||||
getListDic() { |
|
||||
this.apibjd({ |
|
||||
url: '/bjdfilesdic/getListDic', |
|
||||
method: 'get', |
|
||||
params: { |
|
||||
id: this.zhonglei === '4000' ? '48' : '1', |
|
||||
zllx: this.zhonglei, |
|
||||
bjdid: this.bjdId |
|
||||
} |
|
||||
}).then(data => { |
|
||||
this.listDicData = data |
|
||||
this.listDicData.forEach(list => { |
|
||||
list.picList.forEach(pic => { |
|
||||
pic.url = process.env.VUE_APP_IMG_URL + pic.url |
|
||||
}) |
|
||||
}) |
|
||||
}) |
|
||||
}, |
|
||||
handleRemove(file) { |
|
||||
this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { |
|
||||
confirmButtonText: '确定', |
|
||||
cancelButtonText: '取消', |
|
||||
type: 'warning' |
|
||||
}).then(() => { |
|
||||
this.apibjd({ |
|
||||
url: '/bjdfiles/delFiles', |
|
||||
method: 'delete', |
|
||||
params: { |
|
||||
id: file.id, |
|
||||
name: file.name |
|
||||
} |
|
||||
}).then(data => { |
|
||||
if (data.returnCode === '100') { |
|
||||
this.$message({ message: '删除成功!!', type: 'success' }) |
|
||||
} else { |
|
||||
this.$message({ message: '删除失败!!', type: 'error' }) |
|
||||
} |
|
||||
}) |
|
||||
}).catch(() => { |
|
||||
this.$message({ |
|
||||
type: 'info', |
|
||||
message: '已取消删除' |
|
||||
}) |
|
||||
this.getListDic() |
|
||||
}) |
|
||||
}, |
|
||||
handlePictureCardPreview(file) { |
|
||||
this.dialogImageUrl = file.url |
|
||||
this.dialogVisible = true |
|
||||
}, |
|
||||
handleDownload(file) { |
|
||||
console.log(file) |
|
||||
}, |
|
||||
beforeAvatarUpload(file) { |
|
||||
const isLt2M = file.size / 1024 / 1024 < 8 |
|
||||
if (!isLt2M) { |
|
||||
this.$message.error('上传图片大小不能超过 8MB!') |
|
||||
} |
|
||||
return isLt2M |
|
||||
}, |
|
||||
handleExceed(files, fileList) { |
|
||||
this.$message.error('上传文件数超出限制,请控制在' + fileList.length + '个以内。') |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
</script> |
|
||||
|
|
||||
<style scoped> |
|
||||
|
|
||||
</style> |
|
@ -1,188 +0,0 @@ |
|||||
<template> |
|
||||
<center> |
|
||||
<div style="width: 60%;text-align: left;margin-top: 20px;"> |
|
||||
<span style="font-size: 20px;font-weight: bold;">{{ uploadType }}</span><span>(支持上传PDF以及Jpeg\Png图片格式)</span> |
|
||||
<div slot="tip" class="el-upload__tip" style="font-size: 14px"> |
|
||||
默认图片大小不超过2M,PDF文件不超过8M。超过大小请访问<a href="https://docsmall.com/" target="_blank"><span style="color: #00afff">https://docsmall.com/</span></a>压缩后在上传。 |
|
||||
<br> |
|
||||
<span style="color: red;">图片上传前如存在颠倒方向请纠正后在上传!!!PDF压缩后请保证文件内容清晰度(建议强力压缩)。</span> |
|
||||
</div> |
|
||||
<fieldset v-for="list in listDicData" :key="list.title"> |
|
||||
<legend>{{ list.title }}</legend> |
|
||||
<el-upload |
|
||||
:action="url" |
|
||||
:headers="headers" |
|
||||
accept="image/jpeg,image/png,.pdf" |
|
||||
multiple |
|
||||
list-type="picture-card" |
|
||||
:on-preview="handlePictureCardPreview" |
|
||||
:on-remove="handleRemove" |
|
||||
:on-success="getListDic" |
|
||||
:file-list="list.picList" |
|
||||
:limit="list.counts" |
|
||||
:on-exceed="handleExceed" |
|
||||
:before-upload="beforeAvatarUpload" |
|
||||
:data="{filesId: list.id, zhonglei: list.zhonglei, bjdId: bjdId, bjdParamId: bjdParamId}" |
|
||||
> |
|
||||
<i class="el-icon-plus" /> |
|
||||
</el-upload> |
|
||||
<el-dialog :visible.sync="dialogVisible"> |
|
||||
<img width="100%" :src="dialogImageUrl" alt=""> |
|
||||
</el-dialog> |
|
||||
</fieldset> |
|
||||
</div> |
|
||||
<el-dialog :visible.sync="dialogSblbVisible" title="请按项目及电梯型号分类上传"> |
|
||||
<!-- 相应的字典数据都存在字典表中 暂时无通过程序引用 --> |
|
||||
<el-button @click="checkSbzl('30001')"> |
|
||||
曳引驱动乘客电梯 |
|
||||
</el-button> |
|
||||
<el-button @click="checkSbzl('30002')"> |
|
||||
曳引驱动载货电梯 |
|
||||
</el-button> |
|
||||
<el-button @click="checkSbzl('30003')"> |
|
||||
既有住宅增设电梯 |
|
||||
</el-button> |
|
||||
<el-button @click="checkSbzl('30004')"> |
|
||||
自动扶梯与自动人行道 |
|
||||
</el-button> |
|
||||
<el-button @click="checkSbzl('30005')"> |
|
||||
液压电梯 |
|
||||
</el-button> |
|
||||
<el-button @click="checkSbzl('30006')"> |
|
||||
杂物电梯 |
|
||||
</el-button> |
|
||||
<el-button @click="checkSbzl('30007')"> |
|
||||
消防员电梯 |
|
||||
</el-button> |
|
||||
<el-button @click="checkSbzl('30008')"> |
|
||||
防爆电梯 |
|
||||
</el-button> |
|
||||
<el-button @click="checkSbzl('30009')"> |
|
||||
改造和重大修理 |
|
||||
</el-button> |
|
||||
</el-dialog> |
|
||||
</center> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
export default { |
|
||||
name: 'WenjianSjse', |
|
||||
data() { |
|
||||
return { |
|
||||
url: process.env.VUE_APP_BJD_API + 'bjdfiles/upload', |
|
||||
dialogImageUrl: '', |
|
||||
dialogVisible: false, |
|
||||
disabled: false, |
|
||||
dialogSblbVisible: false, |
|
||||
parentId: '40000', |
|
||||
zhonglei: this.$route.params.sbzl, |
|
||||
uploadType: '通用资料', |
|
||||
bjdId: window.atob(this.$route.params.bjid), |
|
||||
bjdParamId: this.$route.params.bjparamid, |
|
||||
listDicData: [], |
|
||||
headers: { |
|
||||
'Authorization': this.$route.query.tkey |
|
||||
} |
|
||||
} |
|
||||
}, |
|
||||
created() { |
|
||||
switch (this.$route.params.zlzl) { |
|
||||
case 'tyzl' : |
|
||||
this.uploadType = '通用资料' |
|
||||
break |
|
||||
case 'xssy' : |
|
||||
this.uploadType = '型式试验合格证' |
|
||||
break |
|
||||
case 'ztzl' : |
|
||||
this.uploadType = '逐台资料' |
|
||||
break |
|
||||
} |
|
||||
localStorage.setItem('token', this.$route.query.tkey) |
|
||||
}, |
|
||||
mounted() { |
|
||||
if (this.bjdParamId === undefined) { |
|
||||
this.bjdParamId = 0 |
|
||||
} |
|
||||
if (this.zhonglei === '3000') { |
|
||||
this.dialogSblbVisible = true |
|
||||
} else { |
|
||||
this.getListDic() |
|
||||
} |
|
||||
}, |
|
||||
methods: { |
|
||||
checkSbzl(val) { |
|
||||
this.dialogSblbVisible = false |
|
||||
this.parentId = val |
|
||||
this.getListDic() |
|
||||
}, |
|
||||
getListDic() { |
|
||||
this.apibjd({ |
|
||||
url: '/bjdfilesdic/getListDic', |
|
||||
method: 'get', |
|
||||
params: { |
|
||||
id: this.parentId, |
|
||||
zllx: this.uploadType, |
|
||||
bjdid: this.bjdId, |
|
||||
paramId: this.bjdParamId |
|
||||
} |
|
||||
}).then(data => { |
|
||||
this.listDicData = data |
|
||||
this.listDicData.forEach(list => { |
|
||||
list.picList.forEach(pic => { |
|
||||
pic.url = process.env.VUE_APP_IMG_URL + pic.url |
|
||||
}) |
|
||||
}) |
|
||||
}) |
|
||||
}, |
|
||||
handleRemove(file) { |
|
||||
this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { |
|
||||
confirmButtonText: '确定', |
|
||||
cancelButtonText: '取消', |
|
||||
type: 'warning' |
|
||||
}).then(() => { |
|
||||
this.apibjd({ |
|
||||
url: '/bjdfiles/delFiles', |
|
||||
method: 'delete', |
|
||||
params: { |
|
||||
id: file.id, |
|
||||
name: file.name |
|
||||
} |
|
||||
}).then(data => { |
|
||||
if (data.returnCode === '100') { |
|
||||
this.$message({ message: '删除成功!!', type: 'success' }) |
|
||||
} else { |
|
||||
this.$message({ message: '删除失败!!', type: 'error' }) |
|
||||
} |
|
||||
}) |
|
||||
}).catch(() => { |
|
||||
this.$message({ |
|
||||
type: 'info', |
|
||||
message: '已取消删除' |
|
||||
}) |
|
||||
this.getListDic() |
|
||||
}) |
|
||||
}, |
|
||||
handlePictureCardPreview(file) { |
|
||||
this.dialogImageUrl = file.url |
|
||||
this.dialogVisible = true |
|
||||
}, |
|
||||
handleDownload(file) { |
|
||||
console.log(file) |
|
||||
}, |
|
||||
beforeAvatarUpload(file) { |
|
||||
const isLt2M = file.size / 1024 / 1024 < 8 |
|
||||
if (!isLt2M) { |
|
||||
this.$message.error('上传图片大小不能超过 8MB!') |
|
||||
} |
|
||||
return isLt2M |
|
||||
}, |
|
||||
handleExceed(files, fileList) { |
|
||||
this.$message.error('上传文件数超出限制,请控制在' + fileList.length + '个以内。') |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
</script> |
|
||||
|
|
||||
<style scoped> |
|
||||
|
|
||||
</style> |
|
@ -1,134 +0,0 @@ |
|||||
<template> |
|
||||
<center> |
|
||||
<div style="width: 60%;text-align: left;margin-top: 20px;"> |
|
||||
<span style="font-size: 20px;font-weight: bold;">一对一逐台资料清单</span><span>(支持上传PDF以及Jpeg\Png图片格式)</span> |
|
||||
<div slot="tip" class="el-upload__tip" style="font-size: 14px"> |
|
||||
默认图片大小不超过2M,PDF文件不超过8M。超过大小请访问<a href="https://docsmall.com/" target="_blank"><span style="color: #00afff">https://docsmall.com/</span></a>压缩后在上传。 |
|
||||
<br> |
|
||||
<span style="color: red;">图片上传前如存在颠倒方向请纠正后在上传!!!PDF压缩后请保证文件内容清晰度(建议强力压缩)。</span> |
|
||||
</div> |
|
||||
<fieldset v-for="list in listDicData" :key="list.title"> |
|
||||
<legend>{{ list.title }}</legend> |
|
||||
<el-upload |
|
||||
:action="url" |
|
||||
:headers="headers" |
|
||||
accept="image/jpeg,image/png,.pdf" |
|
||||
list-type="picture-card" |
|
||||
multiple |
|
||||
:on-preview="handlePictureCardPreview" |
|
||||
:on-remove="handleRemove" |
|
||||
:on-success="getListDic" |
|
||||
:file-list="list.picList" |
|
||||
:limit="list.counts" |
|
||||
:on-exceed="handleExceed" |
|
||||
:before-upload="beforeAvatarUpload" |
|
||||
:data="{filesId: list.id, zhonglei: list.zhonglei, bjdId: bjdId, bjdParamId: bjdParamId}" |
|
||||
> |
|
||||
<i class="el-icon-plus" /> |
|
||||
</el-upload> |
|
||||
<el-dialog :visible.sync="dialogVisible"> |
|
||||
<img width="100%" :src="dialogImageUrl" alt=""> |
|
||||
</el-dialog> |
|
||||
</fieldset> |
|
||||
</div> |
|
||||
</center> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
export default { |
|
||||
name: 'UploadSjseParam', |
|
||||
data() { |
|
||||
return { |
|
||||
url: process.env.VUE_APP_BJD_API + 'bjdfiles/upload', |
|
||||
dialogImageUrl: '', |
|
||||
dialogVisible: false, |
|
||||
disabled: false, |
|
||||
zhonglei: '', |
|
||||
bjdId: '', |
|
||||
bjdParamId: 0, |
|
||||
listDicData: [], |
|
||||
headers: { |
|
||||
'Authorization': this.$route.query.tkey |
|
||||
} |
|
||||
} |
|
||||
}, |
|
||||
created() { |
|
||||
this.zhonglei = this.$route.params.sbzl |
|
||||
this.bjdId = window.atob(this.$route.params.bjid) |
|
||||
this.bjdParamId = this.$route.params.bjparamid |
|
||||
localStorage.setItem('token', this.$route.query.tkey) |
|
||||
}, |
|
||||
mounted() { |
|
||||
this.getListDic() |
|
||||
}, |
|
||||
methods: { |
|
||||
getListDic() { |
|
||||
this.apibjd({ |
|
||||
url: '/bjdfilesdic/getListDic', |
|
||||
method: 'get', |
|
||||
params: { |
|
||||
id: '2', |
|
||||
zllx: this.zhonglei, |
|
||||
bjdid: this.bjdId, |
|
||||
paramId: this.bjdParamId |
|
||||
} |
|
||||
}).then(data => { |
|
||||
this.listDicData = data |
|
||||
this.listDicData.forEach(list => { |
|
||||
list.picList.forEach(pic => { |
|
||||
if (parseInt(pic.paramId) === parseInt(this.bjdParamId)) { |
|
||||
pic.url = process.env.VUE_APP_IMG_URL + pic.url |
|
||||
} |
|
||||
}) |
|
||||
}) |
|
||||
}) |
|
||||
}, |
|
||||
handleRemove(file) { |
|
||||
this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { |
|
||||
confirmButtonText: '确定', |
|
||||
cancelButtonText: '取消', |
|
||||
type: 'warning' |
|
||||
}).then(() => { |
|
||||
this.apibjd({ |
|
||||
url: '/bjdfiles/delFiles', |
|
||||
method: 'delete', |
|
||||
params: { |
|
||||
id: file.id, |
|
||||
name: file.name |
|
||||
} |
|
||||
}).then(data => { |
|
||||
if (data.returnCode === '100') { |
|
||||
this.$message({ message: '删除成功!!', type: 'success' }) |
|
||||
} else { |
|
||||
this.$message({ message: '删除失败!!', type: 'error' }) |
|
||||
} |
|
||||
}) |
|
||||
}).catch(() => { |
|
||||
this.$message({ |
|
||||
type: 'info', |
|
||||
message: '已取消删除' |
|
||||
}) |
|
||||
this.getListDic() |
|
||||
}) |
|
||||
}, |
|
||||
handlePictureCardPreview(file) { |
|
||||
this.dialogImageUrl = file.url |
|
||||
this.dialogVisible = true |
|
||||
}, |
|
||||
beforeAvatarUpload(file) { |
|
||||
const isLt2M = file.size / 1024 / 1024 < 8 |
|
||||
if (!isLt2M) { |
|
||||
this.$message.error('上传图片大小不能超过 8MB!') |
|
||||
} |
|
||||
return isLt2M |
|
||||
}, |
|
||||
handleExceed(files, fileList) { |
|
||||
this.$message.error('上传文件数超出限制,请控制在' + fileList.length + '个以内。') |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
</script> |
|
||||
|
|
||||
<style scoped> |
|
||||
|
|
||||
</style> |
|
@ -1,173 +0,0 @@ |
|||||
<template> |
|
||||
<center> |
|
||||
<div style="width: 60%;text-align: left;margin-top: 20px;"> |
|
||||
<span style="font-size: 20px;font-weight: bold;">型式试验材料清单(按项目及电梯型号分类上传)</span><span>(支持上传PDF以及Jpeg\Png图片格式)</span> |
|
||||
<div slot="tip" class="el-upload__tip" style="font-size: 14px"> |
|
||||
默认图片大小不超过2M,PDF文件不超过8M。超过大小请访问<a href="https://docsmall.com/" target="_blank"><span style="color: #00afff">https://docsmall.com/</span></a>压缩后在上传。 |
|
||||
<br> |
|
||||
<span style="color: red;">图片上传前如存在颠倒方向请纠正后在上传!!!PDF压缩后请保证文件内容清晰度(建议强力压缩)。</span> |
|
||||
</div> |
|
||||
<el-tabs v-model="activeName" type="border-card"> |
|
||||
<el-tab-pane v-for="listzl in listZlData" :key="listzl.id" :label="listzl.title" :name="listzl.title"> |
|
||||
<div v-for="list in listDicData" :key="list.id"> |
|
||||
<fieldset v-if="listzl.id === list.parentId"> |
|
||||
<legend>{{ list.title }}</legend> |
|
||||
<el-upload |
|
||||
:action="url" |
|
||||
:headers="headers" |
|
||||
accept="image/jpeg,image/png,.pdf" |
|
||||
list-type="picture-card" |
|
||||
multiple |
|
||||
:on-preview="handlePictureCardPreview" |
|
||||
:on-remove="handleRemove" |
|
||||
:file-list="list.picList" |
|
||||
:limit="list.counts" |
|
||||
:data="{filesId: list.id, zhonglei: list.zhonglei, bjdId: bjdId, xingshiId: listzl.id}" |
|
||||
> |
|
||||
<i class="el-icon-plus" /> |
|
||||
</el-upload> |
|
||||
</fieldset> |
|
||||
</div> |
|
||||
</el-tab-pane> |
|
||||
</el-tabs> |
|
||||
<el-dialog :visible.sync="dialogVisible"> |
|
||||
<img width="100%" :src="dialogImageUrl" alt=""> |
|
||||
</el-dialog> |
|
||||
</div> |
|
||||
<el-dialog :visible.sync="dialogSblbVisible" title="请按项目及电梯型号分类上传"> |
|
||||
<el-button @click="checkSbzl('曳引与强制驱动电梯')"> |
|
||||
曳引与强制驱动电梯 |
|
||||
</el-button> |
|
||||
<el-button @click="checkSbzl('液压驱动电梯')"> |
|
||||
液压驱动电梯 |
|
||||
</el-button> |
|
||||
<el-button @click="checkSbzl('自动扶梯与自动人行道')"> |
|
||||
自动扶梯与自动人行道 |
|
||||
</el-button> |
|
||||
<el-button @click="checkSbzl('杂物电梯')"> |
|
||||
杂物电梯 |
|
||||
</el-button> |
|
||||
<el-button @click="checkSbzl('消防员电梯')"> |
|
||||
消防员电梯 |
|
||||
</el-button> |
|
||||
<el-button @click="checkSbzl('防爆电梯')"> |
|
||||
防爆电梯 |
|
||||
</el-button> |
|
||||
</el-dialog> |
|
||||
</center> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
export default { |
|
||||
name: 'UploadSjseXSSY', |
|
||||
data() { |
|
||||
return { |
|
||||
url: process.env.VUE_APP_BJD_API + 'bjdfiles/upload', |
|
||||
dialogImageUrl: '', |
|
||||
dialogVisible: false, |
|
||||
dialogSblbVisible: true, |
|
||||
activeName: '曳引式强制驱动电梯', |
|
||||
zhonglei: '', |
|
||||
bjdId: '', |
|
||||
listDicData: [], |
|
||||
listZlData: [], |
|
||||
headers: { |
|
||||
'Authorization': this.$route.query.tkey |
|
||||
} |
|
||||
} |
|
||||
}, |
|
||||
created() { |
|
||||
this.zhonglei = this.$route.params.sbzl |
|
||||
this.bjdId = window.atob(this.$route.params.bjid) |
|
||||
localStorage.setItem('token', this.$route.query.tkey) |
|
||||
}, |
|
||||
mounted() { |
|
||||
this.getList() |
|
||||
this.getListDic() |
|
||||
}, |
|
||||
methods: { |
|
||||
checkSbzl(val) { |
|
||||
console.log(val) |
|
||||
this.activeName = val |
|
||||
this.dialogSblbVisible = false |
|
||||
}, |
|
||||
getList() { |
|
||||
this.apibjd({ |
|
||||
url: '/bjdfilesdic/getListDic', |
|
||||
method: 'get', |
|
||||
params: { |
|
||||
id: '3', |
|
||||
zllx: this.zhonglei, |
|
||||
bjdid: 0 |
|
||||
} |
|
||||
}).then(data => { |
|
||||
this.listZlData = data |
|
||||
}) |
|
||||
}, |
|
||||
getListDic() { |
|
||||
this.apibjd({ |
|
||||
url: '/bjdfilesdic/getListDicXingshi', |
|
||||
method: 'get', |
|
||||
params: { |
|
||||
id: '3', |
|
||||
sbzl: this.zhonglei, |
|
||||
bjdid: this.bjdId |
|
||||
} |
|
||||
}).then(data => { |
|
||||
this.listDicData = data |
|
||||
this.listDicData.forEach(list => { |
|
||||
list.picList.forEach(pic => { |
|
||||
pic.url = process.env.VUE_APP_IMG_URL + pic.url |
|
||||
}) |
|
||||
}) |
|
||||
}) |
|
||||
}, |
|
||||
handleRemove(file, fileList) { |
|
||||
this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { |
|
||||
confirmButtonText: '确定', |
|
||||
cancelButtonText: '取消', |
|
||||
type: 'warning' |
|
||||
}).then(() => { |
|
||||
this.apibjd({ |
|
||||
url: '/bjdfiles/delFiles', |
|
||||
method: 'delete', |
|
||||
params: { |
|
||||
id: file.id, |
|
||||
name: file.name |
|
||||
} |
|
||||
}).then(data => { |
|
||||
if (data.returnCode === '100') { |
|
||||
this.$message({ message: '删除成功!!', type: 'success' }) |
|
||||
} else { |
|
||||
this.$message({ message: '删除失败!!', type: 'error' }) |
|
||||
} |
|
||||
}) |
|
||||
}).catch(() => { |
|
||||
this.$message({ |
|
||||
type: 'info', |
|
||||
message: '已取消删除' |
|
||||
}) |
|
||||
this.getListDic() |
|
||||
}) |
|
||||
}, |
|
||||
handlePictureCardPreview(file) { |
|
||||
this.dialogImageUrl = file.url |
|
||||
this.dialogVisible = true |
|
||||
}, |
|
||||
beforeAvatarUpload(file) { |
|
||||
const isLt2M = file.size / 1024 / 1024 < 8 |
|
||||
if (!isLt2M) { |
|
||||
this.$message.error('上传图片大小不能超过 8MB!') |
|
||||
} |
|
||||
return isLt2M |
|
||||
}, |
|
||||
handleExceed(files, fileList) { |
|
||||
this.$message.error('上传文件数超出限制,请控制在' + fileList.length + '个以内。') |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
</script> |
|
||||
|
|
||||
<style scoped> |
|
||||
|
|
||||
</style> |
|
@ -1,178 +0,0 @@ |
|||||
<template> |
|
||||
<div class="app-container"> |
|
||||
<div class="filter-container"> |
|
||||
<sticky style="margin-bottom: 10px;"> |
|
||||
<div class="sub-navbar"> |
|
||||
<el-button type="primary" icon="el-icon-edit" @click="openBaseZhongjian"> |
|
||||
标注部分设备现场检验 |
|
||||
</el-button> |
|
||||
</div> |
|
||||
</sticky> |
|
||||
<el-form :inline="true" :model="searchRw" class="demo-form-inline"> |
|
||||
<el-form-item label="设备种类"> |
|
||||
<el-input v-model="searchRw.shebeizhonglei" style="width: 100px" /> |
|
||||
</el-form-item> |
|
||||
<el-form-item label="报检单号"> |
|
||||
<el-input v-model="searchRw.serialNumber" /> |
|
||||
</el-form-item> |
|
||||
<el-form-item label="报检日期"> |
|
||||
<el-date-picker v-model="searchRw.createTime" type="date" style="width: 100%;" /> |
|
||||
</el-form-item> |
|
||||
<el-form-item label="使用单位"> |
|
||||
<el-input v-model="searchRw.shiyongdanwei" style="width: 300px" /> |
|
||||
</el-form-item> |
|
||||
<el-form-item label="使用单位地址"> |
|
||||
<el-input v-model="searchRw.shiyongdanweiDizhi" style="width: 300px" /> |
|
||||
</el-form-item> |
|
||||
<el-form-item label="施工单位"> |
|
||||
<el-input v-model="searchRw.shigongdanwei" style="width: 300px" /> |
|
||||
</el-form-item> |
|
||||
<el-form-item label="制造单位"> |
|
||||
<el-input v-model="searchRw.zhizaodanwei" style="width: 300px" /> |
|
||||
</el-form-item> |
|
||||
<el-form-item label="说明:"> |
|
||||
<span style="color: red">列表默认是黑色,如已经正确标记颜色会变更。</span> |
|
||||
</el-form-item> |
|
||||
</el-form> |
|
||||
</div> |
|
||||
<el-table |
|
||||
ref="list" |
|
||||
v-adaptive="{bottomOffset: 50}" |
|
||||
height="0" |
|
||||
:data="list" |
|
||||
width="100%" |
|
||||
size="small" |
|
||||
border |
|
||||
fit |
|
||||
highlight-current-row |
|
||||
stripe |
|
||||
:row-class-name="tableRowBfZhongjian" |
|
||||
@row-click="onRowClick" |
|
||||
@selection-change="handleSelectionChange" |
|
||||
> |
|
||||
<el-table-column type="selection" width="40" /> |
|
||||
<el-table-column align="center" label="序号" width="60" fixed="left"> |
|
||||
<template slot-scope="scope"> |
|
||||
<span v-text="getIndex(scope.$index)" /> |
|
||||
</template> |
|
||||
</el-table-column> |
|
||||
<el-table-column align="center" label="设备类别" prop="shebeileibie" width="150" /> |
|
||||
<el-table-column align="center" label="设备品种" prop="shebeipinzhong" width="150" /> |
|
||||
<el-table-column align="center" label="设备代码" prop="shebeidaima" width="180" /> |
|
||||
<el-table-column align="center" label="产品编号/出厂编号" prop="chanpinbianhao" width="220" /> |
|
||||
<el-table-column align="center" label="规格型号" prop="guigexinghao" width="220" /> |
|
||||
<el-table-column align="center" label="区划名称" prop="quhuamingcheng" width="150" /> |
|
||||
<el-table-column align="center" label="申请现场检验日期" prop="shenqingxianchangriqi" /> |
|
||||
<el-table-column align="center" label="层" prop="s1" /> |
|
||||
<el-table-column align="center" label="区段长度" prop="s14" /> |
|
||||
<el-table-column align="center" label="提升高度" prop="s16" /> |
|
||||
</el-table> |
|
||||
</div> |
|
||||
</template> |
|
||||
|
|
||||
<script> |
|
||||
import Sticky from '@/components/Sticky' |
|
||||
export default { |
|
||||
name: 'MyTask', |
|
||||
components: { Sticky }, |
|
||||
data() { |
|
||||
return { |
|
||||
list: [], |
|
||||
searchRw: {}, |
|
||||
bjdId: '', |
|
||||
multipleSelection: [], |
|
||||
selection: {}, |
|
||||
bjdZhongjian: { |
|
||||
bjdid: '', |
|
||||
xianchangriqi: '', |
|
||||
xianchangbeizhu: '', |
|
||||
renwuIds: '', |
|
||||
zhongjianstate: '1' |
|
||||
} |
|
||||
} |
|
||||
}, |
|
||||
created() { |
|
||||
localStorage.setItem('token', this.$route.query.tkey) |
|
||||
this.getList() |
|
||||
}, |
|
||||
mounted() { |
|
||||
}, |
|
||||
methods: { |
|
||||
getList() { |
|
||||
const qyid = window.atob(this.$route.params.qyid) |
|
||||
this.apibjd({ |
|
||||
url: '/bjd/getByQyId', |
|
||||
method: 'get', |
|
||||
params: { |
|
||||
qyid: qyid |
|
||||
} |
|
||||
}).then(data => { |
|
||||
this.bjdId = data |
|
||||
this.apibjd({ |
|
||||
url: '/renwu/getAllotBaseList', |
|
||||
method: 'post', |
|
||||
data: { |
|
||||
bjdIds: this.bjdId |
|
||||
} |
|
||||
}).then(data => { |
|
||||
this.searchRw = data.list[0] |
|
||||
this.list = data.list |
|
||||
}) |
|
||||
}) |
|
||||
}, |
|
||||
getIndex($index) { |
|
||||
// 表格序号 |
|
||||
return $index + 1 |
|
||||
}, |
|
||||
handleFilter() { |
|
||||
// 查询事件 |
|
||||
this.getList() |
|
||||
}, |
|
||||
onRowClick(row) { |
|
||||
this.selection = row |
|
||||
this.$refs.list.toggleRowSelection(row) |
|
||||
}, |
|
||||
handleSelectionChange: function(val) { |
|
||||
this.multipleSelection = val |
|
||||
}, |
|
||||
openBaseZhongjian() { |
|
||||
if (this.multipleSelection.length === 0) { |
|
||||
this.$message({ message: '请在列表选择要操作的数据。', type: 'warning' }) |
|
||||
return false |
|
||||
} |
|
||||
for (let i = 0; i < this.multipleSelection.length; i++) { |
|
||||
if (this.multipleSelection[i].shenqingxianchangriqi !== '' && this.multipleSelection[i].shenqingxianchangriqi !== null && this.multipleSelection[i].shenqingxianchangriqi !== undefined) { |
|
||||
this.$message({ message: '请勿重复执行标注操作。', type: 'warning' }) |
|
||||
return false |
|
||||
} |
|
||||
} |
|
||||
this.bjdZhongjian.bjdid = this.bjdId |
|
||||
this.bjdZhongjian.renwuIds = this.multipleSelection.map(rw => { |
|
||||
return rw.id |
|
||||
}).join(',') |
|
||||
this.bjdZhongjian.xianchangriqi = new Date() |
|
||||
this.apibjd({ |
|
||||
url: '/renwu/updBjdEndState', |
|
||||
method: 'post', |
|
||||
data: this.bjdZhongjian |
|
||||
}).then(data => { |
|
||||
this.$message.success('标记成功。') |
|
||||
this.getList() |
|
||||
}) |
|
||||
}, |
|
||||
tableRowBfZhongjian({ row, rowIndex }) { |
|
||||
if (row.shenqingxianchangriqi !== null) { |
|
||||
return 'xianchangriqi-row' |
|
||||
} |
|
||||
return '' |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
</script> |
|
||||
|
|
||||
<style> |
|
||||
/** 允许终检 */ |
|
||||
.el-table .xianchangriqi-row { |
|
||||
color: #0831e4; |
|
||||
} |
|
||||
</style> |
|
Loading…
Reference in new issue