|
@@ -917,7 +917,7 @@
|
|
<el-upload class="myupload"
|
|
<el-upload class="myupload"
|
|
:action="'/api/personalProduction/upload/'+target.id+'/1'" :file-list="statementProd.files"
|
|
:action="'/api/personalProduction/upload/'+target.id+'/1'" :file-list="statementProd.files"
|
|
:limit="1" :on-exceed="handleExceed" :on-preview="handleAttachmentPreview" :on-success="getProductions"
|
|
:limit="1" :on-exceed="handleExceed" :on-preview="handleAttachmentPreview" :on-success="getProductions"
|
|
- :on-remove="handleRemoveFile" >
|
|
|
|
|
|
+ :before-remove="handleRemoveFile" >
|
|
<el-button type="text" >手动上传</el-button>
|
|
<el-button type="text" >手动上传</el-button>
|
|
</el-upload>
|
|
</el-upload>
|
|
</div>
|
|
</div>
|
|
@@ -928,11 +928,11 @@
|
|
<div style="padding: 14px;">
|
|
<div style="padding: 14px;">
|
|
<span>技术报告</span><time class="time">{{ technicReportProd.created }}</time>
|
|
<span>技术报告</span><time class="time">{{ technicReportProd.created }}</time>
|
|
<div class="control">
|
|
<div class="control">
|
|
- <el-button type="text" class="button">系统生成</el-button>
|
|
|
|
|
|
+ <el-button type="text" class="button" @click="genProductionFile(2)">系统生成</el-button>
|
|
<el-upload class="myupload"
|
|
<el-upload class="myupload"
|
|
:action="'/api/personalProduction/upload/'+target.id+'/2'" :file-list="technicReportProd.files"
|
|
:action="'/api/personalProduction/upload/'+target.id+'/2'" :file-list="technicReportProd.files"
|
|
:limit="1" :on-exceed="handleExceed" :on-preview="handleAttachmentPreview" :on-success="getProductions"
|
|
:limit="1" :on-exceed="handleExceed" :on-preview="handleAttachmentPreview" :on-success="getProductions"
|
|
- :on-remove="handleRemoveFile">
|
|
|
|
|
|
+ :before-remove="handleRemoveFile">
|
|
<el-button type="text">手动上传</el-button>
|
|
<el-button type="text">手动上传</el-button>
|
|
</el-upload>
|
|
</el-upload>
|
|
|
|
|
|
@@ -948,7 +948,7 @@
|
|
<el-upload class="myupload"
|
|
<el-upload class="myupload"
|
|
:action="'/api/personalProduction/upload/'+target.id+'/3'" :file-list="finalReprotProd.files"
|
|
:action="'/api/personalProduction/upload/'+target.id+'/3'" :file-list="finalReprotProd.files"
|
|
:limit="1" :on-exceed="handleExceed" :on-preview="handleAttachmentPreview" :on-success="getProductions"
|
|
:limit="1" :on-exceed="handleExceed" :on-preview="handleAttachmentPreview" :on-success="getProductions"
|
|
- :on-remove="handleRemoveFile">
|
|
|
|
|
|
+ :before-remove="handleRemoveFile">
|
|
<el-button type="text">手动上传</el-button>
|
|
<el-button type="text">手动上传</el-button>
|
|
</el-upload>
|
|
</el-upload>
|
|
|
|
|
|
@@ -1060,9 +1060,7 @@
|
|
import EntityInfo from '@/components/personalForms/entityInfo'
|
|
import EntityInfo from '@/components/personalForms/entityInfo'
|
|
import BackgroundInfo from '@/components/personalForms/backgroundInfo'
|
|
import BackgroundInfo from '@/components/personalForms/backgroundInfo'
|
|
import SellingAbilityInfo from '@/components/personalForms/sellingAbilityInfo'
|
|
import SellingAbilityInfo from '@/components/personalForms/sellingAbilityInfo'
|
|
- import statementPNG from '@/assets/images/statement.png'
|
|
|
|
- import technicPNG from '@/assets/images/technic.png'
|
|
|
|
- import finalPNG from '@/assets/images/final.png'
|
|
|
|
|
|
+ import existPNG from '@/assets/images/exist.png'
|
|
import emptyPNG from '@/assets/images/empty.png'
|
|
import emptyPNG from '@/assets/images/empty.png'
|
|
|
|
|
|
|
|
|
|
@@ -1110,12 +1108,6 @@
|
|
},
|
|
},
|
|
deep:true
|
|
deep:true
|
|
},
|
|
},
|
|
- // finalCardPNG:{
|
|
|
|
- // handler(nv,ov){
|
|
|
|
- // console.log(nv,ov)
|
|
|
|
- // },
|
|
|
|
- // deep:true
|
|
|
|
- // }
|
|
|
|
|
|
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -1128,15 +1120,6 @@
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
- // statementCardPNG(){
|
|
|
|
- // return this.statementProd.filePath?statementPNG:emptyPNG;
|
|
|
|
- // },
|
|
|
|
- // technicCardPNG(){
|
|
|
|
- // return this.technicReportProd.filePath?technicPNG:emptyPNG;
|
|
|
|
- // },
|
|
|
|
- // finalCardPNG(){
|
|
|
|
- // return this.finalReprotProd.filePath?finalPNG:emptyPNG;
|
|
|
|
- // }
|
|
|
|
},
|
|
},
|
|
|
|
|
|
data() {
|
|
data() {
|
|
@@ -1749,7 +1732,13 @@
|
|
this.showCred.showIdCer = !this.showCred.showIdCer;
|
|
this.showCred.showIdCer = !this.showCred.showIdCer;
|
|
},
|
|
},
|
|
genProductionFile(tag){
|
|
genProductionFile(tag){
|
|
- if (this.personal.id && this.target.id){
|
|
|
|
|
|
+ this.$confirm('系统生成将会覆盖原有文档,请确认是否继续?','提示',{
|
|
|
|
+ confirmButtonText: '确认',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ center: true
|
|
|
|
+ }).then(()=>{
|
|
|
|
+ if (this.personal.id && this.target.id){
|
|
this.$api.personalProduction.genFile(this.personal.id,tag).then(res=>{
|
|
this.$api.personalProduction.genFile(this.personal.id,tag).then(res=>{
|
|
if (res.code === 200 && res.data){
|
|
if (res.code === 200 && res.data){
|
|
this.$notify({
|
|
this.$notify({
|
|
@@ -1768,7 +1757,8 @@
|
|
});
|
|
});
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
getProductions(){
|
|
getProductions(){
|
|
if (this.target.id){
|
|
if (this.target.id){
|
|
@@ -1780,7 +1770,7 @@
|
|
this.statementProd = word;
|
|
this.statementProd = word;
|
|
const fs = [];
|
|
const fs = [];
|
|
if (word.filePath){
|
|
if (word.filePath){
|
|
- this.statementCardPNG = statementPNG;
|
|
|
|
|
|
+ this.statementCardPNG = existPNG;
|
|
const sta = JSON.parse(word.filePath)
|
|
const sta = JSON.parse(word.filePath)
|
|
sta.id= word.id;
|
|
sta.id= word.id;
|
|
fs.push(sta);
|
|
fs.push(sta);
|
|
@@ -1795,7 +1785,7 @@
|
|
if (word.filePath){
|
|
if (word.filePath){
|
|
const tec = JSON.parse(word.filePath)
|
|
const tec = JSON.parse(word.filePath)
|
|
tec.id= word.id;
|
|
tec.id= word.id;
|
|
- this.technicCardPNG = technicPNG;
|
|
|
|
|
|
+ this.technicCardPNG = existPNG;
|
|
fs.push(tec);
|
|
fs.push(tec);
|
|
}else{
|
|
}else{
|
|
this.technicCardPNG =emptyPNG;
|
|
this.technicCardPNG =emptyPNG;
|
|
@@ -1808,7 +1798,7 @@
|
|
if (word.filePath){
|
|
if (word.filePath){
|
|
const final = JSON.parse(word.filePath)
|
|
const final = JSON.parse(word.filePath)
|
|
final.id= word.id;
|
|
final.id= word.id;
|
|
- this.finalCardPNG = finalPNG;
|
|
|
|
|
|
+ this.finalCardPNG = existPNG;
|
|
fs.push(final);
|
|
fs.push(final);
|
|
}else{
|
|
}else{
|
|
this.finalCardPNG =emptyPNG;
|
|
this.finalCardPNG =emptyPNG;
|
|
@@ -1852,7 +1842,7 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
- <style scoped>
|
|
|
|
|
|
+ <style lang="scss" scoped>
|
|
|
|
|
|
.row-style{
|
|
.row-style{
|
|
margin-left:40px;
|
|
margin-left:40px;
|