Browse Source

fix: 添加输入框完成时候按钮

master
zhang_li 8 months ago
parent
commit
daa51f500b
  1. 2
      src/pages/deviceReport/addForm.vue
  2. 2
      src/pages/overhaulOrder/addForm.vue
  3. 2
      src/pages/repairOrder/addForm.vue
  4. 2
      src/pages/repairOrder/transfer.vue
  5. 2
      src/pages/sparePartsServiceWorkOrderList/addForm.vue
  6. 7
      src/pages/spotCheckOrder/addForm.vue
  7. 8
      src/pages/upkeepOrder/addServiceRecord.vue
  8. 2
      src/pages/upkeepOrder/detail.vue

2
src/pages/deviceReport/addForm.vue

@ -18,7 +18,7 @@
</u-form-item>
<u-form-item :label="`${type=='DEVICE'||type == 'TECH'?'设备' : '模具'}编码`" prop="deviceNumber" required>
<u-input v-model="form.deviceNumber" :placeholder="`请输入${type=='DEVICE'||type == 'TECH'?'设备' : '模具'}编码`"
@blur="blur()" />
@blur="blur()" @confirm='blur()'/>
<view class="right-button" @click="chickRightButton">
扫描
</view>

2
src/pages/overhaulOrder/addForm.vue

@ -33,7 +33,7 @@
<u-form-item :label="`${type=='DEVICE'||type == 'TECH'?'设备' : '模具'}编码`" prop="deviceNumber" required
:class="isDisabled?'disabled':''">
<u-input v-model="form.deviceNumber" :placeholder="`请输入${type=='DEVICE'||type == 'TECH'?'设备' : '模具'}编码`"
@blur="blur()" />
@blur="blur()" @confirm='blur()'/>
<view class="right-button" @click="chickRightButton" v-show="!isDisabled">
扫描
</view>

2
src/pages/repairOrder/addForm.vue

@ -29,7 +29,7 @@
</u-form-item> -->
<u-form-item :label="`${type=='DEVICE'||type == 'TECH'?'设备' : '模具'}编码`" prop="deviceNumber" required>
<u-input v-model="form.deviceNumber" :placeholder="`请输入${type=='DEVICE'||type == 'TECH'?'设备' : '模具'}编码`"
@blur="blur()" />
@blur="blur()" @confirm='blur()'/>
<view class="right-button" @click="chickRightButton">
扫描
</view>

2
src/pages/repairOrder/transfer.vue

@ -39,7 +39,7 @@
<u-form-item :label="`${form.receiverType=='DEVICE'||form.receiverType == 'TECH'?'设备' : '模具'}编码`" prop="deviceNumber" required
v-if="form.status==0">
<u-input v-model="form.deviceNumber" :placeholder="`请输入${form.receiverType=='DEVICE'||form.receiverType == 'TECH'?'设备' : '模具'}编码`"
@blur="blur()" />
@blur="blur()" @confirm='blur()'/>
<view class="right-button" @click="chickRightButton">
扫描
</view>

2
src/pages/sparePartsServiceWorkOrderList/addForm.vue

@ -71,7 +71,7 @@
</view>
</u-form-item>
<u-form-item label="库位" prop="locationNumber" required v-if="isShow">
<u-input v-model="form1.locationNumber" placeholder="请选择库位" @blur="blur()" />
<u-input v-model="form1.locationNumber" placeholder="请选择库位" @blur="blur()" @confirm='blur()'/>
<view class="right-button" @click="chickRightButton">
扫描
</view>

7
src/pages/spotCheckOrder/addForm.vue

@ -7,7 +7,7 @@
</u-form-item>
<u-form-item :label="`${type=='DEVICE'?'设备' : '模具'}编码`" prop="deviceNumber" required>
<u-input v-model="form.deviceNumber"
:placeholder="`请输入${type=='DEVICE'?'设备' : '模具'}编码`" @blur="blur"/>
:placeholder="`请输入${type=='DEVICE'?'设备' : '模具'}编码`" @blur="blur" @confirm='blur()'/>
<view class="right-button" @click="chickRightButton">
扫描
</view>
@ -50,7 +50,7 @@
<view>{{item.equipmentParts}}</view>
</view>
<view class="dec">
<view style="margin-right: 20rpx;">是否符合:</view><u-switch v-model="item.isConform"></u-switch>
<view style="margin-right: 20rpx;">是否符合:</view><u-switch v-model="item.isConform1"></u-switch>
</view>
</u-col>
@ -166,6 +166,9 @@
proxy.$modal.showToast('该设备无检修项目')
return;
}
subList.value.forEach(item=>{
item.isConform = !item.isConform1 ? 'FALSE' : 'TRUE'
})
const data = {
describes:form.value.describes,
deviceNumber:form.value.deviceNumber,

8
src/pages/upkeepOrder/addServiceRecord.vue

@ -400,6 +400,10 @@ const form = ref({
}
//
function addSpare() {
if (!form1.value.number) {
proxy.$modal.showToast('请选择备件')
return;
}
if (!form1.value.qty || form1.value.qty == 0) {
proxy.$modal.showToast('请输入数量')
return;
@ -451,7 +455,7 @@ const form = ref({
}
let str = array1.join('-') + ' ' + array2.join(':')
formatDate.value = str
form.value[field.value] = e.timestamp
form.value[field.value] = e.timestamp*1000
}
onLoad(async(option) => {
if (option.type) type.value = option.type;
@ -461,7 +465,7 @@ const form = ref({
.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/upkeepOrder/detail.vue

@ -103,7 +103,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