|
|
@@ -18,9 +18,9 @@
|
|
|
icon="el-icon-plus"
|
|
|
class="ele-btn-icon"
|
|
|
@click="handlAdd"
|
|
|
- v-if="!taskDefinitionKey||taskDefinitionKey!='produceLeader'"
|
|
|
+ v-if="!taskDefinitionKey || taskDefinitionKey != 'produceLeader'"
|
|
|
>
|
|
|
- 新增{{ taskDefinitionKey }}
|
|
|
+ 新增
|
|
|
</el-button>
|
|
|
<div class="pricebox">
|
|
|
<span class="amount" v-if="isSinglePrice"
|
|
|
@@ -52,7 +52,7 @@
|
|
|
<el-input
|
|
|
v-model="row.productName"
|
|
|
placeholder="请输入"
|
|
|
- :disabled="taskDefinitionKey=='produceLeader'"
|
|
|
+ :disabled="taskDefinitionKey == 'produceLeader'"
|
|
|
@click.native="handParent(row, $index)"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
@@ -333,7 +333,7 @@
|
|
|
<el-form-item
|
|
|
:prop="'datasource.' + scope.$index + '.produceDeliveryDeadline'"
|
|
|
:rules="{
|
|
|
- required:taskDefinitionKey=='produceLeader'?true:false,
|
|
|
+ required: taskDefinitionKey == 'produceLeader' ? true : false,
|
|
|
message: '请输入',
|
|
|
trigger: 'change'
|
|
|
}"
|
|
|
@@ -405,10 +405,13 @@
|
|
|
<template v-slot:headerCustomerExpectDeliveryDeadline="{ column }">
|
|
|
<span class="is-required">{{ column.label }}</span>
|
|
|
</template>
|
|
|
- <template v-slot:headeProduceDeliveryDeadline="{ column }" v-if="taskDefinitionKey=='produceLeader'">
|
|
|
+ <template
|
|
|
+ v-slot:headeProduceDeliveryDeadline="{ column }"
|
|
|
+ v-if="taskDefinitionKey == 'produceLeader'"
|
|
|
+ >
|
|
|
<span class="is-required">{{ column.label }}</span>
|
|
|
</template>
|
|
|
-
|
|
|
+
|
|
|
<template
|
|
|
v-slot:headerSingleWeight="{ column }"
|
|
|
v-if="taskDefinitionKey === 'technicianApprove'"
|
|
|
@@ -422,7 +425,7 @@
|
|
|
class="ele-action"
|
|
|
title="确定要删除吗?"
|
|
|
@confirm="remove(row)"
|
|
|
- v-if="taskDefinitionKey!='produceLeader'"
|
|
|
+ v-if="taskDefinitionKey != 'produceLeader'"
|
|
|
>
|
|
|
<template v-slot:reference>
|
|
|
<el-link type="danger" :underline="false" icon="el-icon-delete">
|
|
|
@@ -478,7 +481,10 @@
|
|
|
type: Boolean
|
|
|
},
|
|
|
taskDefinitionKey: {},
|
|
|
- pageName: { type: String }
|
|
|
+ pageName: { type: String },
|
|
|
+ contractBookType: {
|
|
|
+ default: 1
|
|
|
+ }
|
|
|
},
|
|
|
data() {
|
|
|
const defaultForm = {
|
|
|
@@ -613,7 +619,7 @@
|
|
|
{
|
|
|
width: 160,
|
|
|
prop: 'customerExpectDeliveryDeadline',
|
|
|
- label: '客户期望交期',
|
|
|
+ label: this.contractBookType == 1 ? '客户期望交期' : '交付日期',
|
|
|
slot: 'customerExpectDeliveryDeadline',
|
|
|
headerSlot: 'headerCustomerExpectDeliveryDeadline'
|
|
|
},
|
|
|
@@ -622,8 +628,9 @@
|
|
|
prop: 'produceDeliveryDeadline',
|
|
|
label: '生产交付交期',
|
|
|
slot: 'produceDeliveryDeadline',
|
|
|
- headerSlot: 'headeProduceDeliveryDeadline'
|
|
|
-
|
|
|
+ headerSlot: 'headeProduceDeliveryDeadline',
|
|
|
+ show: this.contractBookType == 1 ? true : false
|
|
|
+ // show:this.contractBookType===1?true:false
|
|
|
},
|
|
|
|
|
|
{
|
|
|
@@ -708,8 +715,8 @@
|
|
|
if (
|
|
|
[
|
|
|
'productionSupervisorApprove1',
|
|
|
- 'productionSupervisorApprove2','produceLeader'
|
|
|
-
|
|
|
+ 'productionSupervisorApprove2',
|
|
|
+ 'produceLeader'
|
|
|
].includes(this.taskDefinitionKey) ||
|
|
|
!this.taskDefinitionKey
|
|
|
) {
|
|
|
@@ -739,6 +746,19 @@
|
|
|
return false;
|
|
|
}
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ contractBookType(n) {
|
|
|
+ this.columns.forEach((item) => {
|
|
|
+ if (item.label == '生产交付交期') {
|
|
|
+ item.show = n == 1 ? true : false;
|
|
|
+ }
|
|
|
+ if (item.prop == 'customerExpectDeliveryDeadline') {
|
|
|
+ item.label = n == 1 ? '客户期望交期' : '交付日期';
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.$refs.table.reRenderTable();
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
setDeliveryDays(row, index, type, isAll) {
|
|
|
if (isAll) {
|
|
|
@@ -819,6 +839,7 @@
|
|
|
v.technicalDrawings = v.technicalDrawings ? v.technicalDrawings : [];
|
|
|
v.customerReqFiles = v.customerReqFiles || [];
|
|
|
v.industryArtFiles = v.industryArtFiles || [];
|
|
|
+
|
|
|
v.otherFiles = v.otherFiles || [];
|
|
|
});
|
|
|
return comitDatasource;
|
|
|
@@ -857,7 +878,11 @@
|
|
|
//修改回显
|
|
|
putTableValue(data) {
|
|
|
let productList =
|
|
|
- (data && (data.redressProductList||data.quoteProductList || data.productList)) || [];
|
|
|
+ (data &&
|
|
|
+ (data.redressProductList ||
|
|
|
+ data.quoteProductList ||
|
|
|
+ data.productList)) ||
|
|
|
+ [];
|
|
|
if (productList) {
|
|
|
productList.forEach((item) => {
|
|
|
item.guaranteePeriodUnitCode = item.guaranteePeriodUnitCode + '';
|