|
@@ -135,8 +135,8 @@
|
|
<el-input v-model="productForm.companyName" :disabled="productForm.tenantId?true:false" placeholder="请输入所属公司"></el-input>
|
|
<el-input v-model="productForm.companyName" :disabled="productForm.tenantId?true:false" placeholder="请输入所属公司"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="参考许可费率 " prop="licenseRates">
|
|
|
|
- <el-input v-model="productForm.licenseRates" placeholder="请输入参考许可费率(参考许可费率介于0-1之间)"></el-input>
|
|
|
|
|
|
+ <el-form-item label="参考许可费率 " prop="licenseRate">
|
|
|
|
+ <el-input v-model="productForm.licenseRate" placeholder="请输入参考许可费率(参考许可费率介于0-1之间)"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="图片 ">
|
|
<el-form-item label="图片 ">
|
|
<el-upload ref="upload" action="#" :auto-upload="false" :on-change="handleChange" list-type="picture" :show-file-list="false">
|
|
<el-upload ref="upload" action="#" :auto-upload="false" :on-change="handleChange" list-type="picture" :show-file-list="false">
|
|
@@ -174,7 +174,7 @@
|
|
append-to-body
|
|
append-to-body
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
:before-close="categoryClose">
|
|
:before-close="categoryClose">
|
|
- <el-form :rules="categoryRules" ref="categoryForm" :model="categoryForm" label-width="80px">
|
|
|
|
|
|
+ <el-form :rules="categoryRules" ref="categoryForm" :model="categoryForm" label-width="110">
|
|
<el-form-item label="名称 " prop="productCategoryName">
|
|
<el-form-item label="名称 " prop="productCategoryName">
|
|
<el-input v-model="categoryForm.productCategoryName" placeholder="请输入名称"></el-input>
|
|
<el-input v-model="categoryForm.productCategoryName" placeholder="请输入名称"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -269,6 +269,7 @@ export default {
|
|
},
|
|
},
|
|
categoryRules:{
|
|
categoryRules:{
|
|
productCategoryName:[{ required: true, message: '请输入产品类别名称', trigger: 'blur' },],
|
|
productCategoryName:[{ required: true, message: '请输入产品类别名称', trigger: 'blur' },],
|
|
|
|
+ licenseRate:[{ required: false, validator:licenseRateRule, trigger: 'blur' },],
|
|
},
|
|
},
|
|
isCollapse:false,
|
|
isCollapse:false,
|
|
}
|
|
}
|
|
@@ -390,6 +391,7 @@ export default {
|
|
categoryClose() {
|
|
categoryClose() {
|
|
this.categoryVisible = false
|
|
this.categoryVisible = false
|
|
this.$refs.upload.clearFiles()
|
|
this.$refs.upload.clearFiles()
|
|
|
|
+ this.$refs.categoryForm.resetFields()
|
|
this.categoryForm = {}
|
|
this.categoryForm = {}
|
|
this.file=[]
|
|
this.file=[]
|
|
},
|
|
},
|
|
@@ -452,8 +454,8 @@ export default {
|
|
productFormSelect(val) {
|
|
productFormSelect(val) {
|
|
this.options.forEach(item => {
|
|
this.options.forEach(item => {
|
|
if (item.id == val) {
|
|
if (item.id == val) {
|
|
- this.productForm.licenseRate=item.licenseRate
|
|
|
|
- this.$set(this.productForm,'licenseRates',item.licenseRate)
|
|
|
|
|
|
+ // this.productForm.licenseRate=item.licenseRate
|
|
|
|
+ this.$set(this.productForm,'licenseRate',item.licenseRate)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -591,6 +593,7 @@ export default {
|
|
this.productForm = {}
|
|
this.productForm = {}
|
|
this.file = []
|
|
this.file = []
|
|
this.$refs.upload.clearFiles()
|
|
this.$refs.upload.clearFiles()
|
|
|
|
+ this.$refs.productForm.resetFields()
|
|
this.visible = false
|
|
this.visible = false
|
|
},
|
|
},
|
|
// 分页
|
|
// 分页
|