|
|
@ -352,8 +352,8 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-table |
|
|
<el-table |
|
|
ref="templateTable" |
|
|
ref="templateTable" |
|
|
:data="detailList" |
|
|
|
|
|
:height="secondHeight - 68" |
|
|
|
|
|
|
|
|
:data="detailListPaged" |
|
|
|
|
|
:height="secondHeight - 100" |
|
|
border |
|
|
border |
|
|
@selection-change="handleTemplateSelectionChange" |
|
|
@selection-change="handleTemplateSelectionChange" |
|
|
style="width: 100%;"> |
|
|
style="width: 100%;"> |
|
|
@ -498,6 +498,17 @@ |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
</el-table> |
|
|
</el-table> |
|
|
|
|
|
<!-- 分页 --> |
|
|
|
|
|
<el-pagination |
|
|
|
|
|
@size-change="templateSizeChangeHandle" |
|
|
|
|
|
@current-change="templateCurrentChangeHandle" |
|
|
|
|
|
:current-page="templatePageIndex" |
|
|
|
|
|
:page-sizes="[10, 20, 50, 100]" |
|
|
|
|
|
:page-size="templatePageSize" |
|
|
|
|
|
:total="detailList.length" |
|
|
|
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
|
|
|
style="margin-top: 0px;"> |
|
|
|
|
|
</el-pagination> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<!-- 物料缺陷跟踪 --> |
|
|
<!-- 物料缺陷跟踪 --> |
|
|
<el-tab-pane label="物料缺陷跟踪" name="defectTracking"> |
|
|
<el-tab-pane label="物料缺陷跟踪" name="defectTracking"> |
|
|
@ -1363,6 +1374,8 @@ |
|
|
selectedTemplates: [], // 选中的质量检验模板 |
|
|
selectedTemplates: [], // 选中的质量检验模板 |
|
|
dataListLoading: false, |
|
|
dataListLoading: false, |
|
|
templateDeleteLoading: false, // 批量删除loading |
|
|
templateDeleteLoading: false, // 批量删除loading |
|
|
|
|
|
templatePageIndex: 1, // 质量检验模板当前页 |
|
|
|
|
|
templatePageSize: 20, // 质量检验模板每页条数 |
|
|
// 展示列集 |
|
|
// 展示列集 |
|
|
columnList: [ |
|
|
columnList: [ |
|
|
{ |
|
|
{ |
|
|
@ -2028,6 +2041,15 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
computed: { |
|
|
|
|
|
// 质量检验模板分页数据 |
|
|
|
|
|
detailListPaged () { |
|
|
|
|
|
const start = (this.templatePageIndex - 1) * this.templatePageSize |
|
|
|
|
|
const end = start + this.templatePageSize |
|
|
|
|
|
return this.detailList.slice(start, end) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
// 获取用户的bu |
|
|
// 获取用户的bu |
|
|
getSiteAndBuByUserName () { |
|
|
getSiteAndBuByUserName () { |
|
|
@ -2268,6 +2290,7 @@ |
|
|
this.detailData.partDesc = this.partCurrentRow.partDesc |
|
|
this.detailData.partDesc = this.partCurrentRow.partDesc |
|
|
searchPartAttributeDetails(this.detailData).then(({data}) => { |
|
|
searchPartAttributeDetails(this.detailData).then(({data}) => { |
|
|
this.detailList = data.rows |
|
|
this.detailList = data.rows |
|
|
|
|
|
this.templatePageIndex = 1 // 重置到第一页 |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -2521,6 +2544,17 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 质量检验模板每页数 |
|
|
|
|
|
templateSizeChangeHandle (val) { |
|
|
|
|
|
this.templatePageSize = val |
|
|
|
|
|
this.templatePageIndex = 1 |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 质量检验模板当前页 |
|
|
|
|
|
templateCurrentChangeHandle (val) { |
|
|
|
|
|
this.templatePageIndex = val |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// ==================== 物料缺陷跟踪 ==================== |
|
|
// ==================== 物料缺陷跟踪 ==================== |
|
|
|
|
|
|
|
|
// 查询物料缺陷跟踪 |
|
|
// 查询物料缺陷跟踪 |
|
|
|