|
@@ -6,14 +6,10 @@
|
|
|
<el-form ref="screenForm" :model="screenForm" label-width="100px" size="small" label-position="left">
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :xs="24" :sm="24" :lg="24">
|
|
|
- <el-form-item prop="orderNum" label-width="0">
|
|
|
- <el-radio-group v-model="screenForm.status" size="medium">
|
|
|
- <el-radio-button label="1">全部</el-radio-button>
|
|
|
- <el-radio-button label="2">已保存</el-radio-button>
|
|
|
- <el-radio-button label="3">待审核</el-radio-button>
|
|
|
- <el-radio-button label="3">审核通过</el-radio-button>
|
|
|
- <el-radio-button label="3">审核驳回</el-radio-button>
|
|
|
- <el-radio-button label="3">已发货</el-radio-button>
|
|
|
+ <el-form-item prop="status" label-width="0">
|
|
|
+ <el-radio-group v-model="screenForm.status" size="medium" @change="getList()">
|
|
|
+ <el-radio-button label="">全部</el-radio-button>
|
|
|
+ <el-radio-button v-for="(item, index) in statusList" :key="index" :label="item.value">{{item.label}}</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -23,18 +19,18 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="仓库" prop="orderNum">
|
|
|
- <el-input v-model="screenForm.orderNum" placeholder="请输入仓库"></el-input>
|
|
|
+ <el-form-item label="仓库" prop="warehouse">
|
|
|
+ <el-input v-model="screenForm.warehouse" placeholder="请输入仓库"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="经销商编码" prop="jxsName">
|
|
|
- <el-input v-model="screenForm.jxsName" placeholder="请输入经销商编码"></el-input>
|
|
|
+ <el-form-item label="经销商编码" prop="jxsNum">
|
|
|
+ <el-input v-model="screenForm.jxsNum" placeholder="请输入经销商编码"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="经销商名称" prop="jxsNum">
|
|
|
- <el-input v-model="screenForm.jxsNum" placeholder="请输入经销商名称"></el-input>
|
|
|
+ <el-form-item label="经销商名称" prop="jxsName">
|
|
|
+ <el-input v-model="screenForm.jxsName" placeholder="请输入经销商名称"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -125,15 +121,22 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getList } from "@/api/supply/apply";
|
|
|
+import { getApplyList } from "@/api/supply/apply";
|
|
|
import ApplyDetail from "@/views/supply/apply/components/apply_detail";
|
|
|
import ApplyExamine from "@/views/supply/apply/components/apply_examine";
|
|
|
|
|
|
+let that
|
|
|
export default {
|
|
|
components: {
|
|
|
ApplyDetail,
|
|
|
ApplyExamine,
|
|
|
},
|
|
|
+ filters: {
|
|
|
+ statusFilter(val) {
|
|
|
+ let obj = that.statusList.find(o => o.value == val);
|
|
|
+ return obj ? obj.label : ''
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
currentPage: 1, // 当前页码
|
|
@@ -143,13 +146,21 @@ export default {
|
|
|
listLoading: false, // 列表加载loading
|
|
|
screenForm: { // 筛选表单数据
|
|
|
orderNum: '',
|
|
|
+ warehouse: '',
|
|
|
+ jxsNum: '',
|
|
|
jxsName: '',
|
|
|
+ date: '',
|
|
|
chName: '',
|
|
|
model: '',
|
|
|
- date: '',
|
|
|
- jxsNum: '',
|
|
|
status: '',
|
|
|
},
|
|
|
+ statusList: [
|
|
|
+ { label: '已保存', value: 1 },
|
|
|
+ { label: '待审核', value: 2 },
|
|
|
+ { label: '审核通过', value: 3 },
|
|
|
+ { label: '审核驳回', value: 5 },
|
|
|
+ { label: '已退单', value: 4 },
|
|
|
+ ],
|
|
|
|
|
|
queryItem: {},
|
|
|
isShowDetail: false,
|
|
@@ -160,18 +171,23 @@ export default {
|
|
|
computed: {
|
|
|
exParams() {
|
|
|
return {
|
|
|
- retreatOrderNo: this.screenForm.orderNum,
|
|
|
+ id: this.screenForm.orderNum,
|
|
|
+ correspondId: this.screenForm.warehouse,
|
|
|
customerNumber: this.screenForm.jxsNum,
|
|
|
customerName: this.screenForm.jxsName,
|
|
|
productName: this.screenForm.chName,
|
|
|
specification: this.screenForm.model,
|
|
|
startTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
|
- status: 2, // 1:发货单,2:工程发货单
|
|
|
+ status: this.screenForm.status,
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
|
|
|
+ beforeCreate() {
|
|
|
+ that = this;
|
|
|
+ },
|
|
|
+
|
|
|
created() {
|
|
|
this.getList();
|
|
|
},
|
|
@@ -193,16 +209,17 @@ export default {
|
|
|
let params = {
|
|
|
pageNum: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
- retreatOrderNo: this.screenForm.orderNum,
|
|
|
+ id: this.screenForm.orderNum,
|
|
|
+ correspondId: this.screenForm.warehouse,
|
|
|
customerNumber: this.screenForm.jxsNum,
|
|
|
customerName: this.screenForm.jxsName,
|
|
|
productName: this.screenForm.chName,
|
|
|
specification: this.screenForm.model,
|
|
|
startTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
|
- status: 2, // 1:发货单,2:工程发货单
|
|
|
+ status: this.screenForm.status,
|
|
|
};
|
|
|
- getList(params).then((res) => {
|
|
|
+ getApplyList(params).then((res) => {
|
|
|
this.dataList = res.data.records;
|
|
|
this.listTotal = res.data.total;
|
|
|
this.listLoading = false;
|