|
@@ -127,21 +127,32 @@ export default {
|
|
|
|
|
|
// 删除
|
|
|
handleDel(){
|
|
|
- apiDelApply({BusinessApplyId:Number(this.id)}).then(res=>{
|
|
|
- if(res.code===200){
|
|
|
- uni.$emit('businessApproveListUpdate')
|
|
|
- uni.showToast({
|
|
|
- title:"删除成功",
|
|
|
- icon:'success'
|
|
|
- })
|
|
|
- setTimeout(() => {
|
|
|
- uni.navigateBack({
|
|
|
- delta: 1
|
|
|
- });
|
|
|
- }, 1500);
|
|
|
-
|
|
|
+ const that=this
|
|
|
+ uni.showModal({
|
|
|
+ title: '',
|
|
|
+ content: '确定要删除该出差申请吗?',
|
|
|
+ success: function (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ console.log('用户点击确定');
|
|
|
+ apiDelApply({BusinessApplyId:Number(that.id)}).then(res=>{
|
|
|
+ if(res.code===200){
|
|
|
+ uni.$emit('businessApproveListUpdate')
|
|
|
+ uni.showToast({
|
|
|
+ title:"删除成功",
|
|
|
+ icon:'success'
|
|
|
+ })
|
|
|
+ setTimeout(() => {
|
|
|
+ uni.navigateBack({
|
|
|
+ delta: 1
|
|
|
+ });
|
|
|
+ }, 1500);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else if (res.cancel) {
|
|
|
+ console.log('用户点击取消');
|
|
|
+ }
|
|
|
}
|
|
|
- })
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
//审批驳回
|