|
@@ -130,11 +130,11 @@ const countComputed = async () => {
|
|
try {
|
|
try {
|
|
if (params.formulaType == 0) {
|
|
if (params.formulaType == 0) {
|
|
const formula = JSON.stringify(params.formula);
|
|
const formula = JSON.stringify(params.formula);
|
|
- const aa = JSON.stringify(formula);
|
|
|
|
- console.log("formula", aa);
|
|
|
|
|
|
+ // const aa = JSON.stringify(formula);
|
|
|
|
+ // console.log("formula", aa);
|
|
const { code, msg } = await conditionVerify({
|
|
const { code, msg } = await conditionVerify({
|
|
formulaType: params.formulaType,
|
|
formulaType: params.formulaType,
|
|
- formula: aa
|
|
|
|
|
|
+ formula
|
|
});
|
|
});
|
|
if (code == 200) {
|
|
if (code == 200) {
|
|
const keywords = [
|
|
const keywords = [
|
|
@@ -233,6 +233,7 @@ function confirmClick() {
|
|
}
|
|
}
|
|
const open = row => {
|
|
const open = row => {
|
|
drawer.value = true;
|
|
drawer.value = true;
|
|
|
|
+ calculatorShow.value = true;
|
|
Object.assign(params, {
|
|
Object.assign(params, {
|
|
id: "",
|
|
id: "",
|
|
tpId: "",
|
|
tpId: "",
|
|
@@ -343,6 +344,7 @@ const count = item => {
|
|
ElMessageBox.confirm("配置项确认保存?确认关闭", {
|
|
ElMessageBox.confirm("配置项确认保存?确认关闭", {
|
|
type: "warning"
|
|
type: "warning"
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
|
+ params.scoreValue = params.formula.noConditionFormula;
|
|
calculatorShow.value = false;
|
|
calculatorShow.value = false;
|
|
});
|
|
});
|
|
// try {
|
|
// try {
|
|
@@ -774,6 +776,13 @@ const countNoConditionFormula4 = (item, index, indexList) => {
|
|
v-model="item.comparisonEnd"
|
|
v-model="item.comparisonEnd"
|
|
style="width: 60px"
|
|
style="width: 60px"
|
|
placeholder=""
|
|
placeholder=""
|
|
|
|
+ :disabled="
|
|
|
|
+ index + 1 ==
|
|
|
|
+ addmanyChange.innerConditionExpression.length &&
|
|
|
|
+ index >= 1
|
|
|
|
+ ? true
|
|
|
|
+ : false
|
|
|
|
+ "
|
|
>
|
|
>
|
|
<el-option label=">" value=">" />
|
|
<el-option label=">" value=">" />
|
|
<el-option label="≥" value="≥" />
|
|
<el-option label="≥" value="≥" />
|
|
@@ -783,25 +792,44 @@ const countNoConditionFormula4 = (item, index, indexList) => {
|
|
class="ml-2"
|
|
class="ml-2"
|
|
style="width: 80px"
|
|
style="width: 80px"
|
|
placeholder=""
|
|
placeholder=""
|
|
|
|
+ :disabled="
|
|
|
|
+ index + 1 ==
|
|
|
|
+ addmanyChange.innerConditionExpression.length &&
|
|
|
|
+ index >= 1
|
|
|
|
+ ? true
|
|
|
|
+ : false
|
|
|
|
+ "
|
|
>
|
|
>
|
|
<el-option label="数值" value="数值" />
|
|
<el-option label="数值" value="数值" />
|
|
<el-option label="公式" value="公式" />
|
|
<el-option label="公式" value="公式" />
|
|
</el-select>
|
|
</el-select>
|
|
- <jishuanqi
|
|
|
|
- v-if="item.select == '公式'"
|
|
|
|
- ref="jishuanqiRef"
|
|
|
|
- :index="index"
|
|
|
|
- :outerConditionValue="item.endValue"
|
|
|
|
- class="ml-2 mr-5"
|
|
|
|
- style="width: 80px"
|
|
|
|
- @handClick="countNoConditionFormula1"
|
|
|
|
- />
|
|
|
|
<el-input
|
|
<el-input
|
|
- v-else
|
|
|
|
- v-model="item.endValue"
|
|
|
|
|
|
+ v-if="
|
|
|
|
+ index + 1 ==
|
|
|
|
+ addmanyChange.innerConditionExpression.length &&
|
|
|
|
+ index >= 1
|
|
|
|
+ "
|
|
|
|
+ disabled
|
|
class="ml-2 mr-5"
|
|
class="ml-2 mr-5"
|
|
style="width: 80px"
|
|
style="width: 80px"
|
|
/>
|
|
/>
|
|
|
|
+ <div v-else>
|
|
|
|
+ <jishuanqi
|
|
|
|
+ v-if="item.select == '公式'"
|
|
|
|
+ ref="jishuanqiRef"
|
|
|
|
+ :index="index"
|
|
|
|
+ :outerConditionValue="item.endValue"
|
|
|
|
+ class="ml-2 mr-5"
|
|
|
|
+ style="width: 80px"
|
|
|
|
+ @handClick="countNoConditionFormula1"
|
|
|
|
+ />
|
|
|
|
+ <el-input
|
|
|
|
+ v-else
|
|
|
|
+ v-model="item.endValue"
|
|
|
|
+ class="ml-2 mr-5"
|
|
|
|
+ style="width: 80px"
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
<el-text type="danger" @click="deleteItem(index)">
|
|
<el-text type="danger" @click="deleteItem(index)">
|
|
<el-icon>
|
|
<el-icon>
|
|
<Delete />
|
|
<Delete />
|
|
@@ -814,7 +842,18 @@ const countNoConditionFormula4 = (item, index, indexList) => {
|
|
>
|
|
>
|
|
<div class="flex mt-2 ml-20">
|
|
<div class="flex mt-2 ml-20">
|
|
<div class="mr-2">条件值{{ index + 1 }} =</div>
|
|
<div class="mr-2">条件值{{ index + 1 }} =</div>
|
|
|
|
+ <el-input
|
|
|
|
+ v-if="
|
|
|
|
+ index + 1 ==
|
|
|
|
+ addmanyChange.innerConditionExpression
|
|
|
|
+ .length && index >= 1
|
|
|
|
+ "
|
|
|
|
+ disabled
|
|
|
|
+ class="ml-2 mr-6"
|
|
|
|
+ style="width: 208px"
|
|
|
|
+ />
|
|
<jishuanqi
|
|
<jishuanqi
|
|
|
|
+ v-else
|
|
ref="jishuanqiRef"
|
|
ref="jishuanqiRef"
|
|
:index="index"
|
|
:index="index"
|
|
:outerConditionValue="itemVO.innerConditionValue"
|
|
:outerConditionValue="itemVO.innerConditionValue"
|
|
@@ -851,6 +890,12 @@ const countNoConditionFormula4 = (item, index, indexList) => {
|
|
v-model="itemList.comparisonEnd"
|
|
v-model="itemList.comparisonEnd"
|
|
style="width: 60px"
|
|
style="width: 60px"
|
|
placeholder=""
|
|
placeholder=""
|
|
|
|
+ :disabled="
|
|
|
|
+ indexList + 1 == itemVO.scoreRules.length &&
|
|
|
|
+ index >= 1
|
|
|
|
+ ? true
|
|
|
|
+ : false
|
|
|
|
+ "
|
|
>
|
|
>
|
|
<el-option label=">" value=">" />
|
|
<el-option label=">" value=">" />
|
|
<el-option label="≥" value="≥" />
|
|
<el-option label="≥" value="≥" />
|
|
@@ -860,32 +905,59 @@ const countNoConditionFormula4 = (item, index, indexList) => {
|
|
class="ml-2"
|
|
class="ml-2"
|
|
style="width: 80px"
|
|
style="width: 80px"
|
|
placeholder=""
|
|
placeholder=""
|
|
|
|
+ :disabled="
|
|
|
|
+ indexList + 1 == itemVO.scoreRules.length &&
|
|
|
|
+ index >= 1
|
|
|
|
+ ? true
|
|
|
|
+ : false
|
|
|
|
+ "
|
|
>
|
|
>
|
|
<el-option label="数值" value="数值" />
|
|
<el-option label="数值" value="数值" />
|
|
<el-option label="公式" value="公式" />
|
|
<el-option label="公式" value="公式" />
|
|
</el-select>
|
|
</el-select>
|
|
- <jishuanqi
|
|
|
|
- v-if="itemList.select == '公式'"
|
|
|
|
- ref="jishuanqiRef"
|
|
|
|
- :index="index"
|
|
|
|
- :indexList="indexList"
|
|
|
|
- :outerConditionValue="itemList.endValue"
|
|
|
|
- class="ml-2"
|
|
|
|
- style="width: 80px"
|
|
|
|
- @handClick="countNoConditionFormula3"
|
|
|
|
- />
|
|
|
|
<el-input
|
|
<el-input
|
|
- v-else
|
|
|
|
- v-model="itemList.endValue"
|
|
|
|
|
|
+ v-if="
|
|
|
|
+ indexList + 1 == itemVO.scoreRules.length &&
|
|
|
|
+ index >= 1
|
|
|
|
+ "
|
|
|
|
+ disabled
|
|
class="ml-2"
|
|
class="ml-2"
|
|
style="width: 80px"
|
|
style="width: 80px"
|
|
/>
|
|
/>
|
|
|
|
+ <div v-else>
|
|
|
|
+ <jishuanqi
|
|
|
|
+ v-if="itemList.select == '公式'"
|
|
|
|
+ ref="jishuanqiRef"
|
|
|
|
+ :index="index"
|
|
|
|
+ :indexList="indexList"
|
|
|
|
+ :outerConditionValue="itemList.endValue"
|
|
|
|
+ class="ml-2"
|
|
|
|
+ style="width: 80px"
|
|
|
|
+ @handClick="countNoConditionFormula3"
|
|
|
|
+ />
|
|
|
|
+ <el-input
|
|
|
|
+ v-else
|
|
|
|
+ v-model="itemList.endValue"
|
|
|
|
+ class="ml-2"
|
|
|
|
+ style="width: 80px"
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
<div
|
|
<div
|
|
class="w-[150px] ml-2 mr-2 flex justify-between items-center"
|
|
class="w-[150px] ml-2 mr-2 flex justify-between items-center"
|
|
>
|
|
>
|
|
<div>得分</div>
|
|
<div>得分</div>
|
|
<div>=</div>
|
|
<div>=</div>
|
|
|
|
+ <el-input
|
|
|
|
+ v-if="
|
|
|
|
+ indexList + 1 == itemVO.scoreRules.length &&
|
|
|
|
+ index >= 1
|
|
|
|
+ "
|
|
|
|
+ disabled
|
|
|
|
+ class="ml-2"
|
|
|
|
+ style="width: 80px"
|
|
|
|
+ />
|
|
<jishuanqi
|
|
<jishuanqi
|
|
|
|
+ v-else
|
|
ref="jishuanqiRef"
|
|
ref="jishuanqiRef"
|
|
:index="index"
|
|
:index="index"
|
|
:indexList="indexList"
|
|
:indexList="indexList"
|