|
@@ -35,7 +35,7 @@
|
|
|
<a-input-number
|
|
|
style="width:100%;"
|
|
|
id="edit-product-price"
|
|
|
- :min="0"
|
|
|
+ :min="0.01"
|
|
|
:max="99999999"
|
|
|
:precision="2"
|
|
|
:step="0.1"
|
|
@@ -120,7 +120,7 @@ export default {
|
|
|
// 售价类型 change
|
|
|
handlePriceType (val) {
|
|
|
if (val === 'TERMINAL_PRICE') {
|
|
|
- this.form.price = this.form && (this.form.oldPrice || this.form.oldPrice == 0) ? this.form.oldPrice : ''
|
|
|
+ this.form.price = this.form && (this.form.terminalPrice || this.form.terminalPrice == 0) ? this.form.terminalPrice : ''
|
|
|
}
|
|
|
},
|
|
|
// 获取编辑详情
|
|
@@ -148,6 +148,10 @@ export default {
|
|
|
const _this = this
|
|
|
this.$refs.ruleForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
+ if (_this.form.price == _this.form.oldPrice) {
|
|
|
+ _this.$message.warning('产品售价未变更!')
|
|
|
+ return
|
|
|
+ }
|
|
|
_this.spinning = true
|
|
|
_this.form.shopProductSn = _this.itemSn
|
|
|
shopProductSaveProduct(_this.form).then(res => {
|