|
@@ -1112,6 +1112,23 @@
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
+ <el-row class="row-style">
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="8" :span="6">
|
|
|
|
+ <el-form-item label="产品初稿:" label-width="120px" class="postInfo-container-item">
|
|
|
|
+ <span v-for="file in props.row.filePathList" :key="file.name">
|
|
|
|
+ <el-link @click="officeFileView(file.name, file.url)">{{ file.name }}</el-link>
|
|
|
|
+ </span>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="8" :span="6">
|
|
|
|
+ <el-form-item label="产品审核稿:" label-width="140px" class="postInfo-container-item">
|
|
|
|
+ <span v-for="file in props.row.filePathList1" :key="file.name">
|
|
|
|
+ <el-link @click="officeFileView(file.name, file.url)">{{ file.name }}</el-link>
|
|
|
|
+ </span>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
</div>
|
|
</div>
|
|
</el-form>
|
|
</el-form>
|
|
</template>
|
|
</template>
|
|
@@ -2592,7 +2609,6 @@
|
|
terminal:false,
|
|
terminal:false,
|
|
description:null
|
|
description:null
|
|
},
|
|
},
|
|
- doUpload:false,
|
|
|
|
productionFinance: [],
|
|
productionFinance: [],
|
|
qrCodeUrl:null
|
|
qrCodeUrl:null
|
|
}
|
|
}
|
|
@@ -2602,7 +2618,6 @@
|
|
this.showBtn = this.$route.query.showBtn ==='true';
|
|
this.showBtn = this.$route.query.showBtn ==='true';
|
|
this.couldBack = this.$route.query.couldBack ==='true';
|
|
this.couldBack = this.$route.query.couldBack ==='true';
|
|
this.reportNo = this.$route.query.reportNo;
|
|
this.reportNo = this.$route.query.reportNo;
|
|
- this.production = this.$route.query.pt;
|
|
|
|
this.statementNo = this.$route.query.statementNo;
|
|
this.statementNo = this.$route.query.statementNo;
|
|
this.saveOrderBtn = this.$route.query.saveOrderBtn;
|
|
this.saveOrderBtn = this.$route.query.saveOrderBtn;
|
|
this.majorId = this.$route.query.id;
|
|
this.majorId = this.$route.query.id;
|
|
@@ -2632,7 +2647,7 @@
|
|
this.getWorkflowLogs();
|
|
this.getWorkflowLogs();
|
|
}
|
|
}
|
|
if (this.activeTagName === 'producution'){
|
|
if (this.activeTagName === 'producution'){
|
|
- this.getProductions(this.majorId,(this.reportNo==null?this.statementNo:this.reportNo));
|
|
|
|
|
|
+ this.getProductions(this.majorId,this.statementNo,this.reportNo);
|
|
}
|
|
}
|
|
if (this.activeTagName === 'quality'){
|
|
if (this.activeTagName === 'quality'){
|
|
this.getPerformance(this.majorId,(this.reportNo==null?this.statementNo:this.reportNo));
|
|
this.getPerformance(this.majorId,(this.reportNo==null?this.statementNo:this.reportNo));
|
|
@@ -2666,7 +2681,7 @@
|
|
}
|
|
}
|
|
if (tab.name === 'producution'){
|
|
if (tab.name === 'producution'){
|
|
this.getLandTargetList();
|
|
this.getLandTargetList();
|
|
- this.getProductions(this.majorId,(this.reportNo==null?this.statementNo:this.reportNo));
|
|
|
|
|
|
+ this.getProductions(this.majorId,this.statementNo,this.reportNo);
|
|
}
|
|
}
|
|
// if (tab.name === 'performance'){
|
|
// if (tab.name === 'performance'){
|
|
// if ( this.performance.allots.length==0){
|
|
// if ( this.performance.allots.length==0){
|
|
@@ -2834,18 +2849,12 @@
|
|
if (this.majorId){
|
|
if (this.majorId){
|
|
const obj = new Object();
|
|
const obj = new Object();
|
|
obj.majorId = this.majorId;
|
|
obj.majorId = this.majorId;
|
|
- obj.statementNo =this.statementNo;
|
|
|
|
- if (!this.production){
|
|
|
|
|
|
+ if (this.statementNo){
|
|
|
|
+ obj.statementNo =this.statementNo;
|
|
|
|
+ }
|
|
|
|
+ if (this.reportNo ){
|
|
if (this.feedback.production.includes("REPORT")){
|
|
if (this.feedback.production.includes("REPORT")){
|
|
- obj.reportNo = this.reportNo;
|
|
|
|
- }else{
|
|
|
|
- obj.letterNo = this.reportNo;
|
|
|
|
- }
|
|
|
|
- }else{
|
|
|
|
- if (this.production === 'STATEMENT'){
|
|
|
|
- obj.statementNo = this.reportNo;
|
|
|
|
- } else if (this.production === 'REPORT'){
|
|
|
|
- obj.reportNo = this.reportNo;
|
|
|
|
|
|
+ obj.reportNo = this.reportNo;
|
|
}else{
|
|
}else{
|
|
obj.letterNo = this.reportNo;
|
|
obj.letterNo = this.reportNo;
|
|
}
|
|
}
|
|
@@ -2854,7 +2863,9 @@
|
|
this.$api.majorTarget.list(obj).then(res=>{
|
|
this.$api.majorTarget.list(obj).then(res=>{
|
|
if (res.code === 200){
|
|
if (res.code === 200){
|
|
this.evaluateLandData = res.data;
|
|
this.evaluateLandData = res.data;
|
|
- this.statementNo = this.evaluateLandData[0].statementNo
|
|
|
|
|
|
+ if (this.evaluateLandData.length===1){
|
|
|
|
+ this.statementNo = this.evaluateLandData[0].statementNo
|
|
|
|
+ }
|
|
let totalAcreages = [];
|
|
let totalAcreages = [];
|
|
let totalValues = this.evaluateLandData.map(item=>item.evaluateValue);
|
|
let totalValues = this.evaluateLandData.map(item=>item.evaluateValue);
|
|
if (this.major.businessObjectType === '土地'){
|
|
if (this.major.businessObjectType === '土地'){
|
|
@@ -2890,12 +2901,14 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- getProductions(majorId,reportNo){
|
|
|
|
|
|
+ getProductions(majorId,statementNo,reportNo){
|
|
|
|
+
|
|
if (majorId){
|
|
if (majorId){
|
|
let pro = {
|
|
let pro = {
|
|
majorId:majorId,
|
|
majorId:majorId,
|
|
reportNo:reportNo,
|
|
reportNo:reportNo,
|
|
- sequence:this.currentNode.sequence
|
|
|
|
|
|
+ statementNo:statementNo,
|
|
|
|
+ sequence:this.currentNode.sequence,
|
|
}
|
|
}
|
|
this.$api.majorProduction.list(pro).then(res=>{
|
|
this.$api.majorProduction.list(pro).then(res=>{
|
|
if (res.code === 200 ){
|
|
if (res.code === 200 ){
|
|
@@ -3293,7 +3306,35 @@
|
|
},
|
|
},
|
|
showQrCode(url){
|
|
showQrCode(url){
|
|
this.qrCodeUrl = url;
|
|
this.qrCodeUrl = url;
|
|
- }
|
|
|
|
|
|
+ } ,
|
|
|
|
+ handleAttachmentPreview(file) {
|
|
|
|
+ // window.open(file.url)
|
|
|
|
+ this.officeFileView(file.name, file.url);
|
|
|
|
+ },
|
|
|
|
+ // 文档预览
|
|
|
|
+ officeFileView(name, url) {
|
|
|
|
+ if (name || url) {
|
|
|
|
+ const route = this.$router.resolve({
|
|
|
|
+ path: "/office/view/window",
|
|
|
|
+ query: {
|
|
|
|
+ // 文档标题
|
|
|
|
+ title: name,
|
|
|
|
+ // 文档url地址
|
|
|
|
+ url: url,
|
|
|
|
+ mode: 'view'
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ // 在新窗口打开页面
|
|
|
|
+ window.open(route.href, "_blank");
|
|
|
|
+ } else {
|
|
|
|
+ this.$notify({
|
|
|
|
+ title: '失败',
|
|
|
|
+ message: 'url为空,无法打开,如未保存请保存后再试!',
|
|
|
|
+ type: 'error',
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ },
|
|
},
|
|
},
|
|
|
|
|
|
}
|
|
}
|