优化
This commit is contained in:
@@ -331,6 +331,7 @@
|
||||
type="primary" class="filter-item"
|
||||
size="mini"
|
||||
icon="el-icon-top"
|
||||
:disabled="scope.row.status!='10'"
|
||||
@click="moveUp(scope.$index, scope.row)"
|
||||
>
|
||||
</el-button>
|
||||
@@ -338,6 +339,7 @@
|
||||
type="primary" class="filter-item"
|
||||
size="mini"
|
||||
icon="el-icon-bottom"
|
||||
:disabled="scope.row.status!='10'"
|
||||
@click="moveDown(scope.$index, scope.row)"
|
||||
>
|
||||
</el-button>
|
||||
@@ -488,8 +490,12 @@ export default {
|
||||
moveUp(index, item) {
|
||||
if (index > 0) {
|
||||
const upDate = this.tableDtl[index - 1]
|
||||
this.tableDtl.splice(index - 1, 1)
|
||||
this.tableDtl.splice(index, 0, upDate)
|
||||
if(upDate.status != '10'){
|
||||
this.$message.error('上一个明细是生产中、完成状态,不可上移')
|
||||
}else{
|
||||
this.tableDtl.splice(index - 1, 1)
|
||||
this.tableDtl.splice(index, 0, upDate)
|
||||
}
|
||||
} else {
|
||||
this.$message.error('已经是第一条,不可上移')
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
>
|
||||
确认
|
||||
</el-button>
|
||||
<el-button
|
||||
<!-- <el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
type="warning"
|
||||
@@ -143,7 +143,7 @@
|
||||
@click="setValid"
|
||||
>
|
||||
设置有效
|
||||
</el-button>
|
||||
</el-button>-->
|
||||
<el-button
|
||||
slot="right"
|
||||
class="filter-item"
|
||||
|
||||
Reference in New Issue
Block a user