修改bug

This commit is contained in:
朱文强 2022-03-11 09:50:41 +08:00
parent 7a798d354b
commit 633313c34e

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')
}
})
},