新购绑定二级列表
This commit is contained in:
parent
a5a18d2269
commit
c4fb1f4b38
|
|
@ -11,33 +11,40 @@
|
|||
:formLabel="formLabel"
|
||||
:columnsList="columnsList"
|
||||
:request-api="queryPurchaseBindDetailsApi"
|
||||
:tableQueryParams="sendParams"
|
||||
:sendParams="sendParams"
|
||||
ref="tableRef"
|
||||
v-if="isShowComponent === 'Index'"
|
||||
>
|
||||
|
||||
|
||||
<template slot="handle" slot-scope="{ data }">
|
||||
<template slot="handle" slot-scope="{ data }">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
@click="handleEditData(data)"
|
||||
>绑定</el-button>
|
||||
</template>
|
||||
|
||||
<template slot="purchaseNum" slot-scope="{ data }">
|
||||
{{ data.purchaseNum / 1000 }}
|
||||
</template>
|
||||
|
||||
<el-button
|
||||
type="danger"
|
||||
size="mini"
|
||||
@click="toggleBinding(data)"
|
||||
>绑定</el-button
|
||||
>
|
||||
</template>
|
||||
|
||||
</TableModel>
|
||||
<template slot="checkNum" slot-scope="{ data }">
|
||||
{{data.checkNum / 1000}}
|
||||
</template>
|
||||
|
||||
<template slot="bindNum" slot-scope="{ data }">
|
||||
{{data.bindNum / 1000}}
|
||||
</template>
|
||||
|
||||
</TableModel>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import PageHeader from '@/components/pageHeader'
|
||||
import { columnsList, dialogConfig, formLabel } from '../list-bind-config'
|
||||
import { columnsList, dialogConfig, formLabel } from '../config-bind-list'
|
||||
import { commonMixin } from '../../mixins/common'
|
||||
|
||||
import {
|
||||
|
|
@ -61,12 +68,8 @@ export default {
|
|||
queryPurchaseBindDetailsApi,
|
||||
goBack() {
|
||||
this.isShowComponent = 'Index'
|
||||
},
|
||||
toggleBinding(data) {
|
||||
this.sendData = data
|
||||
console.log(data)
|
||||
this.isShowComponent = 'list-binding'
|
||||
}
|
||||
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
|
||||
export const formLabel = [
|
||||
{ f_label: '关键字', f_model: 'keyWord', f_type: 'ipt' },
|
||||
|
||||
]
|
||||
export const columnsList = [
|
||||
{ t_props: 'materialName', t_label: '物资名称', },
|
||||
{ t_props: 'specificationCode', t_label: '规格型号' },
|
||||
{ t_props: 'unitName', t_label: '计量单位' },
|
||||
{ t_props: 'purchaseNum', t_label: '到货数量' , t_slot: 'purchaseNum' },
|
||||
{ t_props: 'checkNum', t_label: '验收数量', t_slot: 'checkNum'},
|
||||
{ t_props: 'bindNum', t_label: '绑定数量', t_slot: 'bindNum' },
|
||||
{ t_props: '', t_label: '附件' },
|
||||
{ t_props: 'statusName', t_label: '状态' },
|
||||
|
||||
]
|
||||
export const dialogConfig = {
|
||||
outerWidth: '80%',
|
||||
outerTitle: '',
|
||||
outerVisible: false,
|
||||
}
|
||||
|
|
@ -9,7 +9,7 @@ export const columnsList = [
|
|||
{ t_props: 'arrivalTime', t_label: '到货时间', },
|
||||
{ t_props: 'purchaseCode', t_label: '采购单号' },
|
||||
{ t_props: 'purchaseMaterial', t_label: '采购物资' },
|
||||
{ t_props: 'purchaseNum', t_label: '采购数量' },
|
||||
{ t_props: 'purchaseNum', t_label: '采购数量', t_slot: 'purchaseNum' },
|
||||
{ t_props: 'purchasePrice', t_label: '采购价格(含税)', },
|
||||
{ t_props: 'notaxPrice', t_label: '采购价格(不含税)' },
|
||||
{ t_props: 'createBy', t_label: '操作人' },
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@
|
|||
ref="tableRef"
|
||||
v-if="isShowComponent === 'Index'"
|
||||
>
|
||||
|
||||
|
||||
|
||||
<template slot="btn" slot-scope="{ queryParams }">
|
||||
<el-button @click="handleExportData(queryParams, 'base/customer/export', '新购绑定清单')"
|
||||
>导出</el-button
|
||||
|
|
@ -36,6 +39,10 @@
|
|||
>
|
||||
</template>
|
||||
|
||||
<template slot="purchaseNum" slot-scope="{ data }">
|
||||
{{ data.purchaseNum / 1000 }}
|
||||
</template>
|
||||
|
||||
</TableModel>
|
||||
|
||||
<list-binding
|
||||
|
|
@ -78,7 +85,7 @@ export default {
|
|||
columnsList,
|
||||
dialogConfig,
|
||||
isShowComponent: 'Index',
|
||||
pageContent: '新购绑定任务列表',
|
||||
pageContent: '新购绑定物资列表',
|
||||
sendParams: {}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,21 +0,0 @@
|
|||
|
||||
export const formLabel = [
|
||||
{ f_label: '关键字', f_model: 'keyWord', f_type: 'ipt' },
|
||||
{ f_label: '状态', f_model: 'keyWord', f_type: 'ipt' },
|
||||
]
|
||||
export const columnsList = [
|
||||
{ t_props: 'arrivalTime', t_label: '物资名称', },
|
||||
{ t_props: 'purchaseCode', t_label: '规格型号' },
|
||||
{ t_props: 'purchaseMaterial', t_label: '到货数量' },
|
||||
{ t_props: 'purchaseNum', t_label: '计量单位' },
|
||||
{ t_props: 'purchasePrice', t_label: '供应商', },
|
||||
{ t_props: 'notaxPrice', t_label: '出厂日期' },
|
||||
{ t_props: 'createBy', t_label: '附件' },
|
||||
{ t_props: 'status', t_label: '状态' },
|
||||
|
||||
]
|
||||
export const dialogConfig = {
|
||||
outerWidth: '80%',
|
||||
outerTitle: '',
|
||||
outerVisible: false,
|
||||
}
|
||||
Loading…
Reference in New Issue