李俊城 2 months ago
parent
commit
0b7971c428
  1. 7
      src/pages/deviceReport/addForm.vue

7
src/pages/deviceReport/addForm.vue

@ -37,6 +37,7 @@
<u-input v-model="form.factoryAreaName"
:placeholder="`根据${type=='DEVICE'?'设备':type == 'TECH'?'工艺' : '模具'}编码获得`" disabled />
</u-form-item>
<u-form-item required>
<view class="image" style="margin-top: 20rpx;">
<view class="image-list" v-if='imgList.length>0'>
<view class="image-item" v-for="(item,index) in imgList" :key="index">
@ -49,6 +50,7 @@
<image src="../../static/images/photo.png" mode=""></image>
</view>
</view>
</u-form-item>
</u-form>
<view class="footer">
<view class="btns">
@ -199,12 +201,17 @@
proxy.$modal.showToast(`请选择类型'}`)
return;
}
if(imgList.value.length == 0){
proxy.$modal.showToast(`请上传图片`)
return;
}
const data = {
describes: form.value.describes,
deviceNumber: form.value.deviceNumber,
factoryAreaNumber: form.value.factoryAreaNumber,
type: type.value,
filePathList: imgList.value,
sourceType: '0'
}
proxy.$modal.confirm('是否添加报修').then(() => {
proxy.$modal.loading('加载中')

Loading…
Cancel
Save