|
@@ -1,35 +1,62 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <div v-show="!isShowDetail && !isShowForm && !isShowExamine && !isShowReturn">
|
|
|
+ <div
|
|
|
+ v-show="!isShowDetail && !isShowForm && !isShowExamine && !isShowReturn"
|
|
|
+ >
|
|
|
<!-- 筛选条件 -->
|
|
|
<div class="screen-container">
|
|
|
- <el-form ref="screenForm" :model="screenForm" label-width="100px" size="mini" label-position="left">
|
|
|
+ <el-form
|
|
|
+ ref="screenForm"
|
|
|
+ :model="screenForm"
|
|
|
+ label-width="100px"
|
|
|
+ size="mini"
|
|
|
+ label-position="left"
|
|
|
+ >
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :xs="24" :sm="24" :lg="24">
|
|
|
<el-form-item prop="status" label-width="0">
|
|
|
- <el-checkbox-group v-model="screenForm.status" @change="getList()">
|
|
|
- <el-checkbox-button v-for="(item, index) in statusList" :key="index" :label="item.value">{{ item.label }}</el-checkbox-button>
|
|
|
+ <el-checkbox-group
|
|
|
+ v-model="screenForm.status"
|
|
|
+ @change="getList()"
|
|
|
+ >
|
|
|
+ <el-checkbox-button
|
|
|
+ v-for="(item, index) in statusList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.value"
|
|
|
+ >{{ item.label }}</el-checkbox-button>
|
|
|
</el-checkbox-group>
|
|
|
</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
|
|
|
+ v-model="screenForm.orderNum"
|
|
|
+ placeholder="请输入工程订单号"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="工程编码" prop="enginNum">
|
|
|
- <el-input v-model="screenForm.enginNum" placeholder="请输入工程编码" />
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.enginNum"
|
|
|
+ placeholder="请输入工程编码"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="工程登录编号" prop="loginNum">
|
|
|
- <el-input v-model="screenForm.loginNum" placeholder="请输入工程登录编号" />
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.loginNum"
|
|
|
+ placeholder="请输入工程登录编号"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="行业类别" prop="refTradeCategory">
|
|
|
- <el-input v-model="screenForm.refTradeCategory" placeholder="请输入项目名称" />
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.refTradeCategory"
|
|
|
+ placeholder="请输入项目名称"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -38,7 +65,7 @@
|
|
|
v-model="screenForm.date"
|
|
|
type="datetimerange"
|
|
|
range-separator="至"
|
|
|
- style="width: 100%;"
|
|
|
+ style="width: 100%"
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期"
|
|
@@ -47,24 +74,46 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="销售类型" prop="saleType">
|
|
|
- <el-select v-model="screenForm.saleType" placeholder="选择销售类型" style="width: 100%" clearable>
|
|
|
- <el-option v-for="item in salesTypeList" :key="item.id" :label="item.saleName" :value="item.id" />
|
|
|
+ <el-select
|
|
|
+ v-model="screenForm.saleType"
|
|
|
+ placeholder="选择销售类型"
|
|
|
+ style="width: 100%"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in salesTypeList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.saleName"
|
|
|
+ :value="item.id"
|
|
|
+ />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="制单人" prop="createMan">
|
|
|
- <el-input v-model="screenForm.createMan" placeholder="请输入制单人" />
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.createMan"
|
|
|
+ placeholder="请输入制单人"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="审核人" prop="examineMan">
|
|
|
- <el-input v-model="screenForm.examineMan" placeholder="请输入审核人" />
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.examineMan"
|
|
|
+ placeholder="请输入审核人"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="表头业务员" prop="salesMan">
|
|
|
- <el-select v-model="screenForm.salesMan" placeholder="选择表头业务员" clearable filterable style="width: 100%">
|
|
|
+ <el-select
|
|
|
+ v-model="screenForm.salesMan"
|
|
|
+ placeholder="选择表头业务员"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
<el-option
|
|
|
v-for="item in salesmanList"
|
|
|
:key="item.adminUserId"
|
|
@@ -76,27 +125,42 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="使用单位" prop="refUseUnit">
|
|
|
- <el-input v-model="screenForm.refUseUnit" placeholder="请输入使用单位" />
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.refUseUnit"
|
|
|
+ placeholder="请输入使用单位"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="产品编码" prop="materialOldNumber">
|
|
|
- <el-input v-model="screenForm.materialOldNumber" placeholder="请输入产品编码" />
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.materialOldNumber"
|
|
|
+ placeholder="请输入产品编码"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="规格型号" prop="specification">
|
|
|
- <el-input v-model="screenForm.specification" placeholder="请输入规格型号" />
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.specification"
|
|
|
+ placeholder="请输入规格型号"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="经销商" prop="customerKeyword">
|
|
|
- <el-input v-model="screenForm.customerKeyword" placeholder="请输入经销商" />
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.customerKeyword"
|
|
|
+ placeholder="请输入经销商"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="区域" prop="refRegionWork">
|
|
|
- <el-input v-model="screenForm.refRegionWork" placeholder="请输入区域" />
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.refRegionWork"
|
|
|
+ placeholder="请输入区域"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
@@ -106,22 +170,36 @@
|
|
|
</el-col>
|
|
|
<el-col v-if="!isCustomer" :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="格力内部备注" prop="geLiInerNote">
|
|
|
- <el-input v-model="screenForm.geLiInerNote" placeholder="格力内部备注" />
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.geLiInerNote"
|
|
|
+ placeholder="格力内部备注"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="跨区厂编号" prop="refFactoryNo">
|
|
|
- <el-input v-model="screenForm.refFactoryNo" placeholder="跨区厂编号" />
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.refFactoryNo"
|
|
|
+ placeholder="跨区厂编号"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="购买单位" prop="refBuyUnitName">
|
|
|
- <el-input v-model="screenForm.refBuyUnitName" placeholder="购买单位" />
|
|
|
+ <el-input
|
|
|
+ v-model="screenForm.refBuyUnitName"
|
|
|
+ placeholder="购买单位"
|
|
|
+ />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="保证函" prop="refPromiseProvide">
|
|
|
- <el-select v-model="screenForm.refPromiseProvide" placeholder="保证函" filterable style="width: 100%">
|
|
|
+ <el-select
|
|
|
+ v-model="screenForm.refPromiseProvide"
|
|
|
+ placeholder="保证函"
|
|
|
+ filterable
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
<el-option label="全部" value="" />
|
|
|
<el-option label="未保证" value="未保证" />
|
|
|
<el-option label="已保证" value="已保证" />
|
|
@@ -130,7 +208,11 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="是否直调" prop="isDirectTransfer">
|
|
|
- <el-select v-model="screenForm.isDirectTransfer" placeholder="选择是否直" style="width: 100%">
|
|
|
+ <el-select
|
|
|
+ v-model="screenForm.isDirectTransfer"
|
|
|
+ placeholder="选择是否直"
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
<el-option :value="null" label="默认" />
|
|
|
<el-option
|
|
|
v-for="item in transfer"
|
|
@@ -141,10 +223,32 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :xs="24" :sm="!isCustomer ? 12 : 24" :lg="!isCustomer ? 24 : 24" class="tr">
|
|
|
+
|
|
|
+ <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <el-form-item label="订单日期" prop="orderTime">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="screenForm.orderTime"
|
|
|
+ type="datetimerange"
|
|
|
+ range-separator="至"
|
|
|
+ style="width: 100%"
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col
|
|
|
+ :xs="24"
|
|
|
+ :sm="!isCustomer ? 12 : 24"
|
|
|
+ :lg="!isCustomer ? 24 : 24"
|
|
|
+ class="tr"
|
|
|
+ >
|
|
|
<el-form-item label="">
|
|
|
<el-button @click="resetScreenForm">清空</el-button>
|
|
|
- <el-button type="primary" @click="submitScreenForm">搜索</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="submitScreenForm"
|
|
|
+ >搜索</el-button>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -154,11 +258,27 @@
|
|
|
<div class="mymain-container">
|
|
|
<div class="btn-group clearfix">
|
|
|
<div class="fl">
|
|
|
- <el-button v-if="$checkBtnRole('add', $route.meta.roles)" size="mini" type="primary" icon="el-icon-plus" @click="toForm()">新增</el-button>
|
|
|
- <el-button v-if="$checkBtnRole('del', $route.meta.roles)" size="mini" type="danger" icon="el-icon-minus" :disabled="multipleSelection.length < 1" @click="batchDelete()">批量删除</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="$checkBtnRole('add', $route.meta.roles)"
|
|
|
+ size="mini"
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-plus"
|
|
|
+ @click="toForm()"
|
|
|
+ >新增</el-button>
|
|
|
+ <el-button
|
|
|
+ v-if="$checkBtnRole('del', $route.meta.roles)"
|
|
|
+ size="mini"
|
|
|
+ type="danger"
|
|
|
+ icon="el-icon-minus"
|
|
|
+ :disabled="multipleSelection.length < 1"
|
|
|
+ @click="batchDelete()"
|
|
|
+ >批量删除</el-button>
|
|
|
</div>
|
|
|
<div class="fr">
|
|
|
- <ExportButton :ex-url="'engin-order/export'" :ex-params="exParams" />
|
|
|
+ <ExportButton
|
|
|
+ :ex-url="'engin-order/export'"
|
|
|
+ :ex-params="exParams"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="table">
|
|
@@ -175,196 +295,479 @@
|
|
|
@selection-change="handleSelectionChange"
|
|
|
>
|
|
|
<el-table-column align="center" type="selection" width="55" />
|
|
|
- <el-table-column align="left" label="审核状态" prop="examineStatus" min-width="100" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ 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="left" label="工程订单号" prop="enginOrderNo" min-width="140" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="工程订单号"
|
|
|
+ prop="enginOrderNo"
|
|
|
+ min-width="140"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copy-text="scope.row.enginOrderNo" />
|
|
|
<span>{{ scope.row.enginOrderNo }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="订单日期" prop="orderDate" min-width="160" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="订单日期"
|
|
|
+ prop="orderDate"
|
|
|
+ min-width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<span>{{ scope.row.orderDate }}</span>
|
|
|
- <el-button v-if="$checkBtnRole('date', $route.meta.roles) && (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'WAIT')" type="text" icon="el-icon-edit" style="padding: 0; margin-left: 4px" @click="editDate(scope.row)" />
|
|
|
+ <el-button
|
|
|
+ v-if="
|
|
|
+ $checkBtnRole('date', $route.meta.roles) &&
|
|
|
+ (scope.row.examineStatus === 'SAVE' ||
|
|
|
+ scope.row.examineStatus === 'WAIT')
|
|
|
+ "
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ style="padding: 0; margin-left: 4px"
|
|
|
+ @click="editDate(scope.row)"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="制单日期" prop="createTime" min-width="160" show-overflow-tooltip />
|
|
|
- <el-table-column align="left" label="制单人" prop="createName" min-width="100" show-overflow-tooltip />
|
|
|
- <el-table-column align="left" label="工程登录编号" prop="refEnginRecordNo" min-width="160" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="制单日期"
|
|
|
+ prop="createTime"
|
|
|
+ min-width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="制单人"
|
|
|
+ prop="createName"
|
|
|
+ min-width="100"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="工程登录编号"
|
|
|
+ prop="refEnginRecordNo"
|
|
|
+ min-width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copy-text="scope.row.refEnginRecordNo" />
|
|
|
<span>{{ scope.row.refEnginRecordNo }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="使用单位" prop="refUseUnit" min-width="160" show-overflow-tooltip />
|
|
|
- <el-table-column align="left" label="购买单位" prop="refBuyUnitName" min-width="160" show-overflow-tooltip />
|
|
|
- <el-table-column align="left" label="保证函" prop="refPromiseProvide" min-width="100" show-overflow-tooltip />
|
|
|
-
|
|
|
- <el-table-column align="left" label="跨区厂编号" prop="refFactoryNo" min-width="160" show-overflow-tooltip />
|
|
|
- <el-table-column align="left" label="区域" prop="refRegionWork" min-width="160" show-overflow-tooltip />
|
|
|
- <el-table-column align="left" label="销售类型" prop="saleTypeName" min-width="120" show-overflow-tooltip />
|
|
|
- <el-table-column align="left" label="物料编码" prop="materialNumber" min-width="120" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="使用单位"
|
|
|
+ prop="refUseUnit"
|
|
|
+ min-width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="购买单位"
|
|
|
+ prop="refBuyUnitName"
|
|
|
+ min-width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="保证函"
|
|
|
+ prop="refPromiseProvide"
|
|
|
+ min-width="100"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="跨区厂编号"
|
|
|
+ prop="refFactoryNo"
|
|
|
+ min-width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="区域"
|
|
|
+ prop="refRegionWork"
|
|
|
+ min-width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="销售类型"
|
|
|
+ prop="saleTypeName"
|
|
|
+ min-width="120"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="物料编码"
|
|
|
+ prop="materialNumber"
|
|
|
+ min-width="120"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copy-text="scope.row.materialNumber" />
|
|
|
<span>{{ scope.row.materialNumber }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="产品编码" prop="materialOldNumber" min-width="140" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="产品编码"
|
|
|
+ prop="materialOldNumber"
|
|
|
+ min-width="140"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copy-text="scope.row.materialOldNumber" />
|
|
|
<span>{{ scope.row.materialOldNumber }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="产品名称"
|
|
|
+ prop="materialName"
|
|
|
+ min-width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copy-text="scope.row.materialName" />
|
|
|
<span>{{ scope.row.materialName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="规格型号" prop="specification" min-width="350" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="规格型号"
|
|
|
+ prop="specification"
|
|
|
+ min-width="350"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copy-text="scope.row.specification" />
|
|
|
<span>{{ scope.row.specification }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="right" label="总数量" prop="qty" min-width="100" sortable show-overflow-tooltip />
|
|
|
- <el-table-column align="right" label="单价" prop="price" min-width="100" sortable show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="right"
|
|
|
+ label="总数量"
|
|
|
+ prop="qty"
|
|
|
+ min-width="100"
|
|
|
+ sortable
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="right"
|
|
|
+ label="单价"
|
|
|
+ prop="price"
|
|
|
+ min-width="100"
|
|
|
+ sortable
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.price | numToFixed }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="right" label="订单金额" prop="totalAmount" min-width="110" sortable show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="right"
|
|
|
+ label="订单金额"
|
|
|
+ prop="totalAmount"
|
|
|
+ min-width="110"
|
|
|
+ sortable
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.totalAmount | numToFixed }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="right" label="实付金额" prop="payAmount" min-width="110" sortable show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="right"
|
|
|
+ label="实付金额"
|
|
|
+ prop="payAmount"
|
|
|
+ min-width="110"
|
|
|
+ sortable
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.payAmount | numToFixed }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="100" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="经销商编码"
|
|
|
+ prop="customerNumber"
|
|
|
+ min-width="100"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copy-text="scope.row.customerNumber" />
|
|
|
<span>{{ scope.row.customerNumber }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="经销商名称" prop="customerName" min-width="250" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="经销商名称"
|
|
|
+ prop="customerName"
|
|
|
+ min-width="250"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copy-text="scope.row.customerName" />
|
|
|
<span>{{ scope.row.customerName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="right" label="发货数量" prop="retiredQty" min-width="110" sortable show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="right"
|
|
|
+ label="发货数量"
|
|
|
+ prop="retiredQty"
|
|
|
+ min-width="110"
|
|
|
+ sortable
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.applySendQty }}
|
|
|
- </template>
|
|
|
- </el-table-column><el-table-column align="right" label="退货数量" prop="refundProductQty" min-width="110" sortable show-overflow-tooltip>
|
|
|
+ </template> </el-table-column><el-table-column
|
|
|
+ align="right"
|
|
|
+ label="退货数量"
|
|
|
+ prop="refundProductQty"
|
|
|
+ min-width="110"
|
|
|
+ sortable
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.refundProductQty }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="是否直调" prop="isDirectTransfer" min-width="100" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="是否直调"
|
|
|
+ prop="isDirectTransfer"
|
|
|
+ min-width="100"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.row.isDirectTransfer ? '是':'否' }}
|
|
|
+ {{ scope.row.isDirectTransfer ? "是" : "否" }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="right" label="直调数量" prop="directTransferQty" min-width="110" sortable show-overflow-tooltip />
|
|
|
- <el-table-column align="right" label="出库数量" prop="hasSendQty" min-width="110" sortable show-overflow-tooltip />
|
|
|
-
|
|
|
- <el-table-column align="left" label="行业类别" prop="refTradeCategory" min-width="160" show-overflow-tooltip />
|
|
|
- <el-table-column align="left" label="备注" prop="remark" min-width="160" show-overflow-tooltip />
|
|
|
- <el-table-column v-if="!isCustomer" align="left" label="格力内部备注" prop="geLiInerNote" min-width="160" show-overflow-tooltip />
|
|
|
- <el-table-column align="left" label="返利钱包" prop="customerWalletName2" min-width="100" show-overflow-tooltip />
|
|
|
- <el-table-column align="right" label="使用返利金额" prop="rebateAmount" min-width="120" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="right"
|
|
|
+ label="直调数量"
|
|
|
+ prop="directTransferQty"
|
|
|
+ min-width="110"
|
|
|
+ sortable
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="right"
|
|
|
+ label="出库数量"
|
|
|
+ prop="hasSendQty"
|
|
|
+ min-width="110"
|
|
|
+ sortable
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="行业类别"
|
|
|
+ prop="refTradeCategory"
|
|
|
+ min-width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="备注"
|
|
|
+ prop="remark"
|
|
|
+ min-width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ v-if="!isCustomer"
|
|
|
+ align="left"
|
|
|
+ label="格力内部备注"
|
|
|
+ prop="geLiInerNote"
|
|
|
+ min-width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="返利钱包"
|
|
|
+ prop="customerWalletName2"
|
|
|
+ min-width="100"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="right"
|
|
|
+ label="使用返利金额"
|
|
|
+ prop="rebateAmount"
|
|
|
+ min-width="120"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
- <div v-if="scope.row.examineStatus === 'OK'">{{ scope.row.payRebateAmount | numToFixed }}</div>
|
|
|
+ <div v-if="scope.row.examineStatus === 'OK'">
|
|
|
+ {{ scope.row.payRebateAmount | numToFixed }}
|
|
|
+ </div>
|
|
|
<div v-else>{{ scope.row.rebateAmount | numToFixed }}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="right" label="格力折扣" prop="discAmount" min-width="110" sortable show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="right"
|
|
|
+ label="格力折扣"
|
|
|
+ prop="discAmount"
|
|
|
+ min-width="110"
|
|
|
+ sortable
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.discAmount | numToFixed }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="备注" prop="remark" min-width="160" show-overflow-tooltip />
|
|
|
- <el-table-column align="left" label="表头业务员" prop="serviceName" min-width="100" show-overflow-tooltip />
|
|
|
- <el-table-column align="left" label="表体业务员" prop="itemServiceName" min-width="100" show-overflow-tooltip />
|
|
|
- <el-table-column align="left" label="审核人" prop="confirmName" min-width="100" show-overflow-tooltip />
|
|
|
- <el-table-column align="left" label="审核日期" prop="confirmTime" min-width="160" show-overflow-tooltip />
|
|
|
- <el-table-column align="left" label="订单类型" prop="enginOrderType" min-width="100" show-overflow-tooltip>
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="备注"
|
|
|
+ prop="remark"
|
|
|
+ min-width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="表头业务员"
|
|
|
+ prop="serviceName"
|
|
|
+ min-width="100"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="表体业务员"
|
|
|
+ prop="itemServiceName"
|
|
|
+ min-width="100"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="审核人"
|
|
|
+ prop="confirmName"
|
|
|
+ min-width="100"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="审核日期"
|
|
|
+ prop="confirmTime"
|
|
|
+ min-width="160"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="订单类型"
|
|
|
+ prop="enginOrderType"
|
|
|
+ min-width="100"
|
|
|
+ show-overflow-tooltip
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
{{ scope.row.enginOrderType | typeFilter }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="单位" prop="unit" min-width="100" show-overflow-tooltip />
|
|
|
- <el-table-column align="center" label="操作" width="220" fixed="right">
|
|
|
+ <el-table-column
|
|
|
+ align="left"
|
|
|
+ label="单位"
|
|
|
+ prop="unit"
|
|
|
+ min-width="100"
|
|
|
+ show-overflow-tooltip
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ align="center"
|
|
|
+ label="操作"
|
|
|
+ width="220"
|
|
|
+ fixed="right"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<el-popconfirm
|
|
|
v-if="scope.row.examineStatus === 'SAVE'"
|
|
|
- style="margin-right: 10px;"
|
|
|
+ style="margin-right: 10px"
|
|
|
title="确定申请吗?"
|
|
|
- @onConfirm="handleSubmit(scope.row.parentId,scope.row)"
|
|
|
+ @onConfirm="handleSubmit(scope.row.parentId, scope.row)"
|
|
|
>
|
|
|
<el-button slot="reference" type="text">申请</el-button>
|
|
|
</el-popconfirm>
|
|
|
<el-popconfirm
|
|
|
v-if="scope.row.examineStatus === 'WAIT'"
|
|
|
- style="margin-right: 10px;"
|
|
|
+ style="margin-right: 10px"
|
|
|
title="确定撤回吗?"
|
|
|
- @onConfirm="handleWithdraw(scope.row.parentId,scope.row)"
|
|
|
+ @onConfirm="handleWithdraw(scope.row.parentId, scope.row)"
|
|
|
>
|
|
|
<el-button slot="reference" type="text">撤回</el-button>
|
|
|
</el-popconfirm>
|
|
|
<el-popconfirm
|
|
|
- v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'OK'"
|
|
|
- style="margin-right: 10px;"
|
|
|
+ v-if="
|
|
|
+ $checkBtnRole('examine', $route.meta.roles) &&
|
|
|
+ scope.row.examineStatus === 'OK'
|
|
|
+ "
|
|
|
+ style="margin-right: 10px"
|
|
|
title="确定弃审吗?"
|
|
|
- @onConfirm="handleAbandon(scope.row.parentId,scope.row)"
|
|
|
+ @onConfirm="handleAbandon(scope.row.parentId, scope.row)"
|
|
|
>
|
|
|
<el-button slot="reference" type="text">弃审</el-button>
|
|
|
</el-popconfirm>
|
|
|
<el-button
|
|
|
- v-if="$checkBtnRole('edit', $route.meta.roles) && (scope.row.examineStatus === 'SAVE' || scope.row.examineStatus === 'FAIL')"
|
|
|
+ v-if="
|
|
|
+ $checkBtnRole('edit', $route.meta.roles) &&
|
|
|
+ (scope.row.examineStatus === 'SAVE' ||
|
|
|
+ scope.row.examineStatus === 'FAIL')
|
|
|
+ "
|
|
|
type="text"
|
|
|
@click="toForm(scope.row)"
|
|
|
>
|
|
|
编辑
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
- v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus === 'WAIT'"
|
|
|
+ v-if="
|
|
|
+ $checkBtnRole('examine', $route.meta.roles) &&
|
|
|
+ scope.row.examineStatus === 'WAIT'
|
|
|
+ "
|
|
|
type="text"
|
|
|
@click="toExamine(scope.row)"
|
|
|
>
|
|
|
审批
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
- v-if="$checkBtnRole('examine', $route.meta.roles) && scope.row.examineStatus !== 'FAIL'"
|
|
|
+ v-if="
|
|
|
+ $checkBtnRole('examine', $route.meta.roles) &&
|
|
|
+ scope.row.examineStatus !== 'FAIL'
|
|
|
+ "
|
|
|
type="text"
|
|
|
@click="toReturn(scope.row)"
|
|
|
>
|
|
|
退订
|
|
|
</el-button>
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- @click="toDetail(scope.row)"
|
|
|
- >
|
|
|
+ <el-button type="text" @click="toDetail(scope.row)">
|
|
|
详情
|
|
|
</el-button>
|
|
|
<el-popconfirm
|
|
|
- v-if="$checkBtnRole('del', $route.meta.roles) && scope.row.examineStatus !== 'OK'"
|
|
|
- style="margin-left: 10px;"
|
|
|
+ v-if="
|
|
|
+ $checkBtnRole('del', $route.meta.roles) &&
|
|
|
+ scope.row.examineStatus !== 'OK'
|
|
|
+ "
|
|
|
+ style="margin-left: 10px"
|
|
|
title="确定删除吗?"
|
|
|
- @onConfirm="handleDelete(scope.row.parentId,scope.row)"
|
|
|
+ @onConfirm="handleDelete(scope.row.parentId, scope.row)"
|
|
|
>
|
|
|
- <el-button slot="reference" type="text" style="color: #f56c6c;">删除</el-button>
|
|
|
+ <el-button
|
|
|
+ slot="reference"
|
|
|
+ type="text"
|
|
|
+ style="color: #f56c6c"
|
|
|
+ >删除</el-button>
|
|
|
</el-popconfirm>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -386,13 +789,31 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <EditDateDialog :is-show.sync="isShowEditDateDialog" :date-form.sync="dateForm" />
|
|
|
-
|
|
|
- <HomeDetail v-if="isShowDetail" :list-item="queryItem" @backListFormDetail="backList" />
|
|
|
- <HomeForm v-if="isShowForm" :list-item="queryItem" @backListFormDetail="backList" />
|
|
|
- <HomeExamine v-if="isShowExamine" :list-item="queryItem" @backListFormDetail="backList" />
|
|
|
- <HomeReturn v-if="isShowReturn" :list-item="queryItem" @backListFormDetail="backList" />
|
|
|
+ <EditDateDialog
|
|
|
+ :is-show.sync="isShowEditDateDialog"
|
|
|
+ :date-form.sync="dateForm"
|
|
|
+ />
|
|
|
|
|
|
+ <HomeDetail
|
|
|
+ v-if="isShowDetail"
|
|
|
+ :list-item="queryItem"
|
|
|
+ @backListFormDetail="backList"
|
|
|
+ />
|
|
|
+ <HomeForm
|
|
|
+ v-if="isShowForm"
|
|
|
+ :list-item="queryItem"
|
|
|
+ @backListFormDetail="backList"
|
|
|
+ />
|
|
|
+ <HomeExamine
|
|
|
+ v-if="isShowExamine"
|
|
|
+ :list-item="queryItem"
|
|
|
+ @backListFormDetail="backList"
|
|
|
+ />
|
|
|
+ <HomeReturn
|
|
|
+ v-if="isShowReturn"
|
|
|
+ :list-item="queryItem"
|
|
|
+ @backListFormDetail="backList"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -455,7 +876,8 @@ export default {
|
|
|
refFactoryNo: '',
|
|
|
refBuyUnitName: '',
|
|
|
refPromiseProvide: '',
|
|
|
- isDirectTransfer: null
|
|
|
+ isDirectTransfer: null,
|
|
|
+ orderTime: []
|
|
|
|
|
|
},
|
|
|
statusList: [
|
|
@@ -500,6 +922,8 @@ export default {
|
|
|
refTradeCategory: this.screenForm.refTradeCategory,
|
|
|
startCreateTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
endCreateTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
|
+ startOrderTime: this.screenForm.orderTime ? this.screenForm.orderTime[0] : '',
|
|
|
+ endOrderTime: this.screenForm.orderTime ? this.screenForm.orderTime[1] : '',
|
|
|
saleTypeId: this.screenForm.saleType,
|
|
|
createName: this.screenForm.createMan,
|
|
|
confirmName: this.screenForm.examineMan,
|
|
@@ -570,6 +994,8 @@ export default {
|
|
|
refTradeCategory: this.screenForm.refTradeCategory,
|
|
|
startCreateTime: this.screenForm.date ? this.screenForm.date[0] : '',
|
|
|
endCreateTime: this.screenForm.date ? this.screenForm.date[1] : '',
|
|
|
+ startOrderTime: this.screenForm.orderTime ? this.screenForm.orderTime[0] : '',
|
|
|
+ endOrderTime: this.screenForm.orderTime ? this.screenForm.orderTime[1] : '',
|
|
|
saleTypeId: this.screenForm.saleType,
|
|
|
createName: this.screenForm.createMan,
|
|
|
confirmName: this.screenForm.examineMan,
|
|
@@ -738,6 +1164,4 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped>
|
|
|
-
|
|
|
-</style>
|
|
|
+<style lang="scss" scoped></style>
|