Merge pull request '修改bug' (#52) from zwq into develop
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #52
This commit is contained in:
commit
e7629a6ea0
@ -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')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user