Commit cc9fb4f1 by 张立顺

fix 字段和bug修复

1 parent 20c9e390
......@@ -54,6 +54,11 @@ export function getAllGoodsList(data) {
data.method = `${path}productManager.search`
return request(data, "post")
}
// 获取所有上架商品
export function getAllGoodsListPage(data) {
data.method = `${path}merchantGoodsInfo.upgradeGoods.page`
return request(data, "post")
}
// 批量下架
export function batchUpdateStatus(data) {
......
<template>
<div>
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose(false)">
@closeDialog="handleDetailClose(false)">
<div class="edit-order-dialog" v-if="dialogShow">
<div class="addressTitle">
<img src="../images/addressIcon.webp" alt="" class="icon">
......@@ -14,7 +14,7 @@
</div>
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage"
@refreshTable="refreshTable" :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
@refreshTable="refreshTable" :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
<div slot="nowPurNum" slot-scope="scope">
<div
v-if="detailInfo.tableData[scope.index].purchaseNumber == detailInfo.tableData[scope.index].goodsNumber">
......@@ -35,13 +35,13 @@
<div class="footer">
<el-button @click="handleDetailClose(false)">取消</el-button>
<el-button @click="submit" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确定</el-button>
:loading="$store.state.d2admin.loading.value">确定</el-button>
</div>
</div>
</baseDialog>
<card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo"
:selected-list="selectedCardList" @handleClose="handleCardDialog"
@handleConfirm="handleCardConfirm"></card-dialog>
:selected-list="selectedCardList" @handleClose="handleCardDialog"
@handleConfirm="handleCardConfirm"></card-dialog>
</div>
</template>
......@@ -280,7 +280,7 @@ export default {
.footer {
display: flex;
justify-content: end;
justify-content: flex-end;
}
.edit-order-dialog .el-input--medium.border-red .el-input__inner {
......
......@@ -2,14 +2,14 @@
<div>
<!-- 选择发货卡号 -->
<baseDialog class="card-dialog" :is-show.sync="cardVisible" :config="dialogConfig.setting"
:dialog-config="dialogConfig.config" @closeDialog="handleClose">
:dialog-config="dialogConfig.config" @closeDialog="handleClose">
<div class="flex head">
<div class="flex head-txt">
<div>已添加数量:{{ cardList.length }}</div>
<div>最大可添加数量:{{ cardMaxNum }}</div>
<div>
扫码框:<el-input style="width: 257px" placeholder="扫码输入请定位光标于此" v-model="scancode"
:maxlength="inputConfig.maxLen" clearable @change="handleScanChange"></el-input>
:maxlength="inputConfig.maxLen" clearable @change="handleScanChange"></el-input>
</div>
</div>
<div class="flex">
......@@ -20,47 +20,47 @@
</div>
<div class="reject-dialog">
<d2-table ref="purchaseOrderDetailTable" :height="'500'" :table-params="tableParams" :has-page="hasPage"
:has-num="hasNum" :table-data="tableList">
:has-num="hasNum" :table-data="tableList">
<div slot="cardOne" slot-scope="scope">
<template v-if="cardList.length > (inputConfig.rowNum * scope.index)">
<el-input :class="{ 'border-red': cardList[inputConfig.rowNum * scope.index].errorType }"
:placeholder="inputConfig.placeholder" v-model="cardList[3 * scope.index].cardNum"
:maxlength="inputConfig.maxLen" clearable
@input="e => handleInput(e, scope, inputConfig.rowNum * scope.index)"></el-input>
:placeholder="inputConfig.placeholder" v-model="cardList[3 * scope.index].cardNum"
:maxlength="inputConfig.maxLen" clearable
@input="e => handleInput(e, scope, inputConfig.rowNum * scope.index)"></el-input>
<el-tooltip v-if="cardList[inputConfig.rowNum * scope.index].errorType" class="item" effect="light"
:content="errorTypeObj[cardList[inputConfig.rowNum * scope.index].errorType]" placement="top-start">
:content="errorTypeObj[cardList[inputConfig.rowNum * scope.index].errorType]" placement="top-start">
<i class="el-icon-warning"></i>
</el-tooltip>
<img src="../images/icon-delete.png" alt="" class="icon"
@click="handleDelete(inputConfig.rowNum * scope.index)">
@click="handleDelete(inputConfig.rowNum * scope.index)">
</template>
</div>
<div slot="cardTwo" slot-scope="scope">
<template v-if="cardList.length > (inputConfig.rowNum * scope.index + 1)">
<el-input :class="{ 'border-red': cardList[inputConfig.rowNum * scope.index + 1].errorType }"
:placeholder="inputConfig.placeholder" v-model="cardList[3 * scope.index + 1].cardNum"
:maxlength="inputConfig.maxLen" clearable
@input="e => handleInput(e, scope, (inputConfig.rowNum * scope.index + 1))"></el-input>
:placeholder="inputConfig.placeholder" v-model="cardList[3 * scope.index + 1].cardNum"
:maxlength="inputConfig.maxLen" clearable
@input="e => handleInput(e, scope, (inputConfig.rowNum * scope.index + 1))"></el-input>
<el-tooltip v-if="cardList[inputConfig.rowNum * scope.index + 1].errorType" class="item" effect="light"
:content="errorTypeObj[cardList[inputConfig.rowNum * scope.index + 1].errorType]" placement="top-start">
:content="errorTypeObj[cardList[inputConfig.rowNum * scope.index + 1].errorType]" placement="top-start">
<i class="el-icon-warning"></i>
</el-tooltip>
<img src="../images/icon-delete.png" alt="" class="icon"
@click="handleDelete(inputConfig.rowNum * scope.index + 1)">
@click="handleDelete(inputConfig.rowNum * scope.index + 1)">
</template>
</div>
<div slot="cardThree" slot-scope="scope">
<template v-if="cardList.length > (inputConfig.rowNum * scope.index + 2)">
<el-input :class="{ 'border-red': cardList[inputConfig.rowNum * scope.index + 2].errorType }"
:placeholder="inputConfig.placeholder" v-model="cardList[3 * scope.index + 2].cardNum"
:maxlength="inputConfig.maxLen" clearable
@input="e => handleInput(e, scope, (inputConfig.rowNum * scope.index + 2))"></el-input>
:placeholder="inputConfig.placeholder" v-model="cardList[3 * scope.index + 2].cardNum"
:maxlength="inputConfig.maxLen" clearable
@input="e => handleInput(e, scope, (inputConfig.rowNum * scope.index + 2))"></el-input>
<el-tooltip v-if="cardList[inputConfig.rowNum * scope.index + 2].errorType" class="item" effect="light"
:content="errorTypeObj[cardList[inputConfig.rowNum * scope.index + 2].errorType]" placement="top-start">
:content="errorTypeObj[cardList[inputConfig.rowNum * scope.index + 2].errorType]" placement="top-start">
<i class="el-icon-warning"></i>
</el-tooltip>
<img src="../images/icon-delete.png" alt="" class="icon"
@click="handleDelete(inputConfig.rowNum * scope.index + 2)">
@click="handleDelete(inputConfig.rowNum * scope.index + 2)">
</template>
</div>
</d2-table>
......@@ -68,21 +68,21 @@
<div class="footer">
<el-button @click="handleClose">取消</el-button>
<el-button @click="handleConfirm" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确定</el-button>
:loading="$store.state.d2admin.loading.value">确定</el-button>
</div>
</baseDialog>
<!-- 批量导入 -->
<baseDialog v-if="batchVisible" class="batch-dialog" :is-show.sync="batchVisible" :config="batchConfig.setting"
:dialog-config="batchConfig.config" @closeDialog="handleBatchClose">
:dialog-config="batchConfig.config" @closeDialog="handleBatchClose">
<div>
<el-form :rules="batchRules" :model="batchData" label-width="150px" ref="batch-form">
<el-form-item label="起始卡号:" prop="startCode">
<el-input placeholder="请输入起始卡号" maxlength="50" show-word-limit v-model.trim="batchData.startCode"
class="dis-in-block" />
class="dis-in-block" />
</el-form-item>
<el-form-item label="结束卡号:" prop="endCode">
<el-input placeholder="请输入结束卡号" maxlength="50" show-word-limit v-model.trim="batchData.endCode"
class="dis-in-block" />
class="dis-in-block" />
</el-form-item>
<el-form-item>
<div class="tip-txt">请确保起始卡号与结束卡号格式一致且存在可识别区间,系统自动拆分并完成添加。</div>
......@@ -92,12 +92,12 @@
<div class="footer">
<el-button @click="handleBatchClose">取消</el-button>
<el-button @click="handleBatchConfirm" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确定</el-button>
:loading="$store.state.d2admin.loading.value">确定</el-button>
</div>
</baseDialog>
<!-- excel导入 -->
<baseDialog v-if="exportVisible" class="export-dialog" :is-show.sync="exportVisible" :config="exportConfig.setting"
:dialog-config="exportConfig.config" @closeDialog="handleExportClose">
:dialog-config="exportConfig.config" @closeDialog="handleExportClose">
<div v-if="exportConfig.isTips" class="tip-content">
<img v-if="exportConfig.tipConfig.type == 'success'" src="../images/icon-success.png" alt="" class="icon" />
<img v-else src="../images/icon-error.png" alt="" class="icon" />
......@@ -108,15 +108,16 @@
</el-link>
</div>
</div>
<el-form v-else :rules="exportRules" :model="exportData" label-width="100px" ref="export-form" class="tip-content">
<el-form v-else :rules="exportRules" :model="exportData" label-width="100px" ref="export-form"
class="tip-content">
<el-form-item label="上传文件:" prop="fileName">
<div class="flex">
<el-input style="width: 284px; margin-right: 8px;" placeholder="请选择" show-word-limit
v-model.trim="exportData.fileName" readonly class="dis-in-block" />
v-model.trim="exportData.fileName" readonly class="dis-in-block" />
<el-button class="import-btn" type="text">
<input type="file" id="fileUpload" class="import-input"
accept="application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@change="handleChooseFile($event)">
accept="application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@change="handleChooseFile($event)">
选择
</el-button>
</div>
......@@ -128,9 +129,9 @@
<div class="footer">
<el-button v-if="!exportConfig.isTips" @click="handleExportClose">取消</el-button>
<el-button v-if="!exportConfig.isTips" @click="handleExportConfirm" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确定</el-button>
:loading="$store.state.d2admin.loading.value">确定</el-button>
<el-button v-if="exportConfig.isTips" @click="handleTipsExportConfirm" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">我知道了</el-button>
:loading="$store.state.d2admin.loading.value">我知道了</el-button>
</div>
</baseDialog>
</div>
......@@ -513,7 +514,7 @@ export default {
.footer {
display: flex;
justify-content: end;
justify-content: flex-end;
}
.card-dialog .el-input--medium {
......@@ -596,4 +597,5 @@ export default {
cursor: pointer;
font-size: 0;
}
}</style>
}
</style>
<template>
<div>
<baseDialog :is-show.sync="dialogShow"
:config="dialogConfig.setting"
:dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose(false)">
<div class="edit-order-dialog"
v-if="dialogShow">
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose(false)">
<div class="edit-order-dialog" v-if="dialogShow">
<div class="addressTitle">
<img src="../images/addressIcon.webp"
alt=""
class="icon">
<img src="../images/addressIcon.webp" alt="" class="icon">
<span class="title">{{ paramsObj.merchantName }}</span>
</div>
<div class="address-info">
<span class="name">收货人:<span class="label">{{ detailInfo.contactName }}</span></span>
<span class="phone">电话:<span class="label">{{ detailInfo.contactPhone }}</span></span>
<span class="address">收货地址:<span
class="label">{{ detailInfo.contactAddress }}</span></span>
<span class="address">收货地址:<span class="label">{{ detailInfo.contactAddress }}</span></span>
</div>
<div class="table-class">
<d2-table ref="purchaseOrderDetailTable"
:table-params="tableParams"
:has-page="hasPage"
@refreshTable="refreshTable"
:table-data="detailInfo.tableData"
:table-total="detailInfo.tableTotal">
<div slot="nowPurNum"
slot-scope="scope">
<d2-table ref="purchaseOrderDetailTable" :table-params="tableParams" :has-page="hasPage"
@refreshTable="refreshTable" :table-data="detailInfo.tableData" :table-total="detailInfo.tableTotal">
<div slot="nowPurNum" slot-scope="scope">
<div
v-if="detailInfo.tableData[scope.index].purchaseNumber == 0 || detailInfo.tableData[scope.index].purchaseNumber != detailInfo.tableData[scope.index].goodsNumber">
<!-- 判断是否当前账户发货 -->
<el-input v-if="(isEmptyEdit && !detailInfo.tableData[scope.index].shipperUuid) || (detailInfo.tableData[scope.index].shipperUuid == userInfo.detail.uuid)"
:class="{ 'border-red': !nowPurNumList[scope.index] && isSubmit }"
placeholder="请输入"
v-model="nowPurNumList[scope.index]"
@input="e => handleInput(e, scope)"></el-input>
<el-input
v-if="(isEmptyEdit && !detailInfo.tableData[scope.index].shipperUuid) || (detailInfo.tableData[scope.index].shipperUuid == userInfo.detail.uuid)"
:class="{ 'border-red': !nowPurNumList[scope.index] && isSubmit }" placeholder="请输入"
v-model="nowPurNumList[scope.index]" @input="e => handleInput(e, scope)"></el-input>
<!-- <div v-if="detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid">{{ detailInfo.tableData[scope.index].shipper }}</div> -->
<div v-else>已分配:{{ detailInfo.tableData[scope.index].shipper }}</div>
</div>
<div v-else>{{ detailInfo.tableData[scope.index].shipperUuid ? '已分配:' +
detailInfo.tableData[scope.index].shipper : '--' }}</div>
detailInfo.tableData[scope.index].shipper : '--' }}</div>
</div>
<div slot="cardNum"
slot-scope="scope">
<div slot="cardNum" slot-scope="scope">
<div
v-if="detailInfo.tableData[scope.index].entityCardFlag != 'Y' || (detailInfo.tableData[scope.index].shipperUuid && detailInfo.tableData[scope.index].shipperUuid != userInfo.detail.uuid)">
-</div>
......@@ -50,12 +37,9 @@
v-else-if="detailInfo.tableData[scope.index].purchaseNumber != detailInfo.tableData[scope.index].goodsNumber">
<div v-if="deliveryCardList[scope.index] && deliveryCardList[scope.index].length">
+{{ deliveryCardList[scope.index].length }}
<el-button type="text"
@click="handleCard(scope)">重新选择</el-button>
<el-button type="text" @click="handleCard(scope)">重新选择</el-button>
</div>
<el-button v-else
type="text"
@click="handleCard(scope)">请选择发货卡号</el-button>
<el-button v-else type="text" @click="handleCard(scope)">请选择发货卡号</el-button>
</div>
<div v-else>-</div>
</div>
......@@ -63,31 +47,18 @@
</div>
<div class="form-content">
<el-form label-width="100px"
:rules="dialogRules"
:model="dialogData"
ref="delivery-dialog-form">
<el-form-item label="承运公司:"
prop="deliveryCompany">
<el-input placeholder="请输入承运物流公司"
maxlength="20"
v-model.trim="dialogData.deliveryCompany"
class="dis-in-block" />
<el-form label-width="100px" :rules="dialogRules" :model="dialogData" ref="delivery-dialog-form">
<el-form-item label="承运公司:" prop="deliveryCompany">
<el-input placeholder="请输入承运物流公司" maxlength="20" v-model.trim="dialogData.deliveryCompany"
class="dis-in-block" />
</el-form-item>
<el-form-item label="承运单号:"
prop="deliveryNumber">
<el-input maxlength="50"
placeholder="请输入承运物流单号"
v-model.trim="dialogData.deliveryNumber"
class="dis-in-block"
@input="deliveryNumberInput" />
<el-form-item label="承运单号:" prop="deliveryNumber">
<el-input maxlength="50" placeholder="请输入承运物流单号" v-model.trim="dialogData.deliveryNumber"
class="dis-in-block" @input="deliveryNumberInput" />
</el-form-item>
<el-form-item label="发货时间:"
prop="deliveryDate">
<el-date-picker class="dis-in-block"
v-model="dialogData.deliveryDate"
type="datetime"
placeholder="选择日期时间">
<el-form-item label="发货时间:" prop="deliveryDate">
<el-date-picker class="dis-in-block" v-model="dialogData.deliveryDate" type="datetime"
placeholder="选择日期时间">
</el-date-picker>
</el-form-item>
</el-form>
......@@ -95,20 +66,14 @@
<div class="footer">
<el-button @click="handleDetailClose(false)">取消</el-button>
<el-button @click="submit"
type="primary"
v-preventReClick
:loading="$store.state.d2admin.loading.value">确定</el-button>
<el-button @click="submit" type="primary" v-preventReClick
:loading="$store.state.d2admin.loading.value">确定</el-button>
</div>
</div>
</baseDialog>
<card-dialog v-if="cardVisible"
:card-visible="cardVisible"
:order-info="orderInfo"
:card-max-num="cardMaxNum"
:selected-list="selectedCardList"
@handleClose="handleCardDialog"
@handleConfirm="handleCardConfirm"></card-dialog>
<card-dialog v-if="cardVisible" :card-visible="cardVisible" :order-info="orderInfo" :card-max-num="cardMaxNum"
:selected-list="selectedCardList" @handleClose="handleCardDialog"
@handleConfirm="handleCardConfirm"></card-dialog>
</div>
</template>
......@@ -396,7 +361,7 @@ export default {
font-size: 14px;
color: #666666;
> span {
>span {
margin-right: 20px;
margin-bottom: 10px;
}
......@@ -420,7 +385,7 @@ export default {
.footer {
display: flex;
justify-content: end;
justify-content: flex-end;
}
.edit-order-dialog .el-input--medium.border-red .el-input__inner {
......
......@@ -26,7 +26,7 @@
</span>
</d2-table-header>
<d2-table ref="purchaseAndDeliveryTable" :search-form="tableSearchForm" :table-params="tableParams"
:table-data="tableData" :get-list-api="getListApi" :before-search-fn="beforeSearchFn">
: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;">
......@@ -50,10 +50,10 @@
</div>
<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">
@editClose="editClose">
</EditOrderDialog>
<AllocateDialog v-if="allocateVisible" :visible.sync="allocateVisible" :params-obj="allocateData"
@editClose="allocateClose">
@editClose="allocateClose">
</AllocateDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
<baseDialog :is-show.sync="rejectVisible" :dialog-config="rejectConfig.config" @handleClick="handleRejectConfirm">
......@@ -63,7 +63,7 @@
<el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form">
<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" />
v-model.trim="rejectData.rejectCause" class="dis-in-block reject-input" />
</el-form-item>
</el-form>
</div>
......@@ -495,6 +495,6 @@ export default {
.footer {
display: flex;
justify-content: end;
justify-content: flex-end;
}
</style>
......@@ -10,52 +10,33 @@
<div class="info">
<div>
{{ i.text }}
<el-tooltip
effect="dark"
:content="i.tooltip"
placement="top"
v-if="i.tooltip">
<el-tooltip effect="dark" :content="i.tooltip" placement="top" v-if="i.tooltip">
<img class="mark" src="@/assets/mark.png" />
</el-tooltip>
</div>
<div
class="time"
v-html="i.formatter && i.formatter(statistics)"></div>
<div class="time" v-html="i.formatter && i.formatter(statistics)"></div>
</div>
</div>
</div>
<d2-search
ref="showSearch"
class="show-search"
label-width="110px"
:search-form="searchForm"
<d2-search ref="showSearch" class="show-search" label-width="110px" :search-form="searchForm"
:form-data="showFormData">
<div slot="searchdate">
<el-date-picker
v-model="searchForm.searchdate"
type="date"
placeholder="选择日期"
<el-date-picker v-model="searchForm.searchdate" type="date" placeholder="选择日期"
:picker-options="rangePickerOptions">
</el-date-picker>
</div>
<!-- 质检评分 -->
<div slot="score">
<el-input-range
start-placeholder="请输入"
end-placeholder="请输入"
<el-input-range start-placeholder="请输入" end-placeholder="请输入"
:display-value="searchForm.qualityTestScore"></el-input-range>
</div>
<!-- 当日到店量 -->
<div slot="toStoreCount">
<el-input-range
start-placeholder="请输入"
end-placeholder="请输入"
<el-input-range start-placeholder="请输入" end-placeholder="请输入"
:display-value="searchForm.toStoreCount"></el-input-range>
</div>
<div slot="AbnormalProportion">
<el-input-range
start-placeholder="请输入"
end-placeholder="请输入"
<el-input-range start-placeholder="请输入" end-placeholder="请输入"
:display-value="searchForm.AbnormalProportion"></el-input-range>
</div>
</d2-search>
......@@ -67,12 +48,8 @@
</div>
</div>
<d2-table
ref="qualityTable"
:get-list-api="getListApi"
:search-form="searchFormSearch"
:table-params="tableParams"
:before-search-fn="beforeSearchFn">
<d2-table ref="qualityTable" :get-list-api="getListApi" :search-form="searchFormSearch"
:table-params="tableParams" :before-search-fn="beforeSearchFn">
<div slot="seconds" slot-scope="scope">
<template v-if="scope.scope.seconds">
{{ (scope.scope.seconds / 60).toFixed(1) }}
......@@ -80,8 +57,7 @@
<template v-else>--</template>
</div>
<div slot="store" slot-scope="scope">
<template
v-if="scope.scope.storeList && scope.scope.storeList.length > 1">
<template v-if="scope.scope.storeList && scope.scope.storeList.length > 1">
<span>{{ scope.scope.storeList.slice(0, 1).join("") }}</span>
<el-popover placement="top" width="fit-content" trigger="hover">
<div v-for="(item, index) in scope.scope.storeList" :key="index">
......@@ -96,21 +72,17 @@
</template>
</div>
<div slot="service" slot-scope="scope">
<template
v-if="scope.scope.serviceList && scope.scope.serviceList.length > 1">
<template v-if="scope.scope.serviceList && scope.scope.serviceList.length > 1">
<span>{{ scope.scope.serviceList.slice(0, 1).join("") }}</span>
<el-popover placement="top" width="fit-content" trigger="hover">
<div
v-for="(item, index) in scope.scope.serviceList"
:key="index">
<div v-for="(item, index) in scope.scope.serviceList" :key="index">
{{ item }}
</div>
<span class="more-info" slot="reference">...({{ scope.scope.serviceList.length }})</span>
</el-popover>
</template>
<template v-else>
<span
v-if="!scope.scope.serviceList || !scope.scope.serviceList.length">--</span>
<span v-if="!scope.scope.serviceList || !scope.scope.serviceList.length">--</span>
<span v-else>{{ scope.scope.serviceList.join("") }}</span>
</template>
</div>
......@@ -120,10 +92,7 @@
</template>
<template v-else>统计中</template>
</div>
<auth-button
slot="auth-button"
slot-scope="scope"
:data="scope.scope" />
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</d2-container>
</div>
......@@ -151,15 +120,12 @@ export default {
formatter: (data) => {
const strHtml = this.toMinutesAndSeconds(data.totalRecordingDuration)
.h
? `<span style="font-weight:700;font-size:26px">${
this.toMinutesAndSeconds(data.totalRecordingDuration).h
? `<span style="font-weight:700;font-size:26px">${this.toMinutesAndSeconds(data.totalRecordingDuration).h
}</span>小时
<span style="font-weight:700;font-size:26px;">${
this.toMinutesAndSeconds(data.totalRecordingDuration).m
}</span>分钟
<span style="font-weight:700;font-size:26px;">${this.toMinutesAndSeconds(data.totalRecordingDuration).m
}</span>分钟
`
: ` <span style="font-weight:700;font-size:26px;">${
this.toMinutesAndSeconds(data.totalRecordingDuration).m
: ` <span style="font-weight:700;font-size:26px;">${this.toMinutesAndSeconds(data.totalRecordingDuration).m
}</span>分钟`
return strHtml
}
......@@ -331,7 +297,8 @@ export default {
},
{
label: "当日到店量/人",
prop: "toStoreCount",
// prop: "toStoreCount",
prop: "enterReceptionBatch",
width: "150px",
renderHeader: (createElement) => {
return createElement("div", { style: "margin-left:-10px" }, [
......@@ -538,7 +505,7 @@ export default {
if (
this.baseData[item.optionsName]?.length &&
this.baseData[item.optionsName][0][
this.showFormData[index].optionLabel
this.showFormData[index].optionLabel
] !== "全部"
) {
const temp = {}
......@@ -592,6 +559,7 @@ export default {
background: #ffffff;
padding: 16px 20px;
border-bottom: 16px solid #f0f1f7;
.item {
width: 274px;
height: 104px;
......@@ -602,21 +570,26 @@ export default {
margin-right: 16px;
background: #f7f9fa;
border-radius: 4px;
.icon {
width: 40px;
height: 40px;
margin-right: 20px;
img {
width: 100%;
height: 100%;
}
}
.info {
font-size: 14px;
color: #333333;
.time {
color: #333333;
margin-top: 12px;
.fw {
font-weight: 700;
font-size: 26px;
......@@ -625,6 +598,7 @@ export default {
}
}
}
.el-range-input {
appearance: none;
border: none;
......@@ -638,12 +612,14 @@ export default {
font-size: 14px;
color: #606266;
}
.more-info {
white-space: nowrap;
color: #5850ff;
cursor: pointer;
}
}
.mark {
width: 16px;
height: 16px;
......
......@@ -2,18 +2,11 @@
<template>
<div>
<d2-container>
<div class="header"
slot="header"
style="padding: 10px 20px;">
<d2-search ref="showSearch"
class="show-search"
label-width="100px"
:search-form="searchForm"
:form-data="showFormData" />
<div class="header" slot="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" label-width="100px" :search-form="searchForm"
:form-data="showFormData" />
<div class="up-btns">
<el-button @click="handleSearch"
size="small"
type="primary">
<el-button @click="handleSearch" size="small" type="primary">
查询
</el-button>
<!-- <el-button size="small"
......@@ -181,6 +174,6 @@ export default {
.footer {
display: flex;
justify-content: end;
justify-content: flex-end;
}
</style>
......@@ -4,7 +4,7 @@
<d2-container>
<div class="header" slot="header" style="padding: 10px 20px;">
<d2-search ref="showSearch" class="show-search" label-width="100px" :search-form="searchForm"
:form-data="showFormData" />
:form-data="showFormData" />
<div class="up-btns">
<el-button :id="tableParams.btnId" size="small" type="primary">
查询
......@@ -18,8 +18,8 @@
<d2-table-header>
<auth-button category="Button" />
</d2-table-header>
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams"
:before-search-fn="beforeSearchFn">
<d2-table ref="recordTable" :get-list-api="getListApi" :search-form="searchFormSearch"
:table-params="tableParams" :before-search-fn="beforeSearchFn">
<auth-button slot="auth-button" slot-scope="scope" :data="scope.scope" />
</d2-table>
</div>
......@@ -28,7 +28,7 @@
<el-form :rules="rejectRules" :model="rejectData" label-width="150px" ref="delivery-dialog-form">
<el-form-item label="驳回原因:" prop="rejectedReason">
<el-input type="textarea" placeholder="请输入驳回原因" maxlength="50" :rows="3" show-word-limit
v-model.trim="rejectData.rejectedReason" class="dis-in-block reject-input" />
v-model.trim="rejectData.rejectedReason" class="dis-in-block reject-input" />
</el-form-item>
</el-form>
</div>
......@@ -318,6 +318,6 @@ export default {
.footer {
display: flex;
justify-content: end;
justify-content: flex-end;
}
</style>
<!-- 员工标签 -->
<template>
<baseDialog :dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm">
<baseDialog :dialog-config="dialogConfig" :is-show.sync="visible" class="accountDailog"
@handleClick="handleAddConfirm">
<div class="detail-dialog">
<el-form ref="flagFrom"
class="flagFrom d2-container-content"
:model="infoForm"
label-width="250px"
v-loading="$store.state.d2admin.loading.value">
<el-form-item label="员工姓名:"
class="flag-div">
<el-form ref="flagFrom" class="flagFrom d2-container-content" :model="infoForm" label-width="250px"
v-loading="$store.state.d2admin.loading.value">
<el-form-item label="员工姓名:" class="flag-div">
{{ info.staffName }}
</el-form-item>
<el-form-item label="服务门店:"
class="flag-div">
<el-select v-model="shopMerchant"
placeholder="请选择"
class="el_select itd"
@change="staffLabelDetail">
<el-option v-for="item in info.shopMerchantList"
:key="item.merchantId"
:value="item.merchantId"
:label="item.merchantName + ' ' + item.merchantId" />
<el-form-item label="服务门店:" class="flag-div">
<el-select v-model="shopMerchant" placeholder="请选择" class="el_select itd" @change="staffLabelDetail">
<el-option v-for="item in info.shopMerchantList" :key="item.merchantId" :value="item.merchantId"
:label="item.merchantName + ' ' + item.merchantId" />
</el-select>
</el-form-item>
<el-form-item label=""
v-for="(item, index1) in commLabelUnitList"
class="flag-div">
<span class="tips-block"
slot="label">
<el-form-item label="" v-for="(item, index1) in commLabelUnitList" class="flag-div" :key="index1">
<span class="tips-block" slot="label">
<span class="tips-label">{{ item.commLabelGroupInfo.groupName }}</span>
<el-tooltip popper-class="tooltip-class"
effect="dark"
placement="right">
<el-tooltip popper-class="tooltip-class" effect="dark" placement="right">
<div slot="content">{{ item.commLabelGroupInfo.groupDesc }}</div>
<span class="tips-icon" />
</el-tooltip>:
</span>
<span v-for="(obj, index2) in item.commLabelList"
class="label-span">{{ obj.labelName }}</span>
<span v-for="(obj, index2) in item.commLabelList" class="label-span" :key="index2">{{ obj.labelName }}</span>
</el-form-item>
</el-form>
</div>
......@@ -124,11 +106,14 @@ export default {
.flagFrom.d2-container-content {
margin-top: 0 !important;
}
.detail-dialog {
.itd {
width: 400px;
}
.flag-div {
// height: 40rpx;
// font-family: PingFangSC-Regular;
// font-weight: 400;
......
......@@ -16,7 +16,7 @@
<span class="tips-block" slot="label">
<span class="tips-label">线上自动分账</span>
<el-tooltip popper-class="tooltip-class" effect="dark" content="产生交易后会自动打款给商户,开启及关闭操作第二天生效。"
placement="top">
placement="top">
<span class="tips-icon" />
</el-tooltip>:
</span>
......@@ -34,7 +34,7 @@
<el-radio :label="1">
分账周期 T+
<el-input-number v-model="settleTimeObj.first" controls-position="right" size="small" :min="0"
:max="20" :disabled="financialObj.autoFlag === 'N'" />
:max="20" :disabled="financialObj.autoFlag === 'N'" />
日
<span v-show="financialObj.settleTimeType == 1">(分账后第2天到分账方对公账户)</span>
</el-radio>
......@@ -59,10 +59,10 @@
<el-form-item label="平台方分账方" prop="realityPlatformMerchantId" required>
<el-select v-model="financialObj.realityPlatformMerchantId" filterable placeholder="请选择平台方分账方">
<el-option v-for="item in baseData.PlatformLevelList" :key="item.merchantId"
:label="item.showMerchantName" :value="item.merchantId" />
:label="item.showMerchantName" :value="item.merchantId" />
</el-select>
<el-checkbox class="ml10" true-label="Y" false-label="N"
v-model="financialObj.multiPlatformMerchantFlag">开启多平台分账
v-model="financialObj.multiPlatformMerchantFlag">开启多平台分账
</el-checkbox>
<el-tooltip class="item" effect="dark" placement="right">
<i class="el-icon-info"> </i>
......@@ -75,31 +75,31 @@
<!-- @change="refreshData" -->
<el-select v-model="financialObj.realityShopMerchantId" placeholder="请选择流量方分账方">
<el-option v-for="item in baseData.merchantLevelList" :key="item.merchantId"
:label="item.showMerchantName" :value="item.merchantId" />
:label="item.showMerchantName" :value="item.merchantId" />
</el-select>
</el-form-item>
</el-form>
</div>
<!-- @tab-click="clickTab" -->
<el-tabs v-model="editableTabsValue" type="card" @tab-remove="removeTab" :before-leave="beforeLeave"
class="my-tab-pane">
class="my-tab-pane">
<!-- closable -->
<el-tab-pane v-for="(item, idx) in editableTabs" :key="item.name" :label="item.title" :name="item.name"
:closable="idx != 0">
:closable="idx != 0">
<span slot="label"><i v-show="item.testFlag != 'Y'" class="el-icon-warning car-error-txt" />{{ item.title }}
</span>
<div class="classificationCptContainer">
<classificationCpt :ref="`classification${item.name}`" :key="idx" :goods-list="goodsTypeGroupRelations"
:goods-type-group-rules="financialObj['goodsTypeGroupRules'][idx]" :goods-select-list="goodsSelectList"
:financial-ledger-party="financialLedgerParty" :tabindex="idx" :tab-item="item"
:service-merchant-list="serviceMerchantList" :router-info="routerInfo"
:classification-obj-select="classificationObj" @rulesTest="rulesTest"
@assignGoodsTypeList="assignGoodsTypeList" @deleteGoodsTypeItem="deleteGoodsTypeItem"
@checkSuccess="checkSuccess(idx)" :upgrade-goods-list="upgradeGoodsList"
:package-goods-list="packageGoodsList" @assignPackageGoodsList="assignPackageGoodsList"
:select-package-goods-list="selectPackageGoodsList" @deletePackageGoodsItem="deletePackageGoodsItem"
@deleteUpgradeGoodsItem="deleteUpgradeGoodsItem" @assignUpgradeGoodsList="assignUpgradeGoodsList"
:select-upgrade-goods-list="selectUpgradeGoodsList" />
:goods-type-group-rules="financialObj['goodsTypeGroupRules'][idx]" :goods-select-list="goodsSelectList"
:financial-ledger-party="financialLedgerParty" :tabindex="idx" :tab-item="item"
:service-merchant-list="serviceMerchantList" :router-info="routerInfo"
:classification-obj-select="classificationObj" @rulesTest="rulesTest"
@assignGoodsTypeList="assignGoodsTypeList" @deleteGoodsTypeItem="deleteGoodsTypeItem"
@checkSuccess="checkSuccess(idx)" :upgrade-goods-list="upgradeGoodsList"
:package-goods-list="packageGoodsList" @assignPackageGoodsList="assignPackageGoodsList"
:select-package-goods-list="selectPackageGoodsList" @deletePackageGoodsItem="deletePackageGoodsItem"
@deleteUpgradeGoodsItem="deleteUpgradeGoodsItem" @assignUpgradeGoodsList="assignUpgradeGoodsList"
:select-upgrade-goods-list="selectUpgradeGoodsList" />
</div>
</el-tab-pane>
<el-tab-pane key="add" v-if="addVisible" name="add">
......@@ -114,11 +114,11 @@
</div>
</div>
<verificationCodeDialog v-if="verificationCodeVisible" :effect-start-date="effectStartDate"
@handleConfirm="codeHandleConfirm" :visible.sync="verificationCodeVisible" />
@handleConfirm="codeHandleConfirm" :visible.sync="verificationCodeVisible" />
<!-- 财务分账测试 -->
<merchantTestDialog v-if="merchantTestVisible" :rules-test-params="rulesTestParams"
:visible.sync="merchantTestVisible" />
:visible.sync="merchantTestVisible" />
</d2-Container>
</template>
......@@ -137,7 +137,7 @@ import { queryFeeCategoryByType, getGoodsCategoryConfiguration } from '@/api/sys
import verificationCodeDialog from './components/verificationCodeDialog'
import classificationCpt from './components/classificationCpt.vue'
import merchantTestDialog from './components/merchantTestDialog'
import { getAllGoodsList, merchantPackageGoodsInfoPage } from '@api/grounding'
import { getAllGoodsListPage as getAllGoodsList, merchantPackageGoodsInfoPage } from '@api/grounding'
export default {
name: 'FinancialRules',
// isNeedVuex: true,
......@@ -690,21 +690,25 @@ export default {
},
getSelectingList(defaultSelect) {
getAllGoodsList({
goodsNameKeyword: this.goodsNameKeyword,
upgradeGoodsNameOrCCode: this.goodsNameKeyword,
merchantIdList: [this.routerInfo.merchantId],
statusList: [1],
sceneTypeList: [this.routerInfo.scene],
currentPage: this.currentPage,
pageSize: this.pageSize
}).then(res => {
console.log(res, 'getAllGoodsList')
this.allPages = res.pages
const resArr = []
res.list && res.list.forEach(val => {
val.upgradeGoodsList.forEach(v => {
resArr.push({
upgradeGoodsId: v.id,
upgradeGoodsName: v?.upgradeGoodsName,
commodityCode: v?.commodityCode
})
})
})
const resArr = [...res.list]
// res.list && res.list.forEach(val => {
// val.upgradeGoodsList.forEach(v => {
// resArr.push({
// upgradeGoodsId: v.id,
// upgradeGoodsName: v?.upgradeGoodsName,
// commodityCode: v?.commodityCode
// })
// })
// })
let arr = this.upgradeGoodsList.concat(resArr)
if (defaultSelect?.length) arr = arr.concat(defaultSelect)
this.upgradeGoodsList = this.unique(arr)
......
......@@ -12,32 +12,32 @@
<div class="multiple-type" v-for="(item, index) in formObjConfig" :key="index">
<!-- <template v-if=""></template> -->
<el-form-item :prop="item.typeName" :rules="[{
required: true,
message: item.message,
trigger: 'blur'
}]" label-width="234px" :label="item.label">
required: true,
message: item.message,
trigger: 'blur'
}]" label-width="234px" :label="item.label">
<el-select class="w432" v-model="formObj[item.typeName]" placeholder="请选择对账费用">
<el-option v-for="(optionsItem, optionsIndex) in item.options" :key="optionsIndex"
:label="optionsItem.label" :value="optionsItem.expenseCategoryCalculateType"></el-option>
:label="optionsItem.label" :value="optionsItem.expenseCategoryCalculateType"></el-option>
</el-select>
</el-form-item>
<el-form-item label-width="0px" :prop="item.valueName" :rules="[
{ required: true, message: '请输入', trigger: 'blur' },
{
pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
message: '请输入正确额格式,可保留两位小数'
}
]" class="ml20">
{ required: true, message: '请输入', trigger: 'blur' },
{
pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
message: '请输入正确额格式,可保留两位小数'
}
]" class="ml20">
<el-input v-model="formObj[item.valueName]" v-if="formObj[item.typeName] == 3" type="number"
oninput="if(value>999999)value=999999;if(value<0)value=0"></el-input>
oninput="if(value>999999)value=999999;if(value<0)value=0"></el-input>
<el-input v-model="formObj[item.valueName]" v-else type="number"
oninput="if(value>100)value=100;if(value<0)value=0">
oninput="if(value>100)value=100;if(value<0)value=0">
<span slot="suffix">
{{
hasSignal(
formObj[item.typeName]
)
}}
hasSignal(
formObj[item.typeName]
)
}}
</span>
</el-input>
</el-form-item>
......@@ -48,21 +48,21 @@
<div class="check-tab">
<!-- @tab-click="clickTab" -->
<el-tabs v-model="editableTabsValue" type="card" @tab-remove="removeTab" :before-leave="beforeLeave"
class="my-tab-pane">
class="my-tab-pane">
<el-tab-pane v-for="(item, idx) in editableTabs" :key="item.name" :label="item.title" :name="item.name"
:closable="idx != 0">
:closable="idx != 0">
<span slot="label"><i class="el-icon-warning car-error-txt" v-if="errorIndex == idx" />{{ item.title }}
</span>
<div class="classificationCptContainer">
<classificationCpt :goods-list="goodsTypeGroupRelations" :ref="`classification${item.name}`"
:router-info="routerInfo" :goods-type-group-reconciliation-rules="goodsTypeGroupReconciliationRules"
:goods-select-list="goodsSelectList" :query-fee-category-by-type-flow="queryFeeCategoryByTypeFlow"
:query-fee-category-by-type-serve="queryFeeCategoryByTypeServe" :tabindex="idx" :key="idx"
@assignGoodsTypeList="assignGoodsTypeList" @deleteGoodsTypeItem="deleteGoodsTypeItem"
:upgrade-goods-list="upgradeGoodsList" @deleteUpgradeGoodsItem="deleteUpgradeGoodsItem"
@assignUpgradeGoodsList="assignUpgradeGoodsList" :select-upgrade-goods-list="selectUpgradeGoodsList"
:package-goods-list="packageGoodsList" @assignPackageGoodsList="assignPackageGoodsList"
:select-package-goods-list="selectPackageGoodsList" @deletePackageGoodsItem="deletePackageGoodsItem" />
:router-info="routerInfo" :goods-type-group-reconciliation-rules="goodsTypeGroupReconciliationRules"
:goods-select-list="goodsSelectList" :query-fee-category-by-type-flow="queryFeeCategoryByTypeFlow"
:query-fee-category-by-type-serve="queryFeeCategoryByTypeServe" :tabindex="idx" :key="idx"
@assignGoodsTypeList="assignGoodsTypeList" @deleteGoodsTypeItem="deleteGoodsTypeItem"
:upgrade-goods-list="upgradeGoodsList" @deleteUpgradeGoodsItem="deleteUpgradeGoodsItem"
@assignUpgradeGoodsList="assignUpgradeGoodsList" :select-upgrade-goods-list="selectUpgradeGoodsList"
:package-goods-list="packageGoodsList" @assignPackageGoodsList="assignPackageGoodsList"
:select-package-goods-list="selectPackageGoodsList" @deletePackageGoodsItem="deletePackageGoodsItem" />
</div>
</el-tab-pane>
<el-tab-pane key="add" v-if="addVisible" name="add">
......@@ -79,7 +79,7 @@
</div>
</div>
<verificationCodeDialog v-if="verificationCodeVisible" :effect-start-date="effectStartDate"
@handleConfirm="codeHandleConfirm" :visible.sync="verificationCodeVisible" />
@handleConfirm="codeHandleConfirm" :visible.sync="verificationCodeVisible" />
</d2-Container>
</template>
......@@ -325,16 +325,16 @@ export default {
pageSize: this.pageSize
}).then(res => {
this.allPages = res.pages
const resArr = []
res.list && res.list.forEach(val => {
val.upgradeGoodsList.forEach(v => {
resArr.push({
upgradeGoodsId: v.id,
upgradeGoodsName: v?.upgradeGoodsName,
commodityCode: v?.commodityCode
})
})
})
const resArr = [...res.list]
// res.list && res.list.forEach(val => {
// val.upgradeGoodsList.forEach(v => {
// resArr.push({
// upgradeGoodsId: v.id,
// upgradeGoodsName: v?.upgradeGoodsName,
// commodityCode: v?.commodityCode
// })
// })
// })
let arr = this.upgradeGoodsList.concat(resArr)
// 已选中的做为回显用 将数据追加进去
if (defaultSelect?.length) arr = arr.concat(defaultSelect)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!