bug
This commit is contained in:
@@ -149,6 +149,11 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
submit(status) {
|
||||
this.$confirm(status == 2 ? '确认解除管理该记录' : '确认保存该记录').then(() => {
|
||||
this.confirmSubmit(status)
|
||||
})
|
||||
},
|
||||
confirmSubmit(status) {
|
||||
if(this.form.homeStatus === '') {
|
||||
return this.$u.toast('请选择居家状态')
|
||||
}
|
||||
@@ -181,22 +186,27 @@ export default {
|
||||
uni.navigateBack()
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
},
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/queryDetailById?id=${this.id}`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.form = {...res.data}
|
||||
this.form.controllerList = []
|
||||
var info = {}
|
||||
if(this.form.controllerUserName) {
|
||||
var info = {
|
||||
info = {
|
||||
name: this.form.controllerUserName,
|
||||
id: this.form.controllerUserId,
|
||||
mobile: this.form.controllerUserPhone
|
||||
}
|
||||
this.form.controllerList.push(info)
|
||||
}else {
|
||||
info = {
|
||||
name: this.user.name,
|
||||
id: this.user.id,
|
||||
mobile: this.user.phone
|
||||
}
|
||||
}
|
||||
this.form.controllerList.push(info)
|
||||
if(this.form.homeStatus === null) {
|
||||
this.form.homeStatus = ''
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<div class="title">
|
||||
<div>
|
||||
<span v-if="beginDate" @click="showDateSelect=true">{{ beginDate }} 至 {{ endDate }}</span>
|
||||
<span v-else @click="showDateSelect=true">时间选择</span>
|
||||
<span v-else @click="showDateSelect=true">日期选择</span>
|
||||
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" v-if="!beginDate" @click="showDateSelect=true"/>
|
||||
<u-icon name="close-circle" color="#666" size="34" style="margin-left: 4px" v-else @click="clearDate" />
|
||||
</div>
|
||||
|
||||
@@ -134,10 +134,12 @@ export default {
|
||||
this.form.registerId = this.info.registerId
|
||||
this.$http.post(`/app/appepidemicpreventioncommunitymanagement/nucleicAcidSamplin`, this.form).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast('提交成功')
|
||||
uni.$emit('updateDetail')
|
||||
uni.$emit('updateList')
|
||||
uni.navigateBack()
|
||||
this.$u.toast('提交成功')
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
}, 600);
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -47,8 +47,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn-height"></div>
|
||||
<!-- v-if="info.status != 2 && isHideBtn != 1" -->
|
||||
<div class="footer" @click="toAdd">采样</div>
|
||||
<div class="footer" v-if="info.status != 2 && isHideBtn != 1" @click="toAdd">采样</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user