领料单明细先不让删

This commit is contained in:
chenjianan
2019-03-29 19:46:44 +08:00
parent 0b575f11a6
commit 48a9d49376
3 changed files with 8 additions and 6 deletions

View File

@@ -125,14 +125,14 @@ export function dropList(PickingListNumberx) {
}) })
} }
// 删除领料单明细 // 删除领料单明细
export function dropListDetail(DetailNumberx) { export function dropListDetail(DetailNumberx, isBacklog) {
return request({ return request({
url: '', url: '',
method: 'post', method: 'post',
data: { data: {
type: '2', type: '2',
name: '车间装配管理_领料单_领料单明细删除', name: '车间装配管理_领料单_领料单明细删除',
param: '领料单明细流水号=' + DetailNumberx param: '领料单明细流水号=' + DetailNumberx + '&是否滞货=' + isBacklog
} }
}) })
} }

View File

@@ -93,7 +93,7 @@
{{ scope.row.备注 }} {{ scope.row.备注 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" width="100"> <el-table-column v-if="false" label="操作" align="center" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button :disabled="!!scope.row.是否出库" size="mini" type="danger" icon="el-icon-delete" @click="dropListdetail(scope.row)">删除</el-button> <el-button :disabled="!!scope.row.是否出库" size="mini" type="danger" icon="el-icon-delete" @click="dropListdetail(scope.row)">删除</el-button>
</template> </template>
@@ -325,7 +325,7 @@
</el-table-column> </el-table-column>
<el-table-column label="货位存量" align="center" width="120"> <el-table-column label="货位存量" align="center" width="120">
<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" width="120"> <el-table-column label="待出库数量" align="center" width="120">
@@ -692,12 +692,14 @@ export default {
}, },
// 删除领料单明细 // 删除领料单明细
dropListdetail(row) { dropListdetail(row) {
let isBacklog
console.log(row)
this.$confirm('此操作将永久删除该行, 是否继续?', '提示', { this.$confirm('此操作将永久删除该行, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
dropListDetail(row.领料单明细流水号).then(response => { dropListDetail(row.领料单明细流水号, isBacklog).then(response => {
if (response.data[0].result === '1') { if (response.data[0].result === '1') {
this.$message.success('删除成功') this.$message.success('删除成功')
this.searchListDetailt() this.searchListDetailt()

View File

@@ -983,7 +983,7 @@ export default {
this.allNum = [] this.allNum = []
for (let i = 0; i < val.length; i++) { for (let i = 0; i < val.length; i++) {
this.groupPartBasicNum[i] = val[i].组件零件基本件流水号 this.groupPartBasicNum[i] = val[i].组件零件基本件流水号
this.allNum[i] = val[i].数量 this.allNum[i] = val[i].零件数量
} }
}, },
addInquirySheet() { // 追加物料 addInquirySheet() { // 追加物料