Commit 3fd9c90f by lixiaomin

修改商品

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