|
@@ -6,25 +6,56 @@
|
|
|
<Button @click="$emit('return')">返回</Button>
|
|
|
</div>
|
|
|
<Row :gutter="10" style="margin-bottom: 10px">
|
|
|
- <Col span="4">
|
|
|
+ <Col span="6">
|
|
|
<Select clearable v-model="searchForm.ck" :disabled="ckLock" placeholder="仓库名">
|
|
|
<Option v-for="item in ckList" :value="item.twId" :key="item.twId">{{ item.twName }}</Option>
|
|
|
</Select>
|
|
|
</Col>
|
|
|
- <Col span="4">
|
|
|
+ <Col span="6">
|
|
|
<Select clearable v-model="searchForm.yjfl" placeholder="一级分类" @on-change="yjflChange">
|
|
|
<Option v-for="item in yjflList" :value="item.gcId" :key="item.gcId">{{ item.gcName }}</Option>
|
|
|
</Select>
|
|
|
</Col>
|
|
|
- <Col span="4">
|
|
|
+ <Col span="6">
|
|
|
<Select clearable v-model="searchForm.ejfl" placeholder="二级分类">
|
|
|
<Option v-for="item in ejflList" :value="item.gcId" :key="item.gcId">{{ item.gcName }}</Option>
|
|
|
</Select>
|
|
|
</Col>
|
|
|
- <Col span="4">
|
|
|
+ <Col span="6">
|
|
|
<Input v-model="searchForm.wlmc" placeholder="物料编码或名称" />
|
|
|
</Col>
|
|
|
- <Col span="8">
|
|
|
+ </Row>
|
|
|
+ <Row :gutter="10" style="margin-bottom: 10px">
|
|
|
+ <Col span="6">
|
|
|
+ <Select clearable v-model="searchForm.type" placeholder="计划类型">
|
|
|
+ <Option v-for="item in jhlxList" :value="item.value" :key="item.value">{{ item.label }}</Option>
|
|
|
+ </Select>
|
|
|
+ </Col>
|
|
|
+ <Col span="6">
|
|
|
+ <DatePicker
|
|
|
+ format="yyyy年MM月"
|
|
|
+ :value="searchForm.applyMonth"
|
|
|
+ @on-change="searchForm.applyMonth=$event"
|
|
|
+ type="month"
|
|
|
+ placeholder="计划月份"
|
|
|
+ ></DatePicker>
|
|
|
+ </Col>
|
|
|
+ <Col span="6">
|
|
|
+ <Select
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ v-model="searchForm.purchaserId"
|
|
|
+ placeholder="分管采购员"
|
|
|
+ >
|
|
|
+ <Option
|
|
|
+ v-for="item in fgcgyList"
|
|
|
+ :value="item.userId"
|
|
|
+ :key="item.userId"
|
|
|
+ >{{ item.userName }}</Option
|
|
|
+ >
|
|
|
+ </Select>
|
|
|
+ </Col>
|
|
|
+ <Col span="6">
|
|
|
<Button type="primary" style="width: 80px" @click="getTableData">查询</Button>
|
|
|
<Button type="primary" @click="plAdd">批量添加</Button>
|
|
|
</Col>
|
|
@@ -60,7 +91,8 @@ import {
|
|
|
queryPurchasePoolList,
|
|
|
tbiGoodsCategoryList,
|
|
|
warehouseList,
|
|
|
- getMaterialPrice
|
|
|
+ getMaterialPrice,
|
|
|
+ getJobList,
|
|
|
} from "@/service/getData";
|
|
|
export default {
|
|
|
name: "poolMxAdd",
|
|
@@ -89,16 +121,24 @@ export default {
|
|
|
//表格查询内容
|
|
|
searchForm: {
|
|
|
ck: "",
|
|
|
+ type: "",
|
|
|
+ applyMonth: "",
|
|
|
yjfl: "", //一级分类
|
|
|
ejfl: "", // 二级分类
|
|
|
- wlmc: "" //物料编码或名称
|
|
|
+ wlmc: "", //物料编码或名称
|
|
|
+ purchaserId: ''
|
|
|
},
|
|
|
ckList: [],
|
|
|
+ jhlxList: [
|
|
|
+ { label: "计划性申购", value: 1 },
|
|
|
+ { label: "临时申购", value: 2 },
|
|
|
+ ],
|
|
|
allFlList: [],
|
|
|
yjflList: [],
|
|
|
ejflList: [],
|
|
|
jldwList: [],
|
|
|
wllxList: [],
|
|
|
+ fgcgyList: [],
|
|
|
// 表格参数
|
|
|
tableLoading: false,
|
|
|
pageTotal: 0,
|
|
@@ -207,6 +247,18 @@ 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: {
|
|
|
//列表方法
|
|
@@ -214,6 +266,8 @@ export default {
|
|
|
let postData = {
|
|
|
page: this.pageNum,
|
|
|
pageSize: 10,
|
|
|
+ type: this.searchForm.type,
|
|
|
+ applyMonth: this.searchForm.applyMonth,
|
|
|
firstClassId: this.searchForm.yjfl,
|
|
|
secondClassId: this.searchForm.ejfl,
|
|
|
areaIds: this.areaId.split(",")[0],
|