|
@@ -402,6 +402,22 @@
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template v-slot:technologyRouteName="scope">
|
|
|
|
|
+ <el-form-item
|
|
|
|
|
+ :prop="'datasource.' + scope.$index + '.technologyRouteName'"
|
|
|
|
|
+ :rules="{
|
|
|
|
|
+ required: false,
|
|
|
|
|
+ message: '请选择',
|
|
|
|
|
+ trigger: 'change'
|
|
|
|
|
+ }"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="scope.row.technologyRouteName"
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ @click.native="openVersion(scope.$index)"
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </template>
|
|
|
<template v-slot:headerCustomerExpectDeliveryDeadline="{ column }">
|
|
<template v-slot:headerCustomerExpectDeliveryDeadline="{ column }">
|
|
|
<span class="is-required">{{ column.label }}</span>
|
|
<span class="is-required">{{ column.label }}</span>
|
|
|
</template>
|
|
</template>
|
|
@@ -441,6 +457,10 @@
|
|
|
@changeParent="changeParent"
|
|
@changeParent="changeParent"
|
|
|
></product-list>
|
|
></product-list>
|
|
|
<head-list ref="headRef" @changeParent="changeAnswer"></head-list>
|
|
<head-list ref="headRef" @changeParent="changeAnswer"></head-list>
|
|
|
|
|
+ <ProductionVersion
|
|
|
|
|
+ ref="versionRefs"
|
|
|
|
|
+ @changeProduct="changeProduct"
|
|
|
|
|
+ ></ProductionVersion>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -449,6 +469,8 @@
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
import fileUpload from '@/components/upload/fileUpload';
|
|
import fileUpload from '@/components/upload/fileUpload';
|
|
|
import headList from '@/components/headList';
|
|
import headList from '@/components/headList';
|
|
|
|
|
+ import ProductionVersion from '@/components/ProductionVersion2/index.vue';
|
|
|
|
|
+
|
|
|
const dayjs = require('dayjs');
|
|
const dayjs = require('dayjs');
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -456,7 +478,8 @@
|
|
|
components: {
|
|
components: {
|
|
|
productList,
|
|
productList,
|
|
|
fileUpload,
|
|
fileUpload,
|
|
|
- headList
|
|
|
|
|
|
|
+ headList,
|
|
|
|
|
+ ProductionVersion
|
|
|
},
|
|
},
|
|
|
props: {
|
|
props: {
|
|
|
contractStartDate: {},
|
|
contractStartDate: {},
|
|
@@ -676,6 +699,13 @@
|
|
|
label: '技术图纸',
|
|
label: '技术图纸',
|
|
|
slot: 'technicalDrawings'
|
|
slot: 'technicalDrawings'
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 240,
|
|
|
|
|
+ prop: 'technologyRouteName',
|
|
|
|
|
+ label: '工艺路线',
|
|
|
|
|
+ slot: 'technologyRouteName',
|
|
|
|
|
+ show: this.contractBookType == 1 ? true : false
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
width: 240,
|
|
width: 240,
|
|
|
prop: 'industryArtFiles',
|
|
prop: 'industryArtFiles',
|
|
@@ -749,7 +779,7 @@
|
|
|
watch: {
|
|
watch: {
|
|
|
contractBookType(n) {
|
|
contractBookType(n) {
|
|
|
this.columns.forEach((item) => {
|
|
this.columns.forEach((item) => {
|
|
|
- if (item.label == '生产交付交期') {
|
|
|
|
|
|
|
+ if (item.label == '生产交付交期'||item.label == '工艺路线') {
|
|
|
item.show = n == 1 ? true : false;
|
|
item.show = n == 1 ? true : false;
|
|
|
}
|
|
}
|
|
|
if (item.prop == 'customerExpectDeliveryDeadline') {
|
|
if (item.prop == 'customerExpectDeliveryDeadline') {
|
|
@@ -760,6 +790,18 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ openVersion(index) {
|
|
|
|
|
+ this.$refs.versionRefs.open(index);
|
|
|
|
|
+ },
|
|
|
|
|
+ //工艺路线
|
|
|
|
|
+ changeProduct(data, index) {
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.form.datasource[index],
|
|
|
|
|
+ 'technologyRouteName',
|
|
|
|
|
+ data.name
|
|
|
|
|
+ );
|
|
|
|
|
+ this.$set(this.form.datasource[index], 'technologyRouteId', data.id);
|
|
|
|
|
+ },
|
|
|
setDeliveryDays(row, index, type, isAll) {
|
|
setDeliveryDays(row, index, type, isAll) {
|
|
|
if (isAll) {
|
|
if (isAll) {
|
|
|
this.form.datasource.forEach((item, i) => {
|
|
this.form.datasource.forEach((item, i) => {
|