Commit cc9fb4f1 by 张立顺

fix 字段和bug修复

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