lx
This commit is contained in:
@@ -97,3 +97,15 @@ export function ErrorOut(data1, data2, data3, data4, data5, data6, data7, data8,
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
// 交换出库
|
||||||
|
export function ExchangePartOut(data1, data2, data3, data4, data5) {
|
||||||
|
return request({
|
||||||
|
url: '',
|
||||||
|
method: 'post',
|
||||||
|
data: {
|
||||||
|
type: '2',
|
||||||
|
name: '库存管理_交换件出库_修改数据',
|
||||||
|
param: '采购合同明细流水号=' + data1 + '&领用者=' + data2 + '&出库数量=' + data3 + '&货位流水号=' + data4 + '&备注=' + data5
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -794,6 +794,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 选中采购部入库记录
|
||||||
handleSelectionChange(val) {
|
handleSelectionChange(val) {
|
||||||
this.nameGroup = []
|
this.nameGroup = []
|
||||||
this.modelGroup = []
|
this.modelGroup = []
|
||||||
@@ -810,6 +811,7 @@ export default {
|
|||||||
this.priceGroup.push(val[i].单价)
|
this.priceGroup.push(val[i].单价)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 选中车间采购入库记录
|
||||||
handleSelectionChange2(val) {
|
handleSelectionChange2(val) {
|
||||||
this.nameGroup = []
|
this.nameGroup = []
|
||||||
this.modelGroup = []
|
this.modelGroup = []
|
||||||
@@ -827,17 +829,21 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
InboundCardDetail() {
|
InboundCardDetail() {
|
||||||
addInboundCardDetail(this.DetailNumber, this.nameGroup, this.modelGroup, this.specificationGroup, this.paintGroup, this.numberGroup, this.priceGroup).then(response => {
|
if (this.DetailNumber === '') {
|
||||||
if (response.data[0].result === '1') {
|
this.$message.error('请选择入库单')
|
||||||
this.$message.success('增加成功')
|
} else {
|
||||||
this.dialogVisible1 = false
|
addInboundCardDetail(this.DetailNumber, this.nameGroup, this.modelGroup, this.specificationGroup, this.paintGroup, this.numberGroup, this.priceGroup).then(response => {
|
||||||
searchInboundCardDetail(this.DetailNumber).then(response => {
|
if (response.data[0].result === '1') {
|
||||||
this.tableData4 = response.data
|
this.$message.success('增加成功')
|
||||||
})
|
this.dialogVisible1 = false
|
||||||
} else {
|
searchInboundCardDetail(this.DetailNumber).then(response => {
|
||||||
this.$message.error('增加失败')
|
this.tableData4 = response.data
|
||||||
}
|
})
|
||||||
})
|
} else {
|
||||||
|
this.$message.error('增加失败')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 修改入库单
|
// 修改入库单
|
||||||
editInboundCardInfor(row) {
|
editInboundCardInfor(row) {
|
||||||
|
|||||||
@@ -325,10 +325,10 @@
|
|||||||
<el-dialog :visible.sync="dialogFormVisible" title="盘点修改" center width="380px">
|
<el-dialog :visible.sync="dialogFormVisible" title="盘点修改" center width="380px">
|
||||||
<el-form ref="form2" :model="form2" :rules="rules2" label-position="left" class="demo-ruleForm">
|
<el-form ref="form2" :model="form2" :rules="rules2" label-position="left" class="demo-ruleForm">
|
||||||
<el-form-item label="零件数量" prop="Number" label-width="100px" size="small">
|
<el-form-item label="零件数量" prop="Number" label-width="100px" size="small">
|
||||||
<el-input v-model="form2.Number" size="small" placeholder="出库数量" style="width: 200px"/>
|
<el-input v-model="form2.Number" size="small" placeholder="零件数量" style="width: 200px"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="修改原因" prop="AlterReason" label-width="100px">
|
<el-form-item label="修改原因" prop="AlterReason" label-width="100px">
|
||||||
<el-input v-model="form2.AlterReason" size="small" placeholder="请输入备注" style="width: 200px"/>
|
<el-input v-model="form2.AlterReason" size="small" placeholder="修改原因" style="width: 200px"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
|
|||||||
@@ -351,6 +351,7 @@ export default {
|
|||||||
disable2: true,
|
disable2: true,
|
||||||
disable3: true,
|
disable3: true,
|
||||||
disable4: true,
|
disable4: true,
|
||||||
|
purchasecardnumber: '', // 请购单流水号
|
||||||
disable: false, // 其他的禁用
|
disable: false, // 其他的禁用
|
||||||
House: [],
|
House: [],
|
||||||
HouseNumber: '',
|
HouseNumber: '',
|
||||||
|
|||||||
@@ -116,11 +116,41 @@
|
|||||||
{{ scope.row.交换件名称 }}
|
{{ scope.row.交换件名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="项目名称" align="center" min-width="80">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.项目名称 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="机床图号" align="center" min-width="80">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.机床图号 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="组号" align="center" min-width="80">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.组号 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="被交换件名称" align="center" min-width="80">
|
<el-table-column label="被交换件名称" align="center" min-width="80">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.被交换件名称 }}
|
{{ scope.row.被交换件名称 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="被交换件项目名称" align="center" min-width="80">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.被交换件项目名称 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="被交换件机床图号" align="center" min-width="80">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.被交换件机床图号 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="被交换件组号" align="center" min-width="80">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{ scope.row.被交换件组号 }}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="交换数量" align="center" min-width="80">
|
<el-table-column label="交换数量" align="center" min-width="80">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.交换数量 }}
|
{{ scope.row.交换数量 }}
|
||||||
@@ -146,6 +176,11 @@
|
|||||||
{{ scope.row.审批状态 }}
|
{{ scope.row.审批状态 }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" align="center" min-width="100">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button :disabled="scope.row.审批通过" size="mini" type="primary" icon="el-icon-back" style="margin: 0 0 0 0px" @click="execExchangePartOut(scope.row)">出库</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-card>
|
</el-card>
|
||||||
<!--异常出库对话框-->
|
<!--异常出库对话框-->
|
||||||
@@ -167,7 +202,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { searchList, searchListDetail, PurchasePart, BasicPart, WorkShopPart, ListDetailOut, ErrorOut, ExchangeOut } from '@/api/Inventory/PartOut'
|
import { searchList, searchListDetail, PurchasePart, BasicPart, WorkShopPart, ListDetailOut, ErrorOut, ExchangeOut, ExchangePartOut } from '@/api/Inventory/PartOut'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -255,6 +290,9 @@ export default {
|
|||||||
searchExchange() {
|
searchExchange() {
|
||||||
ExchangeOut(this.pickingListNumberx).then(response => {
|
ExchangeOut(this.pickingListNumberx).then(response => {
|
||||||
const data = response.data
|
const data = response.data
|
||||||
|
for (let i = 0; i < data.length; i++) {
|
||||||
|
data[i].审批通过 === '0' ? data[i].是否禁用 = true : data[i].是否禁用 = false
|
||||||
|
}
|
||||||
this.tableDataExchange = data
|
this.tableDataExchange = data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -324,6 +362,17 @@ export default {
|
|||||||
this.form = []
|
this.form = []
|
||||||
this.dialogFormVisible = false
|
this.dialogFormVisible = false
|
||||||
},
|
},
|
||||||
|
execExchangePartOut(row) {
|
||||||
|
ExchangePartOut(row.采购合同明细流水号, row.申请人, row.交换数量, row.被交换货位流水号, row.备注).then(response => {
|
||||||
|
if (response.data[0].result === '1') {
|
||||||
|
this.$message.success('出库成功')
|
||||||
|
this.dialogFormVisible = false
|
||||||
|
this.form = []
|
||||||
|
} else {
|
||||||
|
this.$message.error('出库失败')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
submitEdit() {
|
submitEdit() {
|
||||||
ErrorOut(this.projectnumber, this.machinenumber, this.teamnumber, this.partName, this.picikingPeople, this.purchaseDeatileNumber, this.askPurchaseNumber, this.craftnumber, this.locatenumber, this.form.ErrorNumber, this.form.Reason, this.partType).then(response => {
|
ErrorOut(this.projectnumber, this.machinenumber, this.teamnumber, this.partName, this.picikingPeople, this.purchaseDeatileNumber, this.askPurchaseNumber, this.craftnumber, this.locatenumber, this.form.ErrorNumber, this.form.Reason, this.partType).then(response => {
|
||||||
if (response.data[0].result === '1') {
|
if (response.data[0].result === '1') {
|
||||||
|
|||||||
Reference in New Issue
Block a user