Browse Source

fix: 检修时间问题

master
zhang_li 8 months ago
parent
commit
cf74212626
  1. 2
      .env.development
  2. 6
      src/pages/overhaulOrder/addServiceRecord.vue
  3. 2
      src/pages/overhaulOrder/detail.vue

2
.env.development

@ -1,3 +1,3 @@
VITE_BASE_URL=http://192.168.0.106:12080/admin-api
VITE_BASE_URL=http://localhost:12080/admin-api
VITE_BASE_URL_IMAGE=http://localhost:12080/admin-api

6
src/pages/overhaulOrder/addServiceRecord.vue

@ -458,6 +458,7 @@
}
//
function chooseDatetime(e) {
console.log(e)
let array1 = []
let array2 = []
if (formatValue.value.indexOf('YYYY') > -1) {
@ -480,7 +481,8 @@
}
let str = array1.join('-') + ' ' + array2.join(':')
formatDate.value = str
form.value[field.value] = e.timestamp
form.value[field.value] = e.timestamp*1000
console.log(form.value[field.value] )
}
onLoad(async(option) => {
if (option.type) type.value = option.type;
@ -490,7 +492,7 @@
.data)).id) {
form.value = JSON.parse(decodeURIComponent(option.data))
form.value.itemNumbers = form.value.items
formatDate.value = form.value.completionTime ? proxy.$time.formatDate(form.value.completionTime * 1000) : ''
formatDate.value = form.value.completionTime ? proxy.$time.formatDate(form.value.completionTime) : ''
form.value.statusTxt = form.value.status == 0 ? '完成' :'未完成'
};
jxDetailsStatus.value = await dictApi.getDict('jx_details_status')

2
src/pages/overhaulOrder/detail.vue

@ -93,7 +93,7 @@
</view>
<view class="dec2" v-if='item.status === 0 || item.status === "0"'>
<view>完成时间</view>
<view>{{$time.formatDate(item.completionTime*1000)}}</view>
<view>{{$time.formatDate(item.completionTime)}}</view>
</view>
<view class="dec2">
<view>工程师确认</view>

Loading…
Cancel
Save