更新
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<span>零件号:</span>
|
||||
<el-input v-model="partNumber" size="small" placeholder="零件号" clearable style="width:200px"/>
|
||||
<el-button type="success" size="mini" icon="el-icon-search" style="margin-left:10px" @click="getList()">查询</el-button>
|
||||
<el-button type="danger" size="mini" icon="el-icon-caret-right" style="margin-left:10px" @click="getBack()">打回车间</el-button>
|
||||
<el-table
|
||||
v-loading="loading1"
|
||||
ref="multipleTable"
|
||||
@@ -327,7 +328,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { initOutHelp, getTable, getData1, getTable1, getprocedure, searchManufactor, spareParts, addTable, editData, deleteData, insertParts, getParts, getPrice, editData1, deleteData1, getNumber } from '@/api/Outsourcing/OutsourcingTaskExecution'
|
||||
import { initOutHelp, getTable, getData1, getTable1, getprocedure, searchManufactor, spareParts, addTable, editData, deleteData, insertParts, getParts, getPrice, editData1, deleteData1, getNumber, getBack } from '@/api/Outsourcing/OutsourcingTaskExecution'
|
||||
import { getExplorer, method5, Cleanup } from '@/vendor/exportExcel'
|
||||
import { convertCurrency } from '@/vendor/int2Chinese'
|
||||
import { mapGetters } from 'vuex'
|
||||
@@ -1339,6 +1340,22 @@ export default {
|
||||
handleSelectionChange(val) {
|
||||
this.processNum = val
|
||||
},
|
||||
getBack() {
|
||||
if (this.processNum.length !== 0) {
|
||||
this.result = 0
|
||||
for (let i = 0; i < this.processNum.length; i++) {
|
||||
getBack(this.processNum[i].工艺计划流水号).then(response => {
|
||||
this.result += parseInt(response.data[0].result)
|
||||
if (this.processNum.length === this.result) {
|
||||
this.$message.success('打回成功')
|
||||
this.getList()
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.$message.warning('请勾选要打回的零件')
|
||||
}
|
||||
},
|
||||
// 选入零件
|
||||
getSpareParts() {
|
||||
if (this.Number !== null) {
|
||||
|
||||
Reference in New Issue
Block a user