Commit 3b84df5a authored by xiangzj's avatar xiangzj

pad时间获取显示

parent e2fb3cb5
...@@ -170,10 +170,10 @@ ...@@ -170,10 +170,10 @@
:title-style="{'background-color':'#1E3770','color': '#FFFFFF' ,'line-height': '60px','padding-top': '0px'}" :title-style="{'background-color':'#1E3770','color': '#FFFFFF' ,'line-height': '60px','padding-top': '0px'}"
v-model="aopen" width="1300rpx"> v-model="aopen" width="1300rpx">
<u-form label-width="90px" :rules="rules"> <u-form label-width="90px" :rules="rules">
<!-- <u-form-item label="异常时间" prop="abnormalTime"> <u-form-item label="异常时间" prop="abnormalTime">
<u-input :border="true" v-model="ExceptionForms.abnormalTime"></u-input> <u-input disabled="true" :border="true" v-model="ExceptionForms.abnormalTime"></u-input>
<uni-datetime-picker class="times" type="date" :clear-icon="false" v-model="ExceptionForms.abnormalTime" /> <!-- <uni-datetime-picker class="times" type="date" :clear-icon="false" v-model="ExceptionForms.abnormalTime" /> -->
</u-form-item> --> </u-form-item>
<u-row> <u-row>
<u-col span="6"> <u-col span="6">
...@@ -385,6 +385,7 @@ ...@@ -385,6 +385,7 @@
<script> <script>
import SearchInput from "@/components/ScanInput/index.vue"; import SearchInput from "@/components/ScanInput/index.vue";
import dModelList from './components/dModelList.vue' import dModelList from './components/dModelList.vue'
import timeFormat from '@/uview-ui/libs/function/timeFormat.js'
export default { export default {
name: "ProdReport", name: "ProdReport",
components: { components: {
...@@ -605,7 +606,9 @@ export default { ...@@ -605,7 +606,9 @@ export default {
dModelData: [], dModelData: [],
tableSelectData: [], tableSelectData: [],
feedbackForms: [], feedbackForms: [],
ExceptionForms: {}, ExceptionForms: {
abnormalTime: timeFormat(new Date(), 'yyyy-mm-dd')
},
reasonList: [], reasonList: [],
materialUsageRecordList: [], materialUsageRecordList: [],
materialusagerecordLoading: false, materialusagerecordLoading: false,
...@@ -1043,7 +1046,7 @@ export default { ...@@ -1043,7 +1046,7 @@ export default {
workstationName: this.vuex_workunit.workunitName, workstationName: this.vuex_workunit.workunitName,
abnormalType: '', abnormalType: '',
abnormalReason: '', abnormalReason: '',
abnormalTime: '' abnormalTime: timeFormat(new Date(), 'yyyy-mm-dd')
}) })
this.aopen = true; this.aopen = true;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment