代码更新
This commit is contained in:
@@ -162,6 +162,8 @@
|
||||
<udOperation
|
||||
:data="scope.row"
|
||||
:permission="permission"
|
||||
:disabled-dle="scope.row.status !== '01'"
|
||||
:disabled-edit="scope.row.status !== '01'"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -254,8 +256,8 @@ export default {
|
||||
compelEnd() {
|
||||
const _selectData = this.$refs.table.selection
|
||||
const data = _selectData[0]
|
||||
if (data.status !== '01') {
|
||||
return this.crud.notify('只能对开始状态的工单结束', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
if (data.status === '09') {
|
||||
return this.crud.notify('不能对完成状态的工单强制结束', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
}
|
||||
crudRawfoilworkorder.compelEnd(data).then(res => {
|
||||
this.crud.toQuery()
|
||||
|
||||
Reference in New Issue
Block a user