|
|
|
@ -10,8 +10,8 @@ |
|
|
|
|
<el-input :value="form.userNumber" @input="(val) => checkHanzi(val, form, 'userNumber')" ref="userNumber"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="币种" prop="currency"> |
|
|
|
|
<el-select v-model="form.currency" placeholder="请选择" ref="currency"> |
|
|
|
|
<el-option value="CYC人民币">CYC人民币</el-option> |
|
|
|
|
<el-select v-model="form.currency" placeholder="请选择" ref="currency" disabled> |
|
|
|
|
<el-option label='CNY人民币' value="CNY人民币">CNY人民币</el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
@ -19,7 +19,7 @@ |
|
|
|
|
<el-form-item label="客户姓名" prop="userName"> |
|
|
|
|
<el-input :value="form.userName" @input="(val) => checkName(val, form, 'userName')" ref="userName"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="钞汇标识" prop="goldLogo"> |
|
|
|
|
<el-form-item label="钞汇标识" prop="goldLogo" disabled> |
|
|
|
|
<el-select v-model="form.goldLogo" @focus="getSubjectInfoData('9')" placeholder="请选择" ref="goldLogo"> |
|
|
|
|
<el-option v-for="item in goldLogoSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
@ -32,7 +32,7 @@ |
|
|
|
|
<el-form ref="form1" :model="form" label-width="120px"> |
|
|
|
|
<el-col :span="10" :offset="2"> |
|
|
|
|
<el-form-item label="账户性质"> |
|
|
|
|
<el-select v-model="form.accountQuality" @focus="getSubjectInfoData('10')" placeholder="请选择" ref="accountQuality"> |
|
|
|
|
<el-select v-model="form.accountQuality" @focus="getSubjectInfoData('10')" placeholder="请选择" ref="accountQuality" disabled> |
|
|
|
|
<el-option v-for="item in accountQualitySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -48,8 +48,8 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="凭证类型" prop="voucherType"> |
|
|
|
|
<el-select v-model="form.voucherType" @focus="getSubjectInfoData('11')" placeholder="请选择" ref="voucherType"> |
|
|
|
|
<el-form-item label="凭证类型" prop="voucherType" disabled> |
|
|
|
|
<el-select v-model="form.voucherType" @focus="getSubjectInfoData('11')" placeholder="请选择" ref="voucherType" disabled> |
|
|
|
|
<el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -74,7 +74,7 @@ |
|
|
|
|
<el-form ref="form2" :model="form" label-width="120px"> |
|
|
|
|
<el-col :span="10" :offset="2"> |
|
|
|
|
<el-form-item label="账户性质"> |
|
|
|
|
<el-select v-model="form.accountQualitysTwo" @focus="getSubjectInfoData('10')" placeholder="请选择"> |
|
|
|
|
<el-select v-model="form.accountQualitysTwo" @focus="getSubjectInfoData('10')" placeholder="请选择" disabled> |
|
|
|
|
<el-option v-for="item in accountQualitySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -91,7 +91,7 @@ |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="凭证类型" required> |
|
|
|
|
<el-select v-model="form.voucherTypesTwo" @focus="getSubjectInfoData('11')" placeholder="请选择"> |
|
|
|
|
<el-select v-model="form.voucherTypesTwo" @focus="getSubjectInfoData('11')" placeholder="请选择" disabled> |
|
|
|
|
<el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -115,7 +115,7 @@ |
|
|
|
|
<el-form ref="form3" :model="form" label-width="120px"> |
|
|
|
|
<el-col :span="10" :offset="2"> |
|
|
|
|
<el-form-item label="账户性质"> |
|
|
|
|
<el-select v-model="form.accountQualitysThree" @focus="getSubjectInfoData('10')" placeholder="请选择"> |
|
|
|
|
<el-select v-model="form.accountQualitysThree" @focus="getSubjectInfoData('10')" placeholder="请选择" disabled> |
|
|
|
|
<el-option v-for="item in accountQualitySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -132,7 +132,7 @@ |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="凭证类型" @focus="getSubjectInfoData('11')" required> |
|
|
|
|
<el-select v-model="form.voucherTypesThree" placeholder="请选择"> |
|
|
|
|
<el-select v-model="form.voucherTypesThree" placeholder="请选择" disabled> |
|
|
|
|
<el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -189,7 +189,7 @@ export default { |
|
|
|
|
return{ |
|
|
|
|
form:{ |
|
|
|
|
userNumber: '', |
|
|
|
|
currency: '', |
|
|
|
|
currency: 'CNY人民币', |
|
|
|
|
userName: '', |
|
|
|
|
goldLogo: '', |
|
|
|
|
accountQuality: '', |
|
|
|
@ -278,7 +278,8 @@ export default { |
|
|
|
|
parentId: '285,287,5,26,57,62' |
|
|
|
|
} |
|
|
|
|
getOperation(param).then((data)=>{ |
|
|
|
|
if(data.status == 200) { |
|
|
|
|
console.log(data) |
|
|
|
|
if(data.status.status == 200) { |
|
|
|
|
var list = data.data.judgmentRuleReqs |
|
|
|
|
for (var i = 0; i < list.length; i++) { |
|
|
|
|
if (list[i].answerId == '68') {this.form.userNumber = list[i].emptyTwo} |
|
|
|
@ -294,17 +295,34 @@ export default { |
|
|
|
|
if (list[i].answerId == '271') {this.form.voucherTypesTwo = +list[i].emptyTwo} |
|
|
|
|
if (list[i].answerId == '272') {this.form.accountTypesTwo = +list[i].emptyTwo} |
|
|
|
|
if (list[i].answerId == '274') {this.form.drawWaysTwo = +list[i].emptyTwo} |
|
|
|
|
// if (list[i].answerId == '275') {sessionStorage.setItem('accountPasswordAll', list[i].emptyTwo);this.formTwo = true} |
|
|
|
|
if (list[i].answerId == '276') {this.form.accountQualitysThree = +list[i].emptyTwo} |
|
|
|
|
if (list[i].answerId == '277') {this.form.voucherTypesThree = +list[i].emptyTwo} |
|
|
|
|
if (list[i].answerId == '278') {this.form.accountTypesThree = +list[i].emptyTwo} |
|
|
|
|
if (list[i].answerId == '280') {this.form.drawWaysThree = +list[i].emptyTwo} |
|
|
|
|
// if (list[i].answerId == '281') {sessionStorage.setItem('accountPasswordThree', this.list[i].emptyTwo);this.formThree = true} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
this.getFormData() |
|
|
|
|
} |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
getFormData(){ |
|
|
|
|
let param= { |
|
|
|
|
parentId: '285,287,5,25,33' |
|
|
|
|
} |
|
|
|
|
getOperation(param).then((data)=>{ |
|
|
|
|
if(data.status == 200) { |
|
|
|
|
var list = data.data.judgmentRuleReqs |
|
|
|
|
for (var i = 0; i < list.length; i++) { |
|
|
|
|
if (list[i].answerId == '42') {this.form.userName = list[i].emptyTwo} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
...mapMutations({ |
|
|
|
|
changeShowGoods: 'system/changeShowGoods' |
|
|
|
|
}), |
|
|
|
|
getOperationWindowsData(){ |
|
|
|
|
let param= { |
|
|
|
|
parentId: '285,287,5,26,57,62,75' |
|
|
|
@ -339,11 +357,14 @@ export default { |
|
|
|
|
if (item == '8'){ |
|
|
|
|
this.currencySelectList = data.data.items; |
|
|
|
|
}else if (item == '9'){ |
|
|
|
|
this.goldLogoSelectList = data.data.items; |
|
|
|
|
this.goldLogoSelectList = data.data.items; |
|
|
|
|
this.form.goldLogo = this.goldLogoSelectList[0].itemId |
|
|
|
|
}else if (item == '10'){ |
|
|
|
|
this.accountQualitySelectList = data.data.items; |
|
|
|
|
this.form.accountQuality = this.accountQualitySelectList[0].itemId |
|
|
|
|
}else if (item == '11'){ |
|
|
|
|
this.voucherTypeSelectList = data.data.items; |
|
|
|
|
this.form.voucherType = this.voucherTypeSelectList[0].itemId |
|
|
|
|
}else if (item == '12'){ |
|
|
|
|
this.accountTypeSelectList = data.data.items; |
|
|
|
|
}else if (item == '13'){ |
|
|
|
@ -370,10 +391,15 @@ export default { |
|
|
|
|
message: '最多只能添加三个!' |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
console.log(this.count) |
|
|
|
|
if(this.count == 1 || this.count == 2){this.formTwo = true} |
|
|
|
|
if(this.count == 1 || this.count == 2){ |
|
|
|
|
this.formTwo = true |
|
|
|
|
this.form.accountQualitysTwo = this.accountQualitySelectList[0].itemId |
|
|
|
|
this.form.voucherTypesTwo = this.voucherTypeSelectList[0].itemId |
|
|
|
|
} |
|
|
|
|
if (this.count == 2){ |
|
|
|
|
this.formThree = true |
|
|
|
|
this.form.accountQualitysThree = this.accountQualitySelectList[0].itemId |
|
|
|
|
this.form.voucherTypesThree = this.voucherTypeSelectList[0].itemId |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//点击提交表单 |
|
|
|
|