提交结合后的代码

20240205
e 3 years ago
parent d4c1a43b7d
commit ecae5ca06a
  1. 7
      src/pages/counter/list/index.vue
  2. 86
      src/pages/manage/list/client/consumerClient.vue

@ -790,7 +790,12 @@ export default {
let projectId = sessionStorage.getItem('projectId') let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime') let startTime = sessionStorage.getItem('startTime')
let formList = []; let formList = [];
for (var i=0;i<this.receptionList.length;i++){formList.push({ "answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,1,"+this.receptionList[i].id, "type": "" })} for (var i=0;i<this.receptionList.length;i++){formList.push({
"answerId":this.receptionList[i].id,
"emptyOne": "",
"emptyTwo": "",
"operationIds": "0,1,"+this.receptionList[i].id,
"type": "" })}
let params= { let params= {
parentId:'0,1', parentId:'0,1',
lcJudgmentRuleReq:formList, lcJudgmentRuleReq:formList,

@ -108,6 +108,8 @@
<script> <script>
import { mapState, mapMutations } from 'vuex' import { mapState, mapMutations } from 'vuex'
import { vername, vermob } from '@/utils/verify.js'
import { addOperation } from '@/api/http';
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { phoneListen, mailBoxListen, checkRequired, myValidate } from '@/utils/utilFunction.js' import { phoneListen, mailBoxListen, checkRequired, myValidate } from '@/utils/utilFunction.js'
@ -175,36 +177,60 @@ export default {
}, },
// //
submitForm(){ submitForm(){
let formExternalData = sessionStorage.getItem('formExternalData') let formExternalData = sessionStorage.getItem('formExternalData')
let consumerClientDragList = JSON.parse(formExternalData); let consumerClientDragList = JSON.parse(formExternalData);
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
this.visible = true; this.visible = true;
let formList = []; let formList = [];
if(this.form.nationality){ if(this.form.sex){
formList.push({ formList.push({
"emptyOne": "", "answerId":'43',
"emptyTwo": "", "emptyOne": "1",
"operationIds": "0,5,25,33,45", "emptyTwo": this.form.sex,
"type": "" "operationIds": "0,5,25,33,43",//
}) "type": "1"
} })
if(this.form.mailbox){ }
formList.push({ if(this.form.nationality){
"emptyOne": "", formList.push({
"emptyTwo": "", "answerId":'45',
"operationIds": "0,5,25,33,46", "emptyOne": "3",
"type": "" "emptyTwo": this.form.nationality,
}) "operationIds": "0,5,25,33,45",//
} "type": "1"
formList.push( })
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,40", "type": ""}, }
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,41,13", "type": ""}, if(this.form.mailbox){
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,42", "type": ""}, formList.push({
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,44", "type": ""}, "answerId":'46',
{"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,47", "type": ""} "emptyOne": "4",
); "emptyTwo": this.form.mailbox,
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) "operationIds": "0,5,25,33,46",//
}, this.$refs)); "type": "3"
})
}
formList.push(
{"answerId":'40',"emptyOne": "19", "emptyTwo": this.form.idType, "operationIds": "0,5,25,33,40", "type": "1"},//
{"answerId":'46',"emptyOne": "", "emptyTwo": "", "operationIds": "0,5,25,33,41,13", "type": ""},//
{"answerId":'42',"emptyOne": "7", "emptyTwo": this.form.userName, "operationIds": "0,5,25,33,42", "type": "3"},//
{"answerId":'44',"emptyOne": "2", "emptyTwo": this.form.birthday, "operationIds": "0,5,25,33,44", "type": ""},//
{"answerId":'47',"emptyOne": "5", "emptyTwo": this.form.phone, "operationIds": "0,5,25,33,47", "type": "3"}//
);
let params= {
parentId:'0,5,25,33',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
this.$message({
message: '提交成功',
type: 'success'
});
}).catch((error)=>{
})
} , this.$refs));
//
// if(this.form.idNumber && this.form.idNumber.userName && this.form.idNumber.sex && this.form.idNumber.birthday && this.form.idNumber.phone) { // if(this.form.idNumber && this.form.idNumber.userName && this.form.idNumber.sex && this.form.idNumber.birthday && this.form.idNumber.phone) {
// this.visible = true; // this.visible = true;
// let formList = []; // let formList = [];

Loading…
Cancel
Save