|
@@ -479,6 +479,7 @@ export default {
|
|
|
methods: {
|
|
methods: {
|
|
|
handleCompanyChange(){
|
|
handleCompanyChange(){
|
|
|
if (!this.products || this.products.length === 0) {
|
|
if (!this.products || this.products.length === 0) {
|
|
|
|
|
+ this.form.companyIds = [];
|
|
|
this.$message.warning('请先选择商品');
|
|
this.$message.warning('请先选择商品');
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -555,10 +556,10 @@ export default {
|
|
|
this.$message.success("商品已添加!");
|
|
this.$message.success("商品已添加!");
|
|
|
},
|
|
},
|
|
|
handleAddProduct(){
|
|
handleAddProduct(){
|
|
|
- if(!this.form.companyId) {
|
|
|
|
|
- this.$message.error("请选择套餐所属公司!");
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if(!this.form.companyId) {
|
|
|
|
|
+ // this.$message.error("请选择套餐所属公司!");
|
|
|
|
|
+ // return;
|
|
|
|
|
+ // }
|
|
|
this.product.open=true;
|
|
this.product.open=true;
|
|
|
// setTimeout(() => {
|
|
// setTimeout(() => {
|
|
|
// this.$refs.product.getData(1);
|
|
// this.$refs.product.getData(1);
|