|
@@ -99,7 +99,6 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:productName="{ row, $index }">
|
|
<template v-slot:productName="{ row, $index }">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
:prop="'datasource.' + $index + '.productName'"
|
|
:prop="'datasource.' + $index + '.productName'"
|
|
|
:rules="{
|
|
:rules="{
|
|
|
required: true,
|
|
required: true,
|
|
@@ -177,16 +176,12 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:productCode="scope">
|
|
<template v-slot:productCode="scope">
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.productCode'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + scope.$index + '.productCode'">
|
|
|
<el-input v-model="scope.row.productCode" :disabled="true"></el-input>
|
|
<el-input v-model="scope.row.productCode" :disabled="true"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:productCategoryName="scope">
|
|
<template v-slot:productCategoryName="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
:prop="'datasource.' + scope.$index + '.productCategoryName'"
|
|
:prop="'datasource.' + scope.$index + '.productCategoryName'"
|
|
|
>
|
|
>
|
|
|
<el-input v-model="scope.row.productCategoryName" disabled></el-input>
|
|
<el-input v-model="scope.row.productCategoryName" disabled></el-input>
|
|
@@ -194,7 +189,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
<!-- <template v-slot:totalCount="scope">
|
|
<!-- <template v-slot:totalCount="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
|
|
+
|
|
|
:prop="'datasource.' + scope.$index + '.totalCount'"
|
|
:prop="'datasource.' + scope.$index + '.totalCount'"
|
|
|
:rules="{
|
|
:rules="{
|
|
|
required: isTotalCount ? true : false,
|
|
required: isTotalCount ? true : false,
|
|
@@ -214,19 +209,13 @@
|
|
|
<span :class="{ 'is-required': isTotalCount }">{{ column.label }}</span>
|
|
<span :class="{ 'is-required': isTotalCount }">{{ column.label }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:totalPrice="scope">
|
|
<template v-slot:totalPrice="scope">
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.totalPrice'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + scope.$index + '.totalPrice'">
|
|
|
{{ (Number(scope.row.totalPrice) || 0).toFixed(2) }}元
|
|
{{ (Number(scope.row.totalPrice) || 0).toFixed(2) }}元
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:productBrand="scope">
|
|
<template v-slot:productBrand="scope">
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.productBrand'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + scope.$index + '.productBrand'">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="scope.row.productBrand"
|
|
v-model="scope.row.productBrand"
|
|
|
:disabled="!!scope.row.productCode"
|
|
:disabled="!!scope.row.productCode"
|
|
@@ -235,10 +224,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:modelType="scope">
|
|
<template v-slot:modelType="scope">
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.modelType'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + scope.$index + '.modelType'">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="scope.row.modelType"
|
|
v-model="scope.row.modelType"
|
|
|
:disabled="!!scope.row.productCode"
|
|
:disabled="!!scope.row.productCode"
|
|
@@ -246,10 +232,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:specification="scope">
|
|
<template v-slot:specification="scope">
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.specification'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + scope.$index + '.specification'">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="scope.row.specification"
|
|
v-model="scope.row.specification"
|
|
|
:disabled="!!scope.row.productCode"
|
|
:disabled="!!scope.row.productCode"
|
|
@@ -266,7 +249,6 @@
|
|
|
<div class="period">
|
|
<div class="period">
|
|
|
<div class="borderleftnone">
|
|
<div class="borderleftnone">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
:prop="'datasource.' + scope.$index + '.guaranteePeriod'"
|
|
:prop="'datasource.' + scope.$index + '.guaranteePeriod'"
|
|
|
:rules="{
|
|
:rules="{
|
|
|
pattern: numberReg,
|
|
pattern: numberReg,
|
|
@@ -291,16 +273,14 @@
|
|
|
@change="
|
|
@change="
|
|
|
setDeliveryDays(scope.row, scope.$index, 'guaranteePeriod')
|
|
setDeliveryDays(scope.row, scope.$index, 'guaranteePeriod')
|
|
|
"
|
|
"
|
|
|
|
|
+ :isOne="scope.$index === 0"
|
|
|
>
|
|
>
|
|
|
</DictSelection>
|
|
</DictSelection>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:measuringUnit="scope">
|
|
<template v-slot:measuringUnit="scope">
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.measuringUnit'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + scope.$index + '.measuringUnit'">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="scope.row.measuringUnit"
|
|
v-model="scope.row.measuringUnit"
|
|
|
:disabled="!!scope.row.productCode"
|
|
:disabled="!!scope.row.productCode"
|
|
@@ -309,10 +289,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:remark="scope">
|
|
<template v-slot:remark="scope">
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.remark'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + scope.$index + '.remark'">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="scope.row.remark"
|
|
v-model="scope.row.remark"
|
|
|
type="textarea"
|
|
type="textarea"
|
|
@@ -322,7 +299,6 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:singlePrice="scope">
|
|
<template v-slot:singlePrice="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
:prop="'datasource.' + scope.$index + '.singlePrice'"
|
|
:prop="'datasource.' + scope.$index + '.singlePrice'"
|
|
|
:rules="{
|
|
:rules="{
|
|
|
required: isSinglePrice ? true : false,
|
|
required: isSinglePrice ? true : false,
|
|
@@ -342,7 +318,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
<!-- <template v-slot:notaxSinglePrice="scope">
|
|
<!-- <template v-slot:notaxSinglePrice="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
|
|
+
|
|
|
:prop="'datasource.' + scope.$index + '.notaxSinglePrice'"
|
|
:prop="'datasource.' + scope.$index + '.notaxSinglePrice'"
|
|
|
>
|
|
>
|
|
|
<el-input
|
|
<el-input
|
|
@@ -356,10 +332,7 @@
|
|
|
</template> -->
|
|
</template> -->
|
|
|
|
|
|
|
|
<template v-slot:taxRate="scope">
|
|
<template v-slot:taxRate="scope">
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.taxRate'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + scope.$index + '.taxRate'">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="scope.row.taxRate"
|
|
v-model="scope.row.taxRate"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
@@ -383,10 +356,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:technicalAnswerName="{ row, $index }">
|
|
<template v-slot:technicalAnswerName="{ row, $index }">
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + $index + '.technicalAnswerName'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + $index + '.technicalAnswerName'">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="row.technicalAnswerName"
|
|
v-model="row.technicalAnswerName"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
@@ -395,10 +365,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:technicalParams="scope">
|
|
<template v-slot:technicalParams="scope">
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.technicalParams'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + scope.$index + '.technicalParams'">
|
|
|
<el-input
|
|
<el-input
|
|
|
type="textarea"
|
|
type="textarea"
|
|
|
v-model="scope.row.technicalParams"
|
|
v-model="scope.row.technicalParams"
|
|
@@ -408,7 +375,6 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:technicalDrawings="scope">
|
|
<template v-slot:technicalDrawings="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
:prop="'datasource.' + scope.$index + '.technicalDrawings'"
|
|
:prop="'datasource.' + scope.$index + '.technicalDrawings'"
|
|
|
>
|
|
>
|
|
|
<fileMain v-model="scope.row.technicalDrawings"></fileMain>
|
|
<fileMain v-model="scope.row.technicalDrawings"></fileMain>
|
|
@@ -416,7 +382,6 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:customerReqFiles="scope">
|
|
<template v-slot:customerReqFiles="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
:prop="'datasource.' + scope.$index + '.customerReqFiles'"
|
|
:prop="'datasource.' + scope.$index + '.customerReqFiles'"
|
|
|
>
|
|
>
|
|
|
<fileMain v-model="scope.row.customerReqFiles"></fileMain>
|
|
<fileMain v-model="scope.row.customerReqFiles"></fileMain>
|
|
@@ -424,7 +389,6 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:industryArtFiles="scope">
|
|
<template v-slot:industryArtFiles="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
:prop="'datasource.' + scope.$index + '.industryArtFiles'"
|
|
:prop="'datasource.' + scope.$index + '.industryArtFiles'"
|
|
|
:rules="{
|
|
:rules="{
|
|
|
required: false,
|
|
required: false,
|
|
@@ -436,10 +400,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:otherFiles="scope">
|
|
<template v-slot:otherFiles="scope">
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '. otherFiles'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + scope.$index + '. otherFiles'">
|
|
|
<fileMain v-model="scope.row.otherFiles"></fileMain>
|
|
<fileMain v-model="scope.row.otherFiles"></fileMain>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
@@ -460,6 +421,7 @@
|
|
|
>
|
|
>
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
style="width: 140px"
|
|
style="width: 140px"
|
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
v-model="scope.row.produceDeliveryDeadline"
|
|
v-model="scope.row.produceDeliveryDeadline"
|
|
|
@change="
|
|
@change="
|
|
|
setDeliveryDays(scope.row, scope.$index, 'guaranteePeriod')
|
|
setDeliveryDays(scope.row, scope.$index, 'guaranteePeriod')
|
|
@@ -486,6 +448,7 @@
|
|
|
<el-date-picker
|
|
<el-date-picker
|
|
|
style="width: 140px"
|
|
style="width: 140px"
|
|
|
v-model="scope.row.customerExpectDeliveryDeadline"
|
|
v-model="scope.row.customerExpectDeliveryDeadline"
|
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
@change="
|
|
@change="
|
|
|
setDeliveryDays(scope.row, scope.$index, 'guaranteePeriod')
|
|
setDeliveryDays(scope.row, scope.$index, 'guaranteePeriod')
|
|
|
"
|
|
"
|
|
@@ -494,10 +457,7 @@
|
|
|
>
|
|
>
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- v-if="scope.row.arrivalWay == 2"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item v-if="scope.row.arrivalWay == 2">
|
|
|
<el-link
|
|
<el-link
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:underline="false"
|
|
:underline="false"
|
|
@@ -515,6 +475,7 @@
|
|
|
v-model="scope.row.provenance"
|
|
v-model="scope.row.provenance"
|
|
|
collapse-tags
|
|
collapse-tags
|
|
|
multiple
|
|
multiple
|
|
|
|
|
+ :isOne="scope.$index === 0"
|
|
|
>
|
|
>
|
|
|
</DictSelection>
|
|
</DictSelection>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -527,16 +488,14 @@
|
|
|
style="width: 140px"
|
|
style="width: 140px"
|
|
|
v-model="scope.row.guaranteePeriodDeadline"
|
|
v-model="scope.row.guaranteePeriodDeadline"
|
|
|
type="date"
|
|
type="date"
|
|
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
|
>
|
|
>
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:singleWeight="scope">
|
|
<template v-slot:singleWeight="scope">
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.singleWeight'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + scope.$index + '.singleWeight'">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="scope.row.singleWeight"
|
|
v-model="scope.row.singleWeight"
|
|
|
@input="changeCount(scope.row, scope.$index)"
|
|
@input="changeCount(scope.row, scope.$index)"
|
|
@@ -587,10 +546,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:taskName="scope">
|
|
<template v-slot:taskName="scope">
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.taskName'"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + scope.$index + '.taskName'">
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="scope.row.taskName"
|
|
v-model="scope.row.taskName"
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
@@ -613,7 +569,6 @@
|
|
|
v-model="scope.row.arrivalWay"
|
|
v-model="scope.row.arrivalWay"
|
|
|
clearable
|
|
clearable
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
-
|
|
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in arrivalWayList"
|
|
v-for="item in arrivalWayList"
|
|
@@ -627,7 +582,6 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:batchNo="scope">
|
|
<template v-slot:batchNo="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
:prop="'datasource.' + scope.$index + '.batchNo'"
|
|
:prop="'datasource.' + scope.$index + '.batchNo'"
|
|
|
:rules="[
|
|
:rules="[
|
|
|
{
|
|
{
|
|
@@ -683,13 +637,13 @@
|
|
|
clearable
|
|
clearable
|
|
|
v-model="row.goodsPriceType"
|
|
v-model="row.goodsPriceType"
|
|
|
@change="goodsPriceTypeChange(row, $index)"
|
|
@change="goodsPriceTypeChange(row, $index)"
|
|
|
|
|
+ :isOne="$index === 0"
|
|
|
>
|
|
>
|
|
|
</DictSelection>
|
|
</DictSelection>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:saleCount="scope">
|
|
<template v-slot:saleCount="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
:prop="'datasource.' + scope.$index + '.' + countObj.countKey"
|
|
:prop="'datasource.' + scope.$index + '.' + countObj.countKey"
|
|
|
:rules="{
|
|
:rules="{
|
|
|
required: isTotalCount ? true : false,
|
|
required: isTotalCount ? true : false,
|
|
@@ -709,7 +663,6 @@
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:saleUnit="scope">
|
|
<template v-slot:saleUnit="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
:prop="'datasource.' + scope.$index + '.' + countObj.unitIdKey"
|
|
:prop="'datasource.' + scope.$index + '.' + countObj.unitIdKey"
|
|
|
>
|
|
>
|
|
|
<el-select
|
|
<el-select
|
|
@@ -727,6 +680,36 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template v-slot:modelKey="scope">
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + scope.$index + '.' + 'modelKey'">
|
|
|
|
|
+ <DictSelection
|
|
|
|
|
+ dictName="物品机型"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ v-model="scope.row.modelKey"
|
|
|
|
|
+ :isOne="scope.$index === 0"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ allow-create
|
|
|
|
|
+ default-first-option
|
|
|
|
|
+ multiple
|
|
|
|
|
+ >
|
|
|
|
|
+ </DictSelection>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-slot:colorKey="scope">
|
|
|
|
|
+ <el-form-item :prop="'datasource.' + scope.$index + '.' + 'colorKey'">
|
|
|
|
|
+ <DictSelection
|
|
|
|
|
+ dictName="物品颜色"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ v-model="scope.row.colorKey"
|
|
|
|
|
+ :isOne="scope.$index === 0"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ allow-create
|
|
|
|
|
+ default-first-option
|
|
|
|
|
+ multiple
|
|
|
|
|
+ >
|
|
|
|
|
+ </DictSelection>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </template>
|
|
|
<!-- 操作列 -->
|
|
<!-- 操作列 -->
|
|
|
<template v-slot:action="scope">
|
|
<template v-slot:action="scope">
|
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
@@ -1270,7 +1253,20 @@
|
|
|
slot: 'modelType',
|
|
slot: 'modelType',
|
|
|
align: 'center'
|
|
align: 'center'
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 160,
|
|
|
|
|
+ prop: 'modelKey',
|
|
|
|
|
+ label: '机型',
|
|
|
|
|
+ slot: 'modelKey',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ width: 160,
|
|
|
|
|
+ prop: 'colorKey',
|
|
|
|
|
+ label: '颜色',
|
|
|
|
|
+ slot: 'colorKey',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
width: 120,
|
|
width: 120,
|
|
|
prop: 'produceType',
|
|
prop: 'produceType',
|
|
@@ -1436,9 +1432,9 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
created() {
|
|
created() {
|
|
|
- this.requestDict('保质期单位');
|
|
|
|
|
- this.requestDict('产地');
|
|
|
|
|
- this.requestDict('商品价格类型');
|
|
|
|
|
|
|
+ // this.requestDict('保质期单位');
|
|
|
|
|
+ // this.requestDict('产地');
|
|
|
|
|
+ // this.requestDict('商品价格类型');
|
|
|
parameterGetByCode({
|
|
parameterGetByCode({
|
|
|
code: 'eom_inventoryTable_customerExpectDeliveryDeadline'
|
|
code: 'eom_inventoryTable_customerExpectDeliveryDeadline'
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
@@ -1566,7 +1562,10 @@
|
|
|
},
|
|
},
|
|
|
// 返回列表数据
|
|
// 返回列表数据
|
|
|
getTableValue() {
|
|
getTableValue() {
|
|
|
- let comitDatasource = this.form.datasource;
|
|
|
|
|
|
|
+ let comitDatasource = copyObj(this.form.datasource);
|
|
|
|
|
+ // console.log(comitDatasource)
|
|
|
|
|
+ // console.log(this.form.datasource)
|
|
|
|
|
+ // return
|
|
|
if (comitDatasource.length === 0) return [];
|
|
if (comitDatasource.length === 0) return [];
|
|
|
comitDatasource.forEach((v) => {
|
|
comitDatasource.forEach((v) => {
|
|
|
if (v.guaranteePeriodUnitCode) {
|
|
if (v.guaranteePeriodUnitCode) {
|
|
@@ -1575,6 +1574,12 @@
|
|
|
v.guaranteePeriodUnitCode
|
|
v.guaranteePeriodUnitCode
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
|
|
+ if (v.modelKey) {
|
|
|
|
|
+ v.modelKey = v.modelKey.toString();
|
|
|
|
|
+ }
|
|
|
|
|
+ if (v.colorKey) {
|
|
|
|
|
+ v.colorKey = v.colorKey.toString();
|
|
|
|
|
+ }
|
|
|
v.technicalDrawings = v.technicalDrawings ? v.technicalDrawings : [];
|
|
v.technicalDrawings = v.technicalDrawings ? v.technicalDrawings : [];
|
|
|
v.customerReqFiles = v.customerReqFiles || [];
|
|
v.customerReqFiles = v.customerReqFiles || [];
|
|
|
v.industryArtFiles = v.industryArtFiles || [];
|
|
v.industryArtFiles = v.industryArtFiles || [];
|
|
@@ -1698,6 +1703,12 @@
|
|
|
|
|
|
|
|
productList.forEach((item, index) => {
|
|
productList.forEach((item, index) => {
|
|
|
item['key'] = index + 1;
|
|
item['key'] = index + 1;
|
|
|
|
|
+ if (item.modelKey) {
|
|
|
|
|
+ item.modelKey = item.modelKey.split(',');
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.colorKey) {
|
|
|
|
|
+ item.colorKey = item.colorKey.split(',');
|
|
|
|
|
+ }
|
|
|
item.pricingWay =
|
|
item.pricingWay =
|
|
|
item.pricingWay ||
|
|
item.pricingWay ||
|
|
|
data.pricingWay ||
|
|
data.pricingWay ||
|
|
@@ -1819,7 +1830,12 @@
|
|
|
this.$set(parasm, 'pricingWay', 1);
|
|
this.$set(parasm, 'pricingWay', 1);
|
|
|
this.$set(parasm, 'goodsLevel', item.goodsLevel);
|
|
this.$set(parasm, 'goodsLevel', item.goodsLevel);
|
|
|
this.$set(parasm, 'guaranteePeriod', item.warrantyPeriod);
|
|
this.$set(parasm, 'guaranteePeriod', item.warrantyPeriod);
|
|
|
-
|
|
|
|
|
|
|
+ if (item.modelKey) {
|
|
|
|
|
+ this.$set(parasm, 'modelKey', item.modelKey.split(','));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.colorKey) {
|
|
|
|
|
+ this.$set(parasm, 'colorKey', item.colorKey.split(','));
|
|
|
|
|
+ }
|
|
|
this.$set(
|
|
this.$set(
|
|
|
parasm,
|
|
parasm,
|
|
|
'guaranteePeriodUnitCode',
|
|
'guaranteePeriodUnitCode',
|
|
@@ -1946,6 +1962,12 @@
|
|
|
this.$set(parasm, 'discountSinglePrice', goodsPriceList.unitPrice);
|
|
this.$set(parasm, 'discountSinglePrice', goodsPriceList.unitPrice);
|
|
|
this.$set(parasm, 'totalCount', '');
|
|
this.$set(parasm, 'totalCount', '');
|
|
|
}
|
|
}
|
|
|
|
|
+ if (item.modelKey) {
|
|
|
|
|
+ this.$set(parasm, 'modelKey', item.modelKey.split(','));
|
|
|
|
|
+ }
|
|
|
|
|
+ if (item.colorKey) {
|
|
|
|
|
+ this.$set(parasm, 'colorKey', item.colorKey.split(','));
|
|
|
|
|
+ }
|
|
|
if (this.isSupplier) {
|
|
if (this.isSupplier) {
|
|
|
this.$set(
|
|
this.$set(
|
|
|
parasm,
|
|
parasm,
|