This commit is contained in:
parent
e305af8665
commit
78fd01c58a
|
|
@ -102,6 +102,7 @@ const closePopup = () => {
|
|||
const confirmRemark = () => {
|
||||
console.log('opts:', opts.value)
|
||||
if (countdown.value > 0) return
|
||||
popup.value.close()
|
||||
const params = {
|
||||
id: opts.value.id,
|
||||
leaseSignId: opts.value.leaseSignId,
|
||||
|
|
@ -116,7 +117,6 @@ const confirmRemark = () => {
|
|||
})
|
||||
confirmMaterialApi(params)
|
||||
.then((res) => {
|
||||
popup.value.close()
|
||||
uni.hideLoading()
|
||||
loading.value = false
|
||||
// 返回
|
||||
|
|
|
|||
|
|
@ -845,14 +845,16 @@ const closePopup = () => {
|
|||
const confirmTransfer = () => {
|
||||
if (countdown.value > 0) return
|
||||
if(transferUser.value!=""){
|
||||
keeperPopup.value.close()
|
||||
uni.showLoading({ title: '加载中...', mask: true })
|
||||
let param = {
|
||||
"boxId":boxInfo.value.boxId,
|
||||
"transferUser":transferUser.value,
|
||||
}
|
||||
appTransferApi(param).then(res => {
|
||||
uni.hideLoading()
|
||||
console.log(res)
|
||||
if(res.code=200){
|
||||
keeperPopup.value.close();
|
||||
uni.showToast({ title: '移交成功!', icon: 'none' })
|
||||
setTimeout(()=>{
|
||||
uni.navigateBack({
|
||||
|
|
@ -862,6 +864,7 @@ const confirmTransfer = () => {
|
|||
}
|
||||
}).catch(error => {
|
||||
console.log(error)
|
||||
uni.hideLoading()
|
||||
})
|
||||
}else{
|
||||
uni.showToast({ title: '请先勾选移交人!', icon: 'none' })
|
||||
|
|
|
|||
|
|
@ -349,7 +349,8 @@ const onChangeChecked = (item) => {
|
|||
const confirmTransfer = () => {
|
||||
if (countdown.value > 0) return
|
||||
if(transferUser.value!=""){
|
||||
|
||||
keeperPopup.value.close()
|
||||
uni.showLoading({ title: '加载中...', mask: true })
|
||||
let param = {
|
||||
"boxId":transferItem.value.boxId,
|
||||
"inputUser":transferUser.value,
|
||||
|
|
@ -357,14 +358,15 @@ const confirmTransfer = () => {
|
|||
console.log(param)
|
||||
|
||||
appTransferApi(param).then(res => {
|
||||
uni.hideLoading()
|
||||
console.log(res)
|
||||
if(res.code=200){
|
||||
keeperPopup.value.close();
|
||||
uni.showToast({ title: '移交成功!', icon: 'none' })
|
||||
getTableList(true)
|
||||
}
|
||||
}).catch(error => {
|
||||
console.log(error)
|
||||
uni.hideLoading()
|
||||
})
|
||||
}else{
|
||||
uni.showToast({ title: '请先勾选移交人!', icon: 'none' })
|
||||
|
|
|
|||
Loading…
Reference in New Issue