Commit 29d5e92a by 张立顺

Merge branch 'dev_v4.22.1' into 'develop'

线上导出bug修复

See merge request !206
2 parents 61daac62 210cb57c
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="outputValue" label="驻店负责人" width="150"> <el-table-column prop="outputValue" label="驻店负责人" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select clearable value-key="userId" v-model="scope.row['residentManager']" class="select" <el-select clearable filterable value-key="userId" v-model="scope.row['residentManager']" class="select"
@focus="getSelectList(scope.row, scope.$index,)" collapse-tags placeholder="请选择"> @focus="getSelectList(scope.row, scope.$index,)" collapse-tags placeholder="请选择">
<el-option v-for="item in scope.row['residentManagerOptionsList']" :key="item.userId" <el-option v-for="item in scope.row['residentManagerOptionsList']" :key="item.userId"
:label="item.userName" :value="item"> :label="item.userName" :value="item">
......
<template> <template>
<baseDialog :is-show.sync="dialogShow" <baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
:config="dialogConfig.setting" @closeDialog="handleDetailClose">
:dialog-config="dialogConfig.config" <div class="detail-content" v-if="dialogShow">
@closeDialog="handleDetailClose">
<div class="detail-content"
v-if="dialogShow">
<div class="addressTitle"> <div class="addressTitle">
<img src="../images/addressIcon.webp" <img src="../images/addressIcon.webp" alt="" class="icon">
alt=""
class="icon">
<span class="title">{{ paramsObj.merchantName }}</span> <span class="title">{{ paramsObj.merchantName }}</span>
</div> </div>
<div class="address-info"> <div class="address-info">
...@@ -21,31 +16,23 @@ ...@@ -21,31 +16,23 @@
<span class="address">驳回原因:<span class="label">{{ detailInfo.rejectCause }}</span></span> <span class="address">驳回原因:<span class="label">{{ detailInfo.rejectCause }}</span></span>
</div> --> </div> -->
<div class="table-class"> <div class="table-class">
<d2-table ref="purchaseOrderDetailTable" <d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" @refreshTable="refreshTable"
:table-params="tableParams" :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
@refreshTable="refreshTable"
:table-data="detailInfo.tableData"
:table-total="detailInfo.tableTotal">
</d2-table> </d2-table>
</div> </div>
<div class="examine-record" <div class="examine-record" v-if="detailInfo.auditDetaiList && !paramsObj.factoryType">
v-if="detailInfo.auditDetaiList && !paramsObj.factoryType">
<div class="title">审核记录</div> <div class="title">审核记录</div>
<div class="record-div"> <div class="record-div">
<div class="record-div-d" <div class="record-div-d" v-for="(item, index) in detailInfo.auditDetaiList" :key="index">
v-for="(item, index) in detailInfo.auditDetaiList"
:key="index">
<span class="dot"></span> <span class="dot"></span>
<span <span class="span-txt-one">{{ item.status ? $$(statusForShow, [item.status], 'text') : '' }}</span><span
class="span-txt-one">{{ item.status ? $$(statusForShow, [item.status], 'text') : '' }}</span><span class="span-txt-two">
class="span-txt-two">
<span :class="item.status ? examineStatusClass[item.status] : ''"> <span :class="item.status ? examineStatusClass[item.status] : ''">
{{ item.status ? $$(statusForShow, [item.status], 'status') : '' }}</span> {{ item.status ? $$(statusForShow, [item.status], 'status') : '' }}</span>
</span> </span>
<span class="span-txt-two">审核人:{{ item.reviewedBy }}</span> <span class="span-txt-two">审核人:{{ item.reviewedBy }}</span>
<span class="span-txt-two">审核时间:{{ item.reviewedDateFormat }}</span> <span class="span-txt-two">审核时间:{{ item.reviewedDateFormat }}</span>
<span class="span-txt-two" <span class="span-txt-two" v-if="[4, 6, 7].includes(item.status)">驳回原因:{{ item.rejectCause }}</span>
v-if="[4, 6, 7].includes(item.status)">驳回原因:{{ item.rejectCause }}</span>
</div> </div>
<!-- <div class="record-div-d"><span class="dot"></span><span <!-- <div class="record-div-d"><span class="dot"></span><span
class="span-txt-one">运营审核</span><span class="span-txt-two">通过</span><span class="span-txt-one">运营审核</span><span class="span-txt-two">通过</span><span
...@@ -279,7 +266,7 @@ export default { ...@@ -279,7 +266,7 @@ export default {
font-size: 14px; font-size: 14px;
color: #666666; color: #666666;
> span { >span {
margin-right: 20px; margin-right: 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
......
<!-- 采购发货 --> <!-- 采购发货 -->
<template> <template>
<d2-container class="container"> <d2-container class="container">
<div class="header" <div class="header" slot="header">
slot="header"> <d2-search ref="showSearch" class="show-search" :search-form="searchForm" :form-data="showFormData">
<d2-search ref="showSearch"
class="show-search"
:search-form="searchForm"
:form-data="showFormData">
</d2-search> </d2-search>
<div class="up-btns"> <div class="up-btns">
<el-button :id="tableParams.btnId" <el-button :id="tableParams.btnId" size="small" type="primary" handle>
size="small"
type="primary"
handle>
查询 查询
</el-button> </el-button>
<el-button size="small" <el-button size="small" @click="handleReset">
@click="handleReset">
重置 重置
</el-button> </el-button>
</div> </div>
...@@ -28,76 +20,50 @@ ...@@ -28,76 +20,50 @@
<auth-button category="Button" /> <auth-button category="Button" />
</span> </span>
<span> <span>
<el-button type="primary" <el-button type="primary" size="mini" @click="handleExport">
size="mini"
@click="handleExport">
导出 导出
</el-button> </el-button>
</span> </span>
</d2-table-header> </d2-table-header>
<d2-table ref="purchaseAndDeliveryTable" <d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams"
:search-form="tableSearchForm" :table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
:table-params="tableParams" <div slot="auth-button" slot-scope="scope" width="300">
:table-data="tableData"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn">
<div slot="auth-button"
slot-scope="scope"
width="300">
<!-- 查看 --> <!-- 查看 -->
<span style="margin-right: 10px;"> <span style="margin-right: 10px;">
<auth-button :data="scope.scope" <auth-button :data="scope.scope" :show-btn-ids="['9090401']" />
:show-btn-ids="['9090401']" />
</span> </span>
<!-- 确认发货 --> <!-- 确认发货 -->
<span v-show="scope.scope.deliveryStatus != 2" <span v-show="scope.scope.deliveryStatus != 2" style="margin-right: 10px;">
style="margin-right: 10px;"> <auth-button :data="scope.scope" :show-btn-ids="['9090402']" />
<auth-button :data="scope.scope"
:show-btn-ids="['9090402']" />
</span> </span>
<!-- 分配 --> <!-- 分配 -->
<span v-show="scope.scope.deliveryStatus != 2" <span v-show="scope.scope.deliveryStatus != 2" style="margin-right: 10px;">
style="margin-right: 10px;">
<!-- <el-button :data="scope.scope" type="text" @click="handleAllocat(scope.scope)">分配</el-button> --> <!-- <el-button :data="scope.scope" type="text" @click="handleAllocat(scope.scope)">分配</el-button> -->
<auth-button :data="scope.scope" <auth-button :data="scope.scope" :show-btn-ids="['9090404']" />
:show-btn-ids="['9090404']" />
</span> </span>
<!-- 驳回 --> <!-- 驳回 -->
<span v-show="scope.scope.deliveryStatus == 1 && scope.scope.status == 5"> <span v-show="scope.scope.deliveryStatus == 1 && scope.scope.status == 5">
<auth-button :data="scope.scope" <auth-button :data="scope.scope" :show-btn-ids="['9090403']" />
:show-btn-ids="['9090403']" />
</span> </span>
</div> </div>
</d2-table> </d2-table>
</div> </div>
<orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog> <orderDeatilDialog :visible.sync="detailVisible" v-if="detailVisible" :params-obj="paramsObj"></orderDeatilDialog>
<EditOrderDialog v-if="editVisible" :is-empty-edit="true" :visible.sync="editVisible" :params-obj="dialogData" @editClose="editClose"> <EditOrderDialog v-if="editVisible" :is-empty-edit="true" :visible.sync="editVisible" :params-obj="dialogData"
@editClose="editClose">
</EditOrderDialog> </EditOrderDialog>
<AllocateDialog v-if="allocateVisible" <AllocateDialog v-if="allocateVisible" :visible.sync="allocateVisible" :params-obj="allocateData"
:visible.sync="allocateVisible" @editClose="allocateClose">
:params-obj="allocateData"
@editClose="allocateClose">
</AllocateDialog> </AllocateDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"--> <!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
<baseDialog :is-show.sync="rejectVisible" <baseDialog :is-show.sync="rejectVisible" :dialog-config="rejectConfig.config" @handleClick="handleRejectConfirm">
:dialog-config="rejectConfig.config"
@handleClick="handleRejectConfirm">
<!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm" <!-- <d2-dialog v-if="rejectVisible" :is-visible="rejectVisible" title="驳回提2" @confirmDialog="handleRejectConfirm"
@closeDialog="handleRejectClose"> --> @closeDialog="handleRejectClose"> -->
<div class="reject-dialog"> <div class="reject-dialog">
<el-form :rules="rejectRules" <el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form">
:model="rejectData" <el-form-item label="驳回原因:" prop="rejectCause">
label-width="150px" <el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" :rows="3" show-word-limit
ref="delivery-dialog-form"> v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" />
<el-form-item label="驳回原因:"
prop="rejectCause">
<el-input type="textarea"
placeholder="请输入驳回原因"
maxlength="50"
:rows="3"
show-word-limit
v-model.trim="rejectData.rejectCause"
class="dis-in-block reject-input" />
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -427,6 +393,7 @@ export default { ...@@ -427,6 +393,7 @@ export default {
} }
} }
params.method = 'dj.api.smarcarlife.purchaseOrder.export.async' params.method = 'dj.api.smarcarlife.purchaseOrder.export.async'
params.sortType = 3
const list = [ const list = [
...this.dowloadList, ...this.dowloadList,
{ {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!