刘璐珈噶东
This commit is contained in:
@@ -12,17 +12,17 @@
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="打印备料单" placement="top"/>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="将选中零件分配为外购备料" placement="top">
|
||||
<el-button type="primary" size="small" icon="el-icon-s-shop" plain style="margin-left:0px" @click="edit2()">分配外购备料</el-button>
|
||||
<el-button type="primary" size="small" icon="el-icon-s-shop" plain style="margin-left:0px" @click="edit2()">外购备料</el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="将选中零件分配为自家备料" placement="top">
|
||||
<el-button type="distribution" size="small" icon="el-icon-setting" style="margin-left:10px" @click="edit('BL')">分配自家备料</el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="打印备料单" placement="top">
|
||||
<el-button class="button111" size="small" icon="el-icon-printer" style="margin-left:10px" @click="exportTable('BL')">打印自家备料单</el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="1000" effect="dark" content="导出备料分配单" placement="top">
|
||||
<el-button type="primary" plain class="el-icon-download" size="small" style="margin: 3px 0px 0 170px" @click="exportExcel">导出</el-button>
|
||||
<el-button type="distribution" size="small" icon="el-icon-setting" style="margin-left:10px" @click="edit('BL')">自家备料</el-button>
|
||||
</el-tooltip>
|
||||
<!--<el-tooltip :open-delay="1200" effect="dark" content="打印备料单" placement="top">-->
|
||||
<!--<el-button class="button111" size="small" icon="el-icon-printer" style="margin-left:10px" @click="exportTable('BL')">打印自家备料单</el-button>-->
|
||||
<!--</el-tooltip>-->
|
||||
<!--<el-tooltip :open-delay="1000" effect="dark" content="导出备料分配单" placement="top">-->
|
||||
<!--<el-button type="primary" plain class="el-icon-download" size="small" style="margin: 3px 0px 0 170px" @click="exportExcel">导出</el-button>-->
|
||||
<!--</el-tooltip>-->
|
||||
</el-row>
|
||||
</el-card>
|
||||
</div>
|
||||
@@ -44,14 +44,16 @@
|
||||
@selection-change="handleSelectionChange">
|
||||
<!--<el-table v-loading="loading" :data="tableData" height="760" style="width: 1126px; margin: 3px 0" size="mini" border stripe highlight-current-row element-loading-text="拼命加载中" @selection-change="handleSelectionChange">-->
|
||||
<el-table-column
|
||||
:selectable="checkboxT"
|
||||
type="selection"
|
||||
width="50"
|
||||
align="center"/>
|
||||
<el-table-column label="进程" prop="备料分配" align="center" width="70">
|
||||
<el-table-column label="进程" prop="备料分配" align="center" width="70" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.备料打印 ==='1' && scope.row.是否外购备料==='0'" type="success" size="mini">自家</span>
|
||||
<span v-if="scope.row.备料打印 ==='0' && scope.row.是否外购备料==='1'" type="success" size="mini">外购</span>
|
||||
<span v-if="scope.row.备料打印 ==='0' && scope.row.是否外购备料==='0'" type="warning" size="mini">未分配</span>
|
||||
<span v-if="scope.row.备料打印 ==='1' && scope.row.是否外购备料==='1'" type="warning" size="mini">自家&外购</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="零件名称" prop="零件名称" align="center" width="140px" sortable="custom" show-overflow-tooltip>
|
||||
@@ -75,12 +77,12 @@
|
||||
{{ scope.row.材料 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="重量" align="center" width="60" >
|
||||
<el-table-column label="重量(KG)" align="center" width="80" >
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.重量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="工艺要求" align="center" width="180" show-overflow-tooltip>
|
||||
<el-table-column label="工艺要求" align="center" width="160" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.工艺要求 }}
|
||||
</template>
|
||||
@@ -170,6 +172,15 @@ export default {
|
||||
this.searchTable()
|
||||
},
|
||||
methods: {
|
||||
// 复选框
|
||||
checkboxT(row, rowIndex) {
|
||||
if (row.备料打印 === '0' && row.是否外购备料 === '0') {
|
||||
// if(row.lie =='1'){
|
||||
return true// 禁用
|
||||
} else {
|
||||
return false// 不禁用
|
||||
}
|
||||
},
|
||||
sortChange(column, prop, order) {
|
||||
console.log(column + '-' + column.prop + '-' + column.order, 11111)
|
||||
if (column.prop === '零件名称') {
|
||||
|
||||
Reference in New Issue
Block a user