|
|
@@ -111,11 +111,15 @@
|
|
|
</span>
|
|
|
</template>
|
|
|
<!-- 单号链接 -->
|
|
|
- <template v-slot:bizNum="{ row }">
|
|
|
+ <template v-slot:bizNo="{ row }">
|
|
|
<el-link @click="details(row)">
|
|
|
- {{ row.bizNum }}
|
|
|
+ {{ row.bizNo }}
|
|
|
</el-link>
|
|
|
</template>
|
|
|
+ <!-- 入库人 -->
|
|
|
+ <template v-slot:createUserId="{ row }">
|
|
|
+ {{ returnName(row.createUserId) }}
|
|
|
+ </template>
|
|
|
|
|
|
<!-- 操作列 -->
|
|
|
<template v-slot:action="{ row }">
|
|
|
@@ -173,53 +177,38 @@
|
|
|
width: 50,
|
|
|
align: 'center'
|
|
|
},
|
|
|
-
|
|
|
{
|
|
|
- prop: 'bizNum',
|
|
|
+ prop: 'bizNo',
|
|
|
label: '单号',
|
|
|
align: 'center',
|
|
|
- slot: 'bizNum',
|
|
|
+ slot: 'bizNo',
|
|
|
showOverflowTooltip: true,
|
|
|
- width: 140
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'assetCode',
|
|
|
- label: '编码',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'assetName',
|
|
|
- label: '名称',
|
|
|
- align: 'center'
|
|
|
- },
|
|
|
- {
|
|
|
- prop: '',
|
|
|
- label: '牌号',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
+ width: 150
|
|
|
},
|
|
|
+
|
|
|
{
|
|
|
- prop: '',
|
|
|
- label: '型号',
|
|
|
+ prop: 'extInfo.documentSource',
|
|
|
+ label: '来源单据',
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
- prop: '',
|
|
|
- label: '数量',
|
|
|
+ prop: 'createUserId',
|
|
|
+ label: '入库人',
|
|
|
align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'createUserId'
|
|
|
},
|
|
|
{
|
|
|
- prop: '',
|
|
|
- label: '计量单位',
|
|
|
+ width: 160,
|
|
|
+ prop: 'createTime',
|
|
|
+ label: '入库时间',
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
{
|
|
|
- prop: '',
|
|
|
- label: '重量单位',
|
|
|
+ prop: 'verifyName',
|
|
|
+ label: '审核人',
|
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
@@ -230,26 +219,6 @@
|
|
|
slot: 'verifyStatus',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
-
|
|
|
- {
|
|
|
- prop: 'documentSource',
|
|
|
- label: '来源单据',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'createUserName',
|
|
|
- label: '入库人',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- width: 160,
|
|
|
- prop: 'createTime',
|
|
|
- label: '入库时间',
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
{
|
|
|
columnKey: 'action',
|
|
|
label: '操作',
|
|
|
@@ -263,6 +232,13 @@
|
|
|
},
|
|
|
created() {},
|
|
|
methods: {
|
|
|
+ returnName(row) {
|
|
|
+ const list = this.$store.state.userPage.userList;
|
|
|
+ const name = list.find((item) => {
|
|
|
+ return item.id == row;
|
|
|
+ }).name;
|
|
|
+ return name;
|
|
|
+ },
|
|
|
async datasource({ page, limit, where }) {
|
|
|
const params = Object.assign({}, this.formData);
|
|
|
if (params.time?.length) {
|