Commit 18ea8515 by wangzhihui

Merge branch 'SAAS+V5.8.4' of http://192.168.3.233:8090/saas_plus/dj-car-life-sy…

…stem into feature/584/wzh
2 parents 9ec589b5 7ee16a9b
......@@ -78,6 +78,7 @@
<el-cascader v-model="searchForm.accDetailTagPath"
class="tag-search-cascader"
placeholder="请选择"
popper-class="tag-search-cascader-popper"
separator=" / "
clearable
filterable
......@@ -1150,6 +1151,13 @@ export default {
};
</script>
<style lang="scss">
.tag-search-cascader-popper .el-cascader-panel .el-radio__inner {
width: 18px !important;
height: 18px !important;
}
</style>
<style lang="scss" scoped>
.count-txt {
font-weight: 700;
......
......@@ -245,6 +245,10 @@ export default {
type: Boolean,
default: true,
},
isDetail: {
type: Boolean,
default: false,
},
},
data() {
return {
......@@ -277,15 +281,14 @@ export default {
if (this.useEdit) {
await this.getCalculateData();
}
if (this.isDetail) {
await this.refreshTableData();
return;
}
await this.withLoading(async () => {
const { profitRateCalFinish } = await getShelfProductUpdateStep({ businessCode: this.businessCode });
if (profitRateCalFinish === "Y") {
await this.getTableData();
await this.$nextTick();
await this.setTableHeight();
if (this.$refs.tableRef) {
this.$refs.tableRef.doLayout();
}
await this.refreshTableData();
return;
}
if (this.useEdit) {
......@@ -342,6 +345,14 @@ export default {
this.table.query.pages = pages;
this.table.query.total = total;
},
async refreshTableData() {
await this.getTableData();
await this.$nextTick();
await this.setTableHeight();
if (this.$refs.tableRef) {
this.$refs.tableRef.doLayout();
}
},
async setTableHeight() {
const tableWrapperRef = this.$refs.tableWrapperRef;
......
......@@ -28,7 +28,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="一线阳光是否前置"
<el-form-item label="一线激励是否前置"
label-width="224px"
prop="firstLineSunshinePrerequisite">
<el-select v-model="form.firstLineSunshinePrerequisite"
......@@ -257,9 +257,9 @@ export default {
"managementMarketingFeesPrerequisite": [
{ required: true, message: "请选择管理层市场费是否前置", trigger: "change" },
],
// 请选择一线阳光是否前置
// 请选择一线激励是否前置
"firstLineSunshinePrerequisite": [
{ required: true, message: "请选择一线阳光是否前置", trigger: "change" },
{ required: true, message: "请选择一线激励是否前置", trigger: "change" },
],
"specialDetail.categoryType": [
{ required: true, message: "请选择分账品类", trigger: "change" },
......
......@@ -296,7 +296,7 @@ export default {
...pageQuery,
merchantIds: Array.isArray(this.merchantId) ? this.merchantId : [this.merchantId],
baseSceneCode: this.baseSceneCode,
productName: pageQuery.searchValue,
packageld: pageQuery.searchValue,
});
return {
list: res.list,
......
......@@ -221,9 +221,9 @@
</el-col>
<el-col v-if="showUpgradeProductCostStyle" :span="12">
<el-form-item label="商品成本带入方式:"
<el-form-item label="产品成本获取方式:"
prop="detailList[0].upgradeProductCostStyle"
:rules="[{ required: true, message: '请选择商品成本带入方式', trigger: 'change' }]">
:rules="[{ required: true, message: '请选择产品成本获取方式', trigger: 'change' }]">
<el-radio-group v-model="product.detailList[0].upgradeProductCostStyle"
@change="handleUpgradeProductCostStyleChange">
<template v-for="item in options.productCostStyleOpt">
......@@ -438,7 +438,7 @@ export default {
...pageQuery,
merchantIds: Array.isArray(this.merchantId) ? this.merchantId : [this.merchantId],
baseSceneCode: this.baseSceneCode,
productName: pageQuery.searchValue,
goodsCode: pageQuery.searchValue,
});
return {
list: res.list,
......@@ -469,7 +469,7 @@ export default {
this.dialog.selectGoods.show = false;
},
// 商品成本带入方式变动 更新成本
// 产品成本获取方式变动 更新成本
async updateCost() {
// 如果是自定义成本带入方式 则 不更新成本
if (isUpgradeProductCostStyleCustom(this.product?.detailList?.[0]?.upgradeProductCostStyle)) {
......@@ -502,7 +502,7 @@ export default {
}
},
/**
* 商品成本带入方式 变更
* 产品成本获取方式 变更
*/
async handleUpgradeProductCostStyleChange(e) {
await this.$nextTick();
......@@ -530,8 +530,8 @@ export default {
upgradeGoods.positionList = upgradeGoods.position.split(",").map(Number);
}
this.$emit("update:upgradeGoods", upgradeGoods);
await this.$nextTick();
await this.updateCost();
// await this.$nextTick();
// await this.updateCost();
this.handleSelectGoodsClose();
},
async validate() {
......
......@@ -256,7 +256,7 @@ export async function getProductDetailDescriptionSchema(shelfType) {
{
name: "detailList.0.upgradeProductCostStyle",
label: "产品、升级成本/件",
label: "产品成本获取方式",
col: 12,
render(h, { data, schemaItem }) {
const value = get(data, schemaItem.name);
......
......@@ -59,6 +59,7 @@
style="height:100%;margin-top:20px">
<ProfitMarginTable style="height:680px;overflow:hidden"
:business-code="businessCode"
:is-detail="true"
:use-edit="false" />
</FormStep>
......
......@@ -25,6 +25,7 @@
style="height:100%;margin-top:20px">
<ProfitMarginTable style="height:680px;overflow:hidden"
:business-code="businessCode"
:is-detail="true"
:use-edit="false" />
</FormStep>
......
......@@ -19,7 +19,7 @@
<span>:</span>
</span>
分账周期 T+
<el-input-number class="input-number" controls-position="right" :min="1" :max="20" v-model="item.settleTime"
<el-input-number class="input-number" controls-position="right" :min="0" :max="20" v-model="item.settleTime"
:disabled="item.autoFlag === 'N' || disabled"></el-input-number>
<span>日</span>
<span>(分账后第{{ item.settleTime }}天到分账方对公账户)</span>
......
......@@ -2,7 +2,7 @@
<div class="split-payment-table">
<el-table :data="tableRows" border style="width: 100%">
<!-- 业务对象/费用类目列 -->
<el-table-column prop="merchantTypeName" label="业务对象/费用类目" width="180" fixed="left" />
<el-table-column prop="merchantTypeName" label="业务对象/费用类目" width="180" />
<!-- 动态生成的费用列 -->
<el-table-column v-for="(item, index) in componentData" :key="'col-' + item.expenseCategoryId + '-' + index"
......@@ -34,7 +34,7 @@ export default {
},
shelfType: Number,
currentTrafficParty: Object,
trafficParty: Array,
parentName: String,
},
data() {
return {
......@@ -49,7 +49,6 @@ export default {
nameMap: {
1: 'signingEntity',
2: 'partnerName',
3: 'parentName',
5: 'serviceMerchant2fName'
},
// expenseCategoryId 枚举映射
......@@ -86,15 +85,14 @@ export default {
tableRows() {
const rows = [],
{ currentTrafficParty, shelfType, nameMap, trafficParty } = this
{ currentTrafficParty, shelfType, nameMap ,parentName , componentData} = this
// 固定的业务对象类型(平台方、服务商、4s店)
const fixedMerchantTypes = [1, 2, 3]
let hasService2 = trafficParty.some(item => item.serviceMerchant2fId)
// 添加固定的三行
fixedMerchantTypes.forEach(type => {
let merchantTypeName = this.merchantTypeMap[type] || ''
if (shelfType == 1) {
merchantTypeName = `${merchantTypeName}:${currentTrafficParty[nameMap[type]] || ''}`
merchantTypeName = `${merchantTypeName}:${type == 3 ? parentName : currentTrafficParty[nameMap[type]] || ''}`
}
const row = {
targetMerchantType: type,
......@@ -103,7 +101,7 @@ export default {
rows.push(row)
})
let hasService2 = componentData.some(item => item.targetMerchantType == 5)
if (hasService2) {
let service2Name = this.merchantTypeMap[5] || ''
if (shelfType == 1) {
......
......@@ -17,7 +17,7 @@
</template>
<template v-else>
<template v-if="isViewMode">
{{ getRealityShopLevelName(componentData) }}
{{ getRealityShopLevelName(componentData.autoDivideConfig.realityShopLevel) }}
</template>
<el-select v-else :size="size" v-model="componentData.autoDivideConfig.realityShopLevel" class="step-select">
<el-option v-for="item in options.realityShopLevelOptions" :key="item.realityShopLevel"
......@@ -53,7 +53,7 @@
<template v-if="item.htmlName == 'table'">
<SplitPaymentTable :data="componentData.productCategoryRules[productCategoryIndex][item.key]"
:isViewMode="isViewMode" :shelfType="shelfType" :currentTrafficParty="currentTrafficParty"
:trafficParty="trafficParty" @change="change($event, item)">
:trafficParty="trafficParty" @change="change($event, item)" :parentName="componentData.autoDivideConfig.realityShopMerchantName">
</SplitPaymentTable>
</template>
</template>
......@@ -420,8 +420,7 @@ export default {
},
getRealityShopLevelName(realityShopLevel) {
console.log(realityShopLevel)
// return this.options.realityShopLevelOptions.find(item => item.realityShopLevel == realityShopLevel)?.realityShopLevelName || '-'
return this.options.realityShopLevelOptions.find(item => item.realityShopLevel == realityShopLevel)?.realityShopLevelName || '-'
}
}
}
......@@ -432,7 +431,6 @@ export default {
.step-title {
gap: 16px;
margin-bottom: 20px;
z-index: 4 !important;
}
.form-box {
......
......@@ -17,7 +17,7 @@
</template>
<template v-else-if="i.type == 'select'">
<el-select v-model="componentData[i.key]" class="select" :placeholder="`请选择${i.label}`"
:filterable="i.filterable" @change="selectionChange" @visible-change="visibleChange">
:filterable="i.filterable" @change="selectionChange" >
<el-option v-for="item in options" :key="item.metricCode" :label="item.metricName"
:value="item.metricCode" :filterable="i.filterable" :disabled="includesList.includes(item.metricCode)" />
</el-select>
......
......@@ -381,8 +381,8 @@ export default {
],
customerInformation: [
{ label: "人员成本占比", key: "personnelCostRate", type: "input", unit: "%", inputRule: "decimal", min: 0, max: 100, decimalPlaces: 2, disabled: true },
{ label: "装修、设备总投入", key: "renovationEquipmentCost", type: "input", inputRule: "decimal", min: 0, max: 99999999.99, decimalPlaces: 2, disabled: true },
{ label: "其他(房租、水电、耗材等)/月", key: "otherCostPerMonth", type: "input", inputRule: "decimal", min: 0, max: 99999999.99, decimalPlaces: 2, disabled: true },
{ label: "装修、设备总投入", key: "renovationEquipmentCost", type: "input", inputRule: "decimal", min: 0, max: 99999999, decimalPlaces: 2, disabled: true },
{ label: "其他(房租、水电、耗材等)/月", key: "otherCostPerMonth", type: "input", inputRule: "decimal", min: 0, max: 99999999, decimalPlaces: 2, disabled: true },
{ label: "预估毛利率", key: "estimatedGrossMargin", type: "input", unit: "%", inputRule: "decimal", min: 0, max: 100, decimalPlaces: 2, disabled: true },
{ label: "是否存在兜底", key: "hasGuarantee", type: "radio", options: [{ label: "是", value: 1 }, { label: "否", value: 0 }] },
{
......@@ -613,20 +613,20 @@ export default {
* 兜底标准输入(按指标类型应用不同规则)
*/
handleStandardInput(value, item) {
item.guaranteeStandard = this.formatDecimal(value, this.isRateIndicator(item.guaranteeIndex) ? { min: 0, max: 100, decimalPlaces: 2 } : { min: 0, max: 999999.99, decimalPlaces: 2 });
item.guaranteeStandard = this.formatDecimal(value, this.isRateIndicator(item.guaranteeIndex) ? { min: 0, max: 100, decimalPlaces: 2 } : { min: 0, max: 99999999, decimalPlaces: 2 });
},
/**
* 赔付金额输入(0-999999.99,小数点后 2 位)
* 赔付金额输入(0-999999,小数点后 2 位)
* 区间值输入时跟随兜底标准的输入限制
*/
handleAmountInput(value, target, key, item) {
// 如果是阶梯模式的区间值输入(startValue/endValue)
if (key === "startValue" || key === "endValue") {
const result = this.formatDecimal(value, { min: 0, max: 999999.99, decimalPlaces: 2 });
const result = this.formatDecimal(value, { min: 0, max: item.dataType == 1 ? 100 : 99999999, decimalPlaces: 2 });
this.$set(target, key, result);
} else {
// 其他赔付金额(fixedCompensation、ladder.compensationAmount),固定使用 0-999999.99,小数点后 2 位
const result = this.formatDecimal(value, { min: 0, max: 999999.99, decimalPlaces: 2 });
// 其他赔付金额(fixedCompensation、ladder.compensationAmount),固定使用 0-999999,小数点后 2 位
const result = this.formatDecimal(value, { min: 0, max: 999999, decimalPlaces: 2 });
this.$set(target, key, result);
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!