|
@@ -342,12 +342,7 @@ export default {
|
|
|
return this.operationBtn({
|
|
|
details: {
|
|
|
click: ({ row, index, column }) => {
|
|
|
- settlementOrderNewDetail({
|
|
|
- id: row.settlementOrderId
|
|
|
- }).then(res => {
|
|
|
- this.formData = res.data
|
|
|
- this.openForm()
|
|
|
- })
|
|
|
+ this.openForm(row)
|
|
|
}
|
|
|
},
|
|
|
settle: {
|
|
@@ -392,7 +387,7 @@ export default {
|
|
|
cb && cb()
|
|
|
})
|
|
|
},
|
|
|
- openForm() {
|
|
|
+ openForm(row) {
|
|
|
this.$refs.tabPage.addTab({
|
|
|
// 对应显示的模块
|
|
|
activeKey: 'details',
|
|
@@ -401,7 +396,13 @@ export default {
|
|
|
// 页签名称
|
|
|
label: '详情',
|
|
|
// 打开时事件
|
|
|
- triggerEvent: () => {},
|
|
|
+ triggerEvent: () => {
|
|
|
+ settlementOrderNewDetail({
|
|
|
+ id: row.settlementOrderId
|
|
|
+ }).then(res => {
|
|
|
+ this.formData = res.data
|
|
|
+ })
|
|
|
+ },
|
|
|
// 关闭时事件
|
|
|
closeEvent: () => {
|
|
|
this.$data.formData = this.$options.data().formData
|