|
|
@@ -115,9 +115,9 @@ |
|
|
|
Showhid: false,
|
|
|
|
text: null,
|
|
|
|
show: false,
|
|
|
|
content: '东临碣石,以观沧海',
|
|
|
|
confirmtext: '1', //确认文字
|
|
|
|
canceltext: '2', //取消文字
|
|
|
|
content: '',
|
|
|
|
confirmtext: '', //确认文字
|
|
|
|
canceltext: '', //取消文字
|
|
|
|
daitiReceptionobj: {},
|
|
|
|
saveisshow: true,
|
|
|
|
isBand: false, // 阻止二次提交
|
|
|
@@ -173,12 +173,7 @@ |
|
|
|
},
|
|
|
|
btnSave() {
|
|
|
|
if (this.isBand) return
|
|
|
|
this.save() |
|
|
|
// let that = this |
|
|
|
// clearTimeout(this.fdFlag) |
|
|
|
// this.fdFlag = setTimeout(() => { |
|
|
|
// that.fdFlag = null; |
|
|
|
// }, 500)
|
|
|
|
this.save()
|
|
|
|
},
|
|
|
|
|
|
|
|
save() {
|
|
|
@@ -224,6 +219,7 @@ |
|
|
|
that.confirmtext = res.replacement.name + "代接待", //确认文字
|
|
|
|
that.canceltext = res.owner.name + '接待', //取消文字
|
|
|
|
that.show = true;
|
|
|
|
this.isBand = false
|
|
|
|
} else {
|
|
|
|
that.daitiReceptionobj = res;
|
|
|
|
console.log(that.daitiReceptionobj)
|
|
|
@@ -232,11 +228,11 @@ |
|
|
|
that.confirmtext = res.replacement.name + "代接待", //确认文字
|
|
|
|
that.canceltext = res.assign.name + '接待', //取消文字
|
|
|
|
that.show = true;
|
|
|
|
this.isBand = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.isBand = false
|
|
|
|
}).catch(e => {
|
|
|
|
that.show = true;
|
|
|
|
this.isBand = false
|
|
|
@@ -262,6 +258,8 @@ |
|
|
|
title: "保存成功"
|
|
|
|
})
|
|
|
|
uni.navigateBack()
|
|
|
|
}).catch(e => {
|
|
|
|
this.isBand = false
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
this.$u.post("/customer/add", this.parames).then(res => {
|
|
|
@@ -272,6 +270,8 @@ |
|
|
|
title: "保存成功"
|
|
|
|
})
|
|
|
|
uni.navigateBack()
|
|
|
|
}).catch(e => {
|
|
|
|
this.isBand = false
|
|
|
|
})
|
|
|
|
}
|
|
|
|
},
|
|
|
|