| | |
| | | 开始生产 |
| | | </BigButton> |
| | | <template v-if="task?.Procedure.Status === 2 || task?.Procedure.Status === 3"> |
| | | <BigButton class="btn" bg-color="#ff9933">打印</BigButton> |
| | | <BigButton class="btn" bg-color="#00cc33" @click="openReportModal">报工</BigButton> |
| | | <BigButton class="btn" bg-color="#ff9933" :disabled="task?.Procedure.Status === 3">打印</BigButton> |
| | | <BigButton class="btn" bg-color="#00cc33" :disabled="task?.Procedure.Status === 3" @click="openReportModal"> |
| | | 报工 |
| | | </BigButton> |
| | | <el-popconfirm |
| | | width="340" |
| | | confirm-button-text="确定" |
| | |
| | | @confirm="finishTaskProduce" |
| | | > |
| | | <template #reference> |
| | | <BigButton class="btn" bg-color="#ff0000">完成</BigButton> |
| | | <BigButton class="btn" bg-color="#ff0000" :disabled="task?.Procedure.Status === 3">完成</BigButton> |
| | | </template> |
| | | </el-popconfirm> |
| | | </template> |
| | |
| | | if (!timestamp) { |
| | | return '--' |
| | | } |
| | | const time = useDateFormat(timestamp * 1000, 'YYYY-MM-DD', { locales: 'zh-cn' }) |
| | | const time = useDateFormat(timestamp * 1000, 'YYYY-MM-DD HH:mm:ss', { locales: 'zh-cn' }) |
| | | return time.value |
| | | } |
| | | // 报工 |