润滑
This commit is contained in:
@@ -21,12 +21,12 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>保养单</th>
|
||||
<th>点检单</th>
|
||||
<th>设备编号</th>
|
||||
<th>设备名称</th>
|
||||
<th>状态</th>
|
||||
<th>类型</th>
|
||||
<th>计划保养日期</th>
|
||||
<th>计划点检日期</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -44,8 +44,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure1">开始保养</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" @tap="toJump">结束保养</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId || pkObj.invstatus !== '02'}" :disabled="disabled" @tap="toSure1">开始点检</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId || pkObj.invstatus !== '03'}" @tap="toJump">结束点检</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -86,10 +86,10 @@
|
||||
this.$set(el, 'invstatus_name', '提交')
|
||||
}
|
||||
if(el.invstatus === '03') {
|
||||
this.$set(el, 'invstatus_name', '保养开始')
|
||||
this.$set(el, 'invstatus_name', '点检开始')
|
||||
}
|
||||
if(el.invstatus === '06') {
|
||||
this.$set(el, 'invstatus_name', '保养结束')
|
||||
this.$set(el, 'invstatus_name', '点检结束')
|
||||
}
|
||||
if(el.invstatus === '99') {
|
||||
this.$set(el, 'invstatus_name', '审核完毕')
|
||||
@@ -103,6 +103,10 @@
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
if (this.pkObj.invstatus !== '02') {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await sportcheckbegin(this.pkObj)
|
||||
this.disabled = false
|
||||
@@ -122,12 +126,16 @@
|
||||
this.pkObj = this.pkId === e.maint_code ? e : {}
|
||||
},
|
||||
toJump () {
|
||||
if (this.pkId) {
|
||||
if (!this.pkId) {
|
||||
return
|
||||
}
|
||||
if (this.pkObj.invstatus !== '03') {
|
||||
return
|
||||
}
|
||||
this.$store.dispatch('setPublicObj', this.pkObj)
|
||||
uni.navigateTo({
|
||||
url: '/pages/device/CheckFill'
|
||||
url: '/pages/device/RepairFill'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,8 +44,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="toSure1">开始润滑</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" @tap="toJump">结束润滑</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId || pkObj.invstatus !== '02'}" :disabled="disabled" @tap="toSure1">开始润滑</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId || pkObj.invstatus !== '03'}" @tap="toJump">结束润滑</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -103,6 +103,10 @@
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
if (this.pkObj.invstatus !== '02') {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await lubricatebegin(this.pkObj)
|
||||
this.disabled = false
|
||||
@@ -122,12 +126,16 @@
|
||||
this.pkObj = this.pkId === e.maint_code ? e : {}
|
||||
},
|
||||
toJump () {
|
||||
if (this.pkId) {
|
||||
if (!this.pkId) {
|
||||
return
|
||||
}
|
||||
if (this.pkObj.invstatus !== '03') {
|
||||
return
|
||||
}
|
||||
this.$store.dispatch('setPublicObj', this.pkObj)
|
||||
uni.navigateTo({
|
||||
url: '/pages/device/LubricateFill'
|
||||
url: '/pages/device/RepairFill'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
}
|
||||
this.$store.dispatch('setPublicObj', this.pkObj)
|
||||
uni.navigateTo({
|
||||
url: '/pages/device/MaintainFill'
|
||||
url: '/pages/device/RepairFill'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -107,10 +107,6 @@
|
||||
}
|
||||
if (this.pkObj.invstatus !== '02') {
|
||||
this.disabled = false
|
||||
uni.showToast({
|
||||
title: '请选择提交状态行数据',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
try {
|
||||
@@ -136,10 +132,6 @@
|
||||
return
|
||||
}
|
||||
if (this.pkObj.invstatus !== '03') {
|
||||
uni.showToast({
|
||||
title: '请选择维修开始状态行数据',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
this.$store.dispatch('setPublicObj', this.pkObj)
|
||||
|
||||
Reference in New Issue
Block a user