|
|
|
@ -314,7 +314,14 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
this.form.staffLists = this.staffList;
|
|
|
|
this.form.staffLists = this.staffList;
|
|
|
|
console.log("🚀 ~ file: edit.vue ~ line 316 ~ updateRechargeCardTransition ~ this.form", this.form)
|
|
|
|
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") {
|
|
|
|
if (res.code == "000000") {
|
|
|
|
this.$emit("editData");
|
|
|
|
this.$emit("editData");
|
|
|
|
|