|
@@ -430,6 +430,7 @@
|
|
|
import optionReturn from "../receipt/configuration/settleAccountsDetailsReturn.json";
|
|
|
import { getDeptTree } from "@/api/system/dept";
|
|
|
import messagePost from "@/components/messageSend/main"
|
|
|
+ import clientOption from "../performanceAnalysis/config/clientList.json";
|
|
|
|
|
|
|
|
|
export default {
|
|
@@ -843,7 +844,7 @@
|
|
|
},
|
|
|
methods: {
|
|
|
//明细切换tab
|
|
|
- handleClick(tab) {
|
|
|
+ async handleClick(tab) {
|
|
|
if(tab.name == "first") {
|
|
|
this.tab1 = true;
|
|
|
this.tab2 = false;
|
|
@@ -856,7 +857,7 @@
|
|
|
}
|
|
|
|
|
|
this.secondDisable = 0
|
|
|
- this.optionTable = option //换option
|
|
|
+ await this.switchTab("first")
|
|
|
this.data = this.data_one //切换数据
|
|
|
} else if(tab.name == "second") {
|
|
|
|
|
@@ -870,9 +871,8 @@
|
|
|
if(this.secondDisable === 2){
|
|
|
this.data_three = this.data
|
|
|
}
|
|
|
-
|
|
|
this.secondDisable = 1
|
|
|
- this.optionTable = optionAdd
|
|
|
+ await this.switchTab("second")
|
|
|
this.data = this.data_two
|
|
|
}else if(tab.name == "three") {
|
|
|
this.tab1 = false;
|
|
@@ -886,10 +886,19 @@
|
|
|
}
|
|
|
|
|
|
this.secondDisable = 2
|
|
|
- this.optionTable = optionReturn
|
|
|
+ await this.switchTab("three")
|
|
|
this.data = this.data_three
|
|
|
}
|
|
|
},
|
|
|
+ switchTab(val){ //换option
|
|
|
+ if(val === 'first'){
|
|
|
+ this.optionTable = option
|
|
|
+ }else if(val === 'second'){
|
|
|
+ this.optionTable = optionAdd
|
|
|
+ }else if(val === 'three'){
|
|
|
+ this.optionTable = optionReturn
|
|
|
+ }
|
|
|
+ },
|
|
|
//责任人 远程
|
|
|
corpAttnRemoteMethod(val){
|
|
|
getUserList({realName : val}).then(res=>{
|