|
|
@@ -38,7 +38,7 @@
|
|
|
<el-link type="primary" @click="handelDetail(row)">详情</el-link>
|
|
|
|
|
|
<el-link
|
|
|
- v-if="row.approvalStatusOpt == 0 || row.approvalStatusOpt == 3"
|
|
|
+ v-if="row.status != 1 && (row.approvalStatus == 0 || row.approvalStatus == 3)"
|
|
|
type="primary"
|
|
|
@click="handSubmit(row)"
|
|
|
>发布</el-link
|
|
|
@@ -47,7 +47,7 @@
|
|
|
<el-link
|
|
|
type="danger"
|
|
|
:underline="false"
|
|
|
- v-if="activeName == 1 && (row.approvalStatusOpt == 0 || row.approvalStatusOpt == 3)"
|
|
|
+ v-if="activeName == 1 && row.status != 1 && (row.approvalStatus == 0 || row.approvalStatus == 3)"
|
|
|
@click="handDel(row)"
|
|
|
>
|
|
|
删除
|
|
|
@@ -85,6 +85,7 @@
|
|
|
startAndStop,
|
|
|
bomSubmit,
|
|
|
jsBomSubmit,
|
|
|
+ deviceBomSubmit,
|
|
|
deleteBomTreeList
|
|
|
} from '@/api/material/BOM';
|
|
|
import LCdetail from './components/LCdetail.vue';
|
|
|
@@ -261,7 +262,7 @@
|
|
|
},
|
|
|
|
|
|
handJsSubmit() {
|
|
|
- let URL = this.radioSubmit == 1 ? jsBomSubmit : bomSubmit;
|
|
|
+ let URL = this.radioSubmit == 1 ? jsBomSubmit : deviceBomSubmit;
|
|
|
this.$alert('确定要发布吗?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
@@ -269,9 +270,10 @@
|
|
|
})
|
|
|
.then(() => {
|
|
|
URL({ businessId: this.JsRId }).then((res) => {
|
|
|
+ this.isSubmit = false;
|
|
|
this.$message.success('发布成功');
|
|
|
this.reload();
|
|
|
- this.isSubmit = false;
|
|
|
+
|
|
|
});
|
|
|
})
|
|
|
.catch(() => {});
|