jinyong
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
</el-col>
|
||||
<el-col style="width: auto">
|
||||
<el-card>
|
||||
<el-button size="small" type="success" plain style="margin: 10px" @click="saveRowPrice()">保存</el-button>
|
||||
<el-button :disabled="saveRowPrice_disable" size="small" type="success" plain style="margin: 10px" @click="saveRowPrice()">保存</el-button>
|
||||
<el-table v-loading="loading2" :data="tableData2" :row-class-name="tableData1ClassName" height="580" border element-loading-text="拼命加载中" size="small">
|
||||
<el-table-column label="序号" type="index" align="center" width="50"/>
|
||||
<el-table-column label="加工状态" width="100" align="center">
|
||||
@@ -100,6 +100,7 @@ import { machine, getToolNum, getNum, searchTable, searchTable2, edit, edit2, sa
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
saveRowPrice_disable: false,
|
||||
entryNameValue: '',
|
||||
entryName: [], // 项目名称
|
||||
toolNumValue: '',
|
||||
@@ -273,6 +274,7 @@ export default {
|
||||
},
|
||||
// 保存行价格
|
||||
saveRowPrice() {
|
||||
this.saveRowPrice_disable = true
|
||||
this.count = 0
|
||||
for (let i = 0; i < this.tableData2.length; i++) {
|
||||
if (this.checkBox[i] === false) {
|
||||
@@ -281,6 +283,7 @@ export default {
|
||||
}
|
||||
if (this.tableData2.length === 0) {
|
||||
this.$message.error('请选择零件')
|
||||
this.saveRowPrice_disable = false
|
||||
} else {
|
||||
if (this.count !== this.tableData2.length) {
|
||||
this.a = 0
|
||||
@@ -290,11 +293,13 @@ export default {
|
||||
if (this.a === this.tableData2.length) {
|
||||
this.$message.success('保存成功')
|
||||
this.searchTable()
|
||||
this.saveRowPrice_disable = false
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.$message.error('请选择需要外协工序')
|
||||
this.saveRowPrice_disable = false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user