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

2
src/pages/overhaulOrder/addForm.vue

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

2
src/pages/repairOrder/addForm.vue

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

2
src/pages/repairOrder/transfer.vue

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

2
src/pages/sparePartsServiceWorkOrderList/addForm.vue

@ -71,7 +71,7 @@
</view> </view>
</u-form-item> </u-form-item>
<u-form-item label="库位" prop="locationNumber" required v-if="isShow"> <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 class="right-button" @click="chickRightButton">
扫描 扫描
</view> </view>

7
src/pages/spotCheckOrder/addForm.vue

@ -7,7 +7,7 @@
</u-form-item> </u-form-item>
<u-form-item :label="`${type=='DEVICE'?'设备' : '模具'}编码`" prop="deviceNumber" required> <u-form-item :label="`${type=='DEVICE'?'设备' : '模具'}编码`" prop="deviceNumber" required>
<u-input v-model="form.deviceNumber" <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 class="right-button" @click="chickRightButton">
扫描 扫描
</view> </view>
@ -50,7 +50,7 @@
<view>{{item.equipmentParts}}</view> <view>{{item.equipmentParts}}</view>
</view> </view>
<view class="dec"> <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> </view>
</u-col> </u-col>
@ -166,6 +166,9 @@
proxy.$modal.showToast('该设备无检修项目') proxy.$modal.showToast('该设备无检修项目')
return; return;
} }
subList.value.forEach(item=>{
item.isConform = !item.isConform1 ? 'FALSE' : 'TRUE'
})
const data = { const data = {
describes:form.value.describes, describes:form.value.describes,
deviceNumber:form.value.deviceNumber, deviceNumber:form.value.deviceNumber,

8
src/pages/upkeepOrder/addServiceRecord.vue

@ -400,6 +400,10 @@ const form = ref({
} }
// //
function addSpare() { function addSpare() {
if (!form1.value.number) {
proxy.$modal.showToast('请选择备件')
return;
}
if (!form1.value.qty || form1.value.qty == 0) { if (!form1.value.qty || form1.value.qty == 0) {
proxy.$modal.showToast('请输入数量') proxy.$modal.showToast('请输入数量')
return; return;
@ -451,7 +455,7 @@ const form = ref({
} }
let str = array1.join('-') + ' ' + array2.join(':') let str = array1.join('-') + ' ' + array2.join(':')
formatDate.value = str formatDate.value = str
form.value[field.value] = e.timestamp form.value[field.value] = e.timestamp*1000
} }
onLoad(async(option) => { onLoad(async(option) => {
if (option.type) type.value = option.type; if (option.type) type.value = option.type;
@ -461,7 +465,7 @@ const form = ref({
.data)).id) { .data)).id) {
form.value = JSON.parse(decodeURIComponent(option.data)) form.value = JSON.parse(decodeURIComponent(option.data))
form.value.itemNumbers = form.value.items 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 ? '完成' :'未完成' form.value.statusTxt = form.value.status == 0 ? '完成' :'未完成'
}; };
jxDetailsStatus.value = await dictApi.getDict('jx_details_status') jxDetailsStatus.value = await dictApi.getDict('jx_details_status')

2
src/pages/upkeepOrder/detail.vue

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

Loading…
Cancel
Save