新购绑定二级列表
This commit is contained in:
parent
a5a18d2269
commit
c4fb1f4b38
|
|
@ -11,33 +11,40 @@
|
||||||
:formLabel="formLabel"
|
:formLabel="formLabel"
|
||||||
:columnsList="columnsList"
|
:columnsList="columnsList"
|
||||||
:request-api="queryPurchaseBindDetailsApi"
|
:request-api="queryPurchaseBindDetailsApi"
|
||||||
:tableQueryParams="sendParams"
|
:sendParams="sendParams"
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
v-if="isShowComponent === 'Index'"
|
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
|
<template slot="checkNum" slot-scope="{ data }">
|
||||||
type="danger"
|
{{data.checkNum / 1000}}
|
||||||
size="mini"
|
</template>
|
||||||
@click="toggleBinding(data)"
|
|
||||||
>绑定</el-button
|
|
||||||
>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
</TableModel>
|
|
||||||
|
|
||||||
|
<template slot="bindNum" slot-scope="{ data }">
|
||||||
|
{{data.bindNum / 1000}}
|
||||||
|
</template>
|
||||||
|
|
||||||
|
</TableModel>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import PageHeader from '@/components/pageHeader'
|
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 { commonMixin } from '../../mixins/common'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
|
@ -61,12 +68,8 @@ export default {
|
||||||
queryPurchaseBindDetailsApi,
|
queryPurchaseBindDetailsApi,
|
||||||
goBack() {
|
goBack() {
|
||||||
this.isShowComponent = 'Index'
|
this.isShowComponent = 'Index'
|
||||||
},
|
|
||||||
toggleBinding(data) {
|
|
||||||
this.sendData = data
|
|
||||||
console.log(data)
|
|
||||||
this.isShowComponent = 'list-binding'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
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: 'arrivalTime', t_label: '到货时间', },
|
||||||
{ t_props: 'purchaseCode', t_label: '采购单号' },
|
{ t_props: 'purchaseCode', t_label: '采购单号' },
|
||||||
{ t_props: 'purchaseMaterial', 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: 'purchasePrice', t_label: '采购价格(含税)', },
|
||||||
{ t_props: 'notaxPrice', t_label: '采购价格(不含税)' },
|
{ t_props: 'notaxPrice', t_label: '采购价格(不含税)' },
|
||||||
{ t_props: 'createBy', t_label: '操作人' },
|
{ t_props: 'createBy', t_label: '操作人' },
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,9 @@
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
v-if="isShowComponent === 'Index'"
|
v-if="isShowComponent === 'Index'"
|
||||||
>
|
>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<template slot="btn" slot-scope="{ queryParams }">
|
<template slot="btn" slot-scope="{ queryParams }">
|
||||||
<el-button @click="handleExportData(queryParams, 'base/customer/export', '新购绑定清单')"
|
<el-button @click="handleExportData(queryParams, 'base/customer/export', '新购绑定清单')"
|
||||||
>导出</el-button
|
>导出</el-button
|
||||||
|
|
@ -36,6 +39,10 @@
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template slot="purchaseNum" slot-scope="{ data }">
|
||||||
|
{{ data.purchaseNum / 1000 }}
|
||||||
|
</template>
|
||||||
|
|
||||||
</TableModel>
|
</TableModel>
|
||||||
|
|
||||||
<list-binding
|
<list-binding
|
||||||
|
|
@ -78,7 +85,7 @@ export default {
|
||||||
columnsList,
|
columnsList,
|
||||||
dialogConfig,
|
dialogConfig,
|
||||||
isShowComponent: 'Index',
|
isShowComponent: 'Index',
|
||||||
pageContent: '新购绑定任务列表',
|
pageContent: '新购绑定物资列表',
|
||||||
sendParams: {}
|
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