This commit is contained in:
liushuai
2019-06-14 13:26:01 +08:00
parent 94dd09f38b
commit 2897c6795e
2 changed files with 4 additions and 3 deletions

View File

@@ -121,7 +121,8 @@ export default {
'sidebar', 'sidebar',
'avatar', 'avatar',
'name', 'name',
'id' 'id',
'userId'
]) ])
}, },
created() { created() {

View File

@@ -1481,7 +1481,7 @@ export default {
if (this.checked === true) { if (this.checked === true) {
let 零件图号 let 零件图号
let flag = 0 let flag = 0
for (let i = 0; i < 30; i++) { for (let i = 0; i < this.tableData.length; i++) {
saveApprove(this.tableData[i].工艺计划流水号, this.tableData[i].工艺编号, this.tableData[i].工艺要求, this.spec, this.tableData[i].工序顺序, this.tableData[i].工序间是否外协, this.tableData[i].工序流水号, this.material, '', '', this.CraftmenValue, this.tableData[i].工艺难度等级).then(() => { saveApprove(this.tableData[i].工艺计划流水号, this.tableData[i].工艺编号, this.tableData[i].工艺要求, this.spec, this.tableData[i].工序顺序, this.tableData[i].工序间是否外协, this.tableData[i].工序流水号, this.material, '', '', this.CraftmenValue, this.tableData[i].工艺难度等级).then(() => {
for (let j = 0; j < this.partNum.length; j++) { for (let j = 0; j < this.partNum.length; j++) {
if (this.partNum[j].value === this.partNumValue) { if (this.partNum[j].value === this.partNumValue) {
@@ -1490,7 +1490,7 @@ export default {
} }
TableAddLi(this.tableData[i].单件定额工时, this.tableData[i].准结定额工时, 零件图号, this.tableData[i].工序流水号, this.tableData[i].工艺计划流水号).then(() => { TableAddLi(this.tableData[i].单件定额工时, this.tableData[i].准结定额工时, 零件图号, this.tableData[i].工序流水号, this.tableData[i].工艺计划流水号).then(() => {
flag++ flag++
if (flag === 30) { if (flag === this.tableData.length) {
TableAddLi1(this.partNumValue, this.CraftmenValue).then(() => { TableAddLi1(this.partNumValue, this.CraftmenValue).then(() => {
this.checked = false this.checked = false
this.partNumValue = '' this.partNumValue = ''