|
@@ -25,7 +25,14 @@
|
|
|
<Input v-model="searchForm.wlmc" placeholder="物料编码或名称" />
|
|
|
</Col>
|
|
|
<Col span="4">
|
|
|
- <Input v-model="searchForm.applicantName" placeholder="申请人名称" />
|
|
|
+ <Select clearable filterable v-model="searchForm.purchaserId" placeholder="分管采购员">
|
|
|
+ <Option
|
|
|
+ v-for="item in fgcgyList"
|
|
|
+ :value="item.userId"
|
|
|
+ :key="item.userId"
|
|
|
+ >{{ item.userName }}</Option>
|
|
|
+ </Select>
|
|
|
+ <!-- <Input v-model="searchForm.applicantName" placeholder="申请人名称" />-->
|
|
|
</Col>
|
|
|
<Col span="4">
|
|
|
<Button type="primary" style="width: 80px" @click="pageNum = 1;getTableData()">查询</Button>
|
|
@@ -61,6 +68,7 @@ import {
|
|
|
tbiGoodsCategoryList,
|
|
|
warehouseList,
|
|
|
getMaterialPrice,
|
|
|
+ getJobList,
|
|
|
} from "@/service/getData";
|
|
|
export default {
|
|
|
name: "orderMxAdd",
|
|
@@ -93,6 +101,7 @@ export default {
|
|
|
ejfl: "", // 二级分类
|
|
|
wlmc: "", //物料编码或名称
|
|
|
applicantName: "", //物料编码或名称
|
|
|
+ purchaserId: "", //物料编码或名称
|
|
|
},
|
|
|
ckList: [],
|
|
|
allFlList: [],
|
|
@@ -100,6 +109,7 @@ export default {
|
|
|
ejflList: [],
|
|
|
jldwList: [],
|
|
|
wllxList: [],
|
|
|
+ fgcgyList: [],
|
|
|
// 表格参数
|
|
|
tableLoading: false,
|
|
|
pageTotal: 0,
|
|
@@ -209,7 +219,7 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- this.searchForm.applicantName = localStorage.user_name
|
|
|
+ // this.searchForm.applicantName = localStorage.user_name
|
|
|
tbiGoodsCategoryList().then((res) => {
|
|
|
this.allFlList = res.data.data;
|
|
|
let arr = [];
|
|
@@ -219,6 +229,16 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+ getJobList().then((res) => {
|
|
|
+ if (res.status == 200) {
|
|
|
+ this.fgcgyList = res.data;
|
|
|
+ if (res.data.filter(site => site.userId == localStorage.user_id).length){
|
|
|
+ this.searchForm.purchaserId = localStorage.user_id
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$Message.error("获取分管采购员列表失败!");
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
methods: {
|
|
|
//列表方法
|
|
@@ -233,6 +253,7 @@ export default {
|
|
|
queryText2: "",
|
|
|
projectIds: this.projectId.split(",")[0],
|
|
|
// projectIds: 10,
|
|
|
+ purchaserId: this.searchForm.purchaserId,
|
|
|
storehouseId: this.searchForm.ck,
|
|
|
applicantName: this.searchForm.applicantName,
|
|
|
};
|