领料单明细先不让删
This commit is contained in:
@@ -125,14 +125,14 @@ export function dropList(PickingListNumberx) {
|
||||
})
|
||||
}
|
||||
// 删除领料单明细
|
||||
export function dropListDetail(DetailNumberx) {
|
||||
export function dropListDetail(DetailNumberx, isBacklog) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '车间装配管理_领料单_领料单明细删除',
|
||||
param: '领料单明细流水号=' + DetailNumberx
|
||||
param: '领料单明细流水号=' + DetailNumberx + '&是否滞货=' + isBacklog
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
{{ scope.row.备注 }}
|
||||
</template>
|
||||
</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">
|
||||
<el-button :disabled="!!scope.row.是否出库" size="mini" type="danger" icon="el-icon-delete" @click="dropListdetail(scope.row)">删除</el-button>
|
||||
</template>
|
||||
@@ -325,7 +325,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="货位存量" align="center" width="120">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.关联数量 }}
|
||||
{{ scope.row.货位余量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="待出库数量" align="center" width="120">
|
||||
@@ -692,12 +692,14 @@ export default {
|
||||
},
|
||||
// 删除领料单明细
|
||||
dropListdetail(row) {
|
||||
let isBacklog
|
||||
console.log(row)
|
||||
this.$confirm('此操作将永久删除该行, 是否继续?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
dropListDetail(row.领料单明细流水号).then(response => {
|
||||
dropListDetail(row.领料单明细流水号, isBacklog).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('删除成功')
|
||||
this.searchListDetailt()
|
||||
|
||||
@@ -983,7 +983,7 @@ export default {
|
||||
this.allNum = []
|
||||
for (let i = 0; i < val.length; i++) {
|
||||
this.groupPartBasicNum[i] = val[i].组件零件基本件流水号
|
||||
this.allNum[i] = val[i].数量
|
||||
this.allNum[i] = val[i].零件数量
|
||||
}
|
||||
},
|
||||
addInquirySheet() { // 追加物料
|
||||
|
||||
Reference in New Issue
Block a user