20240205
luoJunYong.123 3 years ago
parent 4cc36ccba3
commit d5eeb5996e
  1. 16
      src/pages/manage/list/personal/currentAccount/openAccount.vue
  2. 35
      src/store/modules/system.js

@ -50,16 +50,15 @@
</el-form-item> </el-form-item>
<el-form-item label="支取方式" prop="drawWay"> <el-form-item label="支取方式" prop="drawWay">
<el-select v-model="form.drawWay" @focus="getSubjectInfoData('13')" placeholder="请选择" ref="drawWay"> <el-select v-model="form.drawWay" @focus="getSubjectInfoData('13')" placeholder="请选择" ref="drawWay">
<!-- <el-option v-for="item in drawWaySelectList" :label="item.options" :value="item.options" :key="item.itemId"> </el-option> --> <el-option v-for="item in drawWaySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
<el-option label="密码" value="密码"> </el-option>
<el-option label="印鉴" value="印鉴"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="凭证类型" prop="voucherType"> <el-form-item label="凭证类型" prop="voucherType">
<el-select v-model="form.voucherType" @focus="getSubjectInfoData('11')" placeholder="请选择" ref="voucherType"> <el-select v-model="form.voucherType" @focus="getSubjectInfoData('11')" placeholder="请选择" ref="voucherType">
<el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.options" :key="item.itemId"> </el-option> <el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -526,9 +525,6 @@ export default {
} }
getSubjectInfo(params).then((data)=>{ getSubjectInfo(params).then((data)=>{
if(data.status == 200){ if(data.status == 200){
console.log('dataA ')
console.log(data)
// data.data.items;
this.num = this.num+1 this.num = this.num+1
if(this.num == 6){ if(this.num == 6){
this.getOperationData() this.getOperationData()
@ -542,18 +538,18 @@ export default {
this.form.goldLogo = +this.goldLogoSelectList[0].itemId this.form.goldLogo = +this.goldLogoSelectList[0].itemId
}else if (item == '10'){ }else if (item == '10'){
this.accountQualitySelectList = data.data.items; this.accountQualitySelectList = data.data.items;
if(this.accountQualitySelectList.length > 0){
console.log(this.accountQualitySelectList[0].itemId)
this.form.accountQuality = this.accountQualitySelectList[0].itemId this.form.accountQuality = this.accountQualitySelectList[0].itemId
}
}else if (item == '11'){ }else if (item == '11'){
this.voucherTypeSelectList = data.data.items; this.voucherTypeSelectList = data.data.items;
this.form.voucherType = +this.voucherTypeSelectList[0].itemId this.form.voucherType = +this.voucherTypeSelectList[0].itemId
}else if (item == '12'){ }else if (item == '12'){
this.accountTypeSelectList = data.data.items; this.accountTypeSelectList = data.data.items;
this.form.accountType = this.accountTypeSelectList[0].itemId
}else if (item == '13'){ }else if (item == '13'){
this.drawWaySelectList = data.data.items; this.drawWaySelectList = data.data.items;
this.form.drawWay = this.drawWaySelectList[0].itemId
} }
} }
}).catch((error)=>{ }).catch((error)=>{

@ -995,7 +995,7 @@ const sealArray = [/* 印章盒物品默认排序 */
] ]
import { Message } from 'element-ui'; import { Message } from 'element-ui';
import { addOperation } from '@/api/http'; import { addOperation, getSubjectInfo } from '@/api/http';
export default { export default {
namespaced: true, namespaced: true,
state: {/* 管理柜台状态 */ state: {/* 管理柜台状态 */
@ -1943,6 +1943,39 @@ export default {
], ],
}, },
mutations: { mutations: {
getOptionsList(){
for(var item=8;item<14;item++){
let params= {
subject_id:item
}
getSubjectInfo(params).then((data)=>{
if(data.status == 200){
this.selectList = data.data.items;
if (item == '8'){
this.currencySelectList = data.data.items;
}else if (item == '9'){
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;
this.form.accountType = this.accountTypeSelectList[0].itemId
}else if (item == '13'){
this.drawWaySelectList = data.data.items;
this.form.drawWay = this.drawWaySelectList[0].itemId
}
}
}).catch((error)=>{
})
this.getSubjectInfoData(i)
}
},
setPopId(state, id) { setPopId(state, id) {
state.id = id state.id = id
}, },

Loading…
Cancel
Save