This commit is contained in:
yunkexin 2025-11-07 14:37:14 +08:00
parent af67c253b1
commit f6576d85bb

View File

@ -21,11 +21,6 @@
<u-textarea v-model="model.CHECKCONTENT" placeholder="请输入检查内容">
</u-textarea>
</u--form>
</view>
<view style="padding: 10px 16px;" v-if="stepsPageList === 0" class="bottom-button">
<u-button type="primary" @click="stepAdd" color="#3d4b70" :loading="stepLoad">下一步</u-button>
</view>
<view class="card" v-if="stepsPageList === 1">
<u--form labelWidth="auto" :model="model" ref="wForm" class="sub-form">
@ -77,12 +72,10 @@
<!-- <u-button type="primary" @click="handleNewCheckList" color="#3d4b70" style="margin-left: 5px;">检查清单</u-button> -->
</view>
</u--form>
</view>
<view style="padding: 10px 16px;display: flex;flex-direction: row;" v-if="stepsPageList === 1" class="bottom-button">
<u-button type="primary" @click="stepReduce" color="#3d4b70" :plain="true" style="margin-right: 5px;">上一步</u-button>
<u-button type="primary" @click="submit" color="#3d4b70" style="margin-left: 5px;">提交</u-button>
<view style="padding: 10px 16px;display: flex;flex-direction: row;" class="bottom-button">
<u-button type="primary" @click="submit" color="#3d4b70">提交</u-button>
</view>
<u-modal :show="showDelModalIndex >= 0" @confirm="confirmDel" @cancel="cacelDel" :showCancelButton="true" title="确认删除?"></u-modal>
@ -231,9 +224,7 @@
this.TaskID = option.taskID ? option.taskID : '';
this.ID = option.ID ? option.ID : '';
this.fetchEnums(['SKProductionUnit', 'SKHiddenLevel']);
if(option.CHECK_CONTENTS_ID){
this.getNotNew()
}
},
methods: {
async fetchEnums(enumNames) {
@ -268,6 +259,7 @@
});
// loadData
this.loadData();
} catch (error) {
console.error('枚举请求失败:', error);
uni.showToast({
@ -298,10 +290,15 @@
},
loadData() {
if (this.model.CHECK_CONTENTS_ID) {
this.getNotNew()
} else {
this.model.ID = guid()
this.isLoadOK = false
this.stepLoad = false
this.$forceUpdate()
}
},
stepAdd() {