修改bug #52

Merged
zwq merged 1 commits from zwq into develop 2022-03-11 09:51:03 +08:00
Showing only changes of commit 633313c34e - Show all commits

View File

@ -2,7 +2,7 @@
* @Author: zwq
* @Date: 2020-12-29 16:37:56
* @LastEditors: zwq
* @LastEditTime: 2022-03-09 14:59:52
* @LastEditTime: 2022-03-11 09:48:52
* @Description:
-->
<template>
@ -135,6 +135,7 @@
</template>
<script>
import moment from 'moment'
import i18n from '@/lang'
import { getScrapInfo, editScrapInfo, addScrapInfo } from '@/api/quality-manage/scrap'
import { scrapReasonList } from '@/api/dict'
@ -164,6 +165,7 @@ export default {
data() {
return {
visible: false,
moment,
dataForm: {
id: 0,
source: undefined,
@ -223,6 +225,8 @@ export default {
getScrapInfo({ id: this.dataForm.id }).then(res => {
this.dataForm = res.data
})
} else {
this.dataForm.registerTime = this.moment().format('YYYY-MM-DD HH:mm:ss')
}
})
},