Commit 7b7f38ab authored by Z's avatar Z

Z: Dot: store's see layout.

parent 3bf89b40
...@@ -209,9 +209,13 @@ export default { ...@@ -209,9 +209,13 @@ export default {
ApiStoreAddStore(postData) ApiStoreAddStore(postData)
.then(res => { .then(res => {
console.log('--->res') if (res.result == "success") {
this.$message({
message: "添加成功",
type: "success"
});
this.addStoreDialog = false;
}
}) })
.catch(err => { .catch(err => {
......
...@@ -60,6 +60,96 @@ ...@@ -60,6 +60,96 @@
<add-store ref="addStore"></add-store> <add-store ref="addStore"></add-store>
<store-detail ref="storeDetail"></store-detail> <store-detail ref="storeDetail"></store-detail>
<div class="ztask-dialogs">
<el-dialog
title="门店详情"
:visible.sync="zcache.status.seeDialog"
width="50%"
:before-close="dialogSeeClose"
>
<div class="dialogMain">
<el-form :model="zdata.see" label-width="120px">
<el-row>
<el-col :span="24">
<el-form-item label="门店名称:">
<el-input
:disabled="true"
v-model="zdata.see.storeName"
autocomplete="off"
placeholder="门店名称缺失"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="门店类型:">
<el-input
:disabled="true"
v-model="zdata.see.storeType"
autocomplete="off"
placeholder="门店类型为空"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="所属柜组:">
<el-input
:disabled="true"
v-model="zdata.see.storeFromBar"
autocomplete="off"
placeholder="柜组信息未知"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="门店负责人:">
<el-input
:disabled="true"
v-model="zdata.see.storeBossName"
autocomplete="off"
placeholder="门店负责人未知"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="门牌号:">
<el-input
:disabled="true"
v-model="zdata.see.storeDoorId"
autocomplete="off"
placeholder="门牌号未知"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<el-form-item label="位置:">
<el-input
:disabled="true"
v-model="zdata.see.storeAddress"
autocomplete="off"
placeholder="位置未知"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="dialogSeeClose">关 闭</el-button>
<!-- <el-button size="small" type="primary" @click="dialogSeeSubmitSend('seeForm')">任务下发</el-button> -->
</span>
</el-dialog>
</div>
</div> </div>
</template> </template>
<script> <script>
...@@ -80,6 +170,31 @@ export default { ...@@ -80,6 +170,31 @@ export default {
}, },
data() { data() {
return { return {
zcache:{
status:{
seeDialog: false,
}
},
zdata:{
see: {
storeName: 'storeAlice',
storeType: '普通',
storeFromBar: '柜组',
storeBossName: 'manAlice',
storeDoorId: '0101',
storeAddress: 'BeijingAlice',
storeManList: [
{
id: '0001',
name: 'Alice',
},
{
id: '0002',
name: 'Bob',
},
]
}
},
page: { page: {
currentPage: 1, currentPage: 1,
size: 20, size: 20,
...@@ -185,7 +300,14 @@ export default { ...@@ -185,7 +300,14 @@ export default {
detailDialog: false detailDialog: false
}; };
}, },
watch: {
// addStoreDialog() {
addStoreDialog() {
if ((this.$refs.addStore.addStoreDialog = false)) {
this.storeGetMainList();
}
}
},
// created() { // created() {
// this.storeGetMainList(); // this.storeGetMainList();
// zlog('--->Created!') // zlog('--->Created!')
...@@ -232,14 +354,19 @@ export default { ...@@ -232,14 +354,19 @@ export default {
}); });
}, },
storeGetStoreDetail(inData) { storeGetStoreDetail(inData) {
this.zcache.status.seeDialog = true
// let postData = { // let postData = {
// isDetail: true, // isDetail: true,
// stallId: inData // stallId: inData
// }; // };
this.msgId = id; // this.msgId = id;
this.detailDialog = true; // this.detailDialog = true;
this.$refs.storeDetail.detailDialog = true; // this.$refs.storeDetail.detailDialog = true;
// ApiStoreGetStoreDetail(postData).then(res => { // ApiStoreGetStoreDetail(postData).then(res => {
// }); // });
...@@ -250,16 +377,27 @@ export default { ...@@ -250,16 +377,27 @@ export default {
}; };
ApiStoreDelStore(inData) ApiStoreDelStore(inData)
.then(res => { .then(res => {
console.log('--->delRes =', res) console.log("--->delRes =", res);
if(res.result == 'success'){ if (res.result == "success") {
this.$message({
message: "删除成功",
type: "success"
});
this.storeGetMainList();
} else {
this.$message({
message: "删除失败!",
type: "error"
});
}
})
.catch(err => {
this.$message({ this.$message({
message: '删除成功', message: "删除失败!",
type: 'success' type: "error"
}) });
this.storeGetMainList(); });
}
});
}, },
listPick() {}, listPick() {},
...@@ -281,7 +419,11 @@ export default { ...@@ -281,7 +419,11 @@ export default {
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
console.log(`当前页: ${val}`); console.log(`当前页: ${val}`);
} },
dialogSeeClose(){
this.zcache.status.seeDialog = false
},
} }
}; };
</script> </script>
......
...@@ -222,6 +222,7 @@ ...@@ -222,6 +222,7 @@
<el-button size="small" type="primary" @click="dialogCreateSubmitSend('createForm')">保存并发布</el-button> <el-button size="small" type="primary" @click="dialogCreateSubmitSend('createForm')">保存并发布</el-button>
</span> </span>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="任务详情" title="任务详情"
:visible.sync="cache.status.seeDialog" :visible.sync="cache.status.seeDialog"
......
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