Merge pull request '修改bug' (#52) from zwq into develop
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #52
This commit is contained in:
朱文强 2022-03-11 09:51:02 +08:00
commit e7629a6ea0

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