@@ -322,7 +335,8 @@
shopIds: '',
productTypePid: '',
productTypeId: '',
- model:[],
+ model:[],
+ can_buy:1,
originalPrice: '',
price: '',
fee: '',
@@ -439,8 +453,10 @@
shopIds: res?.shop_ids,
productTypePid: res?.product_type_pid,
productTypeId: res?.product_type_id,
- model:res.model?JSON.parse(res.model):[],
- originalPrice: res?.original_price,
+ model:res.model?JSON.parse(res.model):[],
+ can_buy:res?.can_buy,
+ originalPrice: res?.original_price,
+
price: res?.price,
fee: res?.fee,
sharing: res?.sharing,
@@ -531,7 +547,8 @@
shop_ids: this.form.shopIds,
product_type_pid: this.form.productTypePid,
product_type_id: this.form.productTypeId,
- model:this.form.model,
+ model:this.form.model,
+ can_buy:this.form.can_buy,
original_price: this.form.originalPrice.toString(),
price: this.form.price.toString(),
fee: this.form.fee.toString(),
@@ -563,7 +580,8 @@
shop_ids: this.form.shopIds,
product_type_pid: this.form.productTypePid,
product_type_id: this.form.productTypeId,
- model:this.form.model,
+ model:this.form.model,
+ can_buy:this.form.can_buy,
original_price: this.form.originalPrice.toString(),
price: this.form.price.toString(),
fee: this.form.fee.toString(),
@@ -593,6 +611,9 @@
if (this.type === 'editor'||this.type === 'copy') {
this.getDetail()
}
+ if(this.type==='add'){
+ this.form.can_buy = 1
+ }
} else {
// this.$refs['tinymce'].setContent(' ')
diff --git a/src/views/productService/productServiceManage.vue b/src/views/productService/productServiceManage.vue
index 8fe2155..236f55f 100644
--- a/src/views/productService/productServiceManage.vue
+++ b/src/views/productService/productServiceManage.vue
@@ -153,7 +153,13 @@
total: 0,
list: [],
- table: [{
+ table: [{
+ prop:'id',
+ label: 'id',
+ width: 50,
+ align: 'center',
+ fixed: 'left'
+ },{
prop: 'name',
label: '名称',
width: 260,