生产任务派工单优化

dev
qiuhongwu 3 months ago
parent bb94f9614c
commit 26d9e9432a

@ -25,7 +25,11 @@
<el-table-column label="产品名称" align="materialName" prop="name" min-width="120" />
<el-table-column label="规格/型号" align="center" prop="spec" min-width="120" />
<el-table-column label="报工人" align="center" prop="ownerName" min-width="120" />
<el-table-column label="报工日期" align="center" prop="reportTime" min-width="120" />
<el-table-column label="报工日期" align="center" prop="reportTime" min-width="220" >
<template #default="scope">
{{ formatDate(scope.row.reportTime, 'YYYY-MM-DD HH:mm') }}
</template>
</el-table-column>
<el-table-column label="报工工序" align="center" prop="procedureName" min-width="120" />
<el-table-column label="报工工时" align="center" prop="workTime" min-width="120" />
<el-table-column label="报工数量" align="center" prop="amount" min-width="120" />
@ -59,6 +63,7 @@
<UserDialog ref="userDialogref" @success="handleuserClick" />
</template>
<script lang="ts" setup>
import { formatDate } from '@/utils/formatTime'
import { getIntDictOptions, getStrDictOptions, DICT_TYPE, getDictLabel } from '@/utils/dict'
import { CommonStatusEnum } from '@/utils/constants'
import { FormRules } from 'element-plus'

@ -212,7 +212,7 @@
</el-form-item>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" align="center" min-width="160">
<el-table-column fixed="right" label="操作" align="center" min-width="200">
<template #default="scope">
<el-button
link
@ -220,7 +220,7 @@
size="small"
@click.prevent="openratioDetail(scope.row, scope.$index)"
>
编辑
设置工时比例
</el-button>
<el-button
v-if="'detail' != active && scope.row.procedureStatus == 0"

@ -423,16 +423,16 @@
</el-form-item>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" align="center" min-width="120">
<el-table-column fixed="right" label="操作" align="center" min-width="200">
<template #default="scope">
<el-button
v-if="'detail' != active && scope.row.procedureStatus == 0"
v-if="'detail' != active"
link
type="primary"
size="small"
@click.prevent="openratioDetail(scope.row, scope.$index)"
>
编辑
设置工时比例
</el-button>
<el-button
v-if="'detail' != active && scope.row.procedureStatus == 0"

Loading…
Cancel
Save