Browse Source

Merge branch 'dev-shujirizhi' into test

shibei_master
jiangyy 3 years ago
parent
commit
d4ad5ce9c9
  1. 19
      src/views/modules/secretaryLog/humanisticCare/careForm.vue

19
src/views/modules/secretaryLog/humanisticCare/careForm.vue

@ -142,7 +142,8 @@
<div class="div_btn"> <div class="div_btn">
<el-button size="small" <el-button size="small"
@click="handleCancle"> </el-button> @click="handleCancle"> </el-button>
<el-button v-if="formType != 'look'" size="small" <el-button v-if="formType != 'look'"
size="small"
type="primary" type="primary"
:disabled="btnDisable" :disabled="btnDisable"
@click="handleComfirm"> </el-button> @click="handleComfirm"> </el-button>
@ -177,7 +178,7 @@ export default {
btnDisable: false, btnDisable: false,
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate (time) {
return time.getTime() <= Date.now() - 8.64e7; return time.getTime() <= Date.now() - 8.64e7;
} }
}, },
@ -186,7 +187,7 @@ export default {
content: '',//怀 content: '',//怀
concernType: '',//怀 concernType: '',//怀
resiName: '',//怀 resiName: '',//怀
status: '',// 0 1 status: 0,// 0 1
phone: '',// phone: '',//
address: '',// address: '',//
scheduledTime: '',//怀yyyy-mm-dd hh:mm scheduledTime: '',//怀yyyy-mm-dd hh:mm
@ -208,11 +209,11 @@ export default {
}, },
methods: { methods: {
handleTime() { handleTime () {
var startAt = new Date(this.formData.remindTime) * 1000 /1000; var startAt = new Date(this.formData.remindTime) * 1000 / 1000;
if(startAt < Date.now()) { if (startAt < Date.now()) {
this.formData.remindTime = dateFormats('YYYY-mm-dd HH:MM', new Date()); this.formData.remindTime = dateFormats('YYYY-mm-dd HH:MM', new Date());
} }
}, },
async initForm (type, careId) { async initForm (type, careId) {
this.startLoading() this.startLoading()
@ -385,7 +386,7 @@ export default {
content: '',//怀 content: '',//怀
concernType: '',//怀 concernType: '',//怀
resiName: '',//怀 resiName: '',//怀
status: '',// 0 1 status: 0,// 0 1
phone: '',// phone: '',//
address: '',// address: '',//
scheduledTime: '',//怀yyyy-mm-dd hh:mm scheduledTime: '',//怀yyyy-mm-dd hh:mm

Loading…
Cancel
Save