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