|
@@ -365,6 +365,9 @@
|
|
<el-button size="mini" :disabled="doNot" type="primary" @click="approval">请核</el-button>
|
|
<el-button size="mini" :disabled="doNot" type="primary" @click="approval">请核</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
|
|
+ <el-button size="mini" v-if="approvedBy" type="primary" @click="addOrUpdateHand">审批</el-button>
|
|
|
|
+ </el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
<el-button size="mini" v-if="detailform.fBillstatus >= 4" type="primary" @click="addOrUpdateHandle">查看审批</el-button>
|
|
<el-button size="mini" v-if="detailform.fBillstatus >= 4" type="primary" @click="addOrUpdateHandle">查看审批</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
<div style="margin: 0 12px;float: right">
|
|
<div style="margin: 0 12px;float: right">
|
|
@@ -595,6 +598,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ approvedBy:false,
|
|
addOrUpdateVisible: false,
|
|
addOrUpdateVisible: false,
|
|
addOrUpdateVisib: false,
|
|
addOrUpdateVisib: false,
|
|
liableOption:[],
|
|
liableOption:[],
|
|
@@ -800,6 +804,9 @@ export default {
|
|
name:''
|
|
name:''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ activated(){
|
|
|
|
+ this.homePage()
|
|
|
|
+ },
|
|
created(){
|
|
created(){
|
|
this.setRowList = this.getRowList = this.tableDate
|
|
this.setRowList = this.getRowList = this.tableDate
|
|
this.setRowList2 = this.getRowList2 = this.tableDate2
|
|
this.setRowList2 = this.getRowList2 = this.tableDate2
|
|
@@ -815,6 +822,28 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ addOrUpdateHand() {
|
|
|
|
+ this.addOrUpdateVisib = true;
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.ApprovalComments.init(this.detailform.fId,510);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ homePage(){
|
|
|
|
+ let date = this.$route.query
|
|
|
|
+ console.log(date)
|
|
|
|
+ if (this.$route.query.list){
|
|
|
|
+ // console.log(this.contentButton)
|
|
|
|
+ // this.contentButton.push(JSON.parse(this.$route.query.list))
|
|
|
|
+ // console.log(this.contentButton)
|
|
|
|
+ let scope = {
|
|
|
|
+ row:{
|
|
|
|
+ fId:JSON.parse(this.$route.query.data).billId
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.handleUpdate(scope.row)
|
|
|
|
+ this.approvedBy = true
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 查看审批流
|
|
// 查看审批流
|
|
getDataList() {
|
|
getDataList() {
|
|
this.addOrUpdateVisible = false;
|
|
this.addOrUpdateVisible = false;
|
|
@@ -909,6 +938,7 @@ export default {
|
|
this.mainTabel = true
|
|
this.mainTabel = true
|
|
},
|
|
},
|
|
handleUpdate(row, res) {
|
|
handleUpdate(row, res) {
|
|
|
|
+ console.log(row)
|
|
const fId = row.fId || this.ids
|
|
const fId = row.fId || this.ids
|
|
getChange(fId).then(response => {
|
|
getChange(fId).then(response => {
|
|
if (response.data.projectItemsList) {
|
|
if (response.data.projectItemsList) {
|
|
@@ -976,9 +1006,12 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
goBack() {
|
|
goBack() {
|
|
- if (this.doNot == true) {
|
|
|
|
|
|
+ console.log(this.$route.query)
|
|
|
|
+ if (this.doNot == true && !this.$route.query) {
|
|
this.mainTabel = false
|
|
this.mainTabel = false
|
|
- }else{
|
|
|
|
|
|
+ }else if(this.$route.query){
|
|
|
|
+ this.$router.push({path:'/index'})
|
|
|
|
+ } else{
|
|
this.$confirm('返回列表,是否保存?', '提示', {
|
|
this.$confirm('返回列表,是否保存?', '提示', {
|
|
confirmButtonText: '保存',
|
|
confirmButtonText: '保存',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|