工艺删除判断
This commit is contained in:
@@ -400,7 +400,7 @@ export function deleteOne(num0, num1) {
|
||||
data: {
|
||||
UserID: state.state.user.id,
|
||||
ModularID: router.currentRoute.path,
|
||||
type: '2',
|
||||
type: '1',
|
||||
name: '车间生产管理工艺_零件工序_删除数据_工序流水号',
|
||||
param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int'
|
||||
}
|
||||
|
||||
@@ -400,13 +400,7 @@
|
||||
<el-row>
|
||||
<el-col :span="8">
|
||||
<el-form-item label="零件图号">
|
||||
<el-select
|
||||
v-model="tuhaoValue"
|
||||
placeholder="零件图号"
|
||||
size="small"
|
||||
filterable
|
||||
style="width:150px"
|
||||
@change="numChange1()">
|
||||
<el-select v-model="tuhaoValue" placeholder="零件图号" size="small" filterable style="width:150px" @change="numChange1()">
|
||||
<el-option
|
||||
v-for="item in tuhao"
|
||||
:key="item.value"
|
||||
@@ -1572,8 +1566,12 @@ export default {
|
||||
if (this.partNumValue === '') {
|
||||
this.$message.error('请先选择一个零件')
|
||||
} else {
|
||||
deleteOne(this.partNumValue, row.工序流水号).then(() => {
|
||||
this.searchDetail()
|
||||
deleteOne(this.partNumValue, row.工序流水号).then(response => {
|
||||
if (response.data[0].结果 === '成功') {
|
||||
this.searchDetail()
|
||||
} else {
|
||||
this.$message.error('此工序已加工,无法删除')
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user