|
@@ -6,31 +6,32 @@
|
|
|
<a-row :gutter="24">
|
|
|
<!--零部件名称-->
|
|
|
<a-col :xl="6" :lg="8" :md="12" :sm="24" :xs="24">
|
|
|
- <a-form-item :label="$t('workbench.compoment-name')">
|
|
|
- <span class="ml8">{{ formData.partName }}</span>
|
|
|
+ <a-form-item style="white-space: nowrap" :label="$t('workbench.compoment-name') + '::'">
|
|
|
+ {{ baseInfo.partName ? baseInfo.partName : "--" }}
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<!--零部件编号-->
|
|
|
<a-col :xl='6' :lg='8' :md='24' :sm='24' :xs='24'>
|
|
|
- <a-form-item :label="$t('workbench.compoment-number')">
|
|
|
- <span class="ml8">{{ formData.partCode }}</span>
|
|
|
+ <a-form-item style="white-space: nowrap" :label="$t('workbench.compoment-number') + '::'">
|
|
|
+ <span class="ml8">{{ baseInfo.partNo ? baseInfo.partNo : "--" }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<!-- cpac编号 -->
|
|
|
<a-col :xl='6' :lg='8' :md='24' :sm='24' :xs='24'>
|
|
|
- <a-form-item :label="$t('verity.dvp.cpac.number')">
|
|
|
- <span class="ml8">{{ formData.cpacCode }}</span>
|
|
|
+ <a-form-item style="white-space: nowrap" :label="$t('verity.dvp.cpac.number') + '::'">
|
|
|
+ <span class="ml8">{{ baseInfo.cpacCode ? baseInfo.cpacCode : "--" }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<!--FND代码-->
|
|
|
<a-col :xl='6' :lg='8' :md='24' :sm='24' :xs='24'>
|
|
|
- <a-form-item :label="$t('verity.dvp.fnd.code')">
|
|
|
- <span class="ml8">{{ formData.fndCode }}</span>
|
|
|
+ <a-form-item style="white-space: nowrap" :label="$t('verity.dvp.fnd.code') + '::'">
|
|
|
+ <span class="ml8">{{ baseInfo.fndCode ? baseInfo.fndCode : "--" }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</a-form>
|
|
|
-
|
|
|
+ </a-card>
|
|
|
+ <a-card class="layout-card" :style="{ height: tableHeight }">
|
|
|
<a-form layout='vertical'>
|
|
|
<a-row :gutter="24">
|
|
|
<!--归属部门-->
|
|
@@ -120,15 +121,13 @@
|
|
|
{{ $t('global-btn.reset') }}
|
|
|
</a-button>
|
|
|
<!-- 查询 -->
|
|
|
- <a-button @click='search' type="primary" class="mr10">
|
|
|
+ <a-button @click='search' type="primary" class="mr12">
|
|
|
{{ $t('global-btn.search') }}
|
|
|
</a-button>
|
|
|
</a-col>
|
|
|
</a-form-item>
|
|
|
</a-row>
|
|
|
</a-form>
|
|
|
- </a-card>
|
|
|
- <a-card class="layout-card" :style="{ height: tableHeight }">
|
|
|
<a-form-item class='tr' >
|
|
|
<!-- 新建零部件DVP -->
|
|
|
<a-button :disabled="isLook || applyButtonFlag" @click='editComponentDvp' type="primary">
|
|
@@ -183,9 +182,9 @@
|
|
|
<i class="iconfont iconprocess_branch"></i>
|
|
|
</a-tooltip>
|
|
|
</a>
|
|
|
- <!-- 清空 -->
|
|
|
- <a class='operation-btn' @click="clearDvpData(record)" :disabled="isLook || applyButtonFlag">
|
|
|
- <a-tooltip :title="$t('plan.dvp.clear')">
|
|
|
+ <!-- 删除 -->
|
|
|
+ <a class='operation-btn' @click="deleteDvpData(record)" :disabled="isLook || applyButtonFlag">
|
|
|
+ <a-tooltip :title="$t('global-btn.delete')">
|
|
|
<i class="iconfont iconshanchu"></i>
|
|
|
</a-tooltip>
|
|
|
</a>
|
|
@@ -301,6 +300,8 @@ export default {
|
|
|
return{
|
|
|
/** 查询数据 */
|
|
|
formData:{},
|
|
|
+ /** 基本信息数据源 */
|
|
|
+ baseInfo: {},
|
|
|
/** 清除时间选框用的 */
|
|
|
endTime: undefined,
|
|
|
startTime: undefined,
|
|
@@ -795,6 +796,7 @@ export default {
|
|
|
_that.formData.systemTestSource = _that.formData.dataSource;
|
|
|
_that.$api.initDvpTestList(_that.formData).then(res => {
|
|
|
if (res.flag) {
|
|
|
+ _that.baseInfo = res.data.data[0];
|
|
|
_that.tableData = res.data.data || [];
|
|
|
_that.tableData.forEach( item => {
|
|
|
if (item.equivalentTestCode) {
|
|
@@ -1102,20 +1104,31 @@ export default {
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
- * 表格操作列-清空
|
|
|
+ * 表格操作列-删除
|
|
|
*/
|
|
|
- clearDvpData(val) {
|
|
|
- let data = {
|
|
|
- dvpId: this.$store.getters.dvpId,
|
|
|
- testId: val.testId
|
|
|
- };
|
|
|
- this.$api.planTestEmpty(data).then(res => {
|
|
|
- if (res.flag) {
|
|
|
- this.$message.success(res.message);
|
|
|
- this.initData();
|
|
|
- } else {
|
|
|
- this.$message.error(res.message);
|
|
|
- }
|
|
|
+ deleteDvpData(record) {
|
|
|
+ let _that = this;
|
|
|
+ _that.$confirm({
|
|
|
+ title: _that.$t('fmea.warn'),
|
|
|
+ content: _that.$t('global-message.warn.delete-componentsDVP-test'),
|
|
|
+ icon: 'exclamation-circle',
|
|
|
+ okText: _that.$t('global-btn.confirm'),
|
|
|
+ cancelText: _that.$t('global-btn.cancel'),
|
|
|
+ onOk() {
|
|
|
+ let data = {
|
|
|
+ dvpId: _that.$route.query.dvpId,
|
|
|
+ testId: record.testId,
|
|
|
+ };
|
|
|
+ _that.$api.planTestDel(data).then(res => {
|
|
|
+ if (res.flag) {
|
|
|
+ _that.$message.success(res.message);
|
|
|
+ _that.initData();
|
|
|
+ } else {
|
|
|
+ _that.$message.error(res.message);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ onCancel() {}
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -1274,27 +1287,27 @@ export default {
|
|
|
this.applyFlag = true;
|
|
|
},
|
|
|
|
|
|
- /**
|
|
|
- * 表格上方按钮-导出
|
|
|
- */
|
|
|
- exportFile() {
|
|
|
- this.download('/DFMEA/partDvp/dvpPlanExcelExport', {
|
|
|
- dvpId: this.$store.getters.dvpId || '',
|
|
|
- partCode: this.formData.partCode || '',
|
|
|
- partName: this.formData.partName || '',
|
|
|
- fndId: this.formData.fndCode || '',
|
|
|
- ownerDepartmentId: this.formData.ownerDepartmentId || '',
|
|
|
- testOwner: this.formData.testOwner || '',
|
|
|
- testType: this.formData.testType || '',
|
|
|
- testSource: this.formData.testSource || '',
|
|
|
- systemTestSource: this.formData.systemTestSource || '',
|
|
|
- targetRequire: this.formData.targetRequire || '',
|
|
|
- testStandard: this.formData.testStandard || '',
|
|
|
- testSite: this.formData.testSite || '',
|
|
|
- planStartTime: this.formData.planStartTime || '',
|
|
|
- planEndTime: this.formData.planEndTime || '',
|
|
|
- });
|
|
|
- },
|
|
|
+ // /**
|
|
|
+ // * 表格上方按钮-导出
|
|
|
+ // */
|
|
|
+ // exportFile() {
|
|
|
+ // this.download('/DFMEA/partDvp/dvpPlanExcelExport', {
|
|
|
+ // dvpId: this.$store.getters.dvpId || '',
|
|
|
+ // partCode: this.formData.partCode || '',
|
|
|
+ // partName: this.formData.partName || '',
|
|
|
+ // fndId: this.formData.fndCode || '',
|
|
|
+ // ownerDepartmentId: this.formData.ownerDepartmentId || '',
|
|
|
+ // testOwner: this.formData.testOwner || '',
|
|
|
+ // testType: this.formData.testType || '',
|
|
|
+ // testSource: this.formData.testSource || '',
|
|
|
+ // systemTestSource: this.formData.systemTestSource || '',
|
|
|
+ // targetRequire: this.formData.targetRequire || '',
|
|
|
+ // testStandard: this.formData.testStandard || '',
|
|
|
+ // testSite: this.formData.testSite || '',
|
|
|
+ // planStartTime: this.formData.planStartTime || '',
|
|
|
+ // planEndTime: this.formData.planEndTime || '',
|
|
|
+ // });
|
|
|
+ // },
|
|
|
|
|
|
/**
|
|
|
* 搜索框-开始时间
|