Commit 16d3530e by lixiaomin

修改页面

parent eeebce7f
...@@ -267,7 +267,9 @@ export default { ...@@ -267,7 +267,9 @@ export default {
getSpu(id).then((response) => { getSpu(id).then((response) => {
const { data } = response; const { data } = response;
data.pics = JSON.parse(data.pics); data.pics = JSON.parse(data.pics);
if(data.spec!=""){
data.spec = JSON.parse(data.spec); data.spec = JSON.parse(data.spec);
}
this.goodsTagList=data.goodsTagList; this.goodsTagList=data.goodsTagList;
this.form = data; this.form = data;
this.open = true; this.open = true;
......
...@@ -14,13 +14,16 @@ ...@@ -14,13 +14,16 @@
<el-button type="primary" @click="offShop">确 定</el-button> <el-button type="primary" @click="offShop">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<Form ref="Form" />
</div> </div>
</template> </template>
<script> <script>
import { putShop, offShop } from "@/api/system/goods"; import { putShop, offShop } from "@/api/system/goods";
import Form from "./Form.vue";
export default { export default {
components: { Form},
data() { data() {
return { return {
id: '', id: '',
...@@ -41,9 +44,13 @@ export default { ...@@ -41,9 +44,13 @@ export default {
}, },
putShop() { putShop() {
putShop({ goodsId: this.id, boo: this.allPut }).then(res => { putShop({ goodsId: this.id, boo: this.allPut }).then(res => {
if(res.code==200){
this.$modal.msgSuccess("上架成功"); this.$modal.msgSuccess("上架成功");
this.dialogVisible = false; this.dialogVisible = false;
this.$emit('callback') this.$emit('callback')
}else if(res.code==99){
this.$refs.Form.handleUpdate(this.id);
}
}) })
}, },
offShop() { offShop() {
......
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
<span v-else>停用</span> <span v-else>停用</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="原备注" width="180" align="center" prop="remark"/>
<el-table-column label="操作" width="200" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" width="200" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
...@@ -77,6 +78,9 @@ ...@@ -77,6 +78,9 @@
<el-form-item label="备注" prop="remarks"> <el-form-item label="备注" prop="remarks">
<el-input v-model="form.remarks" type="textarea" placeholder="请输入内容" maxlength="500" show-word-limit/> <el-input v-model="form.remarks" type="textarea" placeholder="请输入内容" maxlength="500" show-word-limit/>
</el-form-item> </el-form-item>
<el-form-item label="原备注" prop="remark">
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" maxlength="500" show-word-limit/>
</el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm" v-hasPermi="['system:spec:edit']">确 定</el-button> <el-button type="primary" @click="submitForm" v-hasPermi="['system:spec:edit']">确 定</el-button>
......
...@@ -53,6 +53,8 @@ ...@@ -53,6 +53,8 @@
<el-table-column label="店铺" align="center" prop="shop.name" /> <el-table-column label="店铺" align="center" prop="shop.name" />
<el-table-column label="订单来源" align="center" prop="source"> <el-table-column label="订单来源" align="center" prop="source">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.source=='1'">点单屏A</span>
<span v-if="scope.row.source=='2'">点单屏B</span>
<span v-if="scope.row.source=='3'">小程序</span> <span v-if="scope.row.source=='3'">小程序</span>
<span v-if="scope.row.source=='12'">点单屏</span> <span v-if="scope.row.source=='12'">点单屏</span>
</template> </template>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-popconfirm title="确定要移除吗?" @confirm="removeRecommend(scope.row)"> <el-popconfirm title="确定要移除吗?" @confirm="removeRecommend(scope.row)">
<el-button type="text" slot="reference">移除推荐</el-button> <el-button type="text" slot="reference">移除特惠</el-button>
</el-popconfirm> </el-popconfirm>
</template> </template>
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="机器编码" prop="machineCode "> <el-form-item label="机器编码" prop="machineCode ">
<el-input v-model="queryParams.machineCode" placeholder="请输入店铺地址" clearable @keyup.enter.native="handleQuery" /> <el-input v-model="queryParams.machineCode" placeholder="请输入机器编码" clearable @keyup.enter.native="handleQuery" />
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery" v-hasPermi="['system:shop:query']">搜索</el-button> <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery" v-hasPermi="['system:shop:query']">搜索</el-button>
......
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