Browse Source

挂单

master
tianyi@bogon 3 years ago
parent
commit
64520018c9
  1. 24
      pages/index/addHangOrder.vue

24
pages/index/addHangOrder.vue

@ -148,9 +148,25 @@
}
},
onLoad() {
this.initRecord()
this.initRecord()
this.regList();
},
methods: {
methods: {
//挂单列表
regList(){
this.tui.request("/app/sale/listPages", "POST", {
saleName: e
}, false, false).then((res) => {
if (res.code == 200) {
this.tui.toast("新增成功")
this.regList();
} else {
this.tui.toast(res.message)
}
}).catch((res) => {
this.tui.toast(res)
})
},
//点击切换折叠状态
clickCollapse() {
this.isCollapse = !this.isCollapse
@ -258,11 +274,13 @@
},
//新增挂单
addReg(e){
console.log(e)
this.tui.request("/app/sale/saveOrder", "POST", {
saleName: e
}, false, false).then((res) => {
if (res.code == 200) {
this.tui.toast("新增成功")
this.regList();
} else {
this.tui.toast(res.message)
}

Loading…
Cancel
Save