|
|
@ -1,5 +1,24 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<basic-container> |
|
|
|
<basic-container> |
|
|
|
|
|
|
|
<template > |
|
|
|
|
|
|
|
<el-row :span="24"> |
|
|
|
|
|
|
|
<div class="check_status_class"> |
|
|
|
|
|
|
|
<span > |
|
|
|
|
|
|
|
<el-col > |
|
|
|
|
|
|
|
审核状态: |
|
|
|
|
|
|
|
<el-select v-model="checkStatusValue"> |
|
|
|
|
|
|
|
<el-option |
|
|
|
|
|
|
|
v-for="item in optionCheckStatus" |
|
|
|
|
|
|
|
:key="item.value" |
|
|
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
|
|
:value="item.value"> |
|
|
|
|
|
|
|
</el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
</template> |
|
|
|
<avue-tabs :option="option" |
|
|
|
<avue-tabs :option="option" |
|
|
|
@change="handleChange"></avue-tabs> |
|
|
|
@change="handleChange"></avue-tabs> |
|
|
|
<span v-if="type.prop==='information'"> |
|
|
|
<span v-if="type.prop==='information'"> |
|
|
@ -55,7 +74,7 @@ |
|
|
|
:upload-after="uploadAfter" |
|
|
|
:upload-after="uploadAfter" |
|
|
|
:upload-preview="(file) => handleUploadPreview(file)" |
|
|
|
:upload-preview="(file) => handleUploadPreview(file)" |
|
|
|
:upload-delete="(file) => handleUploadDelete(file)"> |
|
|
|
:upload-delete="(file) => handleUploadDelete(file)"> |
|
|
|
<template #accessoryName="scope"> |
|
|
|
<template #accessoryNameExt="scope"> |
|
|
|
<el-link type="primary" :underline="false" @click="handleDownload(scope.row)">{{scope.row.prAccessoryName}}</el-link> |
|
|
|
<el-link type="primary" :underline="false" @click="handleDownload(scope.row)">{{scope.row.prAccessoryName}}</el-link> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template #menu="{row,index,size}"> |
|
|
|
<template #menu="{row,index,size}"> |
|
|
@ -113,15 +132,13 @@ import { |
|
|
|
parameters_add, |
|
|
|
parameters_add, |
|
|
|
parameters_update, |
|
|
|
parameters_update, |
|
|
|
parameters_remove, |
|
|
|
parameters_remove, |
|
|
|
parameters_tools_getListBylegerId, |
|
|
|
parameters_tools_getListBylegerId |
|
|
|
parameters_Del |
|
|
|
|
|
|
|
} from "@/api/leger/techparameters"; |
|
|
|
} from "@/api/leger/techparameters"; |
|
|
|
import { |
|
|
|
import { |
|
|
|
document_add, |
|
|
|
document_add, |
|
|
|
document_update, |
|
|
|
document_update, |
|
|
|
document_remove, |
|
|
|
document_remove, |
|
|
|
document_tools_getListBylegerId, |
|
|
|
document_tools_getListBylegerId |
|
|
|
document_Del |
|
|
|
|
|
|
|
} from "@/api/leger/inventorydocument"; |
|
|
|
} from "@/api/leger/inventorydocument"; |
|
|
|
import {mapGetters} from "vuex"; |
|
|
|
import {mapGetters} from "vuex"; |
|
|
|
import website from "@/config/website"; |
|
|
|
import website from "@/config/website"; |
|
|
@ -131,6 +148,17 @@ export default { |
|
|
|
name: "equipmentledgerDetail", |
|
|
|
name: "equipmentledgerDetail", |
|
|
|
data () { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
checkStatusValue: this.$route.query.checkstatus, |
|
|
|
|
|
|
|
optionCheckStatus: [{ |
|
|
|
|
|
|
|
value: 1, |
|
|
|
|
|
|
|
label: '审核中' |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
value: 2, |
|
|
|
|
|
|
|
label: '已审核' |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
value: 3, |
|
|
|
|
|
|
|
label: '未通过' |
|
|
|
|
|
|
|
}], |
|
|
|
frame_class: '', |
|
|
|
frame_class: '', |
|
|
|
type: {}, |
|
|
|
type: {}, |
|
|
|
shouldShowButton:{}, |
|
|
|
shouldShowButton:{}, |
|
|
@ -411,7 +439,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '附件', |
|
|
|
label: '附件', |
|
|
|
prop: 'accessoryName', |
|
|
|
prop: 'accessoryNameExt', |
|
|
|
dataType: 'object', |
|
|
|
dataType: 'object', |
|
|
|
fileType: 'img',//img/video/audio |
|
|
|
fileType: 'img',//img/video/audio |
|
|
|
type: 'upload', |
|
|
|
type: 'upload', |
|
|
@ -421,7 +449,7 @@ export default { |
|
|
|
res: 'data', |
|
|
|
res: 'data', |
|
|
|
}, |
|
|
|
}, |
|
|
|
data: { |
|
|
|
data: { |
|
|
|
fileType: "1"// 静态台账-文档清册 |
|
|
|
fileType: "2"// 工器具台账-文档清册 |
|
|
|
}, |
|
|
|
}, |
|
|
|
headers: { |
|
|
|
headers: { |
|
|
|
}, |
|
|
|
}, |
|
|
@ -451,6 +479,7 @@ export default { |
|
|
|
this.shouldShowButton=true; |
|
|
|
this.shouldShowButton=true; |
|
|
|
this.addUpdateShowButton=false; |
|
|
|
this.addUpdateShowButton=false; |
|
|
|
this.frame_class = 'frame_class1'; |
|
|
|
this.frame_class = 'frame_class1'; |
|
|
|
|
|
|
|
this.checkStatusValue = this.$route.query.checkstatus; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
this.readonlyForm=false; |
|
|
|
this.readonlyForm=false; |
|
|
|
this.shouldShowButton=false; |
|
|
|
this.shouldShowButton=false; |
|
|
@ -484,7 +513,7 @@ export default { |
|
|
|
this.tab1_form.checkStatus="1" |
|
|
|
this.tab1_form.checkStatus="1" |
|
|
|
add(this.tab1_form).then(()=>{ |
|
|
|
add(this.tab1_form).then(()=>{ |
|
|
|
this.$router.push({ |
|
|
|
this.$router.push({ |
|
|
|
path: "/leger/equipmentledger", |
|
|
|
path: "/leger/toolinventoryrecord", |
|
|
|
query: { |
|
|
|
query: { |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
@ -507,7 +536,7 @@ export default { |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
update(this.tab1_form).then(() => { |
|
|
|
update(this.tab1_form).then(() => { |
|
|
|
this.$router.push({ |
|
|
|
this.$router.push({ |
|
|
|
path: "/leger/equipmentledger", |
|
|
|
path: "/leger/toolinventoryrecord", |
|
|
|
query: {}, |
|
|
|
query: {}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.$message({ |
|
|
|
this.$message({ |
|
|
@ -525,7 +554,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
back() { |
|
|
|
back() { |
|
|
|
if(this.$route.query.frameMode=="add") { |
|
|
|
if(this.$route.query.frameMode=="add") { |
|
|
|
this.$router.push({path: "/leger/equipmentledger"}); |
|
|
|
this.$router.push({path: "/leger/toolinventoryrecord"}); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
this.updateToSearch(); |
|
|
|
this.updateToSearch(); |
|
|
|
this.SearchDetail(); |
|
|
|
this.SearchDetail(); |
|
|
@ -727,7 +756,7 @@ export default { |
|
|
|
submitRejectOrauditing() { |
|
|
|
submitRejectOrauditing() { |
|
|
|
update(this.tab1_form).then(() => { |
|
|
|
update(this.tab1_form).then(() => { |
|
|
|
this.$router.push({ |
|
|
|
this.$router.push({ |
|
|
|
path: "/leger/equipmentledger", |
|
|
|
path: "/leger/toolinventoryrecord", |
|
|
|
query: {}, |
|
|
|
query: {}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.$message({ |
|
|
|
this.$message({ |
|
|
@ -749,7 +778,7 @@ export default { |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
remove(this.tab1_form.id).then(() => { |
|
|
|
remove(this.tab1_form.id).then(() => { |
|
|
|
this.$router.push({ |
|
|
|
this.$router.push({ |
|
|
|
path: "/leger/equipmentledger", |
|
|
|
path: "/leger/toolinventoryrecord", |
|
|
|
query: {}, |
|
|
|
query: {}, |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.$message({ |
|
|
|
this.$message({ |
|
|
@ -792,6 +821,8 @@ export default { |
|
|
|
window.open(`/api/system/file/download?daf-auth=${getToken()}&fileName=${row.accessoryName}`); |
|
|
|
window.open(`/api/system/file/download?daf-auth=${getToken()}&fileName=${row.accessoryName}`); |
|
|
|
}, |
|
|
|
}, |
|
|
|
uploadAfter(response, done) { |
|
|
|
uploadAfter(response, done) { |
|
|
|
|
|
|
|
debugger |
|
|
|
|
|
|
|
console.log(response) |
|
|
|
// response 是服务器响应 |
|
|
|
// response 是服务器响应 |
|
|
|
this.document_form.accessoryName = response.fileName; |
|
|
|
this.document_form.accessoryName = response.fileName; |
|
|
|
this.document_form.prAccessoryName = response.name; |
|
|
|
this.document_form.prAccessoryName = response.name; |
|
|
@ -829,8 +860,15 @@ export default { |
|
|
|
padding-left: 15px; |
|
|
|
padding-left: 15px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.container { |
|
|
|
.check_status_class { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: flex-end; /* 将子元素推到容器的末端 */ |
|
|
|
justify-content: flex-end; /* 将子元素推到容器的末端 */ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.check_status_class input.el-input__inner { |
|
|
|
|
|
|
|
border: none; |
|
|
|
|
|
|
|
box-shadow: none; |
|
|
|
|
|
|
|
outline: none; |
|
|
|
|
|
|
|
pointer-events: none; |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|