|
@@ -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="enginNum">
|
|
|
+ <el-input v-model="screenForm.enginNum" 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="loginNum">
|
|
|
+ <el-input v-model="screenForm.loginNum" 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="enginName">
|
|
|
+ <el-input v-model="screenForm.enginName" placeholder="请输入工程名称"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -51,27 +47,22 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="销售类型" prop="chName">
|
|
|
- <el-input v-model="screenForm.chName" placeholder="请输入销售类型"></el-input>
|
|
|
+ <el-form-item label="销售类型" prop="saleType">
|
|
|
+ <el-input v-model="screenForm.saleType" placeholder="请输入销售类型"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="使用单位" prop="model">
|
|
|
- <el-input v-model="screenForm.model" placeholder="请输入使用单位"></el-input>
|
|
|
+ <el-form-item label="制表人" prop="createMan">
|
|
|
+ <el-input v-model="screenForm.createMan" placeholder="请输入制表人"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="制表人" prop="model">
|
|
|
- <el-input v-model="screenForm.model" placeholder="请输入制表人"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="审核人" prop="model">
|
|
|
- <el-input v-model="screenForm.model" placeholder="请输入审核人"></el-input>
|
|
|
+ <el-form-item label="审核人" prop="examineMan">
|
|
|
+ <el-input v-model="screenForm.examineMan" placeholder="请输入审核人"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :xs="24" :sm="12" :lg="18" class="tr">
|
|
|
+ <el-col :xs="24" :sm="24" :lg="24" class="tr">
|
|
|
<el-form-item label="">
|
|
|
<el-button size="small" @click="resetScreenForm">清空</el-button>
|
|
|
<el-button size="small" type="primary" @click="submitScreenForm">搜索</el-button>
|
|
@@ -92,28 +83,41 @@
|
|
|
</div>
|
|
|
<div class="table">
|
|
|
<el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
|
|
|
- <el-table-column align="center" label="工程订单号" prop="shipOrderNo" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="单据日期" prop="shipTime" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="工程编码" prop="stockName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="工程登录单号" prop="projectNumber" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="工程名称" prop="projectName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="使用单位" prop="unit" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="销售类型" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="货品名称" prop="unit" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="规格型号" prop="number" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="单位" prop="number" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="总数量" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="是否直调" prop="customerNumber" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="直调数量" prop="customerName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="单价" prop="productName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="金额" prop="createBy" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="返利使用比例" prop="createTime" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="返利" prop="createBy" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="制表人" prop="createTime" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="制表日期" prop="aaa" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="审核人" prop="aaa" min-width="200" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="审核日期" prop="aaa" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="center" label="审核状态" prop="aaa" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="审核状态" prop="examineStatus" min-width="100" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.examineStatus | statusFilter}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" label="工程订单号" prop="enginOrderNo" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="订单日期" prop="aaa" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="工程登录单号" prop="refEnginRecordNo" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="订单类型" prop="enginOrderType" min-width="160" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.enginOrderType | typeFilter}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" label="工程名称" prop="refProjectName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="销售类型" prop="saleTypeId" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="货品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="单位" prop="baseUnitId" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="总数量" prop="qty" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="是否直调" prop="isDirectTransfer" min-width="160" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{scope.row.isDirectTransfer ? '是':'否'}}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" label="直调数量" prop="directTransferQty" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="出库数量" prop="hasSendQty" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="单价" prop="enginPrice" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="金额" prop="enginTotality" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="返利钱包" prop="customerWalletName2" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="使用返利金额" prop="rebateAmount" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="业务员" prop="aaa" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="制表人" prop="createName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="制表日期" prop="createTime" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="审核人" prop="confirmName" min-width="200" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="center" label="审核日期" prop="confirmTime" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column align="center" label="操作" width="160" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="toForm(scope.row)">编辑</el-button>
|
|
@@ -148,15 +152,29 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getList } from "@/api/supply/engin";
|
|
|
+import { getOrderList } from "@/api/supply/engin";
|
|
|
import HomeDetail from "@/views/supply/engin/components/home_detail";
|
|
|
import HomeForm from "@/views/supply/engin/components/home_form";
|
|
|
|
|
|
+let that
|
|
|
export default {
|
|
|
components: {
|
|
|
HomeDetail,
|
|
|
HomeForm,
|
|
|
},
|
|
|
+ filters: {
|
|
|
+ statusFilter(val) {
|
|
|
+ let obj = that.statusList.find(o => o.value == val);
|
|
|
+ return obj ? obj.label : ''
|
|
|
+ },
|
|
|
+ typeFilter(val) {
|
|
|
+ const MAP = {
|
|
|
+ TRADE: '商用',
|
|
|
+ HOME: '家用',
|
|
|
+ }
|
|
|
+ return MAP[val];
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
currentPage: 1, // 当前页码
|
|
@@ -166,13 +184,21 @@ export default {
|
|
|
listLoading: false, // 列表加载loading
|
|
|
screenForm: { // 筛选表单数据
|
|
|
orderNum: '',
|
|
|
- jxsName: '',
|
|
|
- chName: '',
|
|
|
- model: '',
|
|
|
+ enginNum: '',
|
|
|
+ loginNum: '',
|
|
|
+ enginName: '',
|
|
|
date: '',
|
|
|
- jxsNum: '',
|
|
|
- status: '',
|
|
|
+ saleType: '',
|
|
|
+ createMan: '',
|
|
|
+ examineMan: '',
|
|
|
},
|
|
|
+ statusList: [
|
|
|
+ { label: '已保存', value: 'SAVE' },
|
|
|
+ { label: '待审核', value: 'WAIT' },
|
|
|
+ { label: '审核通过', value: 'OK' },
|
|
|
+ { label: '审核驳回', value: 'FAIL' },
|
|
|
+ { label: '已关闭', value: 'CLOSE' },
|
|
|
+ ],
|
|
|
|
|
|
queryItem: {},
|
|
|
isShowDetail: false,
|
|
@@ -183,18 +209,24 @@ export default {
|
|
|
computed: {
|
|
|
exParams() {
|
|
|
return {
|
|
|
- retreatOrderNo: this.screenForm.orderNum,
|
|
|
- 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:工程发货单
|
|
|
+ enginOrderNo: this.screenForm.orderNum,
|
|
|
+ refProjectNo: this.screenForm.enginNum,
|
|
|
+ refEnginRecordNo: this.screenForm.loginNum,
|
|
|
+ refProjectName: this.screenForm.enginName,
|
|
|
+ startCreateTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
+ endCreateTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
|
+ saleTypeId: this.screenForm.saleType,
|
|
|
+ createName: this.screenForm.createMan,
|
|
|
+ confirmName: this.screenForm.examineMan,
|
|
|
+ enginOrderType: 'HOME', // TRADE=商用 HOME=家用
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
|
|
|
+ beforeCreate() {
|
|
|
+ that = this;
|
|
|
+ },
|
|
|
+
|
|
|
created() {
|
|
|
this.getList();
|
|
|
},
|
|
@@ -216,16 +248,18 @@ export default {
|
|
|
let params = {
|
|
|
pageNum: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
- retreatOrderNo: this.screenForm.orderNum,
|
|
|
- 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:工程发货单
|
|
|
+ enginOrderNo: this.screenForm.orderNum,
|
|
|
+ refProjectNo: this.screenForm.enginNum,
|
|
|
+ refEnginRecordNo: this.screenForm.loginNum,
|
|
|
+ refProjectName: this.screenForm.enginName,
|
|
|
+ startCreateTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
+ endCreateTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
|
+ saleTypeId: this.screenForm.saleType,
|
|
|
+ createName: this.screenForm.createMan,
|
|
|
+ confirmName: this.screenForm.examineMan,
|
|
|
+ enginOrderType: 'HOME', // TRADE=商用 HOME=家用
|
|
|
};
|
|
|
- getList(params).then((res) => {
|
|
|
+ getOrderList(params).then((res) => {
|
|
|
this.dataList = res.data.records;
|
|
|
this.listTotal = res.data.total;
|
|
|
this.listLoading = false;
|