|
@@ -88,12 +88,24 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.info-row {
|
|
.info-row {
|
|
|
|
|
+ position: relative;
|
|
|
display: grid;
|
|
display: grid;
|
|
|
grid-template-columns: 92px 1fr;
|
|
grid-template-columns: 92px 1fr;
|
|
|
min-height: 58px;
|
|
min-height: 58px;
|
|
|
border-bottom: 1px solid var(--line);
|
|
border-bottom: 1px solid var(--line);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ .info-row.required::before {
|
|
|
|
|
+ content: "";
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ bottom: 0;
|
|
|
|
|
+ width: 2px;
|
|
|
|
|
+ background: #ff3b30;
|
|
|
|
|
+ z-index: 1;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.info-row:last-child {
|
|
.info-row:last-child {
|
|
|
border-bottom: none;
|
|
border-bottom: none;
|
|
|
}
|
|
}
|
|
@@ -161,6 +173,12 @@
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ .veto-buttons {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ gap: 10px;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.native-input {
|
|
.native-input {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
height: 38px;
|
|
height: 38px;
|
|
@@ -398,21 +416,21 @@
|
|
|
|
|
|
|
|
<div class="page-content">
|
|
<div class="page-content">
|
|
|
<div class="info-table">
|
|
<div class="info-table">
|
|
|
- <div class="info-row">
|
|
|
|
|
|
|
+ <div class="info-row required">
|
|
|
<div class="info-label">建筑物</div>
|
|
<div class="info-label">建筑物</div>
|
|
|
<div class="info-value">
|
|
<div class="info-value">
|
|
|
<div class="select-cell">
|
|
<div class="select-cell">
|
|
|
<ss-select
|
|
<ss-select
|
|
|
v-model="form.jzwid"
|
|
v-model="form.jzwid"
|
|
|
cb="xyssl"
|
|
cb="xyssl"
|
|
|
- placeholder="建筑物"
|
|
|
|
|
|
|
+ placeholder=""
|
|
|
@change="onJzwChange"
|
|
@change="onJzwChange"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div class="info-row">
|
|
|
|
|
|
|
+ <div class="info-row required">
|
|
|
<div class="info-label">房间</div>
|
|
<div class="info-label">房间</div>
|
|
|
<div class="info-value">
|
|
<div class="info-value">
|
|
|
<div class="select-cell">
|
|
<div class="select-cell">
|
|
@@ -421,7 +439,7 @@
|
|
|
v-model="form.kfid"
|
|
v-model="form.kfid"
|
|
|
:options="roomOptions"
|
|
:options="roomOptions"
|
|
|
:disabled="!form.jzwid || roomLoading"
|
|
:disabled="!form.jzwid || roomLoading"
|
|
|
- :placeholder="roomLoading ? '加载中...' : (form.jzwid ? '房间' : '请先选择建筑物')"
|
|
|
|
|
|
|
+ :placeholder="roomLoading ? '加载中...' : (form.jzwid ? '房间' : '')"
|
|
|
@change="onKfChange"
|
|
@change="onKfChange"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
@@ -441,7 +459,10 @@
|
|
|
<div class="info-value">
|
|
<div class="info-value">
|
|
|
<div class="veto-value">
|
|
<div class="veto-value">
|
|
|
<span>{{ form.veto ? '本次检查记 0 分' : '未启用' }}</span>
|
|
<span>{{ form.veto ? '本次检查记 0 分' : '未启用' }}</span>
|
|
|
- <van-switch v-model="form.veto" size="22px" @change="onVetoChange"/>
|
|
|
|
|
|
|
+ <div class="veto-buttons">
|
|
|
|
|
+ <ss-onoff-button v-model="vetoValue" name="veto" label="是" value="1" @change="onVetoBtnChange"/>
|
|
|
|
|
+ <ss-onoff-button v-model="vetoValue" name="veto" label="否" value="0" @change="onVetoBtnChange"/>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -453,7 +474,7 @@
|
|
|
v-model="form.ms"
|
|
v-model="form.ms"
|
|
|
class="native-input"
|
|
class="native-input"
|
|
|
maxlength="500"
|
|
maxlength="500"
|
|
|
- placeholder="请输入"
|
|
|
|
|
|
|
+ placeholder=""
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -469,7 +490,7 @@
|
|
|
class="stepper-btn"
|
|
class="stepper-btn"
|
|
|
type="button"
|
|
type="button"
|
|
|
:disabled="form.veto || Number(item.value) <= 0"
|
|
:disabled="form.veto || Number(item.value) <= 0"
|
|
|
- @click="changeScore(item, -1)"
|
|
|
|
|
|
|
+ @click="changeScore(item, -5)"
|
|
|
>
|
|
>
|
|
|
<span class="stepper-btn-symbol">-</span><span
|
|
<span class="stepper-btn-symbol">-</span><span
|
|
|
v-if="deductedFs(item) > 0"
|
|
v-if="deductedFs(item) > 0"
|
|
@@ -489,7 +510,7 @@
|
|
|
class="stepper-btn"
|
|
class="stepper-btn"
|
|
|
type="button"
|
|
type="button"
|
|
|
:disabled="form.veto || Number(item.value) >= Number(item.mfz)"
|
|
:disabled="form.veto || Number(item.value) >= Number(item.mfz)"
|
|
|
- @click="changeScore(item, 1)"
|
|
|
|
|
|
|
+ @click="changeScore(item, 5)"
|
|
|
>
|
|
>
|
|
|
+
|
|
+
|
|
|
</button>
|
|
</button>
|
|
@@ -536,6 +557,7 @@
|
|
|
ms: "",
|
|
ms: "",
|
|
|
veto: false
|
|
veto: false
|
|
|
},
|
|
},
|
|
|
|
|
+ vetoValue: "0",
|
|
|
bottomButtons: [
|
|
bottomButtons: [
|
|
|
{ text: "取消", action: "cancel" },
|
|
{ text: "取消", action: "cancel" },
|
|
|
{ text: "保存并提交", action: "submit" }
|
|
{ text: "保存并提交", action: "submit" }
|
|
@@ -690,6 +712,7 @@
|
|
|
if (!raw) return;
|
|
if (!raw) return;
|
|
|
const state = JSON.parse(raw);
|
|
const state = JSON.parse(raw);
|
|
|
if (state.form) this.form = { ...this.form, ...state.form };
|
|
if (state.form) this.form = { ...this.form, ...state.form };
|
|
|
|
|
+ this.vetoValue = this.form.veto ? "1" : "0";
|
|
|
if (Array.isArray(state.roomOptions)) this.roomOptions = state.roomOptions;
|
|
if (Array.isArray(state.roomOptions)) this.roomOptions = state.roomOptions;
|
|
|
if (Array.isArray(state.beforeVetoScores)) this.beforeVetoScores = state.beforeVetoScores;
|
|
if (Array.isArray(state.beforeVetoScores)) this.beforeVetoScores = state.beforeVetoScores;
|
|
|
if (Array.isArray(state.jcxmList)) {
|
|
if (Array.isArray(state.jcxmList)) {
|
|
@@ -756,6 +779,13 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ onVetoBtnChange(value) {
|
|
|
|
|
+ const isVeto = String(value) === "1";
|
|
|
|
|
+ if (isVeto === this.form.veto) return;
|
|
|
|
|
+ this.form.veto = isVeto;
|
|
|
|
|
+ this.onVetoChange(isVeto);
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
handleBottomAction(data) {
|
|
handleBottomAction(data) {
|
|
|
if (data.action === "cancel") {
|
|
if (data.action === "cancel") {
|
|
|
this.goBack();
|
|
this.goBack();
|