a
This commit is contained in:
@@ -105,13 +105,14 @@
|
||||
<el-tab-pane label="采购部采购" name="采购部采购">
|
||||
<el-tabs v-model="PartType" type="border-card" style="margin-top: 10px" @tab-click="searchTable()">
|
||||
<el-tab-pane label="标准件" name="标准件">
|
||||
<el-table :data="tableData00" size="mini" height="530px" border stripe @sort-change="sortChange3">
|
||||
<el-table v-loading="searchTable0Loading" :data="tableData00" size="mini" height="530px" border stripe @sort-change="sortChange3">
|
||||
<el-table-column align="center" prop="询价状态编号" label="进程" width="110px" sortable="custom" fixed="left">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="!scope.row.人员编号" type="primary" size="small">未分配</span>
|
||||
<span v-if="parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!==''" type="warning" size="small">未询价</span>
|
||||
<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)===1" type="success" size="small">已询价</span>
|
||||
<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)!==1" type="info" size="small">已采购</span>
|
||||
{{ scope.row.采购状态 }}
|
||||
<!--<span v-if="!scope.row.人员编号" type="primary" size="small">未分配</span>-->
|
||||
<!--<span v-if="parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号" type="warning" size="small">未询价</span>-->
|
||||
<!--<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)===1" type="success" size="small">已询价</span>-->
|
||||
<!--<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)!==1" type="info" size="small">已采购</span>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="机床图号">
|
||||
@@ -178,13 +179,14 @@
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="外购件" name="外购件">
|
||||
<el-table :data="tableData01" size="mini" height="530px" border stripe @sort-change="sortChange4">
|
||||
<el-table v-loading="searchTable1Loading" :data="tableData01" size="mini" height="530px" border stripe @sort-change="sortChange4">
|
||||
<el-table-column align="center" prop="询价状态编号" label="进程" width="110px" sortable="custom" fixed="left">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="!scope.row.人员编号" type="primary" size="small">未分配</span>
|
||||
<span v-if="parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!==''" type="warning" size="small">未询价</span>
|
||||
<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)===1" type="success" size="small">已询价</span>
|
||||
<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)!==1" type="info" size="small">已采购</span>
|
||||
{{ scope.row.采购状态 }}
|
||||
<!--<span v-if="!scope.row.人员编号" type="primary" size="small">未分配</span>-->
|
||||
<!--<span v-if="parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!==''" type="warning" size="small">未询价</span>-->
|
||||
<!--<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)===1" type="success" size="small">已询价</span>-->
|
||||
<!--<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)!==1" type="info" size="small">已采购</span>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="机床图号">
|
||||
@@ -256,13 +258,14 @@
|
||||
</div>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="基本件" name="基本件">
|
||||
<el-table :data="tableData02" size="mini" height="530px" border stripe @sort-change="sortChange5">
|
||||
<el-table v-loading="searchTable2Loading" :data="tableData02" size="mini" height="530px" border stripe @sort-change="sortChange5">
|
||||
<el-table-column align="center" prop="询价状态编号" label="进程" width="110px" sortable="custom" fixed="left">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="!scope.row.人员编号" type="primary" size="small">未分配</span>
|
||||
<span v-if="parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!==''" type="warning" size="small">未询价</span>
|
||||
<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)===1" type="success" size="small">已询价</span>
|
||||
<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)!==1" type="info" size="small">已采购</span>
|
||||
{{ scope.row.采购状态 }}
|
||||
<!--<span v-if="!scope.row.人员编号" type="primary" size="small">未分配</span>-->
|
||||
<!--<span v-if="parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号" type="warning" size="small">未询价</span>-->
|
||||
<!--<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)===1" type="success" size="small">已询价</span>-->
|
||||
<!--<span v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)!==1" type="info" size="small">已采购</span>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="机床图号">
|
||||
@@ -438,6 +441,9 @@ import { searchTable, searchmachine, searchgroup, searchTable1, processingStatus
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
searchTable0Loading: false,
|
||||
searchTable1Loading: false,
|
||||
searchTable2Loading: false,
|
||||
order: 0,
|
||||
order2: 0,
|
||||
order3: 0,
|
||||
@@ -617,9 +623,11 @@ export default {
|
||||
this.Machine ? check1 = 1 : check1 = 0
|
||||
this.Group ? check2 = 1 : check2 = 0
|
||||
this.materialName ? check = 1 : check = 0
|
||||
this.searchTable0Loading = true
|
||||
searchTable01(check1, this.Machine, check2, this.Group, check, this.materialName, this.pageCurrent00, this.pageSize00, 1, this.order3).then(response => {
|
||||
this.tableData00 = response.data.rows
|
||||
this.total00 = response.data.total
|
||||
this.searchTable0Loading = false
|
||||
})
|
||||
},
|
||||
sortChange4(column, prop, order) {
|
||||
@@ -630,6 +638,16 @@ export default {
|
||||
} else {
|
||||
this.order4 = 0
|
||||
}
|
||||
let check1, check2, check
|
||||
this.Machine ? check1 = 1 : check1 = 0
|
||||
this.Group ? check2 = 1 : check2 = 0
|
||||
this.materialName ? check = 1 : check = 0
|
||||
this.searchTable1Loading = true
|
||||
searchTable01(check1, this.Machine, check2, this.Group, check, this.materialName, this.pageCurrent01, this.pageSize01, 2, this.order4).then(response => {
|
||||
this.tableData01 = response.data.rows
|
||||
this.total01 = response.data.total
|
||||
this.searchTable1Loading = false
|
||||
})
|
||||
},
|
||||
sortChange5(column, prop, order) {
|
||||
if (column.order === 'ascending') {
|
||||
@@ -639,6 +657,16 @@ export default {
|
||||
} else {
|
||||
this.order5 = 0
|
||||
}
|
||||
let check1, check2, check
|
||||
this.Machine ? check1 = 1 : check1 = 0
|
||||
this.Group ? check2 = 1 : check2 = 0
|
||||
this.materialName ? check = 1 : check = 0
|
||||
this.searchTable2Loading = true
|
||||
searchTable02(check1, this.Machine, check2, this.Group, check, this.materialName, this.pageCurrent02, this.pageSize02, this.order5).then(response => {
|
||||
this.tableData02 = response.data.rows
|
||||
this.total02 = response.data.total
|
||||
this.searchTable2Loading = false
|
||||
})
|
||||
},
|
||||
turnTo() {
|
||||
this.$router.push({
|
||||
@@ -729,32 +757,41 @@ export default {
|
||||
},
|
||||
// 查询标准件
|
||||
searchTable0() {
|
||||
let check1, check2
|
||||
let check1, check2, check
|
||||
this.Machine ? check1 = 1 : check1 = 0
|
||||
this.Group ? check2 = 1 : check2 = 0
|
||||
searchTable01(check1, this.Machine, check2, this.Group, this.pageCurrent00, this.pageSize00, 1, this.order3).then(response => {
|
||||
this.tableData00 = response.data.rows
|
||||
this.total00 = response.data.total
|
||||
this.materialName ? check = 1 : check = 0
|
||||
this.searchTable1Loading = true
|
||||
searchTable01(check1, this.Machine, check2, this.Group, check, this.materialName, this.pageCurrent01, this.pageSize01, 2, this.order4).then(response => {
|
||||
this.tableData01 = response.data.rows
|
||||
this.total01 = response.data.total
|
||||
this.searchTable1Loading = false
|
||||
})
|
||||
},
|
||||
// 查询外购件
|
||||
searchTable1() {
|
||||
let check1, check2
|
||||
let check1, check2, check
|
||||
this.Machine ? check1 = 1 : check1 = 0
|
||||
this.Group ? check2 = 1 : check2 = 0
|
||||
searchTable01(check1, this.Machine, check2, this.Group, this.pageCurrent01, this.pageSize01, 2, this.order4).then(response => {
|
||||
this.materialName ? check = 1 : check = 0
|
||||
this.searchTable1Loading = true
|
||||
searchTable01(check1, this.Machine, check2, this.Group, check, this.materialName, this.pageCurrent01, this.pageSize01, 2, this.order3).then(response => {
|
||||
this.tableData01 = response.data.rows
|
||||
this.total01 = response.data.total
|
||||
this.searchTable1Loading = false
|
||||
})
|
||||
},
|
||||
// 查询基本件
|
||||
searchTable2() {
|
||||
let check1, check2
|
||||
let check1, check2, check
|
||||
this.Machine ? check1 = 1 : check1 = 0
|
||||
this.Group ? check2 = 1 : check2 = 0
|
||||
searchTable02(check1, this.Machine, check2, this.Group, this.pageCurrent02, this.pageSize02, this.order5).then(response => {
|
||||
this.materialName ? check = 1 : check = 0
|
||||
this.searchTable2Loading = true
|
||||
searchTable02(check1, this.Machine, check2, this.Group, check, this.materialName, this.pageCurrent02, this.pageSize02, this.order5).then(response => {
|
||||
this.tableData02 = response.data.rows
|
||||
this.total02 = response.data.total
|
||||
this.searchTable2Loading = false
|
||||
})
|
||||
},
|
||||
handleSizeChange(val) {
|
||||
|
||||
Reference in New Issue
Block a user