代码更新
This commit is contained in:
@@ -89,6 +89,17 @@
|
||||
>
|
||||
开始维修
|
||||
</el-button>
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="success"
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
:disabled="execu_flag"
|
||||
@click="outRepair"
|
||||
>
|
||||
委外维修
|
||||
</el-button>
|
||||
<!-- <el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
@@ -370,6 +381,17 @@ export default {
|
||||
this.crud.notify('状态不正确', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
}
|
||||
},
|
||||
outRepair() {
|
||||
const _selectData = this.$refs.table.selection
|
||||
const data = _selectData[0]
|
||||
if (data.invstatus !== '03') {
|
||||
return this.crud.notify('只能对开始状态的单据维修', CRUD.NOTIFICATION_TYPE.INFO)
|
||||
}
|
||||
crudDevicerepairmst.outRepair(data).then(res => {
|
||||
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
})
|
||||
},
|
||||
mySelectionChange(rows) {
|
||||
this.buttonChange(rows)
|
||||
},
|
||||
@@ -386,7 +408,7 @@ export default {
|
||||
if ('01,03,04,05,06,07,99'.includes(rows[i].invstatus)) {
|
||||
this.start_flag = true
|
||||
}
|
||||
if ('01,02,06,07,99'.includes(rows[i].invstatus)) {
|
||||
if ('01,02,04,05,06,07,99'.includes(rows[i].invstatus)) {
|
||||
this.execu_flag = true
|
||||
}
|
||||
if ('01,02,04,06,07,99'.includes(rows[i].invstatus)) {
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
</div>
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||
<crudOperation :permission="permission">
|
||||
<el-button
|
||||
<!-- <el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="success"
|
||||
@@ -88,7 +88,7 @@
|
||||
@click="outRepair"
|
||||
>
|
||||
委外维修
|
||||
</el-button>
|
||||
</el-button>-->
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
|
||||
Reference in New Issue
Block a user