ruanqi 2 years ago
parent
commit
f3f4b11f09
  1. 143
      src/views/modules/knifemold/tool-info.vue

143
src/views/modules/knifemold/tool-info.vue

@ -201,7 +201,7 @@
<!-- 工具使用记录 -->
<el-col :span="17" :style="{width: recordWidth + 'px'}">
<fieldset class="customer-field" style="width: 100%;">
<legend>工具使用记录</legend>
<legend>工具出入库记录</legend>
<el-form :inline="true" label-position="top" style="margin-top: 5px">
<!-- <el-form-item label="操作类型:">-->
操作类型:
@ -220,7 +220,7 @@
</el-form>
<el-table
width="100%"
:height="height-45"
:height="(height-90)/2"
:data="toolOperatorDataList"
border
v-loading="dataListLoading"
@ -253,61 +253,33 @@
layout="total, sizes, prev, pager, next, jumper">
</el-pagination>
</fieldset>
<!-- <fieldset class="customer-field" style="width: 100%;">-->
<!-- <legend>工具使用记录</legend>-->
<!-- <el-table-->
<!-- width="100%"-->
<!-- :height="height"-->
<!-- :data="sfdcToolingHistList"-->
<!-- border-->
<!-- v-loading="dataListLoading"-->
<!-- @selection-change="selectionChangeHandle"-->
<!-- style="width: 100%;">-->
<!-- <el-table-column-->
<!-- v-for="(item,index) in columnList" :key="index"-->
<!-- :sortable="item.columnSortable"-->
<!-- :prop="item.columnProp"-->
<!-- :header-align="item.headerAlign"-->
<!-- :show-overflow-tooltip="item.showOverflowTooltip"-->
<!-- :align="item.align"-->
<!-- :fixed="item.fixed==''?false:item.fixed"-->
<!-- :width="item.columnWidth"-->
<!-- :label="item.columnLabel">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>-->
<!-- <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table>-->
<!-- </fieldset>-->
<!-- &lt;!&ndash; 工具维修记录 &ndash;&gt;-->
<!-- <fieldset class="customer-field" style="width: 100%;">-->
<!-- <legend>工具维修记录</legend>-->
<!-- <el-table-->
<!-- width="100%"-->
<!-- :height="height/2"-->
<!-- :data="toolInstanceIdUseHist"-->
<!-- border-->
<!-- v-loading="dataListLoading"-->
<!-- @selection-change="selectionChangeHandle"-->
<!-- style="width: 100%;">-->
<!-- <el-table-column-->
<!-- v-for="(item,index) in columnList1" :key="index"-->
<!-- :sortable="item.columnSortable"-->
<!-- :prop="item.columnProp"-->
<!-- :header-align="item.headerAlign"-->
<!-- :show-overflow-tooltip="item.showOverflowTooltip"-->
<!-- :align="item.align"-->
<!-- :fixed="item.fixed==''?false:item.fixed"-->
<!-- :width="item.columnWidth"-->
<!-- :label="item.columnLabel">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>-->
<!-- <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table>-->
<!-- </fieldset>-->
<fieldset class="customer-field" style="width: 100%;">
<legend>工具使用记录</legend>
<el-table
width="100%"
:height="(height-80)/2"
:data="sfdcToolingHistList"
border
v-loading="dataListLoading"
@selection-change="selectionChangeHandle"
style="width: 100%;">
<el-table-column
v-for="(item,index) in columnList" :key="index"
:sortable="item.columnSortable"
:prop="item.columnProp"
:header-align="item.headerAlign"
:show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align"
:fixed="item.fixed==''?false:item.fixed"
:width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
</el-table>
</fieldset>
</el-col>
</el-row>
</el-tab-pane>
@ -340,60 +312,7 @@
</el-table>
</el-tab-pane>
<!-- &lt;!&ndash; 工具实例操作记录 &ndash;&gt;-->
<!-- <el-tab-pane label="工具实例操作记录" name="toolOperate">-->
<!-- <el-form label-position="top" style="margin-top: 5px; margin-left: 0px;">-->
<!-- <el-form :inline="true" label-position="top" style="margin-top: 5px">-->
<!-- <el-form-item label="操作类型">-->
<!-- <el-select v-model="toolOperatorData" @change="toolOperatorChange()" style="width: 130px">-->
<!-- <el-option label="工具入库" value="TR"></el-option>-->
<!-- <el-option label="工具出库" value="TC"></el-option>-->
<!-- <el-option label="工具报废" value="TB"></el-option>-->
<!-- <el-option label="工具维修" value="TW"></el-option>-->
<!-- <el-option label="工具维修返回" value="TWF"></el-option>-->
<!-- <el-option label="工具借用" value="TJ"></el-option>-->
<!-- <el-option label="工具借用返回" value="TJF"></el-option>-->
<!-- <el-option label="工具领用" value="TL"></el-option>-->
<!-- <el-option label="工具领用返回" value="TLF"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-form>-->
<!-- </el-form>-->
<!-- <el-table-->
<!-- width="100%"-->
<!-- :height="height-40"-->
<!-- :data="toolOperatorDataList"-->
<!-- border-->
<!-- v-loading="dataListLoading"-->
<!-- style="width: 100%;"-->
<!-- :key="myTable">-->
<!-- <el-table-column-->
<!-- v-for="(item,index) in toolColumnList" :key="index"-->
<!-- :sortable="item.columnSortable"-->
<!-- :prop="item.columnProp"-->
<!-- :header-align="item.headerAlign"-->
<!-- :show-overflow-tooltip="item.showOverflowTooltip"-->
<!-- :align="item.align"-->
<!-- :fixed="item.fixed==''?false:item.fixed"-->
<!-- :min-width="item.columnWidth"-->
<!-- :label="item.columnLabel">-->
<!-- <template slot-scope="scope">-->
<!-- <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>-->
<!-- <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- </el-table>-->
<!-- &lt;!&ndash; 分页 &ndash;&gt;-->
<!-- <el-pagination-->
<!-- @size-change="sizeChangeHandle"-->
<!-- @current-change="currentChangeHandle"-->
<!-- :current-page="pageIndex"-->
<!-- :page-sizes="[20, 50, 100, 200, 500]"-->
<!-- :page-size="pageSize"-->
<!-- :total="totalPage"-->
<!-- layout="total, sizes, prev, pager, next, jumper">-->
<!-- </el-pagination>-->
<!-- </el-tab-pane>-->
</el-tabs>
<!--新增或编辑工具信息-->
@ -2394,7 +2313,7 @@ export default {
this.currentDetailData = list[0]
this.toolOperatorChange();
// this.getToolInstanceIdUseHist()
// this.getSfdcToolingHistList()
this.getSfdcToolingHistList()
}
})
},

Loading…
Cancel
Save