|
@@ -577,9 +577,9 @@
|
|
|
@click="productionPerformanceForm.productionId = scope.row.id, openProductionCheckDialog()">
|
|
|
四审报告
|
|
|
</el-button>
|
|
|
- <el-button v-if="currentNode.nodeCode === 'STATEMENT_IN' || currentNode.nodeCode === 'REPORT_IN'"
|
|
|
+ <el-button v-if="(currentNode.nodeCode === 'STATEMENT_IN' || currentNode.nodeCode === 'REPORT_IN') && scope.row.repertoryState === null"
|
|
|
type="text" size="small" @click="openWareHouseDialog(scope.row);">产品入库</el-button>
|
|
|
- <el-button v-if="currentNode.nodeCode === 'STATEMENT_OUT' || currentNode.nodeCode === 'REPORT_OUT'"
|
|
|
+ <el-button v-if="(currentNode.nodeCode === 'STATEMENT_OUT' || currentNode.nodeCode === 'REPORT_OUT') && scope.row.repertoryState === false"
|
|
|
type="text" size="small" @click="openWareHouseDialog(scope.row);">产品出库</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -1057,7 +1057,7 @@
|
|
|
</div>
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
|
- <el-dialog :visible.sync="productionCheckDialogVisible">
|
|
|
+ <el-dialog :visible.sync="productionCheckDialogVisible" @close="resetProductionForm">
|
|
|
<el-form ref="productionPerformanceForm" :model="productionPerformanceForm">
|
|
|
<div class="createMajor-main-container">
|
|
|
<div class="postInfo-container">
|
|
@@ -1100,6 +1100,28 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <div v-if="currentNode.nodeCode === 'RECHECK_REPORT' || currentNode.nodeCode === 'FOURTH_CHECK_REPORT'">
|
|
|
+ <el-row class="row-style">
|
|
|
+ <el-col>
|
|
|
+ <el-form-item label="特殊情况说明:" prop="comment" label-width="150px" class="postInfo-container-item">
|
|
|
+ <el-input v-model="assetsProductionForm.comment" :autosize="{ minRows: 4, maxRows: 4 }"
|
|
|
+ class="filter-item" type="textarea" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="row-style">
|
|
|
+ <el-col>
|
|
|
+ <el-form-item :rules="{ required: true, message: '请上传附件资料', trigger: 'changes' }" prop="filePath"
|
|
|
+ label="资料附件:" label-width="120px" class="postInfo-container-item">
|
|
|
+ <el-upload action="/api/upload" :limit="3" :on-success="changeresProduction" :on-exceed="handleExceed"
|
|
|
+ :on-preview="handleAttachmentPreview" :before-remove="beforeRemovePro" :file-list="fileList">
|
|
|
+ <el-button plain type="info" round style="width: 100%">上传附件<i
|
|
|
+ class="el-icon-upload el-icon--right"></i></el-button>
|
|
|
+ </el-upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
<el-row>
|
|
|
<el-col>
|
|
|
<el-button style="width:100%;" @click="saveQuality()">提交</el-button>
|
|
@@ -1225,7 +1247,8 @@ export default {
|
|
|
currentNodeInstanceCode: null,
|
|
|
ifCheckTask: true,
|
|
|
ifPay: null,
|
|
|
- doFourthCheck: false
|
|
|
+ doFourthCheck: false,
|
|
|
+ ifProductionFund: false
|
|
|
},
|
|
|
currentNode: {
|
|
|
flowId: null,
|
|
@@ -1618,7 +1641,6 @@ export default {
|
|
|
this.getProductionList();
|
|
|
this.nodeBusinessInfo.reportNos.push(this.pageParams.row.statementNo);
|
|
|
},
|
|
|
-
|
|
|
methods: {
|
|
|
// 根据业务id获取资产业务详情
|
|
|
getAssetsDetailById(id) {
|
|
@@ -1913,6 +1935,10 @@ export default {
|
|
|
this.nodeBusinessInfo.currentNodePermission.skippable = res.data.skippable;
|
|
|
this.nodeBusinessInfo.currentNodePermission.terminable = res.data.terminable;
|
|
|
this.nodeBusinessInfo.businessId = this.pageParams.row.assetsId;
|
|
|
+
|
|
|
+ if(this.currentNode.nodeCode === 'REPORT_IN'){
|
|
|
+ this.getProductionRealAmount(this.pageParams.row.reportNo);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -2605,6 +2631,13 @@ export default {
|
|
|
},
|
|
|
// 根据业务类型,产品id及checkLoop获取质检信息
|
|
|
openProductionCheckDialog() {
|
|
|
+ this.$api.assets.getAssetsProductionDetail(this.productionPerformanceForm.productionId).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.assetsProductionForm = res.data;
|
|
|
+ this.assetsProductionForm.filePath = JSON.parse(res.data.filePath);
|
|
|
+ this.fileList = this.assetsProductionForm.filePath;
|
|
|
+ }
|
|
|
+ })
|
|
|
const curNode = this.currentNode.nodeCode;
|
|
|
if (!this.isCheckValue && !(curNode === 'REVIEW_STATEMENT' || curNode === 'CHECK_REPORT')) {
|
|
|
this.productionCheckDialogVisible = true;
|
|
@@ -2653,6 +2686,7 @@ export default {
|
|
|
type: 'success',
|
|
|
duration: 3000
|
|
|
});
|
|
|
+ this.updateProductionFileInfo();
|
|
|
this.productionCheckDialogVisible = false;
|
|
|
}
|
|
|
})
|
|
@@ -2665,6 +2699,7 @@ export default {
|
|
|
type: 'success',
|
|
|
duration: 3000
|
|
|
});
|
|
|
+ this.updateProductionFileInfo();
|
|
|
this.productionCheckDialogVisible = false;
|
|
|
}
|
|
|
})
|
|
@@ -2678,6 +2713,20 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ // 根据资产产品id更新文件路由信息
|
|
|
+ updateProductionFileInfo() {
|
|
|
+ this.assetsProductionForm.filePath = JSON.stringify(this.assetsProductionForm.filePath);
|
|
|
+ this.$api.assets.updateProductionFileInfo(this.assetsProductionForm).then(res => {
|
|
|
+ if (res.code === 200 && res.data) {
|
|
|
+ this.$notify({
|
|
|
+ title: '成功',
|
|
|
+ message: '产品附件保存成功',
|
|
|
+ type: 'success',
|
|
|
+ duration: 3000
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 打开产品出入库弹窗
|
|
|
openWareHouseDialog(row) {
|
|
|
this.warehouseDialog = true;
|
|
@@ -2691,6 +2740,7 @@ export default {
|
|
|
this.wareHouseProductionType = null;
|
|
|
this.wareHouseproductionId = null;
|
|
|
},
|
|
|
+ // 产品出入库
|
|
|
doWareHouse() {
|
|
|
let productionNo = this.scanEntryData
|
|
|
let wareHoaseDto = new Object();
|
|
@@ -2728,20 +2778,29 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
// 判断流程是否进行四审
|
|
|
- flowDoFourthCheck(){
|
|
|
- if(this.currentNode.nodeCode == 'RECHECK_REPORT'){
|
|
|
+ flowDoFourthCheck() {
|
|
|
+ if (this.currentNode.nodeCode == 'RECHECK_REPORT') {
|
|
|
// 判断评估值是否超过8000万
|
|
|
let isSubstantialAssets = this.assetsEvaluationTarget.reduce((sum, obj) => { return sum + obj.estimatedValue; }, 0) > 8000;
|
|
|
// 获取是否有评估目的为搬迁、司法涉讼的评估对象
|
|
|
- let isLawsuit = this.assetsEvaluationTarget.some(obj => obj.purposeName === '搬迁' || obj.purposeName === '资产涉讼' );
|
|
|
+ let isLawsuit = this.assetsEvaluationTarget.some(obj => obj.purposeName === '搬迁' || obj.purposeName === '资产涉讼');
|
|
|
// 获取是否证券项目
|
|
|
let isSecurity = this.assetsForm.security;
|
|
|
// 是否证券项目,或是否评估目的搬迁、诉讼,或是否价值大于8000万
|
|
|
- if(isSecurity || isLawsuit || isSubstantialAssets){
|
|
|
+ if (isSecurity || isLawsuit || isSubstantialAssets) {
|
|
|
this.nodeBusinessInfo.doFourthCheck = true;
|
|
|
}
|
|
|
- console.log(isSubstantialAssets,isLawsuit,isSecurity,this.nodeBusinessInfo.doFourthCheck);
|
|
|
}
|
|
|
+ },
|
|
|
+ // 根据产品号获取产品实收款
|
|
|
+ getProductionRealAmount(productionNo) {
|
|
|
+ this.$api.assets.getProductionRealAmount(productionNo).then(res => {
|
|
|
+ if (res.code === 200 && res.data !== null) {
|
|
|
+ this.nodeBusinessInfo.ifProductionFund = true;
|
|
|
+ } else {
|
|
|
+ this.nodeBusinessInfo.ifProductionFund = false;
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
|