This commit is contained in:
yunkexin 2025-11-07 15:32:03 +08:00
parent 9f192eac8e
commit fb73a94507

View File

@ -44,6 +44,9 @@
</view>
</template>
<view class="content" style="padding-left: 10px;">
<u-form-item label='顺序' prop="NUM" borderBottom>
<u-number-box integer v-model="item.NUM" :min="-10000" :max="10000" slot="right"></u-number-box>
</u-form-item>
<u-form-item required label="隐患描述:" prop="CHECK_TIME">
</u-form-item>
@ -75,7 +78,7 @@
</view>
<view style="padding: 10px 16px;display: flex;flex-direction: row;" class="bottom-button">
<u-button type="primary" @click="submit" color="#3d4b70" :loading="stepLoad">提交</u-button>
<u-button type="primary" @click="submit" color="#3d4b70" :loading="stepLoad">保存</u-button>
</view>
<u-modal :show="showDelModalIndex >= 0" @confirm="confirmDel" @cancel="cacelDel" :showCancelButton="true" title="确认删除?"></u-modal>
@ -282,6 +285,7 @@
this.model = res
this.model.Product_Unit = res.MineType !== undefined ? this.enumsData['SKProductionUnit'].find(item => item.code === res.MineType).name : '';
if (this.model.Nav_ListCheckQuestion && this.model.Nav_ListCheckQuestion.length > 0) {
this.model.Nav_ListCheckQuestion = this.model.Nav_ListCheckQuestion.sort((a, b) => a.NUM - b.NUM);
this.model.Nav_ListCheckQuestion.map(item => {
item.QUESTION_LEVELName = item.QUESTION_LEVEL !== undefined ? this.enumsData['SKHiddenLevel'].find(item1 => item1.code === item.QUESTION_LEVEL).name : '';
})
@ -546,6 +550,7 @@
QUESTION_LEVEL: null,
QUESTION_LEVELName: '',
DEMAND: '',
NUM: 0
})
},