|
@@ -81,11 +81,10 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="仓库名称" prop="warehouse">
|
|
|
- <el-input
|
|
|
- v-model="screenForm.warehouse"
|
|
|
- placeholder="请输入仓库名称"
|
|
|
- ></el-input>
|
|
|
+ <el-form-item label="仓库" prop="warehouse">
|
|
|
+ <el-select v-model="screenForm.warehouse" placeholder="请选择仓库" filterable clearable multiple collapse-tags style="width: 100%">
|
|
|
+ <el-option :label="item.name" :value="item.id" v-for="(item, index) in warehouseList" :key="index"></el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -381,7 +380,7 @@
|
|
|
@size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"
|
|
|
:current-page="currentPage"
|
|
|
- :page-sizes="[10, 20, 30, 50]"
|
|
|
+ :page-sizes="[10, 20, 30, 50, 100]"
|
|
|
:page-size="10"
|
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
|
:total="listTotal"
|
|
@@ -421,7 +420,7 @@ import {
|
|
|
examineBatch,
|
|
|
examineJudge,
|
|
|
getList,
|
|
|
- updateNum,
|
|
|
+ getWarehouseList,
|
|
|
} from "@/api/supply/sales";
|
|
|
import SalesDetail from "@/views/supply/sales/components/sales_detail";
|
|
|
import SalesExamine from "@/views/supply/sales/components/sales_examine";
|
|
@@ -464,13 +463,12 @@ export default {
|
|
|
chName: "",
|
|
|
chNum: "",
|
|
|
model: "",
|
|
|
- warehouse: "",
|
|
|
+ warehouse: [],
|
|
|
date: "",
|
|
|
status: "",
|
|
|
mainOrderId: "",
|
|
|
approval:'',
|
|
|
- id:''
|
|
|
-
|
|
|
+ id:'',
|
|
|
},
|
|
|
statusList: [
|
|
|
{ label: "已保存", value: "SAVE" },
|
|
@@ -478,6 +476,7 @@ export default {
|
|
|
{ label: "审核通过", value: "OK" },
|
|
|
// { label: '审核驳回', value: 'FAIL' },,
|
|
|
],
|
|
|
+ warehouseList: [],
|
|
|
centerDialogVisible:false,
|
|
|
cid:'',
|
|
|
queryItem: {},
|
|
@@ -522,7 +521,7 @@ export default {
|
|
|
materialName: this.screenForm.chName,
|
|
|
materialNumber: this.screenForm.chNum,
|
|
|
specification: this.screenForm.model,
|
|
|
- correspondName: this.screenForm.warehouse,
|
|
|
+ correspondId: this.screenForm.warehouse.join(','),
|
|
|
startTime: this.screenForm.date ? this.screenForm.date[0] : "",
|
|
|
endTime: this.screenForm.date ? this.screenForm.date[1] : "",
|
|
|
approvalStartTime: this.screenForm.approval ? this.screenForm.approval[0] : "",
|
|
@@ -550,6 +549,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
+ this.getWarehouseList();
|
|
|
this.getList();
|
|
|
},
|
|
|
|
|
@@ -557,7 +557,6 @@ export default {
|
|
|
// 查询列表
|
|
|
getList() {
|
|
|
this.listLoading = true;
|
|
|
-
|
|
|
let params = {
|
|
|
pageNum: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
@@ -568,7 +567,7 @@ export default {
|
|
|
materialName: this.screenForm.chName,
|
|
|
materialNumber: this.screenForm.chNum,
|
|
|
specification: this.screenForm.model,
|
|
|
- correspondName: this.screenForm.warehouse,
|
|
|
+ correspondId: this.screenForm.warehouse.join(','),
|
|
|
startTime: this.screenForm.date ? this.screenForm.date[0] : "",
|
|
|
endTime: this.screenForm.date ? this.screenForm.date[1] : "",
|
|
|
approvalStartTime: this.screenForm.approval ? this.screenForm.approval[0] : "",
|
|
@@ -587,13 +586,22 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ // 获取仓库列表
|
|
|
+ getWarehouseList() {
|
|
|
+ getWarehouseList({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1
|
|
|
+ }).then((res) => {
|
|
|
+ this.warehouseList = res.data.records;
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
updateReceipt() {
|
|
|
|
|
|
- if (!this.value1) {
|
|
|
- this.$errorMsg('请选择时间')
|
|
|
- return
|
|
|
- }
|
|
|
+ if (!this.value1) {
|
|
|
+ this.$errorMsg('请选择时间')
|
|
|
+ return
|
|
|
+ }
|
|
|
// updateReceipt({
|
|
|
// startTime:this.value1[0],
|
|
|
// endTime:this.value1[1]
|