外协部分样式

This commit is contained in:
Vergil
2020-02-19 16:18:50 +08:00
parent e3f9dcaa1d
commit 529f652458
5 changed files with 38 additions and 98 deletions

View File

@@ -2,16 +2,8 @@
<div class="app-container">
<el-col :span="10">
<el-card>
<!--<span>表单号:</span>-->
<!--<el-input v-model="formNumber" size="small" placeholder="表单号" clearable style="width:150px"/>-->
<span>厂家:</span>
<el-input v-model="manufacturers" size="small" placeholder="厂家或外协任务单号" style="width:160px" clearable @keyup.enter.native="pageSize=20;pageList=1;fetchData()"/>
<!--<span>下达任务日期:</span>-->
<!--<el-date-picker-->
<!--v-model="time"-->
<!--type="date"-->
<!--size="small"-->
<!--placeholder="选择日期"/>-->
<el-button type="primary" size="mini" icon="el-icon-search" style="margin-left:10px" plain @click="pageSize=10;pageList=1;fetchData()">查询</el-button>
</el-card>
<el-card>
@@ -42,8 +34,8 @@
</el-col>
<el-col :span="14">
<el-card>
<el-button :disabled="loading=false" type="warning" size="mini" icon="el-icon-arrow-down" style="margin-left:10px" plain @click="getSpareParts">收货</el-button>
<el-table v-loading="loading" :data="List3" border size="mini" highlight-current-row height="595" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange">
<el-button :disabled="loading" type="warning" size="mini" icon="el-icon-arrow-down" style="margin-left:10px" plain @click="getSpareParts">收货</el-button>
<el-table v-loading="loading" :data="List3" border size="mini" height="595" style="width: 100%" @selection-change="handleSelectionChange">
<el-table-column
:selectable="selectable"
type="selection"
@@ -70,11 +62,6 @@
{{ scope.row.批次数量 }}
</template>
</el-table-column>
<!--<el-table-column label="外协工序" align="center">-->
<!--<template slot-scope="scope">-->
<!--{{ scope.row.外协工序 }}-->
<!--</template>-->
<!--</el-table-column>-->
</el-table>
</el-card>
</el-col>
@@ -214,8 +201,8 @@ export default {
getTable(check, this.manufacturers, this.pageList, this.pageSize).then(response => {
this.total = parseInt(response.data.total)
this.List = response.data.rows
this.loading2 = false
})
this.loading2 = false
},
// 控制某行是否可选
selectable(row, index) {
@@ -223,8 +210,8 @@ export default {
},
// 查询
searchProcess(row) {
this.Number = row.外协加工任务单流水号
this.loading = true
this.Number = row.外协加工任务单流水号
this.List3 = []
getParts(row.外协加工任务单流水号).then(response => {
this.List3 = response.data