|
@@ -54,159 +54,183 @@
|
|
|
v-model="dialogVisible"
|
|
|
width="500"
|
|
|
v-loading="loadingOne"
|
|
|
+ destroy-on-close
|
|
|
>
|
|
|
- <byForm
|
|
|
- :formConfig="formConfig"
|
|
|
- :formOption="formOption"
|
|
|
- v-model="formData.data"
|
|
|
- :rules="rules"
|
|
|
- ref="byform"
|
|
|
- >
|
|
|
- <template #productPic>
|
|
|
- <div>
|
|
|
- <el-upload
|
|
|
- v-model:fileList="fileList"
|
|
|
- action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
|
|
|
- :data="uploadData"
|
|
|
- list-type="picture-card"
|
|
|
- :on-remove="handleRemove"
|
|
|
- :on-success="handleSuccess"
|
|
|
- :before-upload="handleBeforeUpload"
|
|
|
- accept=".gif, .jpeg, .jpg, .png"
|
|
|
- >
|
|
|
- <el-icon><Plus /></el-icon>
|
|
|
- </el-upload>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
-
|
|
|
- <template #combination>
|
|
|
- <div>
|
|
|
- <div
|
|
|
- style="
|
|
|
- font-size: 14px;
|
|
|
- font-weight: bold;
|
|
|
- margin-bottom: 10px;
|
|
|
- color: #333333;
|
|
|
- "
|
|
|
- v-show="formData.data.combination == 1"
|
|
|
- >
|
|
|
- 组合明细
|
|
|
+ <div class="public_height_dialog">
|
|
|
+ <byForm
|
|
|
+ :formConfig="formConfig"
|
|
|
+ :formOption="formOption"
|
|
|
+ v-model="formData.data"
|
|
|
+ :rules="rules"
|
|
|
+ ref="byform"
|
|
|
+ >
|
|
|
+ <template #productPic>
|
|
|
+ <div>
|
|
|
+ <el-upload
|
|
|
+ v-model:fileList="fileList"
|
|
|
+ action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
|
|
|
+ :data="uploadData"
|
|
|
+ list-type="picture-card"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ :on-success="handleSuccess"
|
|
|
+ :before-upload="handleBeforeUpload"
|
|
|
+ accept=".gif, .jpeg, .jpg, .png"
|
|
|
+ >
|
|
|
+ <el-icon><Plus /></el-icon>
|
|
|
+ </el-upload>
|
|
|
</div>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- @click="openProduct = true"
|
|
|
- style="margin-bottom: 10px"
|
|
|
- v-show="formData.data.combination == 1"
|
|
|
- >
|
|
|
- 添加
|
|
|
- </el-button>
|
|
|
- <el-table
|
|
|
- :data="formData.data.productCombinationList"
|
|
|
- v-show="formData.data.combination == 1"
|
|
|
- >
|
|
|
- <el-table-column prop="code" label="产品编码" />
|
|
|
- <el-table-column prop="name" label="产品名称" />
|
|
|
- <el-table-column
|
|
|
- prop="linkQuantity"
|
|
|
- label="组合数量"
|
|
|
- min-width="150"
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #combination>
|
|
|
+ <div>
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: bold;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ color: #333333;
|
|
|
+ "
|
|
|
+ v-show="formData.data.combination == 1"
|
|
|
>
|
|
|
- <template #default="{ row, $index }">
|
|
|
- <el-form-item
|
|
|
- :prop="'productCombinationList.' + $index + '.linkQuantity'"
|
|
|
- :rules="rules.linkQuantity"
|
|
|
- :inline-message="true"
|
|
|
+ 组合明细
|
|
|
+ </div>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="openProduct = true"
|
|
|
+ style="margin-bottom: 10px"
|
|
|
+ v-show="formData.data.combination == 1"
|
|
|
+ >
|
|
|
+ 添加
|
|
|
+ </el-button>
|
|
|
+ <el-table
|
|
|
+ :data="formData.data.productCombinationList"
|
|
|
+ v-show="formData.data.combination == 1"
|
|
|
+ >
|
|
|
+ <el-table-column prop="code" label="产品编码" />
|
|
|
+ <el-table-column prop="name" label="产品名称" />
|
|
|
+ <el-table-column
|
|
|
+ prop="linkQuantity"
|
|
|
+ label="组合数量"
|
|
|
+ min-width="150"
|
|
|
+ >
|
|
|
+ <template #default="{ row, $index }">
|
|
|
+ <el-form-item
|
|
|
+ :prop="
|
|
|
+ 'productCombinationList.' + $index + '.linkQuantity'
|
|
|
+ "
|
|
|
+ :rules="rules.linkQuantity"
|
|
|
+ :inline-message="true"
|
|
|
+ >
|
|
|
+ <el-input-number
|
|
|
+ v-model="row.linkQuantity"
|
|
|
+ placeholder="请输入"
|
|
|
+ :min="1"
|
|
|
+ :controls="false"
|
|
|
+ :precision="0"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="zip" label="操作" width="100">
|
|
|
+ <template #default="{ $index }">
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ link
|
|
|
+ @click="handleRemoveProduct($index)"
|
|
|
+ >删除</el-button
|
|
|
+ >
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template #one>
|
|
|
+ <div style="width: 100%">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-input
|
|
|
+ v-model="formData.data.victoriatouristJson.newProductsDay1"
|
|
|
+ placeholder="请输入"
|
|
|
+ disabled
|
|
|
+ />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1" style="text-align: center"> ~ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-input-number
|
|
|
+ v-model="formData.data.victoriatouristJson.newProductsDay"
|
|
|
+ placeholder="请输入"
|
|
|
+ :min="0"
|
|
|
+ :controls="false"
|
|
|
+ :precision="0"
|
|
|
+ style="width: 100%"
|
|
|
+ @change="changeDay(10)"
|
|
|
>
|
|
|
- <el-input-number
|
|
|
- v-model="row.linkQuantity"
|
|
|
- placeholder="请输入"
|
|
|
- :min="1"
|
|
|
- :controls="false"
|
|
|
- :precision="0"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="zip" label="操作" width="100">
|
|
|
- <template #default="{ $index }">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- link
|
|
|
- @click="handleRemoveProduct($index)"
|
|
|
- >删除</el-button
|
|
|
+ </el-input-number>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1" style="text-align: center"> : </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-input-number
|
|
|
+ v-model="
|
|
|
+ formData.data.victoriatouristJson.newProductsExpectedSales
|
|
|
+ "
|
|
|
+ placeholder="预期销量"
|
|
|
+ :min="0"
|
|
|
+ :controls="false"
|
|
|
+ :precision="0"
|
|
|
+ style="width: 100%"
|
|
|
+ />
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template #two>
|
|
|
+ <div style="width: 100%">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-input
|
|
|
+ v-model="formData.data.victoriatouristJson.growUpDay1"
|
|
|
+ placeholder="请输入"
|
|
|
+ disabled
|
|
|
+ />
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1" style="text-align: center"> ~ </el-col>
|
|
|
+ <el-col :span="4">
|
|
|
+ <el-input-number
|
|
|
+ v-model="formData.data.victoriatouristJson.growUpDay"
|
|
|
+ placeholder="请输入"
|
|
|
+ :min="0"
|
|
|
+ :controls="false"
|
|
|
+ :precision="0"
|
|
|
+ style="width: 100%"
|
|
|
+ @change="changeDay(20)"
|
|
|
>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template #one>
|
|
|
- <div style="width: 100%">
|
|
|
- <el-row>
|
|
|
- <el-col :span="4">
|
|
|
- <el-input
|
|
|
- v-model="formData.data.victoriatouristJson.newProductsDay1"
|
|
|
- placeholder="请输入"
|
|
|
- disabled
|
|
|
- />
|
|
|
- </el-col>
|
|
|
- <el-col :span="1" style="text-align: center"> ~ </el-col>
|
|
|
- <el-col :span="4">
|
|
|
- <el-input-number
|
|
|
- v-model="formData.data.victoriatouristJson.newProductsDay"
|
|
|
- placeholder="请输入"
|
|
|
- :min="0"
|
|
|
- :controls="false"
|
|
|
- :precision="0"
|
|
|
- style="width: 100%"
|
|
|
- @change="changeDay(10)"
|
|
|
- >
|
|
|
- </el-input-number>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1" style="text-align: center"> : </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-input-number
|
|
|
- v-model="
|
|
|
- formData.data.victoriatouristJson.newProductsExpectedSales
|
|
|
- "
|
|
|
- placeholder="预期销量"
|
|
|
- :min="0"
|
|
|
- :controls="false"
|
|
|
- :precision="0"
|
|
|
- style="width: 100%"
|
|
|
- />
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template #two>
|
|
|
- <div style="width: 100%">
|
|
|
- <el-row>
|
|
|
- <el-col :span="4">
|
|
|
- <el-input
|
|
|
- v-model="formData.data.victoriatouristJson.growUpDay1"
|
|
|
- placeholder="请输入"
|
|
|
- disabled
|
|
|
- />
|
|
|
- </el-col>
|
|
|
- <el-col :span="1" style="text-align: center"> ~ </el-col>
|
|
|
- <el-col :span="4">
|
|
|
- <el-input-number
|
|
|
- v-model="formData.data.victoriatouristJson.growUpDay"
|
|
|
- placeholder="请输入"
|
|
|
- :min="0"
|
|
|
- :controls="false"
|
|
|
- :precision="0"
|
|
|
- style="width: 100%"
|
|
|
- @change="changeDay(20)"
|
|
|
- >
|
|
|
- </el-input-number>
|
|
|
+ </el-input-number>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1" style="text-align: center"> : </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-input-number
|
|
|
+ v-model="
|
|
|
+ formData.data.victoriatouristJson.growUpExpectedSales
|
|
|
+ "
|
|
|
+ placeholder="预期销量"
|
|
|
+ :min="0"
|
|
|
+ :controls="false"
|
|
|
+ :precision="0"
|
|
|
+ style="width: 100%"
|
|
|
+ />
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ <template #three>
|
|
|
+ <el-row style="width: 100%">
|
|
|
+ <el-col :span="5">
|
|
|
+ 大于{{ formData.data.victoriatouristJson.attDay }}天:
|
|
|
</el-col>
|
|
|
- <el-col :span="1" style="text-align: center"> : </el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-input-number
|
|
|
v-model="
|
|
|
- formData.data.victoriatouristJson.growUpExpectedSales
|
|
|
+ formData.data.victoriatouristJson.matureExpectedSales
|
|
|
"
|
|
|
placeholder="预期销量"
|
|
|
:min="0"
|
|
@@ -216,26 +240,9 @@
|
|
|
/>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <template #three>
|
|
|
- <el-row style="width: 100%">
|
|
|
- <el-col :span="5">
|
|
|
- 大于{{ formData.data.victoriatouristJson.attDay }}天:
|
|
|
- </el-col>
|
|
|
- <el-col :span="6">
|
|
|
- <el-input-number
|
|
|
- v-model="formData.data.victoriatouristJson.matureExpectedSales"
|
|
|
- placeholder="预期销量"
|
|
|
- :min="0"
|
|
|
- :controls="false"
|
|
|
- :precision="0"
|
|
|
- style="width: 100%"
|
|
|
- />
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </template>
|
|
|
- </byForm>
|
|
|
+ </template>
|
|
|
+ </byForm>
|
|
|
+ </div>
|
|
|
<template #footer>
|
|
|
<el-button @click="dialogVisible = false" size="large">取 消</el-button>
|
|
|
<el-button
|
|
@@ -1064,4 +1071,5 @@ getDict();
|
|
|
:deep(.el-date-picker__header .el-date-picker__header-label) {
|
|
|
display: none;
|
|
|
}
|
|
|
+
|
|
|
</style>
|