|
@@ -1,6 +1,5 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
-
|
|
|
<div v-show="!isShowPrint">
|
|
|
<!-- 筛选条件 -->
|
|
|
<div class="screen-container">
|
|
@@ -28,26 +27,16 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="制单日期" prop="createDate">
|
|
|
- <el-date-picker
|
|
|
- v-model="screenForm.createDate"
|
|
|
- type="datetimerange"
|
|
|
- range-separator="至"
|
|
|
- style="width: 100%;"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- start-placeholder="开始日期"
|
|
|
+ <el-date-picker v-model="screenForm.createDate" type="datetimerange" range-separator="至"
|
|
|
+ style="width: 100%;" value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="发货日期" prop="deliverDate">
|
|
|
- <el-date-picker
|
|
|
- v-model="screenForm.deliverDate"
|
|
|
- type="datetimerange"
|
|
|
- range-separator="至"
|
|
|
- style="width: 100%;"
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
- start-placeholder="开始日期"
|
|
|
+ <el-date-picker v-model="screenForm.deliverDate" type="datetimerange" range-separator="至"
|
|
|
+ style="width: 100%;" value-format="yyyy-MM-dd HH:mm:ss" start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
@@ -75,29 +64,25 @@
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="存货类别" prop="type">
|
|
|
<el-select v-model="screenForm.type" placeholder="选择存货类别" style="width: 100%" clearable>
|
|
|
- <el-option v-for="item in categoryList" :key="item.name" :label="item.name" :value="item.name"></el-option>
|
|
|
+ <el-option v-for="item in categoryList" :key="item.name" :label="item.name" :value="item.name">
|
|
|
+ </el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :lg="6">
|
|
|
<el-form-item label="表头业务员" prop="k3ServiceId">
|
|
|
- <el-select v-model="screenForm.k3ServiceId" placeholder="选择表头业务员" clearable filterable style="width: 100%">
|
|
|
- <el-option
|
|
|
- v-for="item in salesmanList"
|
|
|
- :key="item.adminUserId"
|
|
|
- :label="item.nickName"
|
|
|
+ <el-select v-model="screenForm.k3ServiceId" placeholder="选择表头业务员" clearable filterable
|
|
|
+ style="width: 100%">
|
|
|
+ <el-option v-for="item in salesmanList" :key="item.adminUserId" :label="item.nickName"
|
|
|
:value="item.adminUserId">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
+ <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-option
|
|
|
- v-for="item in salesmanList"
|
|
|
- :key="item.adminUserId"
|
|
|
- :label="item.nickName"
|
|
|
+ <el-option v-for="item in salesmanList" :key="item.adminUserId" :label="item.nickName"
|
|
|
:value="item.adminUserId">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
@@ -116,154 +101,172 @@
|
|
|
<div class="mymain-container">
|
|
|
<div class="btn-group clearfix">
|
|
|
<div class="fl">
|
|
|
- <el-button type="primary" size="mini" @click="toPrint" :disabled="tableSelection.length < 1">打印发货单</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="toPrint" :disabled="tableSelection.length < 1">打印发货单
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
<!-- -->
|
|
|
<div class="fr" style="display: flex;">
|
|
|
- <el-button size="mini" type="primary" v-if="$checkBtnRole('refund', $route.meta.roles)" style="margin-right: 10px;" icon="el-icon-plus" @click="$router.push('/supply/deliver/apply_list?isShow=true')">零售退货申请</el-button>
|
|
|
- <el-button size="mini" type="primary" v-if="$checkBtnRole('refund', $route.meta.roles)" style="margin-right: 10px;" icon="el-icon-plus" @click="$router.push('/supply/deliver/engin_list?isShow=true')">工程退货申请</el-button>
|
|
|
- <ExportButton :exUrl="'invoice/exportInvoice'" :exParams="exParams" />
|
|
|
+ <el-button size="mini" type="primary" v-if="$checkBtnRole('refund', $route.meta.roles)"
|
|
|
+ style="margin-right: 10px;" icon="el-icon-plus"
|
|
|
+ @click="$router.push('/supply/deliver/apply_list?isShow=true')">零售退货申请</el-button>
|
|
|
+ <el-button size="mini" type="primary" v-if="$checkBtnRole('refund', $route.meta.roles)"
|
|
|
+ style="margin-right: 10px;" icon="el-icon-plus"
|
|
|
+ @click="$router.push('/supply/deliver/engin_list?isShow=true')">工程退货申请</el-button>
|
|
|
+ <ExportButton :exUrl="'invoice/exportInvoice'" :exParams="exParams" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="table">
|
|
|
- <el-table
|
|
|
- ref="table"
|
|
|
- v-loading="listLoading"
|
|
|
- :data="dataList"
|
|
|
- element-loading-text="Loading"
|
|
|
- border
|
|
|
- fit
|
|
|
- highlight-current-row
|
|
|
- stripe
|
|
|
- @select="handleSelect"
|
|
|
- @select-all="handleSelectAll"
|
|
|
- show-summary
|
|
|
+ <el-table ref="table" v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit
|
|
|
+ highlight-current-row stripe @select="handleSelect" @select-all="handleSelectAll" show-summary
|
|
|
:summary-method="$getSummaries">
|
|
|
<el-table-column align="center" type="selection" width="55"></el-table-column>
|
|
|
|
|
|
- <el-table-column align="left" label="制单日期" prop="createTime" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="发货日期" prop="orderTime" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="left" label="制单日期" prop="createTime" min-width="160" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="发货日期" prop="orderTime" min-width="160" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="left" label="发货单号" prop="id" min-width="130" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copyText="scope.row.id" />
|
|
|
- <span>{{scope.row.id}}</span>
|
|
|
+ <span>{{ scope.row.id }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="订单号" prop="orderId" min-width="130" show-overflow-tooltip>
|
|
|
+ <el-table-column align="left" label="订单号" prop="orderId" min-width="130" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
- <CopyButton :copyText="scope.row.enginOrderType =='HOME' || scope.row.enginOrderType =='TRADE'? scope.row.enginOrderNo :scope.row.mainOrderId " />
|
|
|
- <span>{{scope.row.enginOrderType =='HOME' || scope.row.enginOrderType =='TRADE'? scope.row.enginOrderNo :scope.row.mainOrderId }}</span>
|
|
|
+ <CopyButton
|
|
|
+ :copyText="scope.row.enginOrderType == 'HOME' || scope.row.enginOrderType == 'TRADE' ? scope.row.enginOrderNo : scope.row.mainOrderId" />
|
|
|
+ <span>{{ scope.row.enginOrderType == 'HOME' || scope.row.enginOrderType == 'TRADE' ?
|
|
|
+ scope.row.enginOrderNo
|
|
|
+ : scope.row.mainOrderId
|
|
|
+ }}</span>
|
|
|
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="left" label="经销商编码" prop="customerNumber" min-width="100" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copyText="scope.row.customerNumber" />
|
|
|
- <span>{{scope.row.customerNumber}}</span>
|
|
|
+ <span>{{ scope.row.customerNumber }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="left" label="经销商名称" prop="customerName" min-width="250" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copyText="scope.row.customerName" />
|
|
|
- <span>{{scope.row.customerName}}</span>
|
|
|
+ <span>{{ scope.row.customerName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="left" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="left" label="物料编码" prop="materialCode" min-width="120" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copyText="scope.row.materialCode" />
|
|
|
- <span>{{scope.row.materialCode}}</span>
|
|
|
+ <span>{{ scope.row.materialCode }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="left" label="产品编码" prop="materialOldNumber" min-width="140" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copyText="scope.row.materialOldNumber" />
|
|
|
- <span>{{scope.row.materialOldNumber}}</span>
|
|
|
+ <span>{{ scope.row.materialOldNumber }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copyText="scope.row.materialName" />
|
|
|
- <span>{{scope.row.materialName}}</span>
|
|
|
+ <span>{{ scope.row.materialName }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="left" label="规格型号" prop="specification" min-width="350" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<CopyButton :copyText="scope.row.specification" />
|
|
|
- <span>{{scope.row.specification}}</span>
|
|
|
+ <span>{{ scope.row.specification }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="left" label="仓库" prop="correspondName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="left" label="仓库" prop="correspondName" min-width="100" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
|
|
|
<el-table-column align="right" label="发货金额" prop="payAmount" min-width="100" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- {{scope.row.payAmount | numToFixed}}
|
|
|
+ {{ scope.row.payAmount | numToFixed }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="right" label="发货返利金额" prop="payRebateAmount" min-width="110" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- {{scope.row.payRebateAmount | numToFixed}}
|
|
|
+ {{ scope.row.payRebateAmount | numToFixed }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="right" label="发货折扣金额" prop="discAmount" min-width="110" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- {{scope.row.totalDiscAmount | numToFixed}}
|
|
|
+ {{ scope.row.totalDiscAmount | numToFixed }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="right" label="折扣额合计" prop="totalDiscAmount" min-width="100" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- {{(scope.row.totalDiscAmount + scope.row.payRebateAmount) | numToFixed}}
|
|
|
+ {{ (scope.row.totalDiscAmount + scope.row.payRebateAmount) | numToFixed }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="right" label="含税单价" prop="singlePayPrice" min-width="100" show-overflow-tooltip>
|
|
|
+ <el-table-column align="right" label="发货数量" prop="refundableQty" min-width="100" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column align="right" label="含税单价" prop="singlePayPrice" min-width="100" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- {{scope.row.singlePayPrice | numToFixed}}
|
|
|
+ {{ scope.row.singlePayPrice | numToFixed }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="right" label="含税总额" prop="singlePayPrice" min-width="100" show-overflow-tooltip>
|
|
|
+ <el-table-column align="right" label="含税总额" prop="singlePayPrice" min-width="100" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- {{scope.row.payAmount | numToFixed}}
|
|
|
+ {{ scope.row.payAmount | numToFixed }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="right" label="未出库数量" prop="singlePayPrice" min-width="100" show-overflow-tooltip>
|
|
|
+ <el-table-column align="right" label="未出库数量" prop="singlePayPrice" min-width="100" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- {{comRefundableQty(scope.row.type ,scope.row.salesExamineStatus , scope.row)}}
|
|
|
+ {{ comRefundableQty(scope.row.type, scope.row.salesExamineStatus, scope.row) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column align="right" label="发货数量" prop="refundableQty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="表头业务员" prop="k3ServiceName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
-
|
|
|
- <el-table-column align="left" label="表体业务员" prop="serviceName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="政策单号" prop="policyCode" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="政策名称" prop="policyTitle" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="区域" prop="adminArea" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="业务区域" prop="serviceArea" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="月份" prop="month" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="项目编码" prop="refEnginRecordNo" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="项目名称" prop="refProjectName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="申请发货单备注" prop="remark" min-width="200" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="表头备注" prop="headerRemark" min-width="200" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="表体备注" prop="invoiceRemark" min-width="200" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="打印次数" prop="printNum" min-width="200" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="经销商现金钱包" prop="customerWalletName" min-width="200" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="经销商返利钱包" prop="customerWalletName2" min-width="200" show-overflow-tooltip></el-table-column>
|
|
|
- <el-table-column align="left" label="文件编号" prop="itemFileNo" min-width="200" show-overflow-tooltip></el-table-column>
|
|
|
-
|
|
|
-
|
|
|
- </el-table>
|
|
|
+ <el-table-column align="left" label="表头业务员" prop="k3ServiceName" min-width="100" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+ <el-table-column align="left" label="表体业务员" prop="serviceName" min-width="100" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="政策单号" prop="policyCode" min-width="100" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="政策名称" prop="policyTitle" min-width="100" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="区域" prop="adminArea" min-width="100" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="业务区域" prop="serviceArea" min-width="100" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="月份" prop="month" min-width="100" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="项目编码" prop="refEnginRecordNo" min-width="160" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="项目名称" prop="refProjectName" min-width="160" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="存货类别" prop="categoryName" min-width="160" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="申请发货单备注" prop="remark" min-width="200" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="表头备注" prop="headerRemark" min-width="200" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="表体备注" prop="invoiceRemark" min-width="200" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="打印次数" prop="printNum" min-width="200" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column align="left" label="经销商现金钱包" prop="customerWalletName" min-width="200"
|
|
|
+ show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="left" label="经销商返利钱包" prop="customerWalletName2" min-width="200"
|
|
|
+ show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column align="left" label="文件编号" prop="itemFileNo" min-width="200" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
+
|
|
|
+ </el-table>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="pagination clearfix">
|
|
|
<div class="fr">
|
|
|
- <el-pagination
|
|
|
- @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- :current-page="currentPage"
|
|
|
- :page-sizes="[10, 20, 30, 50]"
|
|
|
- :page-size="10"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="listTotal">
|
|
|
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
+ :current-page="currentPage" :page-sizes="[10, 20, 30, 50]" :page-size="10"
|
|
|
+ layout="total, sizes, prev, pager, next, jumper" :total="listTotal">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -302,8 +305,8 @@ export default {
|
|
|
orderNum: '',
|
|
|
type: '',
|
|
|
salesMan: '',
|
|
|
- k3ServiceId:'',
|
|
|
- mainOrderId:''
|
|
|
+ k3ServiceId: '',
|
|
|
+ mainOrderId: ''
|
|
|
},
|
|
|
categoryList: [],
|
|
|
salesmanList: [],
|
|
@@ -330,19 +333,19 @@ export default {
|
|
|
id: this.screenForm.orderNum,
|
|
|
categoryName: this.screenForm.type,
|
|
|
serviceId: this.screenForm.salesMan,
|
|
|
- k3ServiceId:this.screenForm.k3ServiceId
|
|
|
+ k3ServiceId: this.screenForm.k3ServiceId
|
|
|
}
|
|
|
},
|
|
|
- comRefundableQty(){
|
|
|
- return (type,status,row)=>{
|
|
|
+ comRefundableQty() {
|
|
|
+ return (type, status, row) => {
|
|
|
if (type == 2) {
|
|
|
- return ''
|
|
|
- }else{
|
|
|
- if (status == 'OK') {
|
|
|
- return 0
|
|
|
- }else{
|
|
|
- return row.refundableQty
|
|
|
- }
|
|
|
+ return ''
|
|
|
+ } else {
|
|
|
+ if (status == 'OK') {
|
|
|
+ return 0
|
|
|
+ } else {
|
|
|
+ return row.refundableQty
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|
|
@@ -399,8 +402,8 @@ export default {
|
|
|
id: this.screenForm.orderNum,
|
|
|
categoryName: this.screenForm.type,
|
|
|
serviceId: this.screenForm.salesMan,
|
|
|
- k3ServiceId:this.screenForm.k3ServiceId,
|
|
|
- mainOrderId:this.screenForm.mainOrderId
|
|
|
+ k3ServiceId: this.screenForm.k3ServiceId,
|
|
|
+ mainOrderId: this.screenForm.mainOrderId
|
|
|
};
|
|
|
getSumList(params).then((res) => {
|
|
|
res.data.records.forEach(item => {
|
|
@@ -471,5 +474,4 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-
|
|
|
</style>
|