备料到货“
This commit is contained in:
@@ -49,3 +49,14 @@ export function handlechange(Number, code) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function change(Number, code, num) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '2',
|
||||||
|
name: '车间生产管理工艺_备料到货更改',
|
||||||
|
param: '工序流水号组=' + Number + '&工作者考勤编号=' + code + '&工艺计划流水号组=' + num
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
<el-button size="small" icon="el-icon-search" type="success" style="margin-left: 10px" @click="pageSize=10; pageCurrent=1;searchTable()">查询</el-button>
|
<el-button size="small" icon="el-icon-search" type="success" style="margin-left: 10px" @click="pageSize=10; pageCurrent=1;searchTable()">查询</el-button>
|
||||||
<el-checkbox v-model="all" size="mini" @change="searchTable">查询全部</el-checkbox>
|
<el-checkbox v-model="all" size="mini" @change="searchTable">查询全部</el-checkbox>
|
||||||
<el-button :disabled="all" size="small" icon="el-icon-success" type="primary" style="margin-left: 10px" @click="edit()">到货</el-button>
|
<el-button :disabled="all" size="small" icon="el-icon-success" type="primary" style="margin-left: 10px" @click="edit()">到货</el-button>
|
||||||
|
<el-button size="small" icon="el-icon-refresh" type="success" style="margin-left: 10px" @click="pageSize=10; pageCurrent=1;searchTable()">刷新</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
@@ -55,10 +56,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { searchtable, searchtable2, edit, handlechange } from '@/api/ManufacturingCenter/MaterialArrivalManagement'
|
import { searchtable, searchtable2, change } from '@/api/ManufacturingCenter/MaterialArrivalManagement'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
bianliang1: [],
|
||||||
|
bianliang2: [],
|
||||||
num: 0,
|
num: 0,
|
||||||
arrest: [],
|
arrest: [],
|
||||||
all: false,
|
all: false,
|
||||||
@@ -115,15 +118,12 @@ export default {
|
|||||||
this.$message.warning('请选择零件')
|
this.$message.warning('请选择零件')
|
||||||
} else {
|
} else {
|
||||||
for (let i = 0; i < this.arrest.length; i++) {
|
for (let i = 0; i < this.arrest.length; i++) {
|
||||||
edit(this.arrest[i].工艺计划流水号).then(() => {
|
this.bianliang1.push(this.arrest[i].工艺计划流水号)
|
||||||
handlechange(this.arrest[i].工序流水号, '0000').then(response => {
|
this.bianliang2.push(this.arrest[i].工序流水号)
|
||||||
this.num = this.num + response.data[0].result
|
|
||||||
})
|
|
||||||
})
|
|
||||||
if (this.num === this.arrest.length) {
|
|
||||||
this.searchTable()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
change(this.bianliang2, '0000', this.bianliang1).then(() => {
|
||||||
|
this.searchTable()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 分页
|
// 分页
|
||||||
|
|||||||
Reference in New Issue
Block a user