20240205
luoJunYong.123 3 years ago
parent 5963822288
commit c0ee400abc
  1. 2
      src/components/needBefore/index.vue
  2. 4
      src/pages/counter/list/myConfig.js
  3. 26
      src/pages/manage/list/personal/timeDeposit/deposit.vue
  4. 78
      src/pages/manage/list/personal/timeDeposit/openAccount.vue
  5. 39
      src/pages/manage/list/personal/timeDeposit/withdrawal.vue
  6. 22
      src/pages/manage/list/personal/usefulPhrases/accountClosed.vue
  7. 10
      src/pages/manage/list/personal/usefulPhrases/continueDeposit.vue
  8. 43
      src/pages/manage/list/personal/usefulPhrases/openAccount.vue
  9. 1
      src/store/modules/system.js
  10. 4
      src/utils/utilFunction.js
  11. 11898
      test.js

@ -19,6 +19,8 @@ const obj = {
'currentAccount/settle': '活期业务 -> 销户', 'currentAccount/settle': '活期业务 -> 销户',
'timeDeposit/openAccount': '整存整取 -> 开户', 'timeDeposit/openAccount': '整存整取 -> 开户',
'timeDeposit/deposit': '整存整取 -> 存款', 'timeDeposit/deposit': '整存整取 -> 存款',
'timeDeposit/withdrawal': '整存整取 -> 取款',
'timeDeposit/deposit': '整存整取 -> 存款',
} }
import {mapGetters} from 'vuex' import {mapGetters} from 'vuex'

@ -49,9 +49,9 @@ const myConfig = {
}, },
'144,1': { '144,1': {
nbm: 144, nbm: 144,
name: 'nomtimeDepositWithdrawal1', name: 'nomtimeDepositWithdrawalPassword',
parentId: '285,287,5,26,58,120', parentId: '285,287,5,26,58,120',
isPassword: false isPassword: true
}, },
'156': { '156': {
nbm: 156, nbm: 156,

@ -64,7 +64,7 @@
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else> <div v-else>
<el-input :value="form.drawPassword" disabled ref="drawPassword" type="password"></el-input> <el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="起息日" prop="valueDate"> <el-form-item label="起息日" prop="valueDate">
@ -249,6 +249,10 @@ export default{
type: '1', type: '1',
"subjectId": 28, "subjectId": 28,
}, },
140: {
prop: 'drawPassword',
type: '3'
},
141: { 141: {
prop: 'certificateDeposit',// prop: 'certificateDeposit',//
type: '1', type: '1',
@ -293,9 +297,14 @@ export default{
const parentId = '285,287,5,26,58,119' const parentId = '285,287,5,26,58,119'
const cards = { const cards = {
// 131: 'nomtimeDeposit1', // 131: 'nomtimeDeposit1',
140: 'nomtimeDepositlPassword' // 140: 'nomtimeDepositlPassword'
}
const callback = () => {
if(this.form.voucherNumber) {
this.cardNumberJudge = true
}
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },
popUp(text) { popUp(text) {
this.$store.commit('system/changePop',{show:true,text, id: '131'}) this.$store.commit('system/changePop',{show:true,text, id: '131'})
@ -318,10 +327,10 @@ export default{
// { // {
// 131: nomtimeDeposit1 // 131: nomtimeDeposit1
// }, // },
{ // {
140: nomtimeDepositlPassword, // 140: nomtimeDepositlPassword,
"subjectId": 17, // "subjectId": 17,
} // }
] ]
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
}, },
@ -350,7 +359,8 @@ export default{
}) })
}, },
dataFlowPassword(newVal) { dataFlowPassword(newVal) {
this.form.drawPassword = '******' const nomtimeDepositlPassword = sessionStorage.getItem('nomtimeDepositlPassword')
this.form.drawPassword = nomtimeDepositlPassword
} }
} }
} }

@ -30,7 +30,7 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="身份证" required> <el-form-item label="身份证" required>
<div class="idCard" @click="popUp1('身份证扫描仪')" v-if='!form.idNumber'> <div class="idCard" @click="popUp1('身份证扫描仪')" v-if='!idNumberJudge'>
<p>请刷身份证</p> <p>请刷身份证</p>
</div> </div>
<div v-else> <div v-else>
@ -41,19 +41,24 @@
<el-input ref="customerName" :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input> <el-input ref="customerName" :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="currencyMark"> <el-form-item label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark"> <el-select v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
<el-option label="钞户" value="钞户"> </el-option> <el-option label="钞户" value="钞户"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="凭证号码" prop='voucherNumber'> <el-form-item label="凭证号码">
<el-input ref="voucherNumber" :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> <div v-if='!cardNumberJudge' class="idCard" @click="popUp('刷卡器')">
<p>请刷卡</p>
</div>
<div v-else>
<el-input @blur="getDataBlur" ref="voucherNumber" :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input>
</div>
</el-form-item> </el-form-item>
<el-form-item label="支取密码" required> <el-form-item label="支取密码" required>
<div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else> <div v-else>
<el-input :value="form.drawPassword" disabled ref="drawPassword" type="password"></el-input> <el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<!-- <el-form-item label="客户经理" prop="customerManage">--> <!-- <el-form-item label="客户经理" prop="customerManage">-->
@ -88,6 +93,8 @@ export default{
return{ return{
visible: false, visible: false,
needBefore: '', needBefore: '',
idNumberJudge: false,
cardNumberJudge: false,
form:{ form:{
// //
idNumber: '', // idNumber: '', //
@ -104,6 +111,7 @@ export default{
clientNumber: '' // clientNumber: '' //
}, },
formName: { formName: {
idNumber: '身份证', //
customerName: '客户姓名', // customerName: '客户姓名', //
currency: '币种', // currency: '币种', //
currencyMark: '钞汇标识', // currencyMark: '钞汇标识', //
@ -159,6 +167,10 @@ export default{
type: '1', type: '1',
"subjectId": 19, "subjectId": 19,
}, },
122: {
prop: 'idNumber',//
type: '3'
},
123: { 123: {
prop: 'clientNumber',// prop: 'clientNumber',//
type: '3', type: '3',
@ -175,7 +187,10 @@ export default{
prop: 'voucherNumber',// prop: 'voucherNumber',//
type: '3', type: '3',
}, },
129: {
prop: 'drawPassword',
type: '3'
},
130: { 130: {
prop: 'withdrawingWay', // prop: 'withdrawingWay', //
type: '1', type: '1',
@ -217,14 +232,25 @@ export default{
setDataFlow: 'system/setDataFlow', setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule' setNeedsModule: 'system/setNeedsModule'
}), }),
getDataBlur() {
},
getFormData(){ getFormData(){
const parentId = '285,287,5,26,58,118' const parentId = '285,287,5,26,58,118'
const cards = { const cards = {
13: 'nomtimeOpenAccount1', // 13: 'nomtimeOpenAccount1',
// 128: 'nomtimeOpenAccount2', // // 128: 'nomtimeOpenAccount2',
129: 'nomtimeOpenAccountPassword' // 129: 'nomtimeOpenAccountPassword'
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards) const callback = () => {
if(this.form.idNumber) {
this.idNumberJudge = true
}
if(this.form.voucherNumber) {
this.cardNumberJudge = true
}
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },
popUp1(text) { popUp1(text) {
this.$store.commit('system/changePop',{show:true,text, id: '118,1'}) this.$store.commit('system/changePop',{show:true,text, id: '118,1'})
@ -248,18 +274,18 @@ export default{
submitForm2() { submitForm2() {
let nomtimeOpenAccount1 = sessionStorage.getItem('nomtimeOpenAccount1') let nomtimeOpenAccount1 = sessionStorage.getItem('nomtimeOpenAccount1')
// let nomtimeOpenAccount2 = sessionStorage.getItem('nomtimeOpenAccount2') // let nomtimeOpenAccount2 = sessionStorage.getItem('nomtimeOpenAccount2')
let nomtimeOpenAccountPassword = sessionStorage.getItem('nomtimeOpenAccountPassword') // let nomtimeOpenAccountPassword = sessionStorage.getItem('nomtimeOpenAccountPassword')
const cards = [ const cards = [
{
13: nomtimeOpenAccount1
},
// { // {
// 128: nomtimeOpenAccount2 // 13: nomtimeOpenAccount1
// }, // },
{ // // {
129: nomtimeOpenAccountPassword, // // 128: nomtimeOpenAccount2
"subjectId": 17, // // },
} // {
// 129: nomtimeOpenAccountPassword,
// "subjectId": 17,
// }
] ]
const parentId = '285,287,5,26,58,118' const parentId = '285,287,5,26,58,118'
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
@ -281,8 +307,15 @@ export default{
}) })
}, },
watch: { watch: {
dataFlowCard(newVal) {
this.cardNumberJudge = true
this.$nextTick(() => {
this.$refs.voucherNumber.focus()
})
},
dataFlowPassword(newVal) { dataFlowPassword(newVal) {
this.form.drawPassword = '******' const nomtimeOpenAccountPassword = sessionStorage.getItem('nomtimeOpenAccountPassword')
this.form.drawPassword = nomtimeOpenAccountPassword
}, },
dataFlowId(newVal) { dataFlowId(newVal) {
// //
@ -291,6 +324,9 @@ export default{
this.form.customerName = userName this.form.customerName = userName
this.form.currency = currency this.form.currency = currency
this.form.currencyMark = goldLogo this.form.currencyMark = goldLogo
this.idNumberJudge = true
console.log(this.idNumberJudge)
} }
} }
} }

@ -31,7 +31,7 @@
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else> <div v-else>
<el-input :value="form.drawPassword" disabled ref="drawPassword" type="password"></el-input> <el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -72,7 +72,7 @@
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, rateListen, inputListen } from '@/utils/utilFunction.js'; import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, rateListen, inputListen } from '@/utils/utilFunction.js';
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
const moduleName = 'consumerClient' const moduleName = 'timeDeposit/withdrawal'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore' import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialog' import MyDialog from '@/components/dialog'
@ -84,6 +84,9 @@ export default{
MyDialog MyDialog
}, },
created() { created() {
console.log('---wha??????????')
console.log(moduleName)
console.log(this.needsModule(moduleName))
if(this.inMyWork(moduleName)) { if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') { if(this.needsModule(moduleName) === '') {
}else { }else {
@ -192,6 +195,10 @@ export default{
type: '1', type: '1',
"subjectId": 13, "subjectId": 13,
}, },
154: {
prop: 'drawPassword',//
type: '3',
}
}, },
myTable2: { myTable2: {
145: { 145: {
@ -209,7 +216,10 @@ export default{
}, },
mounted() { mounted() {
this.getFormData() this.getFormData()
this.$refs.depositNumber.focus() this.$nextTick(() => {
this.$refs.depositNumber.focus()
})
}, },
methods: { methods: {
...mapMutations({ ...mapMutations({
@ -236,9 +246,15 @@ export default{
const parentId = '285,287,5,26,58,120' const parentId = '285,287,5,26,58,120'
const cards = { const cards = {
// 144: 'nomtimeDepositWithdrawal1', // 144: 'nomtimeDepositWithdrawal1',
154: 'nomtimeDepositWithdrawalPassword' // 154: 'nomtimeDepositWithdrawalPassword'
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards) const callback = () => {
if(this.form.voucherNumber) {
this.cardNumberJudge = true
}
// if(this.form.drawPassword)
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },
popUp(text) { popUp(text) {
this.$store.commit('system/changePop',{show:true,text, id: '144,1'}) this.$store.commit('system/changePop',{show:true,text, id: '144,1'})
@ -254,16 +270,16 @@ export default{
}, },
submitForm2() { submitForm2() {
// let nomtimeDepositWithdrawal1 = sessionStorage.getItem('nomtimeDepositWithdrawal1') // let nomtimeDepositWithdrawal1 = sessionStorage.getItem('nomtimeDepositWithdrawal1')
let nomtimeDepositWithdrawalPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword') // let nomtimeDepositWithdrawalPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword')
const parentId = '285,287,5,26,58,120' const parentId = '285,287,5,26,58,120'
const cards = [ const cards = [
// { // {
// 144: nomtimeDepositWithdrawal1 // 144: nomtimeDepositWithdrawal1
// }, // },
{ // {
154: nomtimeDepositWithdrawalPassword, // 154: nomtimeDepositWithdrawalPassword,
"subjectId": 17, // "subjectId": 17,
} // }
] ]
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
this.setNeedsModule(moduleName) this.setNeedsModule(moduleName)
@ -293,7 +309,8 @@ export default{
}) })
}, },
dataFlowPassword(newVal) { dataFlowPassword(newVal) {
this.form.drawPassword = '******' const nomtimeDepositWithdrawalPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword')
this.form.drawPassword = nomtimeDepositWithdrawalPassword
} }
// cardNumberJudge // cardNumberJudge
} }

@ -76,7 +76,7 @@
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else> <div v-else>
<el-input :value="form.drawPassword" disabled ref="drawPassword" type="password"></el-input> <el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<!-- <el-form-item label="续存标识" required> <!-- <el-form-item label="续存标识" required>
@ -263,13 +263,6 @@ export default{
mounted() { mounted() {
this.getFormData() this.getFormData()
if(this.form.idNumber) {
this.idNumberJudge = true
}
if(this.form.voucherNumber) {
this.cardNumberJudge = true
}
this.$refs.customerName.focus() this.$refs.customerName.focus()
}, },
methods: { methods: {
@ -279,7 +272,6 @@ export default{
setNeedsModule: 'system/setNeedsModule' setNeedsModule: 'system/setNeedsModule'
}), }),
getDataBlur() { getDataBlur() {
console.log('???')
}, },
getFormData(){ getFormData(){
const parentId = '285,287,5,26,59,157' const parentId = '285,287,5,26,59,157'
@ -288,7 +280,15 @@ export default{
// 181: 'nomUsefulPhrasesClosed2', // 181: 'nomUsefulPhrasesClosed2',
// 192: 'nomUsefulPhrasesClosedPassword' // 192: 'nomUsefulPhrasesClosedPassword'
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards) const callback = () => {
if(this.form.idNumber) {
this.idNumberJudge = true
}
if(this.form.voucherNumber) {
this.cardNumberJudge = true
}
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },
popUp(text) { popUp(text) {
this.$store.commit('system/changePop',{show:true,text, id: '181'}) this.$store.commit('system/changePop',{show:true,text, id: '181'})
@ -345,7 +345,6 @@ export default{
dataFlowCard(newVal) { dataFlowCard(newVal) {
this.cardNumberJudge = true this.cardNumberJudge = true
const { currency, userName, depositNumber, goldLogo, capital, interestRate, interest, totalMoney, signDate, voucherNumber } = this.dataFlow const { currency, userName, depositNumber, goldLogo, capital, interestRate, interest, totalMoney, signDate, voucherNumber } = this.dataFlow
console.log(interestRate)
this.form.currency = currency this.form.currency = currency
this.form.customerName = userName this.form.customerName = userName
this.form.depositNumber = depositNumber this.form.depositNumber = depositNumber
@ -362,7 +361,6 @@ export default{
}, },
dataFlowPassword(newVal) { dataFlowPassword(newVal) {
const nomUsefulPhrasesClosedPassword = sessionStorage.getItem('nomUsefulPhrasesClosedPassword') const nomUsefulPhrasesClosedPassword = sessionStorage.getItem('nomUsefulPhrasesClosedPassword')
console.log(nomUsefulPhrasesClosedPassword)
this.form.drawPassword = nomUsefulPhrasesClosedPassword this.form.drawPassword = nomUsefulPhrasesClosedPassword
}, },
dataFlowId(newVal) { dataFlowId(newVal) {

@ -174,9 +174,6 @@ export default{
}, },
mounted() { mounted() {
this.getFormData() this.getFormData()
if(this.form.voucherNumber) {
this.cardNumberJudge = true
}
this.$refs.customerName.focus() this.$refs.customerName.focus()
}, },
@ -204,7 +201,12 @@ export default{
// 171: 'nomUsefulPhrasesContinueCard', // 171: 'nomUsefulPhrasesContinueCard',
// 178: 'nomUsefulPhrasesContinuePassword' // 178: 'nomUsefulPhrasesContinuePassword'
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable) const callback = () => {
if(this.form.voucherNumber) {
this.cardNumberJudge = true
}
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },
popUp(text) { popUp(text) {
this.$store.commit('system/changePop',{show:true,text, id: '171'}) this.$store.commit('system/changePop',{show:true,text, id: '171'})

@ -27,7 +27,7 @@
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else> <div v-else>
<el-input :value="form.drawPassword" disabled ref="drawPassword" type="password"></el-input> <el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="续存标识" prop="extendDepositTarget"> <el-form-item label="续存标识" prop="extendDepositTarget">
@ -41,7 +41,7 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="身份证" required> <el-form-item label="身份证" required>
<div class="idCard" @click="popUp1('身份证扫描仪')" v-if='!form.idNumberJudge'> <div class="idCard" @click="popUp1('身份证扫描仪')" v-if='!idNumberJudge'>
<p>请刷身份证</p> <p>请刷身份证</p>
</div> </div>
<div v-else> <div v-else>
@ -102,6 +102,7 @@ export default{
this.needBefore = this.needsModule(moduleName) this.needBefore = this.needsModule(moduleName)
} }
} }
}, },
data(){ data(){
return{ return{
@ -130,6 +131,7 @@ export default{
formName:{ formName:{
// //
// identityCard: '', // // identityCard: '', //
idNumber: '身份证',
customerName: '客户姓名', // customerName: '客户姓名', //
currency: '币种', // currency: '币种', //
currencyMark: '钞汇标识', // currencyMark: '钞汇标识', //
@ -236,6 +238,10 @@ export default{
prop: 'voucherNumber',// prop: 'voucherNumber',//
type: '3', type: '3',
}, },
167: {
prop: 'drawPassword',
type: '3'
},
168: { 168: {
prop: 'monthDeposit',// prop: 'monthDeposit',//
type: '3', type: '3',
@ -249,16 +255,9 @@ export default{
}, },
} }
}, },
mounted() { async mounted() {
this.getFormData() await this.getFormData()
if(this.form.idNumber) {
this.idNumberJudge = true
}
if(this.form.voucherNumber) {
this.cardNumberJudge = true
}
this.$refs.clientNumber.focus() this.$refs.clientNumber.focus()
}, },
methods: { methods: {
@ -291,7 +290,21 @@ export default{
// 166: 'nomUsefulPhrasesOpenCard', // 166: 'nomUsefulPhrasesOpenCard',
// 167: 'nomUsefulPhrasesOpenPassword' // 167: 'nomUsefulPhrasesOpenPassword'
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards) const callback = () => {
console.log('callback')
console.log(this.form)
if(this.form.idNumber) {
this.idNumberJudge = true
}
if(this.form.voucherNumber) {
this.cardNumberJudge = true
}
if(this.form.drawPassword) {
console.log(this.form.drawPassword)
}
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },
submitForm() { submitForm() {
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
@ -337,11 +350,9 @@ export default{
watch: { watch: {
dataFlowId(newVal) { dataFlowId(newVal) {
this.idNumberJudge = true this.idNumberJudge = true
console.log(this.idNumberJudge)
// //
const { idNumber, userName, peopleNumber, currency, goldLogo } = this.dataFlow const { idNumber, userName, peopleNumber, currency, goldLogo } = this.dataFlow
console.log(peopleNumber)
console.log(this.dataFlow)
console.log(goldLogo)
this.form.clientNumber = peopleNumber this.form.clientNumber = peopleNumber
this.form.idNumber = idNumber this.form.idNumber = idNumber
this.form.customerName = userName this.form.customerName = userName

@ -895,6 +895,7 @@ export default {
dataFlow: { dataFlow: {
// 客户姓名、币种、钞汇标识、定存编号(0912)、本金(开户时存的业务中的金额)、支取类别(现金)、支取方式(密码) // 客户姓名、币种、钞汇标识、定存编号(0912)、本金(开户时存的业务中的金额)、支取类别(现金)、支取方式(密码)
userName, userName,
voucherNumber,
currency:'CNY人民币', currency:'CNY人民币',
goldLogo:'钞户', goldLogo:'钞户',
interest: '5.75', interest: '5.75',

@ -175,7 +175,7 @@ const autoPlay = (parentId, form, myTable2, myTable, cards=[]) => {
}) })
} }
const autoPlay2 = (parentId=11, form, myTable2, myTable, cardArr) => { const autoPlay2 = (parentId=11, form, myTable2, myTable, cardArr, callback) => {
// 默认11吧? // 默认11吧?
let param= { let param= {
parentId parentId
@ -190,6 +190,7 @@ const autoPlay2 = (parentId=11, form, myTable2, myTable, cardArr) => {
const { answerId, emptyTwo } = list[i] const { answerId, emptyTwo } = list[i]
if(!cardArr) { if(!cardArr) {
form[tmpObj[answerId].prop] = emptyTwo form[tmpObj[answerId].prop] = emptyTwo
} else { } else {
if(cardArr[answerId]) { if(cardArr[answerId]) {
try{ try{
@ -207,6 +208,7 @@ const autoPlay2 = (parentId=11, form, myTable2, myTable, cardArr) => {
// form[tmpObj[answerId].prop] = emptyTwo // form[tmpObj[answerId].prop] = emptyTwo
} }
callback()
} }
}).catch((error)=>{ }).catch((error)=>{
}) })

11898
test.js

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save