20240205
luoJunYong.123 3 years ago
commit e4bd7bf8bf
  1. 4
      src/pages/manage/list/business/transfer.vue
  2. 60
      src/pages/manage/list/business/withdrawal.vue
  3. 8
      src/utils/utilFunction.js

@ -158,13 +158,9 @@ export default {
second:[//
],
options:[],
visible:false,
options:[],
activeIndex:'1',
second:[//
],
myTable: {
257: {
prop: 'transoutNum',

@ -142,11 +142,7 @@ export default {
],
options:[],
visible:false,
options:[],
activeIndex:'1',
second:[//
],
myTable: {
247: {
prop: 'username',
@ -207,13 +203,65 @@ export default {
autoPlay2(parentId, this.form, this.myTable2, this.myTable)
},
submitForm() {
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
this.$refs.form.validate(myValidate(() => {
//
this.visible = true;
const parentId = '0,5,27,226'
autoPlay(parentId, this.form, this.myTable2, this.myTable, projectId, startTime)
autoPlay(parentId, this.form, this.myTable2, this.myTable)
// let tmpIndex = 100;
// for(const key in this.myTable2) {
// const { prop, type } = this.myTable2[key]
// if(this.form[prop]){
// formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type })
// }
// }
// for(const key in this.myTable) {
// const { prop, type } = this.myTable[key]
// formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type })
// }
// let params= {
// parentId,
// lcJudgmentRuleReq:formList,
// projectId:+projectId,
// startTime:startTime,
// }
// addOperation(params).then((data)=>{
// this.$message({
// message: '',
// type: 'success'
// });
// }).catch((error)=>{
// })
// emptyOne
// let tmpIndex = 100;
// for(const key in this.myTable2) {
// const { prop, type } = this.myTable[key]
// if(this.form[prop]){
// formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type })
// }
// }
// for(const key in this.myTable) {
// const { prop, type } = this.myTable[key]
// formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type })
// }
// let params= {
// parentId,
// lcJudgmentRuleReq:formList,
// projectId:+projectId,
// startTime:startTime,
// }
// addOperation(params).then((data)=>{
// this.$message({
// message: '',
// type: 'success'
// });
// }).catch((error)=>{
// })
}, this.$refs));
},
ismoney: ismoney,

@ -116,7 +116,9 @@ const myValidate = (callback, refs) => {
}
}
const autoPlay = (parentId, form, myTable2, myTable, projectId, startTime) => {
const autoPlay = (parentId, form, myTable2, myTable) => {
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
let formList = [];
// const parentId = '0,5,27,226'
// 因为没说emptyOne是多少
@ -124,14 +126,14 @@ const autoPlay = (parentId, form, myTable2, myTable, projectId, startTime) => {
for(const key in myTable2) {
const { prop, type } = myTable2[key]
if(form[prop]){
formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, type })
formList.push({ "answerId": key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, "type":type })
}
}
for(const key in myTable) {
console.log(myTable[key])
const { prop, type } = myTable[key]
formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, type })
formList.push({ "answerId": key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, "type":type })
}
let params= {
parentId,

Loading…
Cancel
Save