Commit 3fd9c90f by lixiaomin

修改商品

parent 97f09c13
......@@ -74,8 +74,7 @@ export default {
}else{
this.ids = [];
this.specNames=""
}
}
},
},
},
......@@ -94,6 +93,7 @@ export default {
},
/** 查询列表 */
getList() {
this.classList=[];
this.loading = true;
listSpecs(this.queryParams).then((response) => {
const { rows, total } = response;
......
......@@ -28,13 +28,14 @@
<el-input v-model="form.address" placeholder="请输入详细地址" />
</el-form-item>
<el-form-item label="营业时间" prop="time">
<el-date-picker
<el-time-picker
is-range
v-model="form.time"
type="datetimerange"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期" format="yyyy-MM-dd HH:mm" value-format="yyyy-MM-dd HH:mm">
</el-date-picker>
start-placeholder="开始时间"
end-placeholder="结束时间"
placeholder="选择时间范围" format="HH:mm" value-format="HH:mm">
</el-time-picker>
</el-form-item>
<el-form-item label="备注" prop="remarks">
<el-input v-model="form.remarks" placeholder="请输入备注" />
......@@ -124,9 +125,8 @@ export default {
});
} else {
addShop(surplus).then(({ data }) => {
this.$modal.msgSuccess("新增成功");
this.$emit('setShopId', data)
this.$modal.msgSuccess("新增成功");
this.$emit('setShopId', data)
});
}
}
......
......@@ -3,7 +3,7 @@
<el-dialog title="店铺设置" :visible.sync="open" width="1200px" append-to-body >
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="店铺信息" name="first">
<AddShop :shopId="shopId" @closeDialog="closeHandle" @getList="getList"/>
<AddShop :shopId="shopId" @closeDialog="closeHandle" @getList="getList" @setShopId="setShopId"/>
</el-tab-pane>
<el-tab-pane :disabled="!shopId" label="机器信息" name="second">
<Machine ref="Machine" :shopId="shopId" />
......@@ -55,7 +55,9 @@ export default {
}
},
methods: {
setShopId(id) { this.shopId = id },
setShopId(id) {
this.shopId = id
},
handleClick(tab, event) {
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment