幸运24-配置-个人库存
This commit is contained in:
@@ -214,6 +214,138 @@
|
||||
赠送</el-button>
|
||||
</div>
|
||||
|
||||
<el-divider content-position="left">个人库存</el-divider>
|
||||
|
||||
<div class="inquire">
|
||||
<span>H</span>
|
||||
<el-input v-model="inquire.preJudgeValue_H"
|
||||
class="input"
|
||||
disabled></el-input>
|
||||
<el-button class="primary"
|
||||
type="primary"
|
||||
@click="
|
||||
editDialog = true;
|
||||
butClick = false;
|
||||
type = 5;
|
||||
editDialogTitle = 'H';
|
||||
value = inquire.preJudgeValue_H;
|
||||
">
|
||||
编辑</el-button>
|
||||
</div>
|
||||
|
||||
<div class="inquire">
|
||||
<span>J</span>
|
||||
<el-input v-model="inquire.totalInput_J"
|
||||
class="input"
|
||||
disabled></el-input>
|
||||
<el-button class="primary"
|
||||
type="primary"
|
||||
@click="
|
||||
editDialog = true;
|
||||
butClick = false;
|
||||
type = 6;
|
||||
editDialogTitle = 'J';
|
||||
value = inquire.totalInput_J;
|
||||
">
|
||||
编辑</el-button>
|
||||
</div>
|
||||
|
||||
<div class="inquire">
|
||||
<span>K1</span>
|
||||
<el-input v-model="inquire.userRechargeLevel_totalInputOffset_K1.S"
|
||||
class="input"
|
||||
disabled>
|
||||
<template #prepend>S</template>
|
||||
</el-input>
|
||||
<el-input v-model="inquire.userRechargeLevel_totalInputOffset_K1.A"
|
||||
class="input"
|
||||
disabled>
|
||||
<template #prepend>A</template>
|
||||
</el-input>
|
||||
<el-input v-model="inquire.userRechargeLevel_totalInputOffset_K1.B"
|
||||
class="input"
|
||||
disabled>
|
||||
<template #prepend>B</template>
|
||||
</el-input>
|
||||
<el-input v-model="inquire.userRechargeLevel_totalInputOffset_K1.C"
|
||||
class="input"
|
||||
disabled>
|
||||
<template #prepend>C</template>
|
||||
</el-input>
|
||||
<el-input v-model="inquire.userRechargeLevel_totalInputOffset_K1.D"
|
||||
class="input"
|
||||
disabled>
|
||||
<template #prepend>D</template>
|
||||
</el-input>
|
||||
<el-input v-model="inquire.userRechargeLevel_totalInputOffset_K1.E"
|
||||
class="input"
|
||||
disabled>
|
||||
<template #prepend>E</template>
|
||||
</el-input>
|
||||
<el-input v-model="inquire.userRechargeLevel_totalInputOffset_K1.F"
|
||||
class="input"
|
||||
disabled>
|
||||
<template #prepend>F</template>
|
||||
</el-input>
|
||||
<el-button class="primary"
|
||||
type="primary"
|
||||
@click="
|
||||
multiEditDialog = true;
|
||||
butClick = false;
|
||||
multiEditDialogTitle = 'K1';
|
||||
multiEditObj = inquire.userRechargeLevel_totalInputOffset_K1;
|
||||
">
|
||||
编辑</el-button>
|
||||
</div>
|
||||
|
||||
<div class="inquire">
|
||||
<span>K2</span>
|
||||
<el-input v-model="inquire.userRechargeLevel_totalInputOffset_K2.S"
|
||||
class="input"
|
||||
disabled>
|
||||
<template #prepend>S</template>
|
||||
</el-input>
|
||||
<el-input v-model="inquire.userRechargeLevel_totalInputOffset_K2.A"
|
||||
class="input"
|
||||
disabled>
|
||||
<template #prepend>A</template>
|
||||
</el-input>
|
||||
<el-input v-model="inquire.userRechargeLevel_totalInputOffset_K2.B"
|
||||
class="input"
|
||||
disabled>
|
||||
<template #prepend>B</template>
|
||||
</el-input>
|
||||
<el-input v-model="inquire.userRechargeLevel_totalInputOffset_K2.C"
|
||||
class="input"
|
||||
disabled>
|
||||
<template #prepend>C</template>
|
||||
</el-input>
|
||||
<el-input v-model="inquire.userRechargeLevel_totalInputOffset_K2.D"
|
||||
class="input"
|
||||
disabled>
|
||||
<template #prepend>D</template>
|
||||
</el-input>
|
||||
<el-input v-model="inquire.userRechargeLevel_totalInputOffset_K2.E"
|
||||
class="input"
|
||||
disabled>
|
||||
<template #prepend>E</template>
|
||||
</el-input>
|
||||
<el-input v-model="inquire.userRechargeLevel_totalInputOffset_K2.F"
|
||||
class="input"
|
||||
disabled>
|
||||
<template #prepend>F</template>
|
||||
</el-input>
|
||||
<el-button class="primary"
|
||||
type="primary"
|
||||
@click="
|
||||
multiEditDialog = true;
|
||||
butClick = false;
|
||||
multiEditDialogTitle = 'K2';
|
||||
multiEditObj = inquire.userRechargeLevel_totalInputOffset_K2;
|
||||
">
|
||||
编辑</el-button>
|
||||
</div>
|
||||
|
||||
<el-divider content-position="left">额外数组</el-divider>
|
||||
|
||||
<div class="inquire">
|
||||
@@ -333,6 +465,38 @@
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 编辑弹窗 -->
|
||||
<el-dialog v-model="multiEditDialog"
|
||||
:title="multiEditDialogTitle"
|
||||
width="36%"
|
||||
center>
|
||||
<div style="margin-bottom: 25px; margin-top: 10px"
|
||||
v-for="(val, key) in multiEditObj"
|
||||
:key="key">
|
||||
<span style="display: inline-block; margin-right: 20px"
|
||||
class="col-sm-2 control-label">{{ key }}</span>
|
||||
<el-input-number v-model="multiEditObj[key]"
|
||||
style="width: 75%"
|
||||
class="input"
|
||||
placeholder="请输入" />
|
||||
</div>
|
||||
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button @click="
|
||||
multiEditDialog = false;
|
||||
butClick = false;
|
||||
">取消</el-button>
|
||||
<el-button type="primary"
|
||||
:disabled="butClick"
|
||||
@click="multiEditDialogClick()">
|
||||
保存
|
||||
</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 详情弹窗 -->
|
||||
<el-dialog v-model="detailsDialog"
|
||||
title="用户W级列表"
|
||||
@@ -490,11 +654,17 @@ export default {
|
||||
followErbanNoList: "",
|
||||
whiteErbanNoProductionRatioMap: "",
|
||||
blackErbanNoList: "",
|
||||
preJudgeValue_H: undefined,
|
||||
totalInput_J: undefined,
|
||||
userRechargeLevel_totalInputOffset_K1: {},
|
||||
userRechargeLevel_totalInputOffset_K2: {},
|
||||
extraStock: 0,
|
||||
extraPoolConfig: {}
|
||||
},
|
||||
editDialog: false,
|
||||
editDialogTitle: "",
|
||||
multiEditDialog: false,
|
||||
multiEditDialogTitle: "",
|
||||
detailsDialog: false,
|
||||
extraPoolDialog: false,
|
||||
extraDialogButClick: true,
|
||||
@@ -533,6 +703,12 @@ export default {
|
||||
newArr[i] = res;
|
||||
});
|
||||
this.detailsTable = newArr;
|
||||
|
||||
this.inquire.preJudgeValue_H = res.data.preJudgeValue_H;
|
||||
this.inquire.totalInput_J = res.data.totalInput_J;
|
||||
this.inquire.userRechargeLevel_totalInputOffset_K1 = res.data.userRechargeLevel_totalInputOffset_K1;
|
||||
this.inquire.userRechargeLevel_totalInputOffset_K2 = res.data.userRechargeLevel_totalInputOffset_K2;
|
||||
|
||||
this.inquire.extraStock = res.data.extraStock;
|
||||
this.inquire.extraPoolConfig = res.data.extraPoolConfig;
|
||||
this.inquire.extraPoolConfig.userRechargeLevels = res.data.extraPoolConfig.userRechargeLevels.join(',');
|
||||
@@ -617,6 +793,14 @@ export default {
|
||||
obj.platformRatio = this.value;
|
||||
} else if (this.type == 4) {
|
||||
obj.receiverRatio = this.value;
|
||||
} else if (this.type == 5) {
|
||||
obj.preJudgeValue_H = this.value;
|
||||
} else if (this.type == 6) {
|
||||
obj.totalInput_J = this.value;
|
||||
} else if (this.type == 7) {
|
||||
obj.totalInputOffset_K1 = this.value;
|
||||
} else if (this.type == 8) {
|
||||
obj.totalInputOffset_K2 = this.value;
|
||||
} else if (this.type == 9) {
|
||||
obj.warnMulti = this.value;
|
||||
} else if (this.type == 11) {
|
||||
@@ -649,6 +833,34 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
// 确认保存
|
||||
multiEditDialogClick () {
|
||||
var obj = {};
|
||||
obj.partitionId = this.inquire.value;
|
||||
if (this.multiEditDialogTitle == "K1") {
|
||||
obj.userRechargeLevel_totalInputOffset_K1 = this.multiEditObj;
|
||||
} else if (this.multiEditDialogTitle == "K2") {
|
||||
obj.userRechargeLevel_totalInputOffset_K2 = this.multiEditObj;
|
||||
}
|
||||
updateSet(obj).then((res) => {
|
||||
if (res.code == 200) {
|
||||
ElMessage({
|
||||
showClose: true,
|
||||
message: "保存成功",
|
||||
type: "success",
|
||||
});
|
||||
this.multiEditDialog = false;
|
||||
// this.detailsDialog = false;
|
||||
this.getData();
|
||||
} else {
|
||||
ElMessage({
|
||||
showClose: true,
|
||||
message: res.message,
|
||||
type: "error",
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
// 监听类型
|
||||
handleChange (value) {
|
||||
this.inquire.value = value;
|
||||
|
Reference in New Issue
Block a user