2024-08-19 18:06:06 +08:00
|
|
|
<template>
|
2024-08-22 10:13:27 +08:00
|
|
|
<!-- 新购绑定页面 -->
|
2024-08-19 18:06:06 +08:00
|
|
|
<div class="app-container">
|
2024-08-22 10:13:27 +08:00
|
|
|
<PageHeader
|
|
|
|
|
v-if="isShowComponent !== 'Index'"
|
|
|
|
|
:pageContent="pageContent"
|
|
|
|
|
@goBack="goBack"
|
|
|
|
|
/>
|
2024-08-19 18:06:06 +08:00
|
|
|
<!-- 列表 -->
|
|
|
|
|
<TableModel
|
|
|
|
|
:formLabel="formLabel"
|
|
|
|
|
:columnsList="columnsList"
|
2024-08-22 10:13:27 +08:00
|
|
|
:request-api="queryPurchaseBindListApi"
|
2024-08-19 18:06:06 +08:00
|
|
|
ref="tableRef"
|
2024-08-22 10:13:27 +08:00
|
|
|
v-if="isShowComponent === 'Index'"
|
2024-08-19 18:06:06 +08:00
|
|
|
>
|
|
|
|
|
<template slot="btn" slot-scope="{ queryParams }">
|
2024-08-22 10:13:27 +08:00
|
|
|
<el-button @click="handleExportData(queryParams, 'base/customer/export', '新购绑定清单')"
|
2024-08-19 18:06:06 +08:00
|
|
|
>导出</el-button
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<template slot="handle" slot-scope="{ data }">
|
2024-08-22 10:13:27 +08:00
|
|
|
|
2024-08-19 18:06:06 +08:00
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleEditData(data)"
|
2024-08-22 10:13:27 +08:00
|
|
|
>查看</el-button
|
2024-08-19 18:06:06 +08:00
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
type="danger"
|
|
|
|
|
size="mini"
|
2024-08-22 10:13:27 +08:00
|
|
|
@click="toggleBinding(data)"
|
|
|
|
|
>绑定</el-button
|
2024-08-19 18:06:06 +08:00
|
|
|
>
|
|
|
|
|
</template>
|
2024-08-22 10:13:27 +08:00
|
|
|
|
2024-08-19 18:06:06 +08:00
|
|
|
</TableModel>
|
|
|
|
|
|
2024-08-22 10:13:27 +08:00
|
|
|
<list-binding
|
|
|
|
|
v-if="isShowComponent === 'list-binding'"
|
|
|
|
|
:sendParams='sendParams'
|
2024-08-19 18:06:06 +08:00
|
|
|
>
|
2024-08-22 10:13:27 +08:00
|
|
|
|
|
|
|
|
</list-binding>
|
|
|
|
|
|
2024-08-19 18:06:06 +08:00
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2024-08-22 10:13:27 +08:00
|
|
|
import PageHeader from '@/components/pageHeader'
|
2024-08-19 18:06:06 +08:00
|
|
|
import { columnsList, dialogConfig, formLabel } from './config'
|
|
|
|
|
import { commonMixin } from '../mixins/common'
|
2024-08-22 10:13:27 +08:00
|
|
|
import ListBinding from './components/list-binding.vue'
|
2024-08-19 18:06:06 +08:00
|
|
|
import {
|
2024-08-22 10:13:27 +08:00
|
|
|
queryPurchaseBindListApi
|
|
|
|
|
} from '@/api/purchase/binding'
|
2024-08-19 18:06:06 +08:00
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'arrivalBindingManage',
|
|
|
|
|
mixins: [commonMixin], // 混入公共方法和数据
|
2024-08-22 10:13:27 +08:00
|
|
|
components: { ListBinding, PageHeader },
|
2024-08-19 18:06:06 +08:00
|
|
|
methods: {
|
2024-08-22 10:13:27 +08:00
|
|
|
queryPurchaseBindListApi,
|
|
|
|
|
goBack() {
|
|
|
|
|
this.isShowComponent = 'Index'
|
|
|
|
|
},
|
|
|
|
|
toggleBinding(data) {
|
|
|
|
|
this.sendParams = {taskId:data.id}
|
|
|
|
|
console.log(data)
|
|
|
|
|
this.isShowComponent = 'list-binding'
|
|
|
|
|
}
|
2024-08-19 18:06:06 +08:00
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
formLabel,
|
|
|
|
|
columnsList,
|
|
|
|
|
dialogConfig,
|
2024-08-22 10:13:27 +08:00
|
|
|
isShowComponent: 'Index',
|
|
|
|
|
pageContent: '新购绑定任务列表',
|
|
|
|
|
sendParams: {}
|
2024-08-19 18:06:06 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|