This commit is contained in:
shilixia 2021-11-01 14:52:07 +08:00
parent bed00aaaea
commit 01e44e44df
3 changed files with 10 additions and 27 deletions

View File

@ -4,7 +4,7 @@
<div> <div>
<el-input <el-input
v-model="listQuery.search" v-model="listQuery.search"
placeholder="物料名称/物料编号" placeholder="物料名称/物料编号/物料类型"
style="width: 300px" style="width: 300px"
class="filter-item" class="filter-item"
@keyup.enter.native="handleFilter" @keyup.enter.native="handleFilter"
@ -50,27 +50,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="物料类别" :filters="[{ <el-table-column label="物料类别" >
value: 1,
text: '成品'
}, {
value: 2,
text: '半成品'
}, {
value: 3,
text: '主要原料'
}, {
value: 4,
text: '辅助原料'
}, {
value: 5,
text: '加工工具'
}, {
value: 6,
text: '辅助工具'
}]"
:filter-method="filterTag"
filter-placement="bottom-end">
<template slot-scope="scope"> {{options_[scope.row.type]}}</template> <template slot-scope="scope"> {{options_[scope.row.type]}}</template>
</el-table-column> </el-table-column>
@ -204,9 +184,9 @@ export default {
"1":'成品', "1":'成品',
"2":'半成品', "2":'半成品',
"3":'主要原料', "3":'主要原料',
"4":'辅助', "4":'辅助',
"5":'加工工具', "5":'加工工具',
"6":'辅助工', "6":'辅助工',
}, },
options: [{ options: [{
@ -220,13 +200,13 @@ export default {
label: '主要原料' label: '主要原料'
}, { }, {
value: 4, value: 4,
label: '辅助' label: '辅助'
}, { }, {
value: 5, value: 5,
label: '加工工具' label: '加工工具'
}, { }, {
value: 6, value: 6,
label: '辅助工' label: '辅助工'
}], }],
unitoptions:[ unitoptions:[
{ {

View File

@ -156,7 +156,7 @@
</el-form> </el-form>
<div style="text-align: right"> <div style="text-align: right">
<el-button type="danger" @click="dialogVisible1 = false">取消</el-button> <el-button type="danger" @click="dialogVisiblesp = false">取消</el-button>
<el-button type="primary" @click="subproducationfirm('Formsp')">确认</el-button> <el-button type="primary" @click="subproducationfirm('Formsp')">确认</el-button>
</div> </div>
</el-dialog> </el-dialog>

View File

@ -32,6 +32,9 @@
:label="item.name" :label="item.name"
:value="item.number">{{item.name}}</el-tag> :value="item.number">{{item.name}}</el-tag>
</template> </template>
</el-table-column>
<el-table-column label="排序">
<template slot-scope="scope">{{ scope.row.sort }}</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
align="center" align="center"