|
@@ -3,20 +3,30 @@
|
|
|
<div v-show="!isShowDetail">
|
|
|
<!-- 筛选条件 -->
|
|
|
<div class="screen-container">
|
|
|
- <el-form ref="screenForm" :model="screenForm" label-width="90px" size="small" label-position="left">
|
|
|
+ <el-form ref="screenForm" :model="screenForm" label-width="100px" size="small" label-position="left">
|
|
|
<el-row :gutter="20">
|
|
|
<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="orderNum">
|
|
|
+ <el-input v-model="screenForm.orderNum" placeholder="请输入订单号"></el-input>
|
|
|
</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="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="date">
|
|
|
+ <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">
|
|
|
+ <el-form-item label="订单日期" prop="date">
|
|
|
<el-date-picker
|
|
|
v-model="screenForm.date"
|
|
|
type="datetimerange"
|
|
@@ -28,6 +38,16 @@
|
|
|
</el-date-picker>
|
|
|
</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">
|
|
|
+ <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-form-item label="">
|
|
@@ -47,25 +67,35 @@
|
|
|
</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="aaa" 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="aaa" 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="aaa" 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="aaa" 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="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="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="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="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="操作" width="120" fixed="right">
|
|
|
+ <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>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.documentStatus | orderStatusFilter }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="center" label="关闭状态" prop="cancelStatus" min-width="100" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ {{ scope.row.cancelStatus | closeStatusFilter }}
|
|
|
+ </template>
|
|
|
+ </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="操作" width="100" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button type="text" @click="toDetail('detail', scope.row)">详情</el-button>
|
|
|
+ <el-button type="text" @click="toDetail(scope.row)">详情</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -86,19 +116,40 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <LocationDetail :listItem="queryItem" v-if="isShowDetail" @backListFormDetail="backList" />
|
|
|
+ <AdjustDetail :listItem="queryItem" v-if="isShowDetail" @backListFormDetail="backList" />
|
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { COMMON_SELECT } from '@/utils/select_data'
|
|
|
-import { getList } from "@/api/supply/allot";
|
|
|
-import LocationDetail from "@/views/supply/allot/components/location_detail";
|
|
|
+import { getList } from "@/api/supply/adjust";
|
|
|
+import AdjustDetail from "@/views/supply/adjust/components/adjust_detail";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
- LocationDetail,
|
|
|
+ AdjustDetail,
|
|
|
+ },
|
|
|
+ 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];
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -109,19 +160,10 @@ export default {
|
|
|
listLoading: false, // 列表加载loading
|
|
|
screenForm: { // 筛选表单数据
|
|
|
orderNum: '',
|
|
|
- jxsName: '',
|
|
|
- chName: '',
|
|
|
- model: '',
|
|
|
+ wlName: '',
|
|
|
date: '',
|
|
|
- jxsNum: '',
|
|
|
- status: '',
|
|
|
},
|
|
|
- select_status: [ // 筛选字段 - 状态
|
|
|
- { label: '正常', value: true },
|
|
|
- { label: '冻结', value: false }
|
|
|
- ],
|
|
|
|
|
|
- jumpType: '',
|
|
|
queryItem: {},
|
|
|
}
|
|
|
},
|
|
@@ -129,15 +171,14 @@ export default {
|
|
|
computed: {
|
|
|
exParams() {
|
|
|
return {
|
|
|
- userName: this.screenForm.account,
|
|
|
- nickName: this.screenForm.nickName,
|
|
|
- linkPhone: this.screenForm.phone,
|
|
|
- email: this.screenForm.email,
|
|
|
- status: this.screenForm.status,
|
|
|
+ billNo: this.screenForm.orderNum,
|
|
|
+ materialName: this.screenForm.wlName,
|
|
|
+ startTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
+ endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
|
}
|
|
|
},
|
|
|
isShowDetail() {
|
|
|
- return this.queryItem.hasOwnProperty('adminUserId') && this.jumpType == 'detail';
|
|
|
+ return this.queryItem.hasOwnProperty('id');
|
|
|
},
|
|
|
},
|
|
|
|
|
@@ -162,11 +203,10 @@ export default {
|
|
|
let params = {
|
|
|
pageNum: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
- userName: this.screenForm.account,
|
|
|
- nickName: this.screenForm.nickName,
|
|
|
- linkPhone: this.screenForm.phone,
|
|
|
- email: this.screenForm.email,
|
|
|
- status: this.screenForm.status,
|
|
|
+ billNo: this.screenForm.orderNum,
|
|
|
+ materialName: this.screenForm.wlName,
|
|
|
+ startTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
+ endTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
|
};
|
|
|
getList(params).then((res) => {
|
|
|
this.dataList = res.data.records;
|
|
@@ -202,13 +242,11 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 进入详情
|
|
|
- toDetail(type, item) {
|
|
|
- this.jumpType = type;
|
|
|
+ toDetail(item) {
|
|
|
this.queryItem = item;
|
|
|
},
|
|
|
|
|
|
backList() {
|
|
|
- this.jumpType = '';
|
|
|
this.queryItem = {};
|
|
|
},
|
|
|
}
|