@@ -17,7 +17,10 @@ Vue.prototype.$zaudio = zaudio | |||
Vue.prototype.$dayjs = dayjs; | |||
Vue.prototype.$store = store; | |||
import common from 'utils/common.js' | |||
Vue.prototype.$noMultipleClicks = common.noMultipleClicks; | |||
// 引入全局uView | |||
import uView from 'uview-ui' | |||
Vue.use(uView); | |||
@@ -162,6 +162,7 @@ | |||
export default { | |||
data() { | |||
return { | |||
noClick:true, | |||
// tabbar配置项 | |||
current: 0, | |||
tabbarList: tabbarList, | |||
@@ -319,17 +320,25 @@ | |||
content: "确定更改当前客户接待状态为结束?", | |||
cancelColor: "#999999", | |||
success: res => { | |||
if (res.confirm) { | |||
this.$u.post("/customer/endReception", { | |||
id: id, | |||
houseId: this.buildingID | |||
}).then(res => { | |||
uni.showToast({ | |||
icon: "none", | |||
title: "操作成功" | |||
}) | |||
this.init(); | |||
}); | |||
if (this.noClick) { | |||
this.noClick= false; | |||
if (res.confirm) { | |||
this.$u.post("/customer/endReception", { | |||
id: id, | |||
houseId: this.buildingID | |||
}).then(res => { | |||
uni.showToast({ | |||
icon: "none", | |||
title: "操作成功" | |||
}) | |||
this.init(); | |||
}); | |||
} | |||
setTimeout(()=> { | |||
this.noClick= true; | |||
}, 2000) | |||
} else { | |||
// 这里是重复点击的判断 | |||
} | |||
} | |||
}) | |||
@@ -183,7 +183,7 @@ | |||
</view> | |||
<view class="bounced3"> | |||
<view class="bounced3-1" @click="effective=false">取消</view> | |||
<view class="bounced3-2" @click="effectiveAdd()">确认</view> | |||
<view class="bounced3-2" @click="$noMultipleClicks(effectiveAdd)">确认</view> | |||
</view> | |||
</view> | |||
@@ -370,27 +370,35 @@ | |||
//标记 | |||
alllogo() { | |||
let msg = ''; | |||
var that = this; | |||
if (this.userlistobj.validInvalid != 0) { | |||
msg = '是否标记为"有效录音"?'; | |||
uni.showModal({ | |||
title: '提示', | |||
content: msg, | |||
success: (res) => { | |||
if (res.confirm) { | |||
let parames = { | |||
id: this.customerId, | |||
validInvalid: '', | |||
invalidReason: 0 | |||
} | |||
if (this.userlistobj.validInvalid == 0) { | |||
parames.validInvalid = 1; | |||
} else { | |||
parames.validInvalid = 0; | |||
} | |||
this.$u.post("/customer/updateValidInvalid", parames).then(res => { | |||
console.log(res) | |||
this.gituserlist() | |||
}) | |||
if (that.noClick) { | |||
that.noClick= false; | |||
if (res.confirm) { | |||
let parames = { | |||
id: this.customerId, | |||
validInvalid: '', | |||
invalidReason: 0 | |||
} | |||
if (this.userlistobj.validInvalid == 0) { | |||
parames.validInvalid = 1; | |||
} else { | |||
parames.validInvalid = 0; | |||
} | |||
this.$u.post("/customer/updateValidInvalid", parames).then(res => { | |||
console.log(res) | |||
this.gituserlist() | |||
}) | |||
} | |||
setTimeout(()=> { | |||
that.noClick= true; | |||
}, 2000) | |||
} | |||
} | |||
}); | |||
@@ -146,7 +146,7 @@ | |||
<viwe class="tian-view-t1"></viwe> | |||
<viwe class="tian-view-t2">常错词:</viwe> | |||
<viwe class="tian-view-t3"> | |||
<textarea :auto-height="true" type="text" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" /> | |||
<textarea :auto-height="true" v-model="thewrongword" :disabled="isNum" class="tian-input" placeholder="请输入" /> | |||
</viwe> | |||
</view> | |||
<view class="tian-view" style="margin-bottom: 74rpx;"> | |||
@@ -407,7 +407,7 @@ | |||
</view> | |||
<view class="bounced3"> | |||
<view class="bounced3-1" @click="effective=false">取消</view> | |||
<view class="bounced3-2" @click="effectiveAdd()">确认</view> | |||
<view class="bounced3-2" @click="$noMultipleClicks(effectiveAdd)">确认</view> | |||
</view> | |||
</view> | |||
@@ -869,20 +869,28 @@ | |||
title: '提示', | |||
content: msg, | |||
success: function(res) { | |||
if (res.confirm) { | |||
let parames = { | |||
id: that.customerId, | |||
validInvalid: '', | |||
invalidReason: 0 | |||
} | |||
if (that.userlistobj.validInvalid == 0) { | |||
parames.validInvalid = 1; | |||
} else { | |||
parames.validInvalid = 0; | |||
} | |||
that.$u.post("/customer/updateValidInvalid", parames).then(res => { | |||
that.Thetapeidisshow = false; | |||
}) | |||
if (that.noClick) { | |||
that.noClick= false; | |||
if (res.confirm) { | |||
let parames = { | |||
id: that.customerId, | |||
validInvalid: '', | |||
invalidReason: 0 | |||
} | |||
if (that.userlistobj.validInvalid == 0) { | |||
parames.validInvalid = 1; | |||
} else { | |||
parames.validInvalid = 0; | |||
} | |||
that.$u.post("/customer/updateValidInvalid", parames).then(res => { | |||
that.Thetapeidisshow = false; | |||
}) | |||
} | |||
setTimeout(()=> { | |||
that.noClick= true; | |||
}, 2000) | |||
} else { | |||
// 这里是重复点击的判断 | |||
} | |||
} | |||
}); | |||
@@ -1277,6 +1285,8 @@ | |||
title: '正确词错误词不能超过8个字', | |||
type: 'warning', | |||
}) | |||
this.isshow2 = true; | |||
}else{ | |||
let reg = /^[0-9]+$/ | |||
if(reg.test(this.thewrongword)){ | |||
@@ -1284,6 +1294,8 @@ | |||
title: '错误词不能为纯数字', | |||
type: 'warning', | |||
}) | |||
this.isshow2 = true; | |||
}else{ | |||
if (this.thewrongword) { | |||
if (this.reswrongword) { | |||
@@ -1310,17 +1322,19 @@ | |||
this.reswrongword = ""; | |||
}) | |||
} else { | |||
uni.showToast({ | |||
this.$refs.uToast.show({ | |||
title: '正确值不能为空', | |||
duration: 2000 | |||
}); | |||
type: 'warning', | |||
}) | |||
this.isshow2 = true; | |||
return | |||
} | |||
} else { | |||
uni.showToast({ | |||
this.$refs.uToast.show({ | |||
title: '错误词不能为空', | |||
duration: 2000 | |||
}); | |||
type: 'warning', | |||
}) | |||
this.isshow2 = true; | |||
return | |||
} | |||
} | |||
@@ -71,7 +71,7 @@ | |||
</view> | |||
</view> | |||
<view class="clive" @click="save">确定</view> | |||
<view class="clive" @click="$noMultipleClicks(save)">确定</view> | |||
<u-select :mask-close-able="false" v-model="Showhiddenunits" mode="single-column" :list="list" | |||
@cancel="cancel" @confirm="confirm"></u-select> | |||
@@ -89,7 +89,8 @@ | |||
export default { | |||
data() { | |||
return { | |||
return { | |||
noClick: true, | |||
Showhiddenunits: false, | |||
list: [{ | |||
label: '自然到访', | |||