|
|
@@ -122,6 +122,11 @@
|
|
|
<el-input-number v-model="form.price" :min="0" :precision="2" placeholder="0.00" style="width: 100%;" controls />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <el-form-item label="会员价(元)">
|
|
|
+ <el-input-number v-model="form.memberPrice" :min="0" :precision="2" :step="0.01" placeholder="留空等于普通价" style="width: 100%;" controls />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="库存" prop="stock">
|
|
|
<el-input-number v-model="form.stock" :min="0" :precision="0" placeholder="0" style="width: 100%;" controls />
|
|
|
@@ -307,6 +312,7 @@ export default {
|
|
|
images: '',
|
|
|
productType: 'physical',
|
|
|
price: null,
|
|
|
+ memberPrice: null,
|
|
|
stock: null,
|
|
|
minQuantity: 1,
|
|
|
vendorName: '',
|
|
|
@@ -453,6 +459,7 @@ export default {
|
|
|
images: p.images || '',
|
|
|
productType: p.productType || 'physical',
|
|
|
price: (p.price != null) ? p.price / 100 : null,
|
|
|
+ memberPrice: (p.memberPrice != null && p.memberPrice > 0) ? p.memberPrice / 100 : null,
|
|
|
stock: (p.stock != null) ? p.stock : null,
|
|
|
minQuantity: p.minQuantity || null,
|
|
|
vendorName: p.vendorName || '',
|
|
|
@@ -712,6 +719,7 @@ async loadGiftRule(productId) {
|
|
|
const productData = {
|
|
|
...this.form,
|
|
|
price: (this.form.price != null) ? Math.round(this.form.price * 100) : 0,
|
|
|
+ memberPrice: (this.form.memberPrice != null && this.form.memberPrice > 0) ? Math.round(this.form.memberPrice * 100) : 0,
|
|
|
images: JSON.stringify(this.imageList)
|
|
|
}
|
|
|
// Extract dimensionWeights before sending to product API
|