| | |
| | | <uni-data-select v-model="formData.num" :localdata="equipmentList" @change="changeEquipmentList" |
| | | placeholder="请选择" :disabled="true" /> |
| | | </uni-forms-item> |
| | | |
| | | <uni-forms-item :label-width="80" required name="maintenanceStatus_dictText" label="工单状态:"> |
| | | <uni-easyinput v-model="formData.maintenanceStatus_dictText" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item :label-width="80" required name="installationPosition_dictText" label="安装位置:"> |
| | | <uni-easyinput v-model="formData.installationPosition_dictText" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item :label-width="80" name="maintenanceDate" label="保养日期:"> |
| | | <uni-easyinput v-model="formData.maintenanceDate" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item :label-width="80" name="operator" label="保养人:"> |
| | | <uni-easyinput v-model="formData.operator" :disabled="true" /> |
| | | </uni-forms-item> |
| | | <uni-forms-item :label-width="100" 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 v-model="formData.remark" placeholder="请输入备注" :disabled="true" /> |
| | |
| | | :sourceType="sourceType" @select="select" @progress="progress" @success="success" |
| | | @fail="fail" @delete="deletea" /> |
| | | </uni-forms-item> |
| | | <!-- <view class="text-gray margin-bottom-lg">—————————— 班组长确认 ——————————</view> |
| | | <uni-forms-item name="outNum" required label="确认类型:"> |
| | | <uni-data-select :localdata="formData.msListCategory" popup-title="请选择" @change="changeType" |
| | | :clear="false"> |
| | | </uni-data-select> |
| | | </uni-forms-item> |
| | | <uni-forms-item name="outNum" required label="确认意见:"> |
| | | <uni-easyinput type="textarea" v-model="formData.ttitle" placeholder="请输入内容"></uni-easyinput> |
| | | </uni-forms-item> --> |
| | | |
| | | </uni-group> |
| | | </uni-forms> |
| | | |
| | |
| | | </view> |
| | | <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">子保养项:</view> |
| | | <!-- <view class="flex-sub bg-white padding-xs margin-xs radius text-right" |
| | | v-if="item.subItemName!=null && item.subItemName.length>10"> |
| | | {{(item.subItemName).toString().substr(0,10)+'...'}} |
| | | </view> |
| | | |
| | | <view class="flex-sub bg-white padding-xs margin-xs radius text-right" v-else> |
| | | {{item.subItemName}} |
| | | </view> --> |
| | | <view class="flex-sub bg-white padding-xs margin-xs radius text-right"> |
| | | {{item.subItemName}} |
| | | </view> |
| | |
| | | |
| | | </view> |
| | | <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">点检结果:</view> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">保养结果:</view> |
| | | <view class="flex-sub bg-white padding-xs text-right margin-xs radius"> |
| | | <uni-data-select :localdata="item.restle" v-model="item.maintenanceResult" |
| | | @change="handleCode($event, index)" /> |
| | |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | for (let i = 0; i < this.partTakeAdviceDetailList.length; i++) { |
| | | if (this.partTakeAdviceDetailList[i].inspectionResult === "2") { |
| | | if (this.partTakeAdviceDetailList[i].maintenanceResult === "2") { |
| | | if (this.partTakeAdviceDetailList[i].reportFlag === undefined || this |
| | | .partTakeAdviceDetailList[i].reportFlag === null || this.partTakeAdviceDetailList[i] |
| | | .reportFlag === '') { |
| | |
| | | }, |
| | | select(e) { |
| | | const tempFilePaths = e.tempFilePaths; |
| | | |
| | | // if (!Array.isArray(tempFilePaths) || tempFilePaths.length === 0) { |
| | | // uni.showToast({ |
| | | // title: '请选择文件', |
| | | // icon: 'none' |
| | | // }); |
| | | // return; |
| | | // } |
| | | |
| | | uni.showLoading({ |
| | | title: '上传中...' |
| | | }); |
| | | |
| | | const uploadPromises = tempFilePaths.map((filePath, index) => { |
| | | return new Promise((resolve, reject) => { |
| | | this.$http.upload(this.url.upload, { |
| | |
| | | console.log("url", res) |
| | | //设置列表数据 |
| | | if (res.data.success) { |
| | | this.formData.num = this.announcement1.equipmentId, |
| | | this.formData.orderNum = this.announcement1.orderNum, |
| | | this.formData.operator = this.announcement1.operator_dictText, |
| | | this.formData.maintenanceDate = this.announcement1.maintenanceDate, |
| | | this.formData.id = this.announcement1.id, |
| | | this.formData.num = this.announcement1.equipmentId |
| | | this.formData.orderNum = this.announcement1.orderNum |
| | | this.formData.operator = this.announcement1.operator_dictText |
| | | this.formData.installationPosition_dictText = this.announcement1 |
| | | .installationPosition_dictText |
| | | this.formData.maintenanceStatus_dictText = this.announcement1.maintenanceStatus_dictText |
| | | this.formData.operatorPhone_dictText = this.announcement1.operatorPhone_dictText |
| | | this.formData.maintenanceDate = this.announcement1.maintenanceDate |
| | | this.formData.id = this.announcement1.id |
| | | this.formData.remark = this.announcement1.remark |
| | | this.hasInspectionDateArrived(); |
| | | } |