刘璐珈

This commit is contained in:
Vergil
2020-03-10 16:23:48 +08:00
parent cb119988c7
commit 2f765422b5
8 changed files with 329 additions and 203 deletions

View File

@@ -96,41 +96,42 @@
<el-card>
<el-table
v-loading="loading"
:data="tableData"
style="width: 100%;margin-top: 3px"
style="width: 945px;margin-top: 3px"
height="600"
size="mini"
highlight-current-row
border
stripe>
<el-table-column align="center" label="物料名称">
<el-table-column align="center" label="物料名称" width="153px" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.物料名称 }}
</template>
</el-table-column>
<el-table-column align="center" label="物料规格">
<el-table-column align="center" label="物料规格" width="184px" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.物料规格 }}
</template>
</el-table-column>
<el-table-column align="center" label="物料型号">
<el-table-column align="center" label="物料型号" width="191px" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.物料型号 }}
</template>
</el-table-column>
<el-table-column align="center" label="供货商">
<el-table-column align="center" label="供货商" width="132px" show-overflow-tooltip>
<template slot-scope="scope">
{{ scope.row.供货商 }}
</template>
</el-table-column>
<el-table-column align="center" label="审核状态">
<el-table-column align="center" label="审核状态" width="80px">
<template slot-scope="scope">
<el-tag v-if="scope.row.是否通过===0" type="primary" size="small">未审核</el-tag>
<el-tag v-if="scope.row.是否通过===1" type="success" size="small">已通过</el-tag>
<el-tag v-if="scope.row.是否通过===2" type="danger" size="small">未通过</el-tag>
</template>
</el-table-column>
<el-table-column align="center" label="打回原因">
<el-table-column align="center" label="打回原因" width="180px">
<template slot-scope="scope">
{{ scope.row.打回原因 ? scope.row.打回原因 : '——' }}
</template>
@@ -322,6 +323,7 @@ import { mapGetters } from 'vuex'
export default {
data() {
return {
loading: false,
Gonghuoshang: [],
Gonghuoshang2: [],
GonghuoshangValue: '',
@@ -487,9 +489,11 @@ export default {
this.MeasurementUnitValue !== '' ? this.check7 = 1 : this.check7 = 0 // 计量单位
this.MaterialSourceValue !== '' ? this.check8 = 1 : this.check8 = 0 // 物料来源
this.GonghuoshangValue !== '' ? this.check9 = 1 : this.check9 = 0 // 供货商
this.loading = true
searchmaterial(this.check1, this.MaterialName, this.check2, this.FullNameOfMaterial, this.check3, this.MaterialSpecification, this.check4, this.MaterialModel, this.pageCurrent, this.pageSize, this.check5, this.MaterialCategoryValue, this.check6, this.MaterialVarietyValue, this.check7, this.MeasurementUnitValue, this.check8, this.MaterialSourceValue, this.check9, this.GonghuoshangValue).then(response => {
this.tableData = response.data.result
this.total = parseInt(response.data.output[0].ItemCount)
this.loading = false
})
},
openSupplier() {