app费用减免提交
This commit is contained in:
parent
ef7ecf76e1
commit
fde0014958
|
|
@ -139,7 +139,7 @@
|
|||
import { ref, reactive,nextTick } from 'vue'
|
||||
import eselect from '@/components/tree-select/eselect.vue'
|
||||
import { onLoad,onReady } from '@dcloudio/uni-app'
|
||||
import { getUnitList,getProjectList,getThreeType,getFourType,getDirefList,insertApp,getAgreementInfoById,getTypeDataList,leaseTask } from '../../services/back.js';
|
||||
import { getUnitList,getProjectList,getThreeType,getFourType,getDirefList,insertApp,getAgreementInfoById,getTypeDataList,leaseTask,discountSubmit } from '../../services/back.js';
|
||||
const taskInfo = ref({})
|
||||
const treeSelect = ref(null)
|
||||
const treeSelect2 = ref(null)
|
||||
|
|
@ -443,10 +443,31 @@ const submitNum = () => {
|
|||
})
|
||||
return
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: '提交成功!',
|
||||
icon: 'none',
|
||||
duration: 1000
|
||||
let obj = {
|
||||
"agreementId":agreementId.value,
|
||||
"detailList":typeList.value,
|
||||
"bmFileInfos":bmFileInfos.value,
|
||||
"reduceStartTime":formData.value.reduceStartTime,
|
||||
"reduceEndTime":formData.value.reduceEndTime,
|
||||
}
|
||||
console.log(obj)
|
||||
discountSubmit(obj).then( res => {
|
||||
console.log(res)
|
||||
if(res.code==200){
|
||||
console.log('xxxxxxxxxxxxxxxx')
|
||||
uni.showToast({ title: '申请成功', icon: 'none',duration: 1000
|
||||
})
|
||||
setTimeout(() => {
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
}, 1000);
|
||||
}else{
|
||||
console.log('yyyyyyyyyyyyy')
|
||||
uni.showToast({ title: res.msg, icon: 'none',duration: 1000 })
|
||||
}
|
||||
}).catch(error => {
|
||||
console.log(error)
|
||||
})
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,9 +114,9 @@
|
|||
</uni-td>
|
||||
<uni-td style="font-size: 24rpx;text-align: center;">
|
||||
<view class="uni-group">
|
||||
<view class="action-btn" @click="uploadImg(item)">
|
||||
<!-- <view class="action-btn" @click="uploadImg(item)">
|
||||
<uni-icons type="camera" size="20" style="color: #3784fb;"/>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="action-btn delete" @click="delRow(index)">
|
||||
<uni-icons type="trash-filled" size="20" style="color: red;margin-left:10px;"/>
|
||||
</view>
|
||||
|
|
|
|||
|
|
@ -245,3 +245,12 @@ export const getDetailsByIdApi = (data) => {
|
|||
data:data,
|
||||
})
|
||||
}
|
||||
|
||||
// 减免费用申请提交
|
||||
export const discountSubmit = (data) => {
|
||||
return http({
|
||||
method: 'POST',
|
||||
url: '/material/slt_agreement_reduce/addApply',
|
||||
data:data,
|
||||
})
|
||||
}
|
||||
Loading…
Reference in New Issue