diff --git a/pages/.DS_Store b/pages/.DS_Store index f595488..d73a6a3 100644 Binary files a/pages/.DS_Store and b/pages/.DS_Store differ diff --git a/pages/billing/addUser.vue b/pages/billing/addUser.vue index ea8aceb..2ef7313 100644 --- a/pages/billing/addUser.vue +++ b/pages/billing/addUser.vue @@ -102,14 +102,9 @@ // 需要在onReady中设置规则 this.$refs.form.setRules(this.rules) }, - onLoad(option) { - // if(option.data){ - // let data = JSON.parse(option.data) - // } + onLoad(option) { this.popleType = option.popleType - this.type=option.type - console.log(option.popleType) - console.log(option.type) + this.type=option.type if (option.type = "edit") { this.formData.address1 = data.province + data.city + data.area this.formData.address = data.address @@ -119,8 +114,7 @@ this.formData.id = data.id this.formData.consigneeMobile = data.consigneeMobile this.formData.consigneeName = data.consigneeName - } - console.log(this.formData) + } }, methods: { del() { @@ -144,34 +138,16 @@ }) } }) - // this.tui.request("/app/customer/delById", "post", { - // id: this.userInfo.id, - // }, false, true).then((res) => { - // if (res.code == 200) { - // uni.showToast({ - // title: "删除成功", - // icon: 'none' - // }) - // uni.navigateBack() - // } else { - // uni.showToast({ - // title: "删除失败", - // icon: 'none' - // }) - // } - // }) }, nameBlur() { this.formData.username = this.formData.phone; }, openPicker() { - console.log('执行打开地址选择器') this.show = true }, onhideShow() { this.show = false - console.log('执行了关闭地址选择器') }, //选中省市区 onsetCity(e) { @@ -184,8 +160,6 @@ city: data.city, area: data.area, } - - console.log(this.formData, this.addressObj); }, // 触发提交表单 submit() { @@ -242,50 +216,8 @@ } }) } - // if (that.type == 'edit') { - - // res.id = that.userInfo.id - // that.tui.request("/app/supplier/edit", "post", this.formData, false, - // true).then((res) => { - // if (res.code == 200) { - // uni.showToast({ - // title: "修改成功", - // icon: 'none' - // }) - // uni.navigateBack() - // } else { - // uni.showToast({ - // title: "修改失败", - // icon: 'none' - // }) - // } - // }) - // } else { - // that.tui.request("/app/supplier/save", "post", Object.assign(that.addressObj, res), false, - // true).then((res) => { - // if (res.code == 200) { - // uni.showToast({ - // title: "添加成功", - // icon: 'none' - // }) - // let pages = - // getCurrentPages(); // 获取当前页面栈的实例,以数组形式按栈的顺序给出,第一个元素为首页,最后一个元素为当前页面。 - // let prevPage = pages[pages.length - 2]; //上一页页面实例 - // prevPage.$vm.popleType = 'gysName' - // uni.navigateBack({ - // delta: 1 - // }) - // } else { - // uni.showToast({ - // title: "添加失败", - // icon: 'none' - // }) - // } - // }) - // } }).catch(err => { - console.log('表单错误信息:', err); }) } } diff --git a/pages/billing/billing.vue b/pages/billing/billing.vue index fd4a33d..fb6f8ee 100644 --- a/pages/billing/billing.vue +++ b/pages/billing/billing.vue @@ -26,13 +26,6 @@ totalPages: 1, } }, - onShow() { - // this.tui.request("/app/sale/list", "post", { - // pageNumber: this.pageIndex, - // pageSize: this.pageSize, - // }, false, false).then((res) => { - // }) - }, methods: { scanCodeAdd() { @@ -52,7 +45,6 @@ }) }, goodsAdd() { - // &purchaseDetails=" + encodeURIComponent(JSON.stringify(this.saleDetailList)) uni.navigateTo({ url: "/pages/inventory/goodsList?type=billing" }) diff --git a/pages/billing/changeGoods1.vue b/pages/billing/changeGoods1.vue index dba1f0a..0d87baa 100644 --- a/pages/billing/changeGoods1.vue +++ b/pages/billing/changeGoods1.vue @@ -63,23 +63,16 @@ - {{goodsDetail.productName}} {{goodsDetail.productSn}} - -