Quellcode durchsuchen

银农app

wulanhaote
yujk vor 3 Jahren
Ursprung
Commit
d1b21387f3
9 geänderte Dateien mit 3782 neuen und 1174 gelöschten Zeilen
  1. +17
    -0
      src/api/onlineHome/bankAgriculture/paymentApproval.js
  2. +356
    -112
      src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd.vue
  3. +587
    -176
      src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd11.vue
  4. +589
    -178
      src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd12.vue
  5. +355
    -112
      src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd2.vue
  6. +346
    -113
      src/views/yinnong/bankAgriculture/paymentApproval/approvalModify.vue
  7. +591
    -184
      src/views/yinnong/bankAgriculture/paymentApproval/approvalModify11.vue
  8. +592
    -185
      src/views/yinnong/bankAgriculture/paymentApproval/approvalModify12.vue
  9. +349
    -114
      src/views/yinnong/bankAgriculture/paymentApproval/approvalModify2.vue

+ 17
- 0
src/api/onlineHome/bankAgriculture/paymentApproval.js Datei anzeigen

@@ -121,6 +121,14 @@ export function customSubmit(id) {
})
}

// 提交线下审批
export function offlineCustomSubmit(id) {
return request({
url: '/yinnong/transfer/offlineCustomSubmit/' + id,
method: 'post'
})
}

// 现金提交审批
export function cashSubmit(id) {
return request({
@@ -128,6 +136,15 @@ export function cashSubmit(id) {
method: 'post'
})
}

// 线下提交审批
export function offlineCashSubmit(id) {
return request({
url: '/yinnong/cash/offlineCustomSubmit/' + id,
method: 'post'
})
}

// 删除现金提现申请
export function delCash(id) {
return request({


+ 356
- 112
src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd.vue Datei anzeigen

@@ -308,7 +308,8 @@
</template>

<script>
import { addTransfer , listPayee , updateTransfer , getProjectto , listProject , addProjectto , customSubmit , getAccount ,getQmyeFlow , attach ,listInfo ,getInfoto ,addInfoto,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
import { addTransfer , listPayee , updateTransfer , getProjectto , listProject , addProjectto ,
customSubmit ,offlineCustomSubmit, getAccount ,getQmyeFlow , attach ,listInfo ,getInfoto ,addInfoto,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
import request from '@/utils/request'
import {attachmentList, commonAttach} from "../../../../api/onlineHome/bankAgriculture/paymentApproval";
import Dialog from "vant/lib/dialog";
@@ -760,35 +761,62 @@
this.$set(this.form, "accountTypeList", this.chargeItme);
this.$set(this.form, "transferStatusList", this.chargeItme);
addTransfer(this.form).then(response => {
console.log(response.data.id)
this.projectForm.outId = response.data.id
this.infoForm.transferId = response.data.id
this.$set(this.projectForm, "ynType", '1');
if(this.form.capitalExpenditureType==2){
addProjectto(this.projectForm).then(res => {
if(this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}

})
}else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
if(this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
});
})
@@ -836,29 +864,56 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -866,29 +921,56 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
}
@@ -906,29 +988,56 @@
if(idx3 ==(_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -936,29 +1045,56 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
}
@@ -986,29 +1122,56 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -1016,29 +1179,56 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
}
@@ -1056,29 +1246,56 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -1086,29 +1303,56 @@
}else{
if(this.form.capitalExpenditureType==2){
addProjectto(this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
});


+ 587
- 176
src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd11.vue Datei anzeigen

@@ -253,7 +253,7 @@

<script>
import { addTransfer , listPayee , updateTransfer , getProjectto , listProject , addProjectto ,
cashSubmit , getAccount ,getQmyeFlow,listInfo ,getInfoto ,addInfoto ,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
cashSubmit , offlineCashSubmit, getAccount ,getQmyeFlow,listInfo ,getInfoto ,addInfoto ,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
import request from '@/utils/request'
import {
addCash,
@@ -674,30 +674,57 @@
_this.projectForm.outId = response.data.id
_this.$set(_this.projectForm, "ynType", '2');
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else if(_this.form.capitalExpenditureType==4){
_this.infoForm.transferId = response.data.id
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else if(_this.form.capitalExpenditureType==4){
_this.infoForm.transferId = response.data.id
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -747,6 +774,70 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
@@ -760,10 +851,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
@@ -776,21 +865,7 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -798,6 +873,70 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
@@ -811,10 +950,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
@@ -827,21 +964,7 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
}
@@ -859,6 +982,70 @@
if(idx3 ==(_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
@@ -872,10 +1059,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
@@ -888,21 +1073,7 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -910,27 +1081,75 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
@@ -939,21 +1158,21 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
})
}
}
}
}
@@ -981,6 +1200,70 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
@@ -994,10 +1277,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
@@ -1010,21 +1291,7 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -1032,6 +1299,70 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
@@ -1045,10 +1376,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
@@ -1061,21 +1390,7 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
}
@@ -1093,6 +1408,70 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
@@ -1106,10 +1485,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
@@ -1122,21 +1499,7 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -1144,6 +1507,70 @@
}else{
if(this.form.capitalExpenditureType==2){
addProjectto(this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
@@ -1157,10 +1584,8 @@
})
})
})
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
@@ -1173,21 +1598,7 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
});


+ 589
- 178
src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd12.vue Datei anzeigen

@@ -297,7 +297,7 @@

<script>
import { addTransfer , listPayee , updateTransfer , getProjectto , listProject , addProjectto ,
cashSubmit, getAccount ,getQmyeFlow ,listInfo ,getInfoto ,addInfoto ,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
cashSubmit,offlineCashSubmit, getAccount ,getQmyeFlow ,listInfo ,getInfoto ,addInfoto ,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
import request from '@/utils/request'
import {
addCash,
@@ -748,38 +748,65 @@
})
.then(() => {
addCash(this.form).then((response) => {
_this.chargeItme.map((res,idx) => {
this.chargeItme.map((r,idx) => {
res.cashId = response.data.id
addCashdetail(res).then(rdd => {
addCashdetail(res).then(r => {
if(idx == (_this.chargeItme.length - 1)){
if(_this.form.capitalExpenditureType==2){
_this.projectForm.outId = response.data.id
_this.$set(_this.projectForm, "ynType", '2');
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else if(_this.form.capitalExpenditureType==4){
_this.infoForm.transferId = response.data.id
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else if(_this.form.capitalExpenditureType==4){
_this.infoForm.transferId = response.data.id
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -829,6 +856,70 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
@@ -842,10 +933,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
@@ -858,21 +947,7 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -880,6 +955,70 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
@@ -893,10 +1032,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
@@ -909,21 +1046,7 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
}
@@ -941,6 +1064,70 @@
if(idx3 ==(_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
@@ -954,10 +1141,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
@@ -970,21 +1155,7 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -992,27 +1163,75 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
@@ -1021,21 +1240,21 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
})
}
}
}
}
@@ -1063,6 +1282,70 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
@@ -1076,10 +1359,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
@@ -1092,21 +1373,7 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -1114,6 +1381,70 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
@@ -1127,10 +1458,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
@@ -1143,21 +1472,7 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
}
@@ -1175,6 +1490,70 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
@@ -1188,10 +1567,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
@@ -1204,21 +1581,7 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -1226,6 +1589,70 @@
}else{
if(this.form.capitalExpenditureType==2){
addProjectto(this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
@@ -1239,10 +1666,8 @@
})
})
})
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
@@ -1255,21 +1680,7 @@
})
})
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = response.data.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
});


+ 355
- 112
src/views/yinnong/bankAgriculture/paymentApproval/approvalAdd2.vue Datei anzeigen

@@ -300,7 +300,7 @@

<script>
import { addTransfer , listPayee , updateTransfer ,
getProjectto , listProject , addProjectto , customSubmit ,
getProjectto , listProject , addProjectto , customSubmit ,offlineCustomSubmit,
getAccount ,getQmyeFlow,listInfo ,getInfoto ,addInfoto,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
import request from '@/utils/request'
import {attachmentList, commonAttach} from "../../../../api/onlineHome/bankAgriculture/paymentApproval";
@@ -748,35 +748,62 @@
this.$set(this.form, "accountTypeList", this.chargeItme);
this.$set(this.form, "transferStatusList", this.chargeItme);
addTransfer(this.form).then(response => {
console.log(response.data.id)
this.projectForm.outId = response.data.id
this.infoForm.transferId = response.data.id
this.$set(this.projectForm, "ynType", '1');
if(this.form.capitalExpenditureType==2){
addProjectto(this.projectForm).then(res => {
if(this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}

})
}else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
if(this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
});
})
@@ -824,29 +851,56 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -854,29 +908,56 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
}
@@ -894,29 +975,56 @@
if(idx3 ==(_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -924,29 +1032,56 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
}
@@ -974,29 +1109,56 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -1004,29 +1166,56 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
}
@@ -1044,29 +1233,56 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -1074,29 +1290,56 @@
}else{
if(this.form.capitalExpenditureType==2){
addProjectto(this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
customSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
}else{
offlineCustomSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(response.data.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
});


+ 346
- 113
src/views/yinnong/bankAgriculture/paymentApproval/approvalModify.vue Datei anzeigen

@@ -305,7 +305,8 @@
</template>

<script>
import { getAccount , getTransfer , queryTransferDetail , listPayee , updateTransfer , getProjectto , listProject , addProjectto , customSubmit ,getQmyeFlow ,listInfo ,getInfoto ,addInfoto,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
import { getAccount , getTransfer , queryTransferDetail , listPayee , updateTransfer , getProjectto , listProject , addProjectto ,
customSubmit ,offlineCustomSubmit, getQmyeFlow ,listInfo ,getInfoto ,addInfoto,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
import {
attachmentList,
commonAttach,
@@ -755,29 +756,56 @@
this.$set(this.projectForm, "ynType", '1');
if(this.form.capitalExpenditureType==2){
addProjectto(this.projectForm).then(res => {
if(this.form.approvalMode === '1'){
customSubmit(this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
if(this.form.approvalMode === '1'){
customSubmit(this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(this.form.approvalMode === '1'){
customSubmit(this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
customSubmit(this.form.id).then(res => {
}else{
offlineCustomSubmit(this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
});
})
@@ -825,29 +853,56 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -855,29 +910,56 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
}
@@ -895,21 +977,39 @@
if(idx3 ==(_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
customSubmit(_this.form.id).then(res => {
@@ -925,29 +1025,56 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
}
@@ -975,29 +1102,56 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -1005,29 +1159,56 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
}
@@ -1045,29 +1226,56 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -1075,35 +1283,60 @@
}else{
if(this.form.capitalExpenditureType==2){
addProjectto(this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
this.$toast.success('提交成功');
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
this.$toast.success('提交成功');
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
});
}


},
goUpdate(){
let _this = this


+ 591
- 184
src/views/yinnong/bankAgriculture/paymentApproval/approvalModify11.vue Datei anzeigen

@@ -253,7 +253,7 @@

<script>
import { listAccount1 , getTransfer , queryTransferDetail , listPayee , updateTransfer , getProjectto , listProject , addProjectto
, cashSubmit ,getQmyeFlow,listInfo ,getInfoto ,addInfoto,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
, cashSubmit , offlineCashSubmit, getQmyeFlow,listInfo ,getInfoto ,addInfoto,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
import {
addCash, addCashdetail,
attachmentList,
@@ -384,7 +384,6 @@
}
listProject(queryParams).then(response => {
_this.projectList = response.rows;
console.log(response)
for (let i = 0; i < response.rows.length; i++) {
//_this.projectList[i].set({text: response.rows[i].projectName, value: response.rows[i].id});
_this.$set(_this.projectList[i],"text",response.rows[i].projectName)
@@ -457,12 +456,10 @@
});
},
getChange(){
console.log(this.buttonType)
if(this.buttonType == 'update'){
console.log('update')
this.goUpdate();
}else if(this.buttonType == 'add'){
console.log('add')
this.goAdd();
}
},
@@ -670,37 +667,64 @@
.then(() => {
updateCash(this.form).then((response) => {
this.chargeItme.map((res,idx) => {
res.cashId = response.data.id
res.cashId = _this.form.id
addCashdetail(res).then(r => {
if(idx == (_this.chargeItme.length - 1)){
if(_this.form.capitalExpenditureType==2){
_this.projectForm.outId = response.data.id
_this.projectForm.outId = _this.form.id
_this.$set(_this.projectForm, "ynType", '2');
addProjectto(_this.projectForm).then(res => {
cashSubmit(response.data.id).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else if(_this.form.capitalExpenditureType==4){
_this.infoForm.transferId = _this.form.id
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else if(_this.form.capitalExpenditureType==4){
_this.infoForm.transferId = response.data.id
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -744,6 +768,70 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
@@ -756,12 +844,9 @@
}
})
})

})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
@@ -774,21 +859,7 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -796,6 +867,70 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
@@ -809,10 +944,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
@@ -825,21 +958,7 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
}
@@ -857,6 +976,70 @@
if(idx3 ==(_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
@@ -870,10 +1053,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
@@ -886,21 +1067,7 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -908,27 +1075,75 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
@@ -937,21 +1152,21 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
})
}
}
}
}
@@ -979,6 +1194,70 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
@@ -992,10 +1271,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
@@ -1008,21 +1285,7 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -1030,6 +1293,70 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
@@ -1043,10 +1370,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
@@ -1059,21 +1384,7 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
}
@@ -1091,6 +1402,70 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
@@ -1104,10 +1479,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
@@ -1120,21 +1493,7 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -1142,6 +1501,70 @@
}else{
if(this.form.capitalExpenditureType==2){
addProjectto(this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
@@ -1155,10 +1578,8 @@
})
})
})
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
@@ -1171,21 +1592,7 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
});


+ 592
- 185
src/views/yinnong/bankAgriculture/paymentApproval/approvalModify12.vue Datei anzeigen

@@ -303,7 +303,7 @@

<script>
import { getAccount , getTransfer , queryTransferDetail , listPayee , updateTransfer , getProjectto ,
listProject , addProjectto , customSubmit ,getQmyeFlow,listInfo ,getInfoto ,addInfoto,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
listProject , addProjectto , customSubmit , offlineCashSubmit, getQmyeFlow,listInfo ,getInfoto ,addInfoto,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
import request from '@/utils/request';
import {
addCash, addCashdetail,
@@ -518,12 +518,9 @@
});
},
getChange(){
console.log(this.buttonType)
if(this.buttonType == 'update'){
console.log('update')
this.goUpdate();
}else if(this.buttonType == 'add'){
console.log('add')
this.goAdd();
}
},
@@ -756,37 +753,64 @@
.then(() => {
updateCash(this.form).then((response) => {
this.chargeItme.map((res,idx) => {
res.cashId = response.data.id
res.cashId = _this.form.id
addCashdetail(res).then(r => {
if(idx == (_this.chargeItme.length - 1)){
if(_this.form.capitalExpenditureType==2){
_this.projectForm.outId = response.data.id
_this.projectForm.outId = _this.form.id
_this.$set(_this.projectForm, "ynType", '2');
addProjectto(_this.projectForm).then(res => {
cashSubmit(response.data.id).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else if(_this.form.capitalExpenditureType==4){
_this.infoForm.transferId = _this.form.id
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else if(_this.form.capitalExpenditureType==4){
_this.infoForm.transferId = response.data.id
addInfoto(_this.infoForm).then(res => {
cashSubmit(response.data.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
cashSubmit(response.data.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -830,6 +854,70 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
@@ -842,12 +930,9 @@
}
})
})

})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
@@ -860,21 +945,7 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -882,6 +953,70 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
@@ -895,10 +1030,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
@@ -911,21 +1044,7 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
}
@@ -943,6 +1062,70 @@
if(idx3 ==(_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
@@ -956,10 +1139,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
@@ -972,21 +1153,7 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -994,50 +1161,98 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
})
}
}
}
}
@@ -1065,6 +1280,70 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
@@ -1078,10 +1357,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
@@ -1094,21 +1371,7 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -1116,6 +1379,70 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
@@ -1129,10 +1456,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
@@ -1145,21 +1470,7 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
}
@@ -1177,6 +1488,70 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
@@ -1190,10 +1565,8 @@
})
})
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
@@ -1206,21 +1579,7 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
})
@@ -1228,6 +1587,70 @@
}else{
if(this.form.capitalExpenditureType==2){
addProjectto(this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
})
}else{
if(_this.form.approvalMode === '1'){
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
@@ -1241,10 +1664,8 @@
})
})
})
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
cashSubmit(_this.form.id).then(res => {
}else{
offlineCashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
@@ -1257,21 +1678,7 @@
})
})
})
})
}else{
cashSubmit(_this.form.id).then(res => {
_this.chargeItme.map((resD,b) => {
resD.cashId = _this.form.id
addCashdetail(resD).then((a,rD) => {
if(b == (_this.chargeItme.length-1)){
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
}
})
})
})
}
}
}
});


+ 349
- 114
src/views/yinnong/bankAgriculture/paymentApproval/approvalModify2.vue Datei anzeigen

@@ -307,7 +307,8 @@
</template>

<script>
import { getAccount , getTransfer , queryTransferDetail , listPayee , updateTransfer , getProjectto , listProject , addProjectto , customSubmit ,getQmyeFlow , listInfo ,getInfoto ,addInfoto,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
import { getAccount , getTransfer , queryTransferDetail , listPayee , updateTransfer , getProjectto , listProject , addProjectto ,
customSubmit ,offlineCustomSubmit , getQmyeFlow , listInfo ,getInfoto ,addInfoto,listTemplate} from "@/api/onlineHome/bankAgriculture/paymentApproval";
import {
attachmentList,
commonAttach,listVaccount, listVaccount1,
@@ -736,34 +737,61 @@
this.$set(this.form, "accountTypeList", this.chargeItme);
this.$set(this.form, "transferStatusList", this.chargeItme);
updateTransfer(this.form).then(response => {
this.projectForm.outId = _this.form.id
this.infoForm.transferId = _this.form.id
this.projectForm.outId = this.form.id
this.infoForm.transferId = this.form.id
this.$set(this.projectForm, "ynType", '1');
if(this.form.capitalExpenditureType==2){
addProjectto(this.projectForm).then(res => {
customSubmit(_this.form.id).then(res => {
if(this.form.approvalMode === '1'){
customSubmit(this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
if(this.form.approvalMode === '1'){
customSubmit(this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(this.form.approvalMode === '1'){
customSubmit(this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
}else{
offlineCustomSubmit(this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
});
})
@@ -811,29 +839,56 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -841,29 +896,56 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
}
@@ -881,21 +963,39 @@
if(idx3 ==(_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
customSubmit(_this.form.id).then(res => {
@@ -911,29 +1011,56 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
}
@@ -961,29 +1088,56 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -991,29 +1145,56 @@
}else{
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
}
@@ -1031,29 +1212,56 @@
if(idx3 == (_this.uploadFiles3.length-1)){
if(_this.form.capitalExpenditureType==2){
addProjectto(_this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(_this.form.capitalExpenditureType==4){
addInfoto(_this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
})
@@ -1061,29 +1269,56 @@
}else{
if(this.form.capitalExpenditureType==2){
addProjectto(this.projectForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
})
}else{
if(_this.form.approvalMode === '1'){
customSubmit(_this.form.id).then(res => {
this.$toast.success('提交成功');
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
} else if(this.form.capitalExpenditureType==4){
addInfoto(this.infoForm).then(res => {
customSubmit(_this.form.id).then(res => {
this.$toast.success('提交成功');
}else{
offlineCustomSubmit(_this.form.id).then(res => {
_this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
})
}else{
customSubmit(_this.form.id).then(res => {
this.$toast.success('提交成功');
setTimeout(function(){
history.go(-1)
},2000)
})
}
}
}
});


Laden…
Abbrechen
Speichern