|
@@ -33,7 +33,6 @@
|
|
|
></base-info>
|
|
></base-info>
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<header-title title="质检内容"></header-title>
|
|
<header-title title="质检内容"></header-title>
|
|
|
-
|
|
|
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
<el-tab-pane label="来源清单" name="1">
|
|
<el-tab-pane label="来源清单" name="1">
|
|
|
<!-- <ele-pro-table
|
|
<!-- <ele-pro-table
|
|
@@ -207,7 +206,7 @@
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="质检方案" name="3">
|
|
<el-tab-pane label="质检方案" name="3">
|
|
|
<el-button
|
|
<el-button
|
|
|
- @click="addInspectionTemplate"
|
|
|
|
|
|
|
+ @click="addInspectionTemplate(baseForm.type)"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
style="margin-top: 5px"
|
|
style="margin-top: 5px"
|
|
|
>选择质检方案</el-button
|
|
>选择质检方案</el-button
|
|
@@ -256,6 +255,7 @@
|
|
|
label="质检项名称"
|
|
label="质检项名称"
|
|
|
prop="inspectionName"
|
|
prop="inspectionName"
|
|
|
align="center"
|
|
align="center"
|
|
|
|
|
+ width="150"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
label="工艺参数"
|
|
label="工艺参数"
|
|
@@ -289,6 +289,26 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+
|
|
|
|
|
+ <el-table-column fixed="right" label="操作" width="80">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-popconfirm
|
|
|
|
|
+ class="ele-action"
|
|
|
|
|
+ title="确定要删除当前方案吗?"
|
|
|
|
|
+ @confirm="handDel(scope.$index)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template v-slot:reference>
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ icon="el-icon-delete"
|
|
|
|
|
+ >
|
|
|
|
|
+ 删除
|
|
|
|
|
+ </el-link>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-popconfirm>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<el-pagination
|
|
<el-pagination
|
|
|
v-show="activeName === '3' && schemeList.length > 0"
|
|
v-show="activeName === '3' && schemeList.length > 0"
|
|
@@ -321,7 +341,10 @@
|
|
|
@click="handleIssued"
|
|
@click="handleIssued"
|
|
|
>下发</el-button
|
|
>下发</el-button
|
|
|
>
|
|
>
|
|
|
|
|
+ <!-- 选择质检方案 -->
|
|
|
<inspectionTemplateDialog
|
|
<inspectionTemplateDialog
|
|
|
|
|
+ v-if="baseForm"
|
|
|
|
|
+ :type="baseForm.type"
|
|
|
ref="inspectionTemplateRef"
|
|
ref="inspectionTemplateRef"
|
|
|
@choose="inspectionTemplateSuccess"
|
|
@choose="inspectionTemplateSuccess"
|
|
|
></inspectionTemplateDialog>
|
|
></inspectionTemplateDialog>
|
|
@@ -332,6 +355,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
// import baseInfo from './baseInfo.vue';
|
|
// import baseInfo from './baseInfo.vue';
|
|
|
import baseInfo from './new-baseInfo.vue';
|
|
import baseInfo from './new-baseInfo.vue';
|
|
|
|
|
+ // 质检方案的弹窗
|
|
|
import inspectionTemplateDialog from '@/views/inspectionTemplate/components/inspectionTemplateDialog.vue';
|
|
import inspectionTemplateDialog from '@/views/inspectionTemplate/components/inspectionTemplateDialog.vue';
|
|
|
import { getCode } from '@/api/login';
|
|
import { getCode } from '@/api/login';
|
|
|
import { save, update, planIssued } from '@/api/inspectionPlan';
|
|
import { save, update, planIssued } from '@/api/inspectionPlan';
|
|
@@ -620,7 +644,7 @@
|
|
|
|
|
|
|
|
//分页后的来源列表
|
|
//分页后的来源列表
|
|
|
paginatedSourceList() {
|
|
paginatedSourceList() {
|
|
|
- console.log('分页');
|
|
|
|
|
|
|
+ console.log('分页', this.sourceList);
|
|
|
const { currentPage, pageSize } = this.sourcePagination;
|
|
const { currentPage, pageSize } = this.sourcePagination;
|
|
|
const start = (currentPage - 1) * pageSize;
|
|
const start = (currentPage - 1) * pageSize;
|
|
|
const end = start + pageSize;
|
|
const end = start + pageSize;
|
|
@@ -900,8 +924,8 @@
|
|
|
await this.handleEditOrDetail(row);
|
|
await this.handleEditOrDetail(row);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- addInspectionTemplate() {
|
|
|
|
|
- this.$refs.inspectionTemplateRef.open();
|
|
|
|
|
|
|
+ addInspectionTemplate(type) {
|
|
|
|
|
+ this.$refs.inspectionTemplateRef.open(type);
|
|
|
},
|
|
},
|
|
|
async inspectionTemplateSuccess(select) {
|
|
async inspectionTemplateSuccess(select) {
|
|
|
let data = await getQualityTemplateByIds({
|
|
let data = await getQualityTemplateByIds({
|
|
@@ -1425,6 +1449,7 @@
|
|
|
},
|
|
},
|
|
|
async getQualityTemplate(productCode, ids) {
|
|
async getQualityTemplate(productCode, ids) {
|
|
|
await getQualityTemplateList({
|
|
await getQualityTemplateList({
|
|
|
|
|
+ type: this.baseForm.type,
|
|
|
productCode: productCode,
|
|
productCode: productCode,
|
|
|
qualityQlanId: ids
|
|
qualityQlanId: ids
|
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
@@ -2455,6 +2480,10 @@
|
|
|
} else {
|
|
} else {
|
|
|
await this.updatePackingList(list);
|
|
await this.updatePackingList(list);
|
|
|
}
|
|
}
|
|
|
|
|
+ },
|
|
|
|
|
+ handDel(index) {
|
|
|
|
|
+ console.log(index);
|
|
|
|
|
+ this.schemeList.splice(index,1)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|