更新
This commit is contained in:
@@ -605,7 +605,8 @@ export default {
|
||||
})
|
||||
},
|
||||
getMachineNames() {
|
||||
console.log(this.machineValue, 2222)
|
||||
this.machineName = []
|
||||
this.machineNum = []
|
||||
getMachineNames(this.machineValue).then(response => {
|
||||
console.log(response.data, 3333)
|
||||
if (response.data.length !== 0) {
|
||||
|
||||
@@ -286,7 +286,7 @@
|
||||
|
||||
<script>
|
||||
import { sleep } from '../../../utils/tool'
|
||||
import { unSpecificationQuery, unSpecificationQueryWB, specificationQueryWB, specificationQuery, deleteBasicParts, deleteBWParts, getMaterial, getMaterialWB, searchMaterialWB, updateRow, updateRowWB, transferMX, transferWG, allDelete, searchMaterial1, getMachineNames, updateNum } from '../../../api/TechnologyCenter/ImportParts'
|
||||
import { unSpecificationQuery, unSpecificationQueryWB, specificationQueryWB, specificationQuery, deleteBasicParts, deleteBWParts, getMaterial, getMaterialWB, searchMaterialWB, updateRow, updateRowWB, transferMX, transferWG, allDelete, searchMaterial1, getMachineNames, updateNum, verification } from '../../../api/TechnologyCenter/ImportParts'
|
||||
export default {
|
||||
name: 'SpecificationData',
|
||||
props: {
|
||||
@@ -422,13 +422,20 @@ export default {
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
updateNum(row.物料流水号, this.NumId).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('替换成功')
|
||||
this.tableData10 = []
|
||||
this.fetchData()
|
||||
verification(row.物料流水号, this.projectName, this.machineValue, this.groupValue).then(response => {
|
||||
console.log(response.data, 111)
|
||||
if (response.data[0].结果 === 1) {
|
||||
this.$message.warning('要替换的物料已经存在该分组内,不允许出现相同物料')
|
||||
} else {
|
||||
this.$message.error('替换失败')
|
||||
updateNum(row.物料流水号, this.NumId).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('替换成功')
|
||||
this.tableData10 = []
|
||||
this.fetchData()
|
||||
} else {
|
||||
this.$message.error('替换失败')
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}).catch(() => {
|
||||
|
||||
Reference in New Issue
Block a user