Commit 01fa779a authored by zhengke's avatar zhengke

XIUGAI

parent 3faf98e4
...@@ -102,9 +102,9 @@ ...@@ -102,9 +102,9 @@
<el-option :label='$t("pub.unlimitedSel")' value='-1'></el-option> <el-option :label='$t("pub.unlimitedSel")' value='-1'></el-option>
<!-- <el-option label='通用' value='-1'></el-option> --> <!-- <el-option label='通用' value='-1'></el-option> -->
<el-option v-for='item in CompanyList' <el-option v-for='item in CompanyList'
:label='item.BName' :label='item.SName'
:value='item.Id' :value='item.SId'
:key='item.Id'> :key='item.SId'>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -277,9 +277,9 @@ ...@@ -277,9 +277,9 @@
<el-form-item :label="$t('fnc.ssgongsi')" prop="BranchIdS"> <el-form-item :label="$t('fnc.ssgongsi')" prop="BranchIdS">
<el-select filterable v-model='addMsg.BranchIdS'> <el-select filterable v-model='addMsg.BranchIdS'>
<el-option v-for='item in CompanyList' <el-option v-for='item in CompanyList'
:label='item.BName' :label='item.SName'
:value='item.Id' :value='item.SId'
:key='item.Id' :key='item.SId'
:disabled="item.disabled"> :disabled="item.disabled">
</el-option> </el-option>
</el-select> </el-select>
...@@ -369,6 +369,9 @@ ...@@ -369,6 +369,9 @@
</div> </div>
</template> </template>
<script> <script>
import {
getSchoolPage
} from '../../api/school/index'
export default { export default {
data(){ data(){
return{ return{
...@@ -483,6 +486,13 @@ export default { ...@@ -483,6 +486,13 @@ export default {
CostTypeID:'' CostTypeID:''
}, },
costType:[], costType:[],
schoolMsg:{
pageIndex: 1,
pageSize: 12,
rowsPerPage: 12,
SName: "",
Status: '-1'
}
} }
},methods:{ },methods:{
regNum(n,t){ // 判断数字 n 值 t 类型 regNum(n,t){ // 判断数字 n 值 t 类型
...@@ -598,15 +608,11 @@ export default { ...@@ -598,15 +608,11 @@ export default {
},err=>{}) },err=>{})
}, },
getCompanyList(){ //获取公司列表 getCompanyList(){ //获取公司列表
this.apipost('admin_get_BranchGetList',this.getCompanyMsg,res=>{ getSchoolPage(this.schoolMsg).then(res => {
if(res.data.resultCode==1){ this.CompanyList = res.Data.PageData;
let data = res.data.data; }).catch(() => {
data.forEach(x=>{
x.disabled = false; })
})
this.CompanyList = data;
}else{}
},err=>{})
}, },
editCurency(id){ // 修改根据ID 获取信息 editCurency(id){ // 修改根据ID 获取信息
this.apipost('bankaccount_post_Get',{ID:id}, res => { this.apipost('bankaccount_post_Get',{ID:id}, res => {
......
...@@ -170,9 +170,9 @@ ...@@ -170,9 +170,9 @@
<el-select filterable v-model="addMsg.BranchIdS" collapse-tags> <el-select filterable v-model="addMsg.BranchIdS" collapse-tags>
<el-option <el-option
v-for="item in CompanyList" v-for="item in CompanyList"
:label="item.BName" :label="item.SName"
:value="item.Id" :value="item.SId"
:key="item.Id" :key="item.SId"
:disabled="item.disabled" :disabled="item.disabled"
></el-option> ></el-option>
</el-select> </el-select>
...@@ -314,8 +314,10 @@ ...@@ -314,8 +314,10 @@
</div> </div>
</template> </template>
<script> <script>
// import Vue from 'vue' import Vue from 'vue'
import Vue from 'vue/dist/vue.esm.js' import {
getSchoolPage
} from '../../api/school/index'
export default { export default {
data() { data() {
return { return {
...@@ -476,7 +478,14 @@ export default { ...@@ -476,7 +478,14 @@ export default {
Source: 2, Source: 2,
CostTypeID: "" CostTypeID: ""
}, },
costType: [] costType: [],
schoolMsg:{
pageIndex: 1,
pageSize: 12,
rowsPerPage: 12,
SName: "",
Status: '-1'
}
}; };
}, },
methods: { methods: {
...@@ -861,31 +870,12 @@ export default { ...@@ -861,31 +870,12 @@ export default {
err => {} err => {}
); );
}, },
getCompanyList(t, info) { getCompanyList() {
if(t){ getSchoolPage(this.schoolMsg).then(res => {
this.CompanyList.push({ this.CompanyList = res.Data.PageData;
BName: info.BranchName, }).catch(() => {
Id: info.RB_Branch_id
}) })
return
}
//获取公司列表
this.apipost(
"admin_get_BranchGetList",
this.getCompanyMsg,
res => {
if (res.data.resultCode == 1) {
let data = res.data.data;
data.forEach(x => {
x.disabled = false;
});
this.CompanyList = data;
this.initColums();
} else {
}
},
err => {}
);
}, },
editCurency(id) { editCurency(id) {
// 修改根据ID 获取信息 // 修改根据ID 获取信息
...@@ -1202,6 +1192,7 @@ export default { ...@@ -1202,6 +1192,7 @@ export default {
// this.getCompanyList(2,userInfo); // this.getCompanyList(2,userInfo);
// this.msg.RB_Branch_Id = branchId; // this.msg.RB_Branch_Id = branchId;
// } // }
this.getCompanyList();
this.getList(); this.getList();
this.initColums(); this.initColums();
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment