lx
This commit is contained in:
@@ -12,14 +12,14 @@ export function initWarehouse() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 增加仓库
|
// 增加仓库
|
||||||
export function addWarehouse(num0, num1, num2, num3, num4) {
|
export function addWarehouse(num0, num1, num2, num3, num4, num5) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '2',
|
type: '2',
|
||||||
name: '库存管理_货位仓库_仓库_增加数据',
|
name: '库存管理_货位仓库_仓库_增加数据',
|
||||||
param: '仓库编号=' + num0 + '&仓库名称=' + num1 + '&仓库描述=' + num2 + '&地址=' + num3 + '&联系人=' + num4 + '&备注=' + num4
|
param: '仓库编号=' + num0 + '&仓库名称=' + num1 + '&仓库描述=' + num2 + '&地址=' + num3 + '&联系人=' + num4 + '&备注=' + num5
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -74,14 +74,14 @@ export function addRequestCardDetail(data1, data2) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 请购单明细修改
|
// 请购单明细修改
|
||||||
export function alterNumber(data1, data2, data3) {
|
export function alterNumber(data2, data3) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '2',
|
type: '2',
|
||||||
name: '库存管理_离线请购单_请购单明细修改',
|
name: '库存管理_离线请购单_请购单明细修改',
|
||||||
param: '离线请购单流水号=' + data1 + '&离线请购单明细流水号组=' + data2 + '&数量组=' + data3
|
param: '离线请购单明细流水号组=' + data2 + '&数量组=' + data3
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -98,14 +98,14 @@ export function ErrorOut(data1, data2, data3, data4, data5, data6, data7, data8,
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 交换出库
|
// 交换出库
|
||||||
export function ExchangePartOut(data1, data2, data3, data4, data5) {
|
export function ExchangePartOut(data0, data1, data2, data3, data4, data5) {
|
||||||
return request({
|
return request({
|
||||||
url: '',
|
url: '',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: {
|
data: {
|
||||||
type: '2',
|
type: '2',
|
||||||
name: '库存管理_交换件出库_修改数据',
|
name: '库存管理_交换件出库_修改数据',
|
||||||
param: '采购合同明细流水号=' + data1 + '&领用者=' + data2 + '&出库数量=' + data3 + '&货位流水号=' + data4 + '&备注=' + data5
|
param: '交换单流水号=' + data0 + '&采购合同明细流水号=' + data1 + '&领用者=' + data2 + '&出库数量=' + data3 + '&货位流水号=' + data4 + '&备注=' + data5
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1734,6 +1734,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
AlterNumber(row) {
|
AlterNumber(row) {
|
||||||
|
this.form2 = []
|
||||||
this.project = row.项目流水号
|
this.project = row.项目流水号
|
||||||
this.machinenumber = row.机床流水号
|
this.machinenumber = row.机床流水号
|
||||||
this.partnumber = row.组件流水号
|
this.partnumber = row.组件流水号
|
||||||
@@ -1752,6 +1753,7 @@ export default {
|
|||||||
this.material = row.材料
|
this.material = row.材料
|
||||||
},
|
},
|
||||||
AlterBasicNumber(row) {
|
AlterBasicNumber(row) {
|
||||||
|
this.form2 = []
|
||||||
this.project = row.项目流水号
|
this.project = row.项目流水号
|
||||||
this.machinenumber = row.机床流水号
|
this.machinenumber = row.机床流水号
|
||||||
this.partnumber = row.组件流水号
|
this.partnumber = row.组件流水号
|
||||||
|
|||||||
@@ -568,7 +568,7 @@ export default {
|
|||||||
this.partGroup.push(this.tableData3[i].离线请购单明细流水号)
|
this.partGroup.push(this.tableData3[i].离线请购单明细流水号)
|
||||||
this.numGroup.push(this.tableData3[i].数量)
|
this.numGroup.push(this.tableData3[i].数量)
|
||||||
}
|
}
|
||||||
alterNumber(this.purchasecardnumber, this.partGroup, this.numGroup).then(response => {
|
alterNumber(this.partGroup, this.numGroup).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
this.$message.success('请购单生成成功')
|
this.$message.success('请购单生成成功')
|
||||||
this.searchTable2()
|
this.searchTable2()
|
||||||
|
|||||||
@@ -289,10 +289,9 @@ export default {
|
|||||||
// 查询交换单
|
// 查询交换单
|
||||||
searchExchange() {
|
searchExchange() {
|
||||||
ExchangeOut(this.pickingListNumberx).then(response => {
|
ExchangeOut(this.pickingListNumberx).then(response => {
|
||||||
console.log(response.data, 2233455)
|
|
||||||
const data = response.data
|
const data = response.data
|
||||||
for (let i = 0; i < data.length; i++) {
|
for (let i = 0; i < data.length; i++) {
|
||||||
data[i].审批通过 === 0 ? data[i].是否禁用 = true : data[i].是否禁用 = false
|
data[i].是否出库 === 1 ? data[i].是否禁用 = true : data[i].是否禁用 = false
|
||||||
}
|
}
|
||||||
this.tableDataExchange = data
|
this.tableDataExchange = data
|
||||||
})
|
})
|
||||||
@@ -364,7 +363,7 @@ export default {
|
|||||||
this.dialogFormVisible = false
|
this.dialogFormVisible = false
|
||||||
},
|
},
|
||||||
execExchangePartOut(row) {
|
execExchangePartOut(row) {
|
||||||
ExchangePartOut(row.采购合同明细流水号, row.申请人, row.交换数量, row.被交换货位流水号, row.备注).then(response => {
|
ExchangePartOut(row.交换单流水号, row.被交换件采购合同明细流水号, row.申请人, row.交换数量, row.被交换货位流水号, row.备注).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
|
||||||
|
|||||||
Reference in New Issue
Block a user