自制件加序刘璐珈

This commit is contained in:
Vergil
2020-03-17 16:58:55 +08:00
parent b2ec2e4192
commit 818eceb350

View File

@@ -24,14 +24,15 @@
<el-button type="danger" class="el-icon-delete" size="small" plain style="margin: 0px 10px;" @click="deleteProcess()">删除加序</el-button> <el-button type="danger" class="el-icon-delete" size="small" plain style="margin: 0px 10px;" @click="deleteProcess()">删除加序</el-button>
</el-card> </el-card>
<el-row> <el-row>
<el-col style="width: 550px"> <el-col style="width: 570px">
<el-card> <el-card>
<el-table <el-table
:data="tableData1" :data="tableData1"
:row-class-name="tableRowClassName" :row-class-name="tableRowClassName"
loading="loading" loading="loading"
class="table" class="table"
style="max-height: 830px" style="max-height: 808px;"
height="663"
highlight-current-row highlight-current-row
empty-text=" " empty-text=" "
border border
@@ -78,6 +79,7 @@
<el-col style="width: 810px"> <el-col style="width: 810px">
<el-card> <el-card>
<el-table <el-table
v-loading="loading0"
:data="tableData" :data="tableData"
:row-class-name="tableRowClassName1" :row-class-name="tableRowClassName1"
loading="loading" loading="loading"
@@ -254,6 +256,7 @@ import Cookie from 'js-cookie'
export default { export default {
data() { data() {
return { return {
loading0: false,
Machine: '', // 机床号 Machine: '', // 机床号
Machines: [], Machines: [],
Group: '', // 组号 Group: '', // 组号
@@ -422,7 +425,8 @@ export default {
}, // 按条件查询 }, // 按条件查询
getTableData() { getTableData() {
this.tableData = [] this.tableData = []
this.Loading = true // this.tableData1 = []
this.loading0 = true
if (this.Machine === '') { if (this.Machine === '') {
this.checkbox_Machine = 0 this.checkbox_Machine = 0
} else { } else {
@@ -457,7 +461,9 @@ export default {
} }
} }
this.total = response.data.total this.total = response.data.total
this.loading = false this.loading0 = false
}).catch(() => {
this.loading0 = false
}) })
}, },
getID(row) { getID(row) {
@@ -465,6 +471,9 @@ export default {
}, },
// 获取工序表 // 获取工序表
getCurrentRow(row) { getCurrentRow(row) {
if (row === null) {
return
}
this.completeTime = '' this.completeTime = ''
this.dateOfProduction = '' this.dateOfProduction = ''
this.processSerialNumber = '' this.processSerialNumber = ''
@@ -490,7 +499,6 @@ export default {
} }
} }
}) })
console.log(this.tableData1, 123)
}, // 补加完成日期 }, // 补加完成日期
EditData() { EditData() {
this.dialogFormVisible = true this.dialogFormVisible = true
@@ -499,6 +507,7 @@ export default {
this.form.完成时间 = '' this.form.完成时间 = ''
}, },
getRow(row) { getRow(row) {
if (row === null) return
this.Id = row.ID this.Id = row.ID
this.completeTime = row.完成日期 this.completeTime = row.完成日期
this.dateOfProduction = row.排产日期 this.dateOfProduction = row.排产日期