| | |
| | | <view class="container"> |
| | | <cu-custom :bgColor="NavBarColor" :isBack="true" backRouterName="productionTask"> |
| | | <block slot="backText">返回</block> |
| | | <block slot="content">执行</block> |
| | | <block slot="content">点检执行</block> |
| | | </cu-custom> |
| | | <view class="container"> |
| | | <template> |
| | |
| | | <!-- 关闭按钮 --> |
| | | <text class="close-btn" @tap.stop="showPreview = false">×</text> |
| | | <!-- 图片展示 --> |
| | | <image :src="previewImageSrc" mode="aspectFit" class="preview-image" /> |
| | | <image :src="previewImageSrc" mode="aspectFit" class="preview-image" @error="handleImageError" |
| | | :show-menu-by-longpress="false"/> |
| | | </view> |
| | | </view> |
| | | |
| | | </template> |
| | | <uni-forms ref="form" :modelValue="formData" validate-trigger="bind" err-show-type="undertext"> |
| | | <uni-group top="1"> |
| | |
| | | <uni-forms-item :label-width="80" name="orderNum" label="工单号:"> |
| | | <uni-easyinput v-model="formData.orderNum" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item :label-width="80" required name="num" label="设备编号:"> |
| | | <uni-forms-item :label-width="80" name="inspectionStatus_dictText" label="工单状态:"> |
| | | <uni-easyinput v-model="formData.inspectionStatus_dictText" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item :label-width="80" name="num" label="设备编号:"> |
| | | <uni-data-select v-model="formData.num" :localdata="equipmentList" @change="changeEquipmentList" |
| | | placeholder="请选择" :disabled="true" /> |
| | | </uni-forms-item> |
| | | |
| | | <uni-forms-item :label-width="80" name="installationPosition_dictText" label="安装位置:"> |
| | | <uni-easyinput v-model="formData.installationPosition_dictText" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item :label-width="80" name="remark" label="点检日期:"> |
| | | <uni-easyinput v-model="formData.inspectionDate" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item :label-width="80" name="outNum" label="点检人:"> |
| | | <uni-easyinput v-model="formData.operator" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item :label-width="80" name="operatorPhone_dictText" label="点检人电话:"> |
| | | <uni-easyinput v-model="formData.operatorPhone_dictText" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item :label-width="80" name="remark" label="备注:"> |
| | | <uni-easyinput type="textarea" v-model="formData.remark" :disabled="true" /> |
| | |
| | | <script> |
| | | import index from "../../../../store"; |
| | | import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js"; |
| | | import configService from "@/common/service/config.service.js"; |
| | | export default { |
| | | mixins: [MescrollMixin], // 使用mixin |
| | | data() { |
| | |
| | | sourceType: ['album', 'camera'], |
| | | isClick: false, |
| | | scrollLeft: 0, |
| | | ipAndPort: configService.staticURL, |
| | | searchValue: '', |
| | | imgList: [], |
| | | equipmentList: [], |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | handleImageError(e) { |
| | | const icon_prefix="/static/"; |
| | | this.previewImageSrc=icon_prefix+"icn_erro.png" |
| | | }, |
| | | select(e) { |
| | | const tempFilePaths = e.tempFilePaths; |
| | | uni.showLoading({ |
| | |
| | | this.standardId = this.announcement1.standardId |
| | | this.getStandardFile() |
| | | } |
| | | this.formData.num = this.announcement1.equipmentId, |
| | | this.formData.orderNum = this.announcement1.orderNum, |
| | | this.formData.operator = this.announcement1.operator, |
| | | this.formData.inspectionDate = this.announcement1.inspectionDate, |
| | | this.hasInspectionDateArrived(); |
| | | this.formData.num = this.announcement1.equipmentId |
| | | this.formData.remark = this.announcement1.remark |
| | | this.formData.orderNum = this.announcement1.orderNum |
| | | this.formData.operator = this.announcement1.operator_dictText |
| | | this.formData.inspectionStatus_dictText = this.announcement1.inspectionStatus_dictText |
| | | |
| | | this.formData.installationPosition_dictText = this.announcement1 |
| | | .installationPosition_dictText |
| | | this.formData.operatorPhone_dictText = this.announcement1.operatorPhone_dictText |
| | | this.formData.inspectionDate = this.announcement1.inspectionDate |
| | | this.hasInspectionDateArrived(); |
| | | |
| | | |
| | | } |