diff --git a/src/pages/eashier/service/passcode.vue b/src/pages/eashier/service/passcode.vue index bf01194..5c98ac9 100644 --- a/src/pages/eashier/service/passcode.vue +++ b/src/pages/eashier/service/passcode.vue @@ -53,6 +53,7 @@ export default { this.imgvalue = null; this.file = null; this.paymentform = {}; + this.$refs.signature.handleReset() }, setPassword(val) { @@ -133,8 +134,8 @@ export default { if (res.data == true) { this.$message.success({ message: "密码正确!" }); this.$emit("passcodeData", this.file); - - this.paymentcodeDialog = false; + this.handleClose() + // this.paymentcodeDialog = false; } else { this.$alert("密码错误", "提示", { confirmButtonText: "确定", diff --git a/src/pages/eashier/within/components/edit.vue b/src/pages/eashier/within/components/edit.vue index 23cd6c7..26583c0 100644 --- a/src/pages/eashier/within/components/edit.vue +++ b/src/pages/eashier/within/components/edit.vue @@ -314,7 +314,14 @@ export default { this.form.staffLists = this.staffList; console.log("🚀 ~ file: edit.vue ~ line 316 ~ updateRechargeCardTransition ~ this.form", this.form) - updateRechargeCardTransition(this.form).then((res) => { + let params = {...this.form} + //过滤掉员工名称 + for(let key in params){ + if((key.substring(0,4)==='sale' && key.substring(key.length-4,key.length)==='Name') || (key.substring(0,4)==='sale' && key.substring(key.length-7,key.length)==='StaffId')){ + delete params[key] + } + } + updateRechargeCardTransition(params).then((res) => { if (res.code == "000000") { this.$emit("editData");