工艺删除判断

This commit is contained in:
Vergil
2020-03-31 16:14:14 +08:00
parent 45930c2c75
commit 1a2d9063ce
2 changed files with 8 additions and 10 deletions

View File

@@ -400,7 +400,7 @@ export function deleteOne(num0, num1) {
data: { data: {
UserID: state.state.user.id, UserID: state.state.user.id,
ModularID: router.currentRoute.path, ModularID: router.currentRoute.path,
type: '2', type: '1',
name: '车间生产管理工艺_零件工序_删除数据_工序流水号', name: '车间生产管理工艺_零件工序_删除数据_工序流水号',
param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int' param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int'
} }

View File

@@ -400,13 +400,7 @@
<el-row> <el-row>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="零件图号"> <el-form-item label="零件图号">
<el-select <el-select v-model="tuhaoValue" placeholder="零件图号" size="small" filterable style="width:150px" @change="numChange1()">
v-model="tuhaoValue"
placeholder="零件图号"
size="small"
filterable
style="width:150px"
@change="numChange1()">
<el-option <el-option
v-for="item in tuhao" v-for="item in tuhao"
:key="item.value" :key="item.value"
@@ -1572,8 +1566,12 @@ export default {
if (this.partNumValue === '') { if (this.partNumValue === '') {
this.$message.error('请先选择一个零件') this.$message.error('请先选择一个零件')
} else { } else {
deleteOne(this.partNumValue, row.工序流水号).then(() => { deleteOne(this.partNumValue, row.工序流水号).then(response => {
this.searchDetail() if (response.data[0].结果 === '成功') {
this.searchDetail()
} else {
this.$message.error('此工序已加工,无法删除')
}
}) })
} }
}, },