|
@@ -97,9 +97,6 @@
|
|
|
></v-select>
|
|
|
</a-form-model-item>
|
|
|
</a-form-model>
|
|
|
- <div style="margin-left: 40px;">
|
|
|
- <a-icon type="exclamation-circle" style="margin-right: 10px;" />说明:各个价格至少有1个填写后才能保存成功。
|
|
|
- </div>
|
|
|
<div class="btn-cont">
|
|
|
<a-button type="primary" id="productPricingEdit-save" @click="handleSave">保存</a-button>
|
|
|
<a-button id="productPricingEdit-cancel" @click="isShow = false" style="margin-left: 15px;">取消</a-button>
|
|
@@ -144,6 +141,15 @@ export default {
|
|
|
rules: {
|
|
|
changeReason: [
|
|
|
{ required: true, message: '请选择变更原因', trigger: 'change' }
|
|
|
+ ],
|
|
|
+ afterProvincePrice: [
|
|
|
+ { required: true, message: '请输入省级价', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ afterCityPrice: [
|
|
|
+ { required: true, message: '请输入市级价', trigger: 'blur' }
|
|
|
+ ],
|
|
|
+ afterSpecialPrice: [
|
|
|
+ { required: true, message: '请输入特约价', trigger: 'blur' }
|
|
|
]
|
|
|
},
|
|
|
detailData: null // 数据详情
|
|
@@ -170,10 +176,6 @@ export default {
|
|
|
// 保存
|
|
|
handleSave () {
|
|
|
const _this = this
|
|
|
- if (!this.form.afterProvincePrice && !this.form.afterCityPrice && !this.form.afterSpecialPrice && !this.form.afterTerminalPrice && !this.form.afterCarOwnersPrice) {
|
|
|
- this.$message.warning('需至少填写1个价格,请修改后再提交!')
|
|
|
- return
|
|
|
- }
|
|
|
this.$refs.ruleForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
const form = JSON.parse(JSON.stringify(_this.form))
|