|
@@ -10,6 +10,74 @@
|
|
v-show="showSearch"
|
|
v-show="showSearch"
|
|
label-width="100px"
|
|
label-width="100px"
|
|
>
|
|
>
|
|
|
|
+ <el-form-item label="领样人" prop="collectSampleId">
|
|
|
|
+ <el-select
|
|
|
|
+ filterable
|
|
|
|
+ v-model="queryParams.collectSampleId"
|
|
|
|
+ placeholder="人员名称"
|
|
|
|
+ clearable
|
|
|
|
+ style="width: 240px"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in queryParamsList.personList"
|
|
|
|
+ :key="item.userId"
|
|
|
|
+ :label="item.nickMame"
|
|
|
|
+ :value="item.userId"
|
|
|
|
+ >
|
|
|
|
+ <div style="display: flex">
|
|
|
|
+ <span
|
|
|
|
+ style="
|
|
|
|
+ width: 10px;
|
|
|
|
+ height: 10px;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ background-color: green;
|
|
|
|
+ position: relative;
|
|
|
|
+ top: 12px;
|
|
|
|
+ margin-right: 5px;
|
|
|
|
+ "
|
|
|
|
+ :style="
|
|
|
|
+ item.status == '0' ? 'backgroundColor:green' : 'backgroundColor:red'
|
|
|
|
+ "
|
|
|
|
+ >{{ item.value }}</span
|
|
|
|
+ ><span>{{ item.nickMame }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="商品创建人" prop="itemCreateId">
|
|
|
|
+ <el-select
|
|
|
|
+ filterable
|
|
|
|
+ v-model="queryParams.itemCreateId"
|
|
|
|
+ placeholder="人员名称"
|
|
|
|
+ clearable
|
|
|
|
+ style="width: 240px"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in queryParamsList.personList"
|
|
|
|
+ :key="item.userId"
|
|
|
|
+ :label="item.nickMame"
|
|
|
|
+ :value="item.userId"
|
|
|
|
+ >
|
|
|
|
+ <div style="display: flex">
|
|
|
|
+ <span
|
|
|
|
+ style="
|
|
|
|
+ width: 10px;
|
|
|
|
+ height: 10px;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ background-color: green;
|
|
|
|
+ position: relative;
|
|
|
|
+ top: 12px;
|
|
|
|
+ margin-right: 5px;
|
|
|
|
+ "
|
|
|
|
+ :style="
|
|
|
|
+ item.status == '0' ? 'backgroundColor:green' : 'backgroundColor:red'
|
|
|
|
+ "
|
|
|
|
+ >{{ item.value }}</span
|
|
|
|
+ ><span>{{ item.nickMame }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item label="商品名称" prop="itemTitle">
|
|
<el-form-item label="商品名称" prop="itemTitle">
|
|
<el-input
|
|
<el-input
|
|
placeholder="请输入商品名称"
|
|
placeholder="请输入商品名称"
|
|
@@ -42,6 +110,26 @@
|
|
>
|
|
>
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
+ <el-form-item label="电话号码" prop="promoterPhone">
|
|
|
|
+ <el-input
|
|
|
|
+ placeholder="请输入电话号码"
|
|
|
|
+ style="width: 240px"
|
|
|
|
+ v-model="queryParams.promoterPhone"
|
|
|
|
+ >
|
|
|
|
+ </el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="收货人"
|
|
|
|
+ prop="consignee"
|
|
|
|
+ v-if="queryParams.collectSampleStatus == '3'"
|
|
|
|
+ >
|
|
|
|
+ <el-input
|
|
|
|
+ placeholder="请输入收货人"
|
|
|
|
+ style="width: 240px"
|
|
|
|
+ v-model="queryParams.consignee"
|
|
|
|
+ >
|
|
|
|
+ </el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery"
|
|
@@ -63,6 +151,14 @@
|
|
>
|
|
>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row> -->
|
|
</el-row> -->
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ plain
|
|
|
|
+ size="mini"
|
|
|
|
+ @click="addNew"
|
|
|
|
+ style="margin-bottom: 15px"
|
|
|
|
+ >导出</el-button
|
|
|
|
+ >
|
|
<el-tabs v-model="queryParams.collectSampleStatus" @tab-click="handleClick">
|
|
<el-tabs v-model="queryParams.collectSampleStatus" @tab-click="handleClick">
|
|
<el-tab-pane
|
|
<el-tab-pane
|
|
:label="item.label"
|
|
:label="item.label"
|
|
@@ -70,8 +166,37 @@
|
|
v-for="(item, index) in queryParamsList.tagList"
|
|
v-for="(item, index) in queryParamsList.tagList"
|
|
:key="index"
|
|
:key="index"
|
|
>
|
|
>
|
|
- <el-table v-loading="loading" :data="typeList" ref="multipleTable">
|
|
|
|
- <el-table-column label="商品名称" align="center" prop="itemTitle" width="300">
|
|
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ plain
|
|
|
|
+ size="mini"
|
|
|
|
+ @click="batchProcess"
|
|
|
|
+ v-if="queryParams.collectSampleStatus == 1"
|
|
|
|
+ style="margin-bottom: 15px"
|
|
|
|
+ >批量审核</el-button
|
|
|
|
+ >
|
|
|
|
+
|
|
|
|
+ <el-table
|
|
|
|
+ v-loading="loading"
|
|
|
|
+ :data="typeList"
|
|
|
|
+ ref="multipleTable"
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ :row-key="getRowKeys"
|
|
|
|
+ >
|
|
|
|
+ <el-table-column
|
|
|
|
+ type="selection"
|
|
|
|
+ width="50"
|
|
|
|
+ align="center"
|
|
|
|
+ v-show="queryParams.collectSampleStatus == '3'"
|
|
|
|
+ />
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="商品名称"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="itemTitle"
|
|
|
|
+ width="300"
|
|
|
|
+ fixed="left"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div style="display: flex; width: 100%">
|
|
<div style="display: flex; width: 100%">
|
|
<div style="width: 40%">
|
|
<div style="width: 40%">
|
|
@@ -178,15 +303,15 @@
|
|
<p>达人Id: {{ scope.row.promoterId }}</p>
|
|
<p>达人Id: {{ scope.row.promoterId }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- style="
|
|
|
|
- display: flex;
|
|
|
|
- width: 100%;
|
|
|
|
- justify-content: space-around;
|
|
|
|
- "
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="show-main">
|
|
<div style="width: 40%">
|
|
<div style="width: 40%">
|
|
- <p class="p-main">{{ promoterInfo.orderAmount }}</p>
|
|
|
|
|
|
+ <p class="p-main">
|
|
|
|
+ {{
|
|
|
|
+ promoterInfo.orderAmount
|
|
|
|
+ ? allMoney(promoterInfo.orderAmount / 100)
|
|
|
|
+ : ""
|
|
|
|
+ }}
|
|
|
|
+ </p>
|
|
<p class="p-title">近30天睿选GMV</p>
|
|
<p class="p-title">近30天睿选GMV</p>
|
|
</div>
|
|
</div>
|
|
<div style="width: 40%">
|
|
<div style="width: 40%">
|
|
@@ -196,13 +321,7 @@
|
|
<p class="p-title">作业完成率</p>
|
|
<p class="p-title">作业完成率</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- style="
|
|
|
|
- display: flex;
|
|
|
|
- width: 100%;
|
|
|
|
- justify-content: space-around;
|
|
|
|
- "
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="show-main">
|
|
<div style="width: 40%">
|
|
<div style="width: 40%">
|
|
<p class="p-main">{{ promoterInfo.videoSales }}</p>
|
|
<p class="p-main">{{ promoterInfo.videoSales }}</p>
|
|
<p class="p-title">短视频销售额</p>
|
|
<p class="p-title">短视频销售额</p>
|
|
@@ -242,13 +361,35 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="领样人" align="center" prop="collectSampleName">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="领样人"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="collectSampleName"
|
|
|
|
+ width="150"
|
|
|
|
+ >
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="创建人" align="center" prop="itemCreateName">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="商品创建人"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="itemCreateName"
|
|
|
|
+ width="150"
|
|
|
|
+ >
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="预估服务费" align="center" prop="regimentalPromotion">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="收货人"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="consignee"
|
|
|
|
+ width="150"
|
|
|
|
+ v-if="queryParams.collectSampleStatus == '3'"
|
|
|
|
+ >
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="领样要求" align="center" prop="sampleRequirement">
|
|
|
|
|
|
+
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="领样备注"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="sampleRequirement"
|
|
|
|
+ width="150"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div v-if="!!scope.row.sampleRequirement">
|
|
<div v-if="!!scope.row.sampleRequirement">
|
|
{{ scope.row.sampleRequirement }}
|
|
{{ scope.row.sampleRequirement }}
|
|
@@ -256,7 +397,7 @@
|
|
<div v-else>-</div>
|
|
<div v-else>-</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="样品数量" align="center" prop="sampleCount">
|
|
|
|
|
|
+ <el-table-column label="样品数量" align="center" prop="sampleCount" width="150">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div v-if="!!scope.row.sampleCount">
|
|
<div v-if="!!scope.row.sampleCount">
|
|
{{ scope.row.sampleCount }}
|
|
{{ scope.row.sampleCount }}
|
|
@@ -264,6 +405,61 @@
|
|
<div v-else>-</div>
|
|
<div v-else>-</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="快递单号"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="courierNumber"
|
|
|
|
+ width="150"
|
|
|
|
+ v-if="queryParams.collectSampleStatus == '4'"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-if="!!scope.row.courierNumber">
|
|
|
|
+ {{ scope.row.courierNumber }}
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else>-</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="达人单品出单量"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="promoterOrderNum"
|
|
|
|
+ width="150"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-if="!!scope.row.promoterOrderNum">
|
|
|
|
+ {{ scope.row.promoterOrderNum }}
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else>-</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="达人出单量"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="validOrderNum"
|
|
|
|
+ width="150"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-if="!!scope.row.validOrderNum">
|
|
|
|
+ {{ scope.row.validOrderNum }}
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else>-</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="达人出单金额"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="validAmount"
|
|
|
|
+ width="150"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-if="!!scope.row.validAmount">
|
|
|
|
+ {{ scope.row.validAmount ? allMoney(scope.row.validAmount / 100) : "" }}
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else>-</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+
|
|
<!-- <el-table-column label="领样人数" align="center" prop="sampleCount">
|
|
<!-- <el-table-column label="领样人数" align="center" prop="sampleCount">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div v-if="!!scope.row.sampleCount">
|
|
<div v-if="!!scope.row.sampleCount">
|
|
@@ -280,7 +476,13 @@
|
|
<div v-else>-</div>
|
|
<div v-else>-</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column> -->
|
|
</el-table-column> -->
|
|
- <el-table-column label="状态" align="center" prop="collectSampleStatus">
|
|
|
|
|
|
+
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="状态"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="collectSampleStatus"
|
|
|
|
+ width="150"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div v-if="!!scope.row.collectSampleStatus">
|
|
<div v-if="!!scope.row.collectSampleStatus">
|
|
{{ scope.row.collectSampleStatus | collectSampleStatusName }}
|
|
{{ scope.row.collectSampleStatus | collectSampleStatusName }}
|
|
@@ -288,7 +490,12 @@
|
|
<div v-else>-</div>
|
|
<div v-else>-</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="拒绝原因" align="center" prop="collectSampleDesc">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="备注"
|
|
|
|
+ align="center"
|
|
|
|
+ prop="collectSampleDesc"
|
|
|
|
+ width="150"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div
|
|
<div
|
|
v-if="
|
|
v-if="
|
|
@@ -302,18 +509,10 @@
|
|
<div v-else>-</div>
|
|
<div v-else>-</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="创建时间" align="center" prop="createTime">
|
|
|
|
|
|
+ <el-table-column label="创建时间" align="center" prop="createTime" width="150">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div v-if="!!scope.row.createTime">
|
|
<div v-if="!!scope.row.createTime">
|
|
- {{ scope.row.createTime.split(" ")[0] }}
|
|
|
|
- </div>
|
|
|
|
- <div v-else>-</div>
|
|
|
|
- </template>
|
|
|
|
- </el-table-column>
|
|
|
|
- <el-table-column label="手卡信息" align="center" prop="partnerRecommendText">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <div v-if="!!scope.row.partnerRecommendText">
|
|
|
|
- {{ scope.row.partnerRecommendText }}
|
|
|
|
|
|
+ {{ scope.row.createTime }}
|
|
</div>
|
|
</div>
|
|
<div v-else>-</div>
|
|
<div v-else>-</div>
|
|
</template>
|
|
</template>
|
|
@@ -336,14 +535,21 @@
|
|
label="操作"
|
|
label="操作"
|
|
align="center"
|
|
align="center"
|
|
class-name="small-padding fixed-width"
|
|
class-name="small-padding fixed-width"
|
|
- width="200px"
|
|
|
|
|
|
+ width="250px"
|
|
|
|
+ fixed="right"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
@click="okInfomation(scope.row)"
|
|
@click="okInfomation(scope.row)"
|
|
- v-if="queryParams.collectSampleStatus == '1'"
|
|
|
|
|
|
+ v-if="
|
|
|
|
+ queryParams.collectSampleStatus == '1' &&
|
|
|
|
+ ($store.getters.roles[0] == 'admin' ||
|
|
|
|
+ $store.getters.roles[0] == 'supplyChainAdmin' ||
|
|
|
|
+ $store.getters.roles[0] == 'courtship' ||
|
|
|
|
+ $store.getters.roles[0] == 'courtshipManager')
|
|
|
|
+ "
|
|
:disabled="
|
|
:disabled="
|
|
$store.getters.roles[0] != 'admin' &&
|
|
$store.getters.roles[0] != 'admin' &&
|
|
$store.getters.roles[0] != 'supplyChainAdmin' &&
|
|
$store.getters.roles[0] != 'supplyChainAdmin' &&
|
|
@@ -360,18 +566,30 @@
|
|
refuseInfo = '';
|
|
refuseInfo = '';
|
|
refuseVisible = true;
|
|
refuseVisible = true;
|
|
"
|
|
"
|
|
- v-if="queryParams.collectSampleStatus == '1'"
|
|
|
|
- :disabled="
|
|
|
|
- $store.getters.roles[0] != 'admin' &&
|
|
|
|
- $store.getters.roles[0] != 'supplyChainAdmin' &&
|
|
|
|
- $store.getters.roles[0] != 'courtship' &&
|
|
|
|
- $store.getters.roles[0] != 'courtshipManager'
|
|
|
|
|
|
+ v-if="
|
|
|
|
+ (queryParams.collectSampleStatus == '1' ||
|
|
|
|
+ queryParams.collectSampleStatus == '3') &&
|
|
|
|
+ ($store.getters.roles[0] == 'admin' ||
|
|
|
|
+ $store.getters.roles[0] == 'supplyChainAdmin' ||
|
|
|
|
+ $store.getters.roles[0] == 'courtship' ||
|
|
|
|
+ $store.getters.roles[0] == 'courtshipManager')
|
|
"
|
|
"
|
|
>拒绝</el-button
|
|
>拒绝</el-button
|
|
>
|
|
>
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
|
|
+ @click="deleteInfomation(scope.row)"
|
|
|
|
+ v-if="
|
|
|
|
+ queryParams.collectSampleStatus == '1' &&
|
|
|
|
+ scope.row.collectSampleId == $store.getters.userId
|
|
|
|
+ "
|
|
|
|
+ >作废</el-button
|
|
|
|
+ >
|
|
|
|
+
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
@click="handleAddbroadcast(scope.row)"
|
|
@click="handleAddbroadcast(scope.row)"
|
|
v-if="queryParams.collectSampleStatus == '3'"
|
|
v-if="queryParams.collectSampleStatus == '3'"
|
|
:disabled="
|
|
:disabled="
|
|
@@ -382,6 +600,15 @@
|
|
"
|
|
"
|
|
>录入单号</el-button
|
|
>录入单号</el-button
|
|
>
|
|
>
|
|
|
|
+
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ @click="toUpdateTask(scope.row)"
|
|
|
|
+ v-if="queryParams.collectSampleStatus == '3'"
|
|
|
|
+ >上传作业</el-button
|
|
|
|
+ >
|
|
|
|
+
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
@@ -412,7 +639,101 @@
|
|
v-if="queryParams.collectSampleStatus == '6'"
|
|
v-if="queryParams.collectSampleStatus == '6'"
|
|
>查看作业</el-button
|
|
>查看作业</el-button
|
|
>
|
|
>
|
|
- <el-button size="mini" type="text" @click="toDetail(scope.row)"
|
|
|
|
|
|
+
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ @click="copyInfomation(scope.row)"
|
|
|
|
+ v-if="queryParams.collectSampleStatus == '3'"
|
|
|
|
+ >复制</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ slot="reference"
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ style="margin-right: 5px"
|
|
|
|
+ @click="updateKd(scope.row)"
|
|
|
|
+ v-if="queryParams.collectSampleStatus == '4'"
|
|
|
|
+ :disabled="
|
|
|
|
+ $store.getters.roles[0] != 'admin' &&
|
|
|
|
+ $store.getters.roles[0] != 'supplyChainAdmin' &&
|
|
|
|
+ $store.getters.roles[0] != 'courtship' &&
|
|
|
|
+ $store.getters.roles[0] != 'courtshipManager'
|
|
|
|
+ "
|
|
|
|
+ >修改单号</el-button
|
|
|
|
+ >
|
|
|
|
+
|
|
|
|
+ <el-popover
|
|
|
|
+ placement="top"
|
|
|
|
+ title=""
|
|
|
|
+ trigger="hover"
|
|
|
|
+ @show="courierNumberInfo(scope.row)"
|
|
|
|
+ >
|
|
|
|
+ <el-skeleton
|
|
|
|
+ style="width: 500px"
|
|
|
|
+ :loading="loadingCourierNumber"
|
|
|
|
+ animated
|
|
|
|
+ >
|
|
|
|
+ <template slot="template">
|
|
|
|
+ <div style="padding: 14px">
|
|
|
|
+ <el-skeleton-item variant="h3" style="width: 50%" />
|
|
|
|
+ <div
|
|
|
|
+ style="
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+ justify-items: space-between;
|
|
|
|
+ margin-top: 16px;
|
|
|
|
+ height: 16px;
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ <el-skeleton-item variant="text" style="margin-right: 16px" />
|
|
|
|
+ <el-skeleton-item variant="text" style="width: 30%" />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ <template>
|
|
|
|
+ <el-card v-if="courierInfo">
|
|
|
|
+ <div
|
|
|
|
+ style="width: 100%; max-height: 500px; overflow: auto"
|
|
|
|
+ class="item-name-calss dh-data"
|
|
|
|
+ v-if="
|
|
|
|
+ !!courierInfo.expressData && courierInfo.expressData.length > 0
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ <timeline :reverse="false">
|
|
|
|
+ <timeline-item
|
|
|
|
+ v-for="(activity, index) in courierInfo.expressData"
|
|
|
|
+ :key="index"
|
|
|
|
+ :timestamp="activity.ftime"
|
|
|
|
+ >
|
|
|
|
+ {{ activity.context }}
|
|
|
|
+ </timeline-item>
|
|
|
|
+ </timeline>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else>
|
|
|
|
+ <el-empty description="暂无数据"></el-empty>
|
|
|
|
+ </div>
|
|
|
|
+ </el-card>
|
|
|
|
+ <el-card v-else>
|
|
|
|
+ <el-empty description="暂无数据"></el-empty>
|
|
|
|
+ </el-card>
|
|
|
|
+ </template>
|
|
|
|
+ </el-skeleton>
|
|
|
|
+ <el-button
|
|
|
|
+ slot="reference"
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ style="margin-right: 5px"
|
|
|
|
+ v-if="queryParams.collectSampleStatus == '4'"
|
|
|
|
+ >物流详情</el-button
|
|
|
|
+ >
|
|
|
|
+ </el-popover>
|
|
|
|
+
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ style="margin-left: 5px"
|
|
|
|
+ type="text"
|
|
|
|
+ @click="toDetail(scope.row)"
|
|
>详情</el-button
|
|
>详情</el-button
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|
|
@@ -435,6 +756,7 @@
|
|
:visible.sync="openAllocation"
|
|
:visible.sync="openAllocation"
|
|
width="800px"
|
|
width="800px"
|
|
append-to-body
|
|
append-to-body
|
|
|
|
+ :close-on-click-modal="false"
|
|
>
|
|
>
|
|
<el-form
|
|
<el-form
|
|
ref="formBroadcast"
|
|
ref="formBroadcast"
|
|
@@ -458,7 +780,7 @@
|
|
<el-input
|
|
<el-input
|
|
placeholder="请输入快递单号"
|
|
placeholder="请输入快递单号"
|
|
style="width: 240px"
|
|
style="width: 240px"
|
|
- v-model="formBroadcast.courierNumber"
|
|
|
|
|
|
+ v-model.trim="formBroadcast.courierNumber"
|
|
>
|
|
>
|
|
</el-input>
|
|
</el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -484,6 +806,7 @@
|
|
:visible.sync="refuseVisible"
|
|
:visible.sync="refuseVisible"
|
|
width="500px"
|
|
width="500px"
|
|
append-to-body
|
|
append-to-body
|
|
|
|
+ :close-on-click-modal="false"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
placeholder="请输入拒绝原因"
|
|
placeholder="请输入拒绝原因"
|
|
@@ -510,7 +833,13 @@
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
<!-- 上传作业 -->
|
|
<!-- 上传作业 -->
|
|
- <el-dialog title="上传作业" :visible.sync="workVisible" width="500px" append-to-body>
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="上传作业"
|
|
|
|
+ :visible.sync="workVisible"
|
|
|
|
+ width="500px"
|
|
|
|
+ append-to-body
|
|
|
|
+ :close-on-click-modal="false"
|
|
|
|
+ >
|
|
<uploadEditor
|
|
<uploadEditor
|
|
v-model="noticeContent"
|
|
v-model="noticeContent"
|
|
style="min-height: 100px"
|
|
style="min-height: 100px"
|
|
@@ -536,17 +865,19 @@
|
|
<el-dialog
|
|
<el-dialog
|
|
title="查看作业"
|
|
title="查看作业"
|
|
:visible.sync="workLookVisible"
|
|
:visible.sync="workLookVisible"
|
|
- width="500px"
|
|
|
|
|
|
+ width="900px"
|
|
append-to-body
|
|
append-to-body
|
|
center
|
|
center
|
|
|
|
+ :close-on-click-modal="false"
|
|
>
|
|
>
|
|
- <div v-html="showWork"></div>
|
|
|
|
|
|
+ <div v-html="showWork" style="width: 100%; overflow: auto"></div>
|
|
<el-dialog
|
|
<el-dialog
|
|
width="30%"
|
|
width="30%"
|
|
title="拒绝原因"
|
|
title="拒绝原因"
|
|
:visible.sync="innerVisible"
|
|
:visible.sync="innerVisible"
|
|
append-to-body
|
|
append-to-body
|
|
center
|
|
center
|
|
|
|
+ :close-on-click-modal="false"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
placeholder="请输入拒绝原因"
|
|
placeholder="请输入拒绝原因"
|
|
@@ -606,6 +937,9 @@
|
|
<script>
|
|
<script>
|
|
// import { refreshCache } from "@/api/system/dict/type";
|
|
// import { refreshCache } from "@/api/system/dict/type";
|
|
import uploadEditor from "./uploadEditor.vue";
|
|
import uploadEditor from "./uploadEditor.vue";
|
|
|
|
+import { downFilePost } from "@/api/supplyChain/supplyChain";
|
|
|
|
+import Timeline from "./timeline/index.js";
|
|
|
|
+import TimelineItem from "./timeline-item/index.js";
|
|
import {
|
|
import {
|
|
getCity,
|
|
getCity,
|
|
checkItem,
|
|
checkItem,
|
|
@@ -613,13 +947,22 @@ import {
|
|
getList,
|
|
getList,
|
|
getCompany,
|
|
getCompany,
|
|
getPromoterInfo,
|
|
getPromoterInfo,
|
|
|
|
+ copyInfo,
|
|
|
|
+ courierNumberInfo,
|
|
|
|
+ removePreview,
|
|
|
|
+ updateCourierNumber,
|
|
|
|
+ toUpdateTask,
|
|
|
|
+ batchProcess,
|
|
} from "@/api/goodsManagement/goods";
|
|
} from "@/api/goodsManagement/goods";
|
|
|
|
+import { getSupplyChainUserList } from "@/api/supplyChain/supplyChain";
|
|
import selectTree from "./selectTree.vue";
|
|
import selectTree from "./selectTree.vue";
|
|
export default {
|
|
export default {
|
|
- name: "account-list",
|
|
|
|
|
|
+ name: "SamplingList",
|
|
components: {
|
|
components: {
|
|
selectTree,
|
|
selectTree,
|
|
uploadEditor,
|
|
uploadEditor,
|
|
|
|
+ Timeline,
|
|
|
|
+ TimelineItem,
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
const equalToPassword = (rule, value, callback) => {
|
|
const equalToPassword = (rule, value, callback) => {
|
|
@@ -685,18 +1028,24 @@ export default {
|
|
promoterNickName: undefined,
|
|
promoterNickName: undefined,
|
|
promoterId: undefined,
|
|
promoterId: undefined,
|
|
collectSampleStatus: "",
|
|
collectSampleStatus: "",
|
|
|
|
+ promoterPhone: undefined,
|
|
|
|
+ consignee: undefined,
|
|
|
|
+ itemCreateId: undefined,
|
|
|
|
+ collectSampleId: undefined,
|
|
},
|
|
},
|
|
//页面所有的下拉数据
|
|
//页面所有的下拉数据
|
|
queryParamsList: {
|
|
queryParamsList: {
|
|
tagList: [
|
|
tagList: [
|
|
{ value: "", label: "全部" },
|
|
{ value: "", label: "全部" },
|
|
{ value: "1", label: "待审核" },
|
|
{ value: "1", label: "待审核" },
|
|
- { value: "3", label: "待录入订单" },
|
|
|
|
|
|
+ { value: "3", label: "待录入单号" },
|
|
{ value: "4", label: "已发货" },
|
|
{ value: "4", label: "已发货" },
|
|
{ value: "5", label: "待上传作业" },
|
|
{ value: "5", label: "待上传作业" },
|
|
{ value: "6", label: "待审核作业" },
|
|
{ value: "6", label: "待审核作业" },
|
|
{ value: "2", label: "审核拒绝" },
|
|
{ value: "2", label: "审核拒绝" },
|
|
|
|
+ { value: "7", label: "审核通过" },
|
|
],
|
|
],
|
|
|
|
+ personList: [],
|
|
},
|
|
},
|
|
// 表单参数
|
|
// 表单参数
|
|
form: {},
|
|
form: {},
|
|
@@ -735,18 +1084,42 @@ export default {
|
|
itemId: null,
|
|
itemId: null,
|
|
promoterInfo: null,
|
|
promoterInfo: null,
|
|
loadingPromoterInfo: true,
|
|
loadingPromoterInfo: true,
|
|
|
|
+ loadingCourierNumber: true,
|
|
|
|
+ courierInfo: null,
|
|
|
|
+ okIds: [],
|
|
|
|
+ updateCourierNumberType: false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ activated() {
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.getPersonList();
|
|
|
|
+ if (localStorage.getItem("samplingType")) {
|
|
|
|
+ this.queryParams.collectSampleStatus = localStorage.getItem("samplingType");
|
|
|
|
+ } else {
|
|
|
|
+ // this.queryParams.collectSampleStatus = "1";
|
|
|
|
+ }
|
|
|
|
+ this.getList();
|
|
|
|
+ });
|
|
|
|
+ },
|
|
created() {
|
|
created() {
|
|
this.userId = this.$store.getters.userId;
|
|
this.userId = this.$store.getters.userId;
|
|
- this.getList();
|
|
|
|
|
|
+ this.getPersonList();
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ if (localStorage.getItem("samplingType")) {
|
|
|
|
+ this.queryParams.collectSampleStatus = localStorage.getItem("samplingType");
|
|
|
|
+ } else {
|
|
|
|
+ // this.queryParams.collectSampleStatus = "1";
|
|
|
|
+ }
|
|
|
|
+ this.getList();
|
|
|
|
+ });
|
|
},
|
|
},
|
|
filters: {
|
|
filters: {
|
|
activityItemStatusName(status) {
|
|
activityItemStatusName(status) {
|
|
const statusMap = {
|
|
const statusMap = {
|
|
1: "待审核",
|
|
1: "待审核",
|
|
- 2: "审核通过",
|
|
|
|
|
|
+ 2: "已上架",
|
|
3: "审核失败(拒绝)",
|
|
3: "审核失败(拒绝)",
|
|
|
|
+ 4: "活动结束",
|
|
5: "失效",
|
|
5: "失效",
|
|
};
|
|
};
|
|
return statusMap[status];
|
|
return statusMap[status];
|
|
@@ -765,7 +1138,87 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getRowKeys(row) {
|
|
|
|
+ return row.id;
|
|
|
|
+ },
|
|
|
|
+ batchProcess() {
|
|
|
|
+ if (this.okIds.length > 0) {
|
|
|
|
+ batchProcess({
|
|
|
|
+ ids: this.okIds,
|
|
|
|
+ status: 3,
|
|
|
|
+ userId: this.$store.getters.userId,
|
|
|
|
+ userName: this.$store.getters.name,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ this.okIds = [];
|
|
|
|
+ this.handleQuery();
|
|
|
|
+ this.$message.success(res.message);
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error("请选择领样");
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ getPersonList() {
|
|
|
|
+ getSupplyChainUserList().then((response) => {
|
|
|
|
+ this.queryParamsList.personList = response.rows;
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ handleSelectionChange(selection) {
|
|
|
|
+ this.okIds = selection.map((item) => item.id);
|
|
|
|
+ },
|
|
|
|
+ copyInfomation(item) {
|
|
|
|
+ copyInfo({ promoterId: item.promoterId }).then((res) => {
|
|
|
|
+ if (navigator.clipboard && window.isSecureContext) {
|
|
|
|
+ navigator.clipboard
|
|
|
|
+ .writeText(
|
|
|
|
+ `
|
|
|
|
+快手ID: ${item.promoterId}
|
|
|
|
+快手昵称: ${item.promoterNickName}
|
|
|
|
+粉丝量: ${res.data.fansNumber}
|
|
|
|
+总销售额: ${res.data.totalSale}
|
|
|
|
+收件人: ${item.consignee}
|
|
|
|
+手机号: ${item.promoterPhone}
|
|
|
|
+地址: ${item.promoterAddress}
|
|
|
|
+`
|
|
|
|
+ )
|
|
|
|
+ .then(() => {
|
|
|
|
+ this.$message.success("复制成功");
|
|
|
|
+ })
|
|
|
|
+ .catch((err) => {
|
|
|
|
+ this.$message.error("复制失败");
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ // 创建text area
|
|
|
|
+ const textArea = document.createElement("textarea");
|
|
|
|
+ textArea.value = `
|
|
|
|
+快手ID: ${item.promoterId}
|
|
|
|
+快手昵称: ${item.promoterNickName}
|
|
|
|
+粉丝量: ${res.data.fansNumber}
|
|
|
|
+总销售额: ${res.data.totalSale}
|
|
|
|
+收件人: ${item.consignee}
|
|
|
|
+手机号: ${item.promoterPhone}
|
|
|
|
+地址: ${item.promoterAddress}
|
|
|
|
+`;
|
|
|
|
+ // 使text area不在viewport,同时设置不可见
|
|
|
|
+ document.body.appendChild(textArea);
|
|
|
|
+ textArea.focus();
|
|
|
|
+ textArea.select();
|
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
|
+ // 执行复制命令并移除文本框
|
|
|
|
+ document.execCommand("copy") ? resolve() : reject(new Error("出错了"));
|
|
|
|
+ textArea.remove();
|
|
|
|
+ }).then(
|
|
|
|
+ () => {
|
|
|
|
+ this.$message.success("复制成功");
|
|
|
|
+ },
|
|
|
|
+ () => {
|
|
|
|
+ this.$message.error("复制失败");
|
|
|
|
+ }
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
toDetail(item) {
|
|
toDetail(item) {
|
|
|
|
+ localStorage.setItem("samplingType", this.queryParams.collectSampleStatus);
|
|
this.$router.replace({
|
|
this.$router.replace({
|
|
path: "/goodsManagement/detail",
|
|
path: "/goodsManagement/detail",
|
|
query: {
|
|
query: {
|
|
@@ -782,6 +1235,30 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ updateKd(item) {
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.ids = item.id;
|
|
|
|
+ this.openAllocation = true;
|
|
|
|
+ this.updateCourierNumberType = true;
|
|
|
|
+ getCompany().then((res) => {
|
|
|
|
+ this.superiorList = res;
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ courierNumberInfo(item) {
|
|
|
|
+ this.loadingCourierNumber = true;
|
|
|
|
+ courierNumberInfo({ courierNumber: item.courierNumber }).then((res) => {
|
|
|
|
+ if (res.code == 0) {
|
|
|
|
+ this.courierInfo = res.data
|
|
|
|
+ ? {
|
|
|
|
+ ...res.data,
|
|
|
|
+ expressData: JSON.parse(res.data.expressData),
|
|
|
|
+ }
|
|
|
|
+ : null;
|
|
|
|
+ this.loadingCourierNumber = false;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
workReject() {
|
|
workReject() {
|
|
if (!!this.innerInfo) {
|
|
if (!!this.innerInfo) {
|
|
var params = {};
|
|
var params = {};
|
|
@@ -814,6 +1291,10 @@ export default {
|
|
params.userName = this.$store.getters.name;
|
|
params.userName = this.$store.getters.name;
|
|
editPreview(params)
|
|
editPreview(params)
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
|
+ this.innerVisible = false;
|
|
|
|
+ this.innerInfo = null;
|
|
|
|
+ this.workLookVisible = false;
|
|
|
|
+ this.showWork = null;
|
|
this.getList();
|
|
this.getList();
|
|
this.$modal.msgSuccess("审核通过");
|
|
this.$modal.msgSuccess("审核通过");
|
|
})
|
|
})
|
|
@@ -866,6 +1347,40 @@ export default {
|
|
this.$message.error("请填写拒绝理由");
|
|
this.$message.error("请填写拒绝理由");
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ deleteInfomation(item) {
|
|
|
|
+ this.$modal
|
|
|
|
+ .confirm(`请确认是否作废该领样?`)
|
|
|
|
+ .then(() => {
|
|
|
|
+ var params = {};
|
|
|
|
+ params.id = item.id;
|
|
|
|
+ removePreview(params)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.getList();
|
|
|
|
+ this.$modal.msgSuccess("作废成功");
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ this.$message.error("失败");
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {});
|
|
|
|
+ },
|
|
|
|
+ toUpdateTask(item) {
|
|
|
|
+ this.$modal.confirm(`请确认是否提交至待上传作业?`).then(() => {
|
|
|
|
+ var params = {};
|
|
|
|
+ params.id = item.id;
|
|
|
|
+ params.collectSampleStatus = 5;
|
|
|
|
+ params.userId = this.$store.getters.userId;
|
|
|
|
+ params.userName = this.$store.getters.name;
|
|
|
|
+ editPreview(params)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.getList();
|
|
|
|
+ this.$modal.msgSuccess("审核通过");
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ this.$message.error("失败");
|
|
|
|
+ });
|
|
|
|
+ });
|
|
|
|
+ },
|
|
okInfomation(item) {
|
|
okInfomation(item) {
|
|
this.$modal
|
|
this.$modal
|
|
.confirm(`请确认是否审核通过该领样?`)
|
|
.confirm(`请确认是否审核通过该领样?`)
|
|
@@ -926,6 +1441,7 @@ export default {
|
|
},
|
|
},
|
|
handleClick() {
|
|
handleClick() {
|
|
this.queryParams.pageNum = 1;
|
|
this.queryParams.pageNum = 1;
|
|
|
|
+ this.queryParams.consignee = undefined;
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
/** 查询字典类型列表 */
|
|
/** 查询字典类型列表 */
|
|
@@ -966,23 +1482,36 @@ export default {
|
|
resetQuery() {
|
|
resetQuery() {
|
|
this.dateRange = [];
|
|
this.dateRange = [];
|
|
this.resetForm("queryForm");
|
|
this.resetForm("queryForm");
|
|
|
|
+ this.queryParams.consignee = undefined;
|
|
this.handleQuery();
|
|
this.handleQuery();
|
|
},
|
|
},
|
|
addNew() {
|
|
addNew() {
|
|
- this.openAllocation = true;
|
|
|
|
- this.edit = false;
|
|
|
|
- this.ids = null;
|
|
|
|
- this.confirmLoading = false;
|
|
|
|
- this.formBroadcast = {};
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.$refs.formBroadcast.clearValidate();
|
|
|
|
- }, 0);
|
|
|
|
|
|
+ if (this.okIds.length > 0) {
|
|
|
|
+ downFilePost("/itemCollectSamples/exportCollectSamples", {
|
|
|
|
+ ids: this.okIds,
|
|
|
|
+ }).then((res) => {
|
|
|
|
+ let blob = new Blob([res], {
|
|
|
|
+ type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
|
|
+ });
|
|
|
|
+ let downloadElement = document.createElement("a");
|
|
|
|
+ let href = window.URL.createObjectURL(blob); //创建下载的链接
|
|
|
|
+ downloadElement.href = href;
|
|
|
|
+ downloadElement.download = "领样详情.xlsx"; //下载后文件名
|
|
|
|
+ document.body.appendChild(downloadElement);
|
|
|
|
+ downloadElement.click(); //点击下载
|
|
|
|
+ document.body.removeChild(downloadElement); //下载完成移除元素
|
|
|
|
+ window.URL.revokeObjectURL(href); //释放掉blob对象
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$message.error("请选择领样");
|
|
|
|
+ }
|
|
},
|
|
},
|
|
/** 编辑地址 新增达人*/
|
|
/** 编辑地址 新增达人*/
|
|
handleAddbroadcast(item) {
|
|
handleAddbroadcast(item) {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.ids = item.id;
|
|
this.ids = item.id;
|
|
this.openAllocation = true;
|
|
this.openAllocation = true;
|
|
|
|
+ this.updateCourierNumberType = false;
|
|
getCompany().then((res) => {
|
|
getCompany().then((res) => {
|
|
this.superiorList = res;
|
|
this.superiorList = res;
|
|
});
|
|
});
|
|
@@ -999,20 +1528,35 @@ export default {
|
|
this.confirmLoading = true;
|
|
this.confirmLoading = true;
|
|
var params = { ...this.formBroadcast };
|
|
var params = { ...this.formBroadcast };
|
|
params.id = this.ids;
|
|
params.id = this.ids;
|
|
- params.userId = this.$store.getters.userId;
|
|
|
|
- params.userName = this.$store.getters.name;
|
|
|
|
- editPreview(params)
|
|
|
|
- .then((res) => {
|
|
|
|
- this.confirmLoading = false;
|
|
|
|
- this.openAllocation = false;
|
|
|
|
- this.formBroadcast = {};
|
|
|
|
- this.getList();
|
|
|
|
- this.$modal.msgSuccess("修改成功");
|
|
|
|
- })
|
|
|
|
- .catch(() => {
|
|
|
|
- this.confirmLoading = false;
|
|
|
|
- this.$message.error("失败");
|
|
|
|
- });
|
|
|
|
|
|
+ // params.userId = this.$store.getters.userId;
|
|
|
|
+ // params.userName = this.$store.getters.name;
|
|
|
|
+ if (this.updateCourierNumberType) {
|
|
|
|
+ updateCourierNumber(params)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.confirmLoading = false;
|
|
|
|
+ this.openAllocation = false;
|
|
|
|
+ this.formBroadcast = {};
|
|
|
|
+ this.getList();
|
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ this.confirmLoading = false;
|
|
|
|
+ this.$message.error("失败");
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ editPreview(params)
|
|
|
|
+ .then((res) => {
|
|
|
|
+ this.confirmLoading = false;
|
|
|
|
+ this.openAllocation = false;
|
|
|
|
+ this.formBroadcast = {};
|
|
|
|
+ this.getList();
|
|
|
|
+ this.$modal.msgSuccess("修改成功");
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ this.confirmLoading = false;
|
|
|
|
+ this.$message.error("失败");
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -1113,4 +1657,9 @@ export default {
|
|
::v-deep .el-tabs__content {
|
|
::v-deep .el-tabs__content {
|
|
overflow: initial;
|
|
overflow: initial;
|
|
}
|
|
}
|
|
|
|
+.show-main {
|
|
|
|
+ display: flex;
|
|
|
|
+ width: 100%;
|
|
|
|
+ justify-content: space-around;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|