This commit is contained in:
lixin
2018-12-04 14:07:45 +08:00
parent f417090116
commit fa3c525088
4 changed files with 6 additions and 6 deletions

View File

@@ -85,14 +85,14 @@ export function addExchangepart(data1, data2, data3, data4, data5, data6, data7,
}) })
} }
// 删除交换单 // 删除交换单
export function dropExchangeList(PickingListNumberx, data) { export function dropExchangeList(PickingListNumberx) {
return request({ return request({
url: '', url: '',
method: 'post', method: 'post',
data: { data: {
type: '2', type: '2',
name: '库存管理_交换件_交换件删除', name: '库存管理_交换件_交换件删除',
param: '交换单流水号=' + PickingListNumberx + '&交换件组件零件流水号=' + data param: '交换单流水号=' + PickingListNumberx
} }
}) })
} }

View File

@@ -513,7 +513,7 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
dropExchangeList(this.exchangeListNumber, this.eTeamPartNumber).then(response => { dropExchangeList(this.exchangeListNumber).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.$message.success('删除成功') this.$message.success('删除成功')
this.dialogFormVisible = false this.dialogFormVisible = false

View File

@@ -450,7 +450,7 @@ export default {
this.getTable() this.getTable()
this.$message.success('删除成功') this.$message.success('删除成功')
} else { } else {
this.$message.error('删除失败') this.$message.error('数据占用')
} }
}) })
}) })

View File

@@ -729,7 +729,7 @@ export default {
this.$message.success('删除成功') this.$message.success('删除成功')
this.searchListinfor() this.searchListinfor()
} else { } else {
this.$message.error('删除失败') this.$message.error('数据占用')
} }
}) })
}).catch(() => { }).catch(() => {
@@ -752,7 +752,7 @@ export default {
this.$message.success('删除成功') this.$message.success('删除成功')
this.searchListDetailt() this.searchListDetailt()
} else { } else {
this.$message.error('删除失败') this.$message.error('数据占用')
} }
}) })
}).catch(() => { }).catch(() => {