|
@@ -65,7 +65,6 @@
|
|
|
{{ row.planCode }}</el-link
|
|
{{ row.planCode }}</el-link
|
|
|
>
|
|
>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
|
|
|
|
|
<!-- 操作列 -->
|
|
<!-- 操作列 -->
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
@@ -95,7 +94,11 @@
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
icon="el-icon-plus"
|
|
icon="el-icon-plus"
|
|
|
@click="addGenerateContract([row])"
|
|
@click="addGenerateContract([row])"
|
|
|
- v-if="[2].includes(row.status)"
|
|
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ [2].includes(row.status) &&
|
|
|
|
|
+ ((isAddContract == 1 && row.genContractNum == 0) ||
|
|
|
|
|
+ isAddContract == 0)
|
|
|
|
|
+ "
|
|
|
>
|
|
>
|
|
|
生成合同
|
|
生成合同
|
|
|
</el-link>
|
|
</el-link>
|
|
@@ -167,6 +170,7 @@
|
|
|
import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
|
|
import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
|
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
|
import { reviewStatus } from '@/enum/dict';
|
|
import { reviewStatus } from '@/enum/dict';
|
|
|
|
|
+ import { parameterGetByCode } from '@/api/main/index.js';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins, tabMixins],
|
|
mixins: [dictMixins, tabMixins],
|
|
@@ -197,6 +201,7 @@
|
|
|
processSubmitDialogFlag: false,
|
|
processSubmitDialogFlag: false,
|
|
|
loading: false, // 加载状态
|
|
loading: false, // 加载状态
|
|
|
treeList: [],
|
|
treeList: [],
|
|
|
|
|
+ isAddContract: 0,
|
|
|
columns: [
|
|
columns: [
|
|
|
{
|
|
{
|
|
|
width: 45,
|
|
width: 45,
|
|
@@ -316,9 +321,9 @@
|
|
|
label: '状态',
|
|
label: '状态',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
formatter: (_row, _column, cellValue) => {
|
|
formatter: (_row, _column, cellValue) => {
|
|
|
- return reviewStatus[cellValue]
|
|
|
|
|
|
|
+ return reviewStatus[cellValue];
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
minWidth: 120
|
|
minWidth: 120
|
|
|
},
|
|
},
|
|
@@ -346,6 +351,12 @@
|
|
|
computed: {},
|
|
computed: {},
|
|
|
created() {
|
|
created() {
|
|
|
this.getTreeData();
|
|
this.getTreeData();
|
|
|
|
|
+ //是否可以重复生成合同//0否 1是
|
|
|
|
|
+ parameterGetByCode({
|
|
|
|
|
+ code: 'eom_inquiry_add_contract'
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ this.isAddContract = res.value || 0;
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
/* 表格数据源 */
|
|
/* 表格数据源 */
|
|
@@ -353,7 +364,7 @@
|
|
|
if (this.purchasePlanId) {
|
|
if (this.purchasePlanId) {
|
|
|
where['planId'] = this.purchasePlanId;
|
|
where['planId'] = this.purchasePlanId;
|
|
|
}
|
|
}
|
|
|
- if(this.sonPurchasePlanIds){
|
|
|
|
|
|
|
+ if (this.sonPurchasePlanIds) {
|
|
|
where['planIds'] = this.sonPurchasePlanIds;
|
|
where['planIds'] = this.sonPurchasePlanIds;
|
|
|
}
|
|
}
|
|
|
return getTableList({
|
|
return getTableList({
|
|
@@ -537,8 +548,7 @@
|
|
|
// .catch((e) => {
|
|
// .catch((e) => {
|
|
|
// this.$message.error(e.message);
|
|
// this.$message.error(e.message);
|
|
|
// });
|
|
// });
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|