二级明细状态展示

This commit is contained in:
zzyuan 2024-11-08 17:59:08 +08:00
parent f12ac8ad1f
commit dc61d5d7a3
3 changed files with 27 additions and 5 deletions

View File

@ -86,6 +86,11 @@
<div style="color: rgb(2, 167, 240);cursor: pointer;" @click="openFileDialog(scope.row)">报告管理</div>
</template>
</el-table-column>
<el-table-column label="状态" align="center" prop="status" :show-overflow-tooltip="true">
<template slot-scope="scope">
<dict-tag :options="dict.type.purchase_task_status" :value="scope.row.status"/>
</template>
</el-table-column>
<el-table-column label="验收结论" align="center" prop="checkResult" :show-overflow-tooltip="true"/>
<el-table-column label="操作" align="center" width="180">
<template slot-scope="scope">
@ -127,14 +132,14 @@
<el-table-column label="操作" align="center" width="100">
<template slot-scope="scope">
<div style="display: flex;align-items: center;justify-content: center;">
<el-upload ref="upload" :limit="1" :headers="upload.headers" v-show="!isView"
<!-- <el-upload ref="upload" :limit="1" :headers="upload.headers" v-show="!isView"
:action="upload.url" :show-file-list="false" accept=".png, .jpg, .jpeg, .pdf, .doc, .docx"
:on-success="handleFileSuccess" :auto-upload="true"
>
<el-button size="mini" type="text" @click="beforeFileUpload(scope.row)">
上传
</el-button>
</el-upload>
</el-upload> -->
<el-button size="mini" type="text" @click="picturePreview(scope.row)" v-if="scope.row.url" style="margin-left: 10px;">
查看
@ -175,6 +180,7 @@
import { getToken } from '@/utils/auth'
export default {
name: "GoodsAcceptDetail",
dicts: ['purchase_task_status'],
data() {
return {
Id:'',

View File

@ -212,7 +212,18 @@
<div style="color: rgb(2, 167, 240);cursor: pointer;" @click="openFileDialog(scope.row)">报告管理</div>
</template>
</el-table-column>
<el-table-column label="状态" align="center" prop="status" :show-overflow-tooltip="true">
<template slot-scope="scope">
<dict-tag :options="dict.type.purchase_task_status" :value="scope.row.status"/>
</template>
</el-table-column>
<!-- <el-table-column
align="center"
label="验收结论"
prop="checkResult"
show-overflow-tooltip
></el-table-column> -->
<el-table-column label="操作" align="center">
<template slot-scope="scope" v-if="scope.row.roleId !== 1">
<el-button
@ -296,7 +307,7 @@ import { uploadPurchaseFile,getPurchaseFileList } from "@/api/purchase/goodsAcce
export default {
name: 'AddTools',
dicts: ['sys_normal_disable'],
dicts: ['purchase_task_status'],
// components: { Treeselect, HoldingpoleDialog },
props: {
isEdit: {

View File

@ -70,6 +70,11 @@
<div style="color: rgb(2, 167, 240);cursor: pointer;" @click="openFileDialog(scope.row)">报告管理</div>
</template>
</el-table-column>
<el-table-column label="状态" align="center" prop="status" :show-overflow-tooltip="true">
<template slot-scope="scope">
<dict-tag :options="dict.type.purchase_task_status" :value="scope.row.status"/>
</template>
</el-table-column>
</el-table>
@ -129,7 +134,7 @@ import { uploadPurchaseFile,getPurchaseFileList } from "@/api/purchase/goodsAcce
import { getToken } from '@/utils/auth'
export default {
name: 'QueryTools',
dicts: ['sys_normal_disable'],
dicts: ['purchase_task_status'],
components: {
// UploadImg,
},