|
@@ -137,9 +137,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:headerCustomerMark="{ column }">
|
|
<template v-slot:headerCustomerMark="{ column }">
|
|
|
- <span :class="isCustomerMark ? 'is-required' : ''">{{
|
|
|
|
|
- column.label
|
|
|
|
|
- }}</span>
|
|
|
|
|
|
|
+ <span class="is-required">{{ column.label }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:customerMark="{ row, $index }">
|
|
<template v-slot:customerMark="{ row, $index }">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
@@ -209,7 +207,7 @@
|
|
|
<span :class="{ 'is-required': isTotalCount }">{{ column.label }}</span>
|
|
<span :class="{ 'is-required': isTotalCount }">{{ column.label }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:headerTaxRate="{ column }">
|
|
<template v-slot:headerTaxRate="{ column }">
|
|
|
- <span :class="{ 'is-required': isTaxRate == 1 }">{{ column.label }}</span>
|
|
|
|
|
|
|
+ <span class="is-required">{{ column.label }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:totalPrice="scope">
|
|
<template v-slot:totalPrice="scope">
|
|
|
<el-form-item :prop="'datasource.' + scope.$index + '.totalPrice'">
|
|
<el-form-item :prop="'datasource.' + scope.$index + '.totalPrice'">
|
|
@@ -242,11 +240,6 @@
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
- <template v-slot:headerGuaranteePeriod="{ column }">
|
|
|
|
|
- <span :class="{ 'is-required': contractBookType == 1 }">{{
|
|
|
|
|
- column.label
|
|
|
|
|
- }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
|
|
|
<template v-slot:guaranteePeriod="scope">
|
|
<template v-slot:guaranteePeriod="scope">
|
|
|
<div class="period">
|
|
<div class="period">
|
|
@@ -273,7 +266,6 @@
|
|
|
dictName="质保期单位"
|
|
dictName="质保期单位"
|
|
|
clearable
|
|
clearable
|
|
|
v-model="scope.row.guaranteePeriodUnitCode"
|
|
v-model="scope.row.guaranteePeriodUnitCode"
|
|
|
-
|
|
|
|
|
@change="
|
|
@change="
|
|
|
setDeliveryDays(scope.row, scope.$index, 'guaranteePeriod')
|
|
setDeliveryDays(scope.row, scope.$index, 'guaranteePeriod')
|
|
|
"
|
|
"
|
|
@@ -336,7 +328,7 @@
|
|
|
</template> -->
|
|
</template> -->
|
|
|
|
|
|
|
|
<template v-slot:taxRate="scope">
|
|
<template v-slot:taxRate="scope">
|
|
|
- <el-form-item
|
|
|
|
|
|
|
+ <el-form-item
|
|
|
:prop="'datasource.' + scope.$index + '.taxRate'"
|
|
:prop="'datasource.' + scope.$index + '.taxRate'"
|
|
|
:rules="{
|
|
:rules="{
|
|
|
required: isTaxRate == 1 ? true : false,
|
|
required: isTaxRate == 1 ? true : false,
|
|
@@ -445,7 +437,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:customerExpectDeliveryDeadline="scope">
|
|
<template v-slot:customerExpectDeliveryDeadline="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- v-if="scope.row.arrivalWay == 1||!scope.row.arrivalWay"
|
|
|
|
|
|
|
+ v-if="scope.row.arrivalWay == 1 || !scope.row.arrivalWay"
|
|
|
:rules="{
|
|
:rules="{
|
|
|
required: isDate == 1 ? true : false,
|
|
required: isDate == 1 ? true : false,
|
|
|
message:
|
|
message:
|
|
@@ -611,9 +603,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:headerBatchNo="{ column }">
|
|
<template v-slot:headerBatchNo="{ column }">
|
|
|
- <span :class="isBatchNo == 1 ? 'is-required' : ''">{{
|
|
|
|
|
- column.label
|
|
|
|
|
- }}</span>
|
|
|
|
|
|
|
+ <span class="is-required">{{ column.label }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:orderNo="{ row, $index }">
|
|
<template v-slot:orderNo="{ row, $index }">
|
|
@@ -1055,7 +1045,7 @@
|
|
|
prop: 'customerMark',
|
|
prop: 'customerMark',
|
|
|
label: this.contractBookType == 1 ? '客户代号' : '供应商代号',
|
|
label: this.contractBookType == 1 ? '客户代号' : '供应商代号',
|
|
|
slot: 'customerMark',
|
|
slot: 'customerMark',
|
|
|
- headerSlot: 'headerCustomerMark',
|
|
|
|
|
|
|
+ headerSlot: this.isCustomerMark ? 'headerCustomerMark' : '',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -1089,7 +1079,7 @@
|
|
|
prop: 'saleCount',
|
|
prop: 'saleCount',
|
|
|
label: '数量',
|
|
label: '数量',
|
|
|
slot: 'saleCount',
|
|
slot: 'saleCount',
|
|
|
- headerSlot: 'headerTotalCount',
|
|
|
|
|
|
|
+ headerSlot: this.isTotalCount ? 'headerTotalCount' : '',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -1150,7 +1140,7 @@
|
|
|
prop: 'singlePrice',
|
|
prop: 'singlePrice',
|
|
|
label: '单价',
|
|
label: '单价',
|
|
|
slot: 'singlePrice',
|
|
slot: 'singlePrice',
|
|
|
- headerSlot: 'headerSinglePrice',
|
|
|
|
|
|
|
+ headerSlot: this.isSinglePrice ? 'headerSinglePrice' : '',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -1159,7 +1149,7 @@
|
|
|
label: '税率',
|
|
label: '税率',
|
|
|
slot: 'taxRate',
|
|
slot: 'taxRate',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- headerSlot: 'headerTaxRate',
|
|
|
|
|
|
|
+ headerSlot: this.isTaxRate == 1 ? 'headerTaxRate' : ''
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
width: 180,
|
|
width: 180,
|
|
@@ -1214,7 +1204,7 @@
|
|
|
prop: 'batchNo',
|
|
prop: 'batchNo',
|
|
|
label: '批次号',
|
|
label: '批次号',
|
|
|
slot: 'batchNo',
|
|
slot: 'batchNo',
|
|
|
- headerSlot: 'headerBatchNo',
|
|
|
|
|
|
|
+ headerSlot: this.isBatchNo ? 'headerBatchNo' : '',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -1318,7 +1308,8 @@
|
|
|
prop: 'customerExpectDeliveryDeadline',
|
|
prop: 'customerExpectDeliveryDeadline',
|
|
|
label: this.contractBookType == 1 ? '客户期望交期' : '交付日期',
|
|
label: this.contractBookType == 1 ? '客户期望交期' : '交付日期',
|
|
|
slot: 'customerExpectDeliveryDeadline',
|
|
slot: 'customerExpectDeliveryDeadline',
|
|
|
- headerSlot: 'headerCustomerExpectDeliveryDeadline',
|
|
|
|
|
|
|
+ headerSlot:
|
|
|
|
|
+ this.isDate == 1 ? 'headerCustomerExpectDeliveryDeadline' : '',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -1328,7 +1319,10 @@
|
|
|
prop: 'produceDeliveryDeadline',
|
|
prop: 'produceDeliveryDeadline',
|
|
|
label: '生产交付交期',
|
|
label: '生产交付交期',
|
|
|
slot: 'produceDeliveryDeadline',
|
|
slot: 'produceDeliveryDeadline',
|
|
|
- headerSlot: 'headerProduceDeliveryDeadline',
|
|
|
|
|
|
|
+ headerSlot:
|
|
|
|
|
+ this.isDate == 1 && this.isProduceDeliveryDeadline
|
|
|
|
|
+ ? 'headerProduceDeliveryDeadline'
|
|
|
|
|
+ : '',
|
|
|
show: this.contractBookType == 1,
|
|
show: this.contractBookType == 1,
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
}
|
|
}
|
|
@@ -1513,7 +1507,7 @@
|
|
|
.map((item) => item.productId);
|
|
.map((item) => item.productId);
|
|
|
if (categoryIds.length > 0) {
|
|
if (categoryIds.length > 0) {
|
|
|
return await contactQueryByCategoryIdsAPI({
|
|
return await contactQueryByCategoryIdsAPI({
|
|
|
- categoryIds,
|
|
|
|
|
|
|
+ categoryIds
|
|
|
});
|
|
});
|
|
|
} else {
|
|
} else {
|
|
|
return Promise.resolve({});
|
|
return Promise.resolve({});
|