| | |
| | | |
| | | <view class="padding flex flex-direction"> |
| | | <view class="flex-sub bg-blue padding-sm margin-xl radius text-sm text-center text-white" |
| | | @click.stop="ProductionTask()" hover-class="is-hover">提交</view> |
| | | @click.stop="ProductionTask()" hover-class="is-hover">提交</view> |
| | | </view> |
| | | |
| | | |
| | |
| | | import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js"; |
| | | export default { |
| | | mixins: [MescrollMixin], // 使用mixin |
| | | |
| | | data() { |
| | | return { |
| | | // 图片回显 |
| | |
| | | faultNameList: [], |
| | | faultName: '', |
| | | faultType: '', |
| | | breakdownFlag: '', |
| | | breakdownFlag: '1', |
| | | loadTime: Date.now(), |
| | | faultDescription: '' |
| | | }, |
| | |
| | | announcement1: [], |
| | | msg1Count: 0, |
| | | msg2Count: 0, |
| | | msg1Title: "" |
| | | msg1Title: "", |
| | | equipmentId: '', |
| | | AuthLsit:[] |
| | | } |
| | | }, |
| | | computed: { |
| | |
| | | this.getSera() |
| | | }, |
| | | created() { |
| | | // this.getEquipment(); |
| | | |
| | | this.getfaultReasonList(); |
| | | }, |
| | | methods: { |
| | |
| | | console.log(this.announcement1); |
| | | //设置列表数据 |
| | | if (res.data.success) { |
| | | this.equipmentId = this.announcement1.id |
| | | this.formData.numSear = this.announcement1.equipmentCode + '[' + this.announcement1 |
| | | .equipmentName + |
| | | ']' |
| | |
| | | }); |
| | | return false |
| | | } |
| | | if (this.formData.breakdownFlag == 0 || this.formData.breakdownFlag == undefined) { |
| | | uni.showToast({ |
| | | icon: "none", |
| | | title: '是否停机为空!', |
| | | duration: 2000 |
| | | }); |
| | | return false |
| | | } |
| | | // 请求开始 增加遮罩层 |
| | | uni.showLoading({ |
| | | mask: true, |
| | |
| | | title: '提交成功', |
| | | duration: 2000 |
| | | }); |
| | | this.$Router.replaceAll({ |
| | | name: 'index' |
| | | console.log(this.equipmentId) |
| | | uni.reLaunch({ |
| | | url: `/pages/reportRepair/reportRepairList/reportRepairList?equipmentId=${this.equipmentId}` |
| | | }) |
| | | |
| | | } else { |
| | | uni.showToast({ |
| | | icon: "error", |
| | | title: res.data.message, |
| | | duration: 2000 |
| | | }); |
| | | } |
| | | }).catch(() => { |
| | | this.$tip.loaded(); |
| | | uni.hideLoading(); |
| | | uni.showToast({ |
| | | icon: "error", |
| | | title: '提交失败', |
| | | title: '网络连接失败', |
| | | duration: 2000 |
| | | }); |
| | | }); |