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