|
@@ -3,26 +3,29 @@
|
|
<div v-show="!isShowDetail">
|
|
<div v-show="!isShowDetail">
|
|
<!-- 筛选条件 -->
|
|
<!-- 筛选条件 -->
|
|
<div class="screen-container">
|
|
<div class="screen-container">
|
|
- <el-form ref="screenForm" :model="screenForm" label-width="100px" size="small" label-position="left">
|
|
|
|
|
|
+ <el-form ref="screenForm" :model="screenForm" label-width="70px" size="small" label-position="left">
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<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="deliverNum">
|
|
|
|
+ <el-input v-model="screenForm.deliverNum" placeholder="请输入发货单号"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
- <el-form-item label="销售政策编号" prop="wlName">
|
|
|
|
- <el-input v-model="screenForm.wlName" placeholder="请输入销售政策编号"></el-input>
|
|
|
|
|
|
+ <el-form-item label="订单号" prop="orderNum">
|
|
|
|
+ <el-input v-model="screenForm.orderNum" placeholder="请输入订单号"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
- <el-form-item label="销售政策说明" prop="wlName">
|
|
|
|
- <el-input v-model="screenForm.wlName" placeholder="请输入销售政策说明"></el-input>
|
|
|
|
|
|
+ <el-form-item label="订单类型" prop="type">
|
|
|
|
+ <el-select v-model="screenForm.type" placeholder="请选择订单类型">
|
|
|
|
+ <el-option label="全部" value=""></el-option>
|
|
|
|
+ <el-option :label="item.label" :value="item.value" v-for="(item, index) in typeList" :key="index"></el-option>
|
|
|
|
+ </el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
- <el-form-item label="经销商" prop="wlName">
|
|
|
|
- <el-input v-model="screenForm.wlName" placeholder="请输入经销商"></el-input>
|
|
|
|
|
|
+ <el-form-item label="经销商" prop="dealer">
|
|
|
|
+ <el-input v-model="screenForm.dealer" placeholder="请输入经销商"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -38,18 +41,8 @@
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
|
- <el-form-item label="制表人" prop="wlName">
|
|
|
|
- <el-input v-model="screenForm.wlName" placeholder="请输入制表人"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
|
- <el-form-item label="审核人" prop="wlName">
|
|
|
|
- <el-input v-model="screenForm.wlName" placeholder="请输入审核人"></el-input>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-col>
|
|
|
|
|
|
|
|
- <el-col :xs="24" :sm="12" :lg="6" class="tr">
|
|
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="18" class="tr">
|
|
<el-form-item label="">
|
|
<el-form-item label="">
|
|
<el-button size="small" @click="resetScreenForm">清空</el-button>
|
|
<el-button size="small" @click="resetScreenForm">清空</el-button>
|
|
<el-button size="small" type="primary" @click="submitScreenForm">搜索</el-button>
|
|
<el-button size="small" type="primary" @click="submitScreenForm">搜索</el-button>
|
|
@@ -67,32 +60,30 @@
|
|
</div>
|
|
</div>
|
|
<div class="table">
|
|
<div class="table">
|
|
<el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
|
|
<el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
|
|
- <el-table-column align="center" label="单据编号" prop="billNo" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="单据类型" prop="billType" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="调拨类型" prop="transferBizType" min-width="120" show-overflow-tooltip>
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- {{ scope.row.transferBizType | allotTypeFilter }}
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column align="center" label="申请日期" prop="fDate" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="单据状态" prop="documentStatus" min-width="100" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column align="center" label="发货单号" prop="deliverNo" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="发货日期" prop="deliverDate" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="仓库" prop="correspondName" min-width="120" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="订单类型" prop="orderType" min-width="120" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ scope.row.documentStatus | orderStatusFilter }}
|
|
|
|
|
|
+ {{ scope.row.orderType | typeFilter }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" label="关闭状态" prop="cancelStatus" min-width="100" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column align="center" label="订单号" prop="orderNo" min-width="120" 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="materialName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="规格型号" prop="specification" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="计量单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="直调数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="价税合计" prop="mustTotalAmount" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="无税金额" min-width="100" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ scope.row.cancelStatus | closeStatusFilter }}
|
|
|
|
|
|
+ {{ scope.row.qty * scope.row.afterTaxPrice }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" label="物料编码" prop="materialNumber" min-width="120" 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="model" min-width="240" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="辅助属性" prop="auxPropId" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="单位" prop="baseUnitId" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="申请数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="调出仓库" prop="srcStockId" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="center" label="调入仓库" prop="destStockId" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
+ <el-table-column align="center" label="无税单价" prop="afterTaxPrice" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="备注" prop="remark" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="制表人" prop="createBy" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="center" label="制表日期" prop="createTime" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="操作" width="100" fixed="right">
|
|
<el-table-column align="center" label="操作" width="100" fixed="right">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button type="text" @click="toDetail(scope.row)">详情</el-button>
|
|
<el-button type="text" @click="toDetail(scope.row)">详情</el-button>
|
|
@@ -125,31 +116,16 @@
|
|
import { getList } from "@/api/supply/adjust";
|
|
import { getList } from "@/api/supply/adjust";
|
|
import AdjustDetail from "@/views/supply/adjust/components/adjust_detail";
|
|
import AdjustDetail from "@/views/supply/adjust/components/adjust_detail";
|
|
|
|
|
|
|
|
+let that
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
AdjustDetail,
|
|
AdjustDetail,
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
- allotTypeFilter(val) {
|
|
|
|
- const MAP = {
|
|
|
|
- InnerOrgTransfer: '组织内调拨',
|
|
|
|
- OverOrgTransfer: '跨组织调拨',
|
|
|
|
- }
|
|
|
|
- return MAP[val];
|
|
|
|
- },
|
|
|
|
- closeStatusFilter(val) {
|
|
|
|
- const MAP = {
|
|
|
|
- A: '正常',
|
|
|
|
- B: '作废',
|
|
|
|
- }
|
|
|
|
- return MAP[val];
|
|
|
|
- },
|
|
|
|
- orderStatusFilter(val) {
|
|
|
|
- const MAP = {
|
|
|
|
- C: '审核',
|
|
|
|
- }
|
|
|
|
- return MAP[val];
|
|
|
|
- },
|
|
|
|
|
|
+ typeFilter(val) {
|
|
|
|
+ let obj = that.typeList.find(o => o.value == val);
|
|
|
|
+ return obj ? obj.label : ''
|
|
|
|
+ }
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -160,11 +136,20 @@ export default {
|
|
listLoading: false, // 列表加载loading
|
|
listLoading: false, // 列表加载loading
|
|
screenForm: { // 筛选表单数据
|
|
screenForm: { // 筛选表单数据
|
|
orderNum: '',
|
|
orderNum: '',
|
|
- wlName: '',
|
|
|
|
|
|
+ deliverNum: '',
|
|
|
|
+ type: '',
|
|
|
|
+ dealer: '',
|
|
date: '',
|
|
date: '',
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ typeList: [
|
|
|
|
+ { label: '商用工程订单', value: 'TRADE' },
|
|
|
|
+ { label: '家用工程订单', value: 'HOME' },
|
|
|
|
+ { label: '零售订单', value: 'RETAIL' },
|
|
|
|
+ { label: '销售政策订单', value: 'RETAIL_POLICY' },
|
|
|
|
+ ],
|
|
|
|
+
|
|
queryItem: {},
|
|
queryItem: {},
|
|
|
|
+ isShowDetail: false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -177,9 +162,10 @@ export default {
|
|
endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- isShowDetail() {
|
|
|
|
- return this.queryItem.hasOwnProperty('id');
|
|
|
|
- },
|
|
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ beforeCreate() {
|
|
|
|
+ that = this;
|
|
},
|
|
},
|
|
|
|
|
|
created() {
|
|
created() {
|
|
@@ -203,8 +189,10 @@ export default {
|
|
let params = {
|
|
let params = {
|
|
pageNum: this.currentPage,
|
|
pageNum: this.currentPage,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
- billNo: this.screenForm.orderNum,
|
|
|
|
- materialName: this.screenForm.wlName,
|
|
|
|
|
|
+ orderNo: this.screenForm.orderNum,
|
|
|
|
+ deliverNo: this.screenForm.deliverNum,
|
|
|
|
+ customerName: this.screenForm.dealer,
|
|
|
|
+ orderType: this.screenForm.type,
|
|
startTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
startTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
};
|
|
};
|
|
@@ -244,10 +232,12 @@ export default {
|
|
// 进入详情
|
|
// 进入详情
|
|
toDetail(item) {
|
|
toDetail(item) {
|
|
this.queryItem = item;
|
|
this.queryItem = item;
|
|
|
|
+ this.isShowDetail = true;
|
|
},
|
|
},
|
|
|
|
|
|
backList() {
|
|
backList() {
|
|
this.queryItem = {};
|
|
this.queryItem = {};
|
|
|
|
+ this.isShowDetail = false;
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|
|
}
|