采购任务分配附采购情况查询
This commit is contained in:
@@ -54,7 +54,7 @@ export function searchTable1(...params) {
|
|||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '采购管理_采购部采购_查询物料',
|
name: '采购管理_采购部采购_查询物料',
|
||||||
param: `物料类别流水号_check=${params[2]}&物料类别流水号=${params[3]}&物料品种流水号_check=${params[4]}&物料品种流水号=${params[5]}&项目流水号_check=${params[6]}&项目流水号=${params[7]}&物料名称_check=${params[8]}&物料名称=${params[9]}&分配状态=${params[10]}`,
|
param: `物料类别流水号_check=${params[2]}&物料类别流水号=${params[3]}&物料品种流水号_check=${params[4]}&物料品种流水号=${params[5]}&项目流水号_check=${params[6]}&项目流水号=${params[7]}&物料名称_check=${params[8]}&物料名称=${params[9]}&物料状态=${params[10]}`,
|
||||||
Pagination: params[0] + '&' + params[1]
|
Pagination: params[0] + '&' + params[1]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -67,7 +67,7 @@ export function searchTable2(...params) {
|
|||||||
data: {
|
data: {
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '采购管理_采购部采购_查询物料_基本件',
|
name: '采购管理_采购部采购_查询物料_基本件',
|
||||||
param: `项目流水号_check=${params[2]}&项目流水号=${params[3]}&分配状态=${params[4]}`,
|
param: `项目流水号_check=${params[2]}&项目流水号=${params[3]}&物料状态=${params[4]}`,
|
||||||
Pagination: params[0] + '&' + params[1]
|
Pagination: params[0] + '&' + params[1]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -11,14 +11,8 @@
|
|||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<span>分配情况:</span>
|
<span>物料状态:</span>
|
||||||
<el-select v-model="allocateStateValue" placeholder="分配情况" size="small" style="width: 100px">
|
<el-cascader :options="materialStatus" v-model="materialStatusValue" size="small" change-on-select/>
|
||||||
<el-option
|
|
||||||
v-for="item in allocateState"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"/>
|
|
||||||
</el-select>
|
|
||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="success"
|
||||||
size="small"
|
size="small"
|
||||||
@@ -90,6 +84,14 @@
|
|||||||
stripe
|
stripe
|
||||||
@selection-change="handleSelectionChange1">
|
@selection-change="handleSelectionChange1">
|
||||||
<el-table-column :selectable="selectable" align="center" type="selection"/>
|
<el-table-column :selectable="selectable" align="center" type="selection"/>
|
||||||
|
<el-table-column align="center" label="采购情况" min-width="70px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag v-if="scope.row.人员编号===''" type="primary" size="small">未分配</el-tag>
|
||||||
|
<el-tag v-if="parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!==''" type="warning" size="small">未询价</el-tag>
|
||||||
|
<el-tag v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)!==3" type="success" size="small">已询价</el-tag>
|
||||||
|
<el-tag v-if="parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column align="center" label="项目名称" min-width="150px">
|
<el-table-column align="center" label="项目名称" min-width="150px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.项目名称 }}
|
{{ scope.row.项目名称 }}
|
||||||
@@ -140,7 +142,7 @@
|
|||||||
{{ scope.row.物料计划到货时间.split(' ')[0] }}
|
{{ scope.row.物料计划到货时间.split(' ')[0] }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :filters="person" :filter-method="filterHandler" align="center" label="采购员" min-width="100px" prop="buyer">
|
<el-table-column :filters="person" :filter-method="filterHandler" align="center" label="采购员" min-width="80px" prop="buyer">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.姓名 ? scope.row.姓名 : '—' }}
|
{{ scope.row.姓名 ? scope.row.姓名 : '—' }}
|
||||||
</template>
|
</template>
|
||||||
@@ -169,14 +171,8 @@
|
|||||||
:label="item.label"
|
:label="item.label"
|
||||||
:value="item.value"/>
|
:value="item.value"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<span>分配情况:</span>
|
<span>物料状态:</span>
|
||||||
<el-select v-model="allocateStateValue" placeholder="分配情况" size="small" style="width: 100px">
|
<el-cascader :options="materialStatus" v-model="materialStatusValue" size="small" change-on-select/>
|
||||||
<el-option
|
|
||||||
v-for="item in allocateState"
|
|
||||||
:key="item.value"
|
|
||||||
:label="item.label"
|
|
||||||
:value="item.value"/>
|
|
||||||
</el-select>
|
|
||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="success"
|
||||||
size="small"
|
size="small"
|
||||||
@@ -217,6 +213,14 @@
|
|||||||
stripe
|
stripe
|
||||||
@selection-change="handleSelectionChange2">
|
@selection-change="handleSelectionChange2">
|
||||||
<el-table-column :selectable="selectable" align="center" type="selection"/>
|
<el-table-column :selectable="selectable" align="center" type="selection"/>
|
||||||
|
<el-table-column align="center" label="采购情况" min-width="70px">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-tag v-if="scope.row.人员编号===''" type="primary" size="small">未分配</el-tag>
|
||||||
|
<el-tag v-if="parseInt(scope.row.询价状态编号)===1&&scope.row.人员编号!==''" type="warning" size="small">未询价</el-tag>
|
||||||
|
<el-tag v-if="parseInt(scope.row.询价状态编号)===3&&parseInt(scope.row.采购状态编号)!==3" type="success" size="small">已询价</el-tag>
|
||||||
|
<el-tag v-if="parseInt(scope.row.采购状态编号)===3" type="info" size="small">已采购</el-tag>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column align="center" label="项目名称" min-width="150px">
|
<el-table-column align="center" label="项目名称" min-width="150px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.项目名称 }}
|
{{ scope.row.项目名称 }}
|
||||||
@@ -262,7 +266,7 @@
|
|||||||
{{ scope.row.物料计划到货时间.split(' ')[0] }}
|
{{ scope.row.物料计划到货时间.split(' ')[0] }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :filters="person" :filter-method="filterHandler" align="center" label="采购员" min-width="100px" prop="buyer">
|
<el-table-column :filters="person" :filter-method="filterHandler" align="center" label="采购员" min-width="80px" prop="buyer">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{ scope.row.姓名 ? scope.row.姓名 : '—' }}
|
{{ scope.row.姓名 ? scope.row.姓名 : '—' }}
|
||||||
</template>
|
</template>
|
||||||
@@ -300,8 +304,8 @@ export default {
|
|||||||
projectValue: '',
|
projectValue: '',
|
||||||
project: [],
|
project: [],
|
||||||
materialName: '',
|
materialName: '',
|
||||||
allocateStateValue: 0,
|
materialStatusValue: [0], // 物料状态
|
||||||
allocateState: [
|
materialStatus: [
|
||||||
{
|
{
|
||||||
value: 0,
|
value: 0,
|
||||||
label: '全部'
|
label: '全部'
|
||||||
@@ -312,9 +316,23 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 2,
|
value: 2,
|
||||||
label: '已分配'
|
label: '已分配',
|
||||||
|
children: [{
|
||||||
|
value: 3,
|
||||||
|
label: '未询价'
|
||||||
|
}, {
|
||||||
|
value: 4,
|
||||||
|
label: '已询价',
|
||||||
|
children: [{
|
||||||
|
value: 5,
|
||||||
|
label: '未采购'
|
||||||
|
}, {
|
||||||
|
value: 6,
|
||||||
|
label: '已采购'
|
||||||
|
}]
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
],
|
], // 物料状态
|
||||||
personValue: '',
|
personValue: '',
|
||||||
person: [],
|
person: [],
|
||||||
check1: 0,
|
check1: 0,
|
||||||
@@ -378,14 +396,14 @@ export default {
|
|||||||
this.MaterialVarietyValue ? this.check2 = 1 : this.check2 = 0
|
this.MaterialVarietyValue ? this.check2 = 1 : this.check2 = 0
|
||||||
this.projectValue ? this.check3 = 1 : this.check3 = 0
|
this.projectValue ? this.check3 = 1 : this.check3 = 0
|
||||||
this.materialName ? this.check4 = 1 : this.check4 = 0
|
this.materialName ? this.check4 = 1 : this.check4 = 0
|
||||||
searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.MaterialCategoryValue, this.check2, this.MaterialVarietyValue, this.check3, this.projectValue, this.check4, this.materialName, this.allocateStateValue).then(response => {
|
searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.MaterialCategoryValue, this.check2, this.MaterialVarietyValue, this.check3, this.projectValue, this.check4, this.materialName, this.materialStatusValue[this.materialStatusValue.length - 1]).then(response => {
|
||||||
this.tableData1 = response.data.rows
|
this.tableData1 = response.data.rows
|
||||||
this.total1 = response.data.total
|
this.total1 = response.data.total
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
searchTable2() { // 查询基本件
|
searchTable2() { // 查询基本件
|
||||||
this.projectValue ? this.check3 = 1 : this.check3 = 0
|
this.projectValue ? this.check3 = 1 : this.check3 = 0
|
||||||
searchTable2(this.pageCurrent2, this.pageSize2, this.check3, this.projectValue, this.allocateStateValue).then(response => {
|
searchTable2(this.pageCurrent2, this.pageSize2, this.check3, this.projectValue, this.materialStatusValue[this.materialStatusValue.length - 1]).then(response => {
|
||||||
this.tableData2 = response.data.rows
|
this.tableData2 = response.data.rows
|
||||||
this.total2 = response.data.total
|
this.total2 = response.data.total
|
||||||
})
|
})
|
||||||
@@ -460,7 +478,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
filterHandler(value, row) {
|
filterHandler(value, row) {
|
||||||
console.log(row, value)
|
|
||||||
return parseInt(row['人员编号']) === parseInt(value)
|
return parseInt(row['人员编号']) === parseInt(value)
|
||||||
},
|
},
|
||||||
handleSizeChange1(val) {
|
handleSizeChange1(val) {
|
||||||
@@ -532,6 +549,9 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.el-tag{
|
||||||
|
margin: 0
|
||||||
|
}
|
||||||
.el-card{
|
.el-card{
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user