手动创建任务
This commit is contained in:
parent
ff6056a8bb
commit
efb732fb59
@ -163,8 +163,6 @@
|
||||
<el-radio v-model="item.checked2" :label="2" @change="handleCheckAllChange2($event, item, index)">
|
||||
<span style="width: 78px">指定时间:</span>
|
||||
<el-date-picker
|
||||
|
||||
|
||||
format="yyyy-MM-dd HH:mm"
|
||||
value-format="yyyy-MM-dd HH:mm"
|
||||
v-model="item.nodePlanTime"
|
||||
@ -173,6 +171,7 @@
|
||||
:picker-options="pickerOptions"
|
||||
@input="input(item,index)"
|
||||
@focus="setCurrentTime(item,index)"
|
||||
:default-time="currentDate"
|
||||
ref="datePicker"
|
||||
>
|
||||
</el-date-picker>
|
||||
@ -539,6 +538,7 @@ export default {
|
||||
name: "ManuallyCreatingTasks",
|
||||
data() {
|
||||
return {
|
||||
time:'',
|
||||
datePickerVisible:true,
|
||||
show: 0,
|
||||
pickerOptions: {
|
||||
@ -653,20 +653,30 @@ export default {
|
||||
|
||||
}
|
||||
if(this.$route.query.path=="/patient/patientinfoimport" || this.$route.query.path=="/task/Patientmanagement"){
|
||||
|
||||
this.list[0].checked2=2
|
||||
this.list[0].routeNodeName=''
|
||||
this.list[0].plantype='APPOINT'
|
||||
}
|
||||
|
||||
},
|
||||
computed: {
|
||||
currentDate() {
|
||||
return this.formatDate(new Date());
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
this.getMaxTableHeight()
|
||||
this.screenChange()
|
||||
},
|
||||
methods: {
|
||||
formatDate(date) {
|
||||
// 格式化日期为想要的字符串格式
|
||||
// 例如: "2023-04-01 12:00:00"
|
||||
return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getDate().toString().padStart(2, '0')} ${date.getHours().toString().padStart(2, '0')}:${date.getMinutes().toString().padStart(2, '0')}:${date.getSeconds().toString().padStart(2, '0')}`;
|
||||
},
|
||||
|
||||
// 计划类型:plantype;
|
||||
|
||||
// 计划类型:plantype;
|
||||
// CURRENT:立即执行;
|
||||
// APPOINT:指定日期;
|
||||
// PLUSDAY:第几天
|
||||
@ -706,15 +716,15 @@ export default {
|
||||
|
||||
input(item,index){
|
||||
this.$forceUpdate()
|
||||
const dateParts = item.nodePlanTime.split(' ');
|
||||
const date = new Date();
|
||||
// const year = date.getFullYear();
|
||||
// const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始,所以需要加1
|
||||
// const day = String(date.getDate()).padStart(2, '0');
|
||||
const hours = String(date.getHours()).padStart(2, '0');
|
||||
const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||
// const dateParts = item.nodePlanTime.split(' ');
|
||||
// const date = new Date();
|
||||
// // const year = date.getFullYear();
|
||||
// // const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始,所以需要加1
|
||||
// // const day = String(date.getDate()).padStart(2, '0');
|
||||
// const hours = String(date.getHours()).padStart(2, '0');
|
||||
// const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||
// const ss = String(date.getSeconds()).padStart(2, '0');
|
||||
item.nodePlanTime = dateParts[0]+ ' ' + hours + ':' + minutes;// + ':' + ss ;
|
||||
// item.nodePlanTime = dateParts[0]+ ' ' + hours + ':' + minutes + ':' + ss ;
|
||||
|
||||
},
|
||||
// 出院/诊后
|
||||
@ -775,7 +785,7 @@ export default {
|
||||
})
|
||||
console.log(newObj, 'this.newObj')
|
||||
console.log(this.updata, 'this.updata')
|
||||
// return
|
||||
return
|
||||
signrouteadd(newObj).then((res) => {
|
||||
this.$notify({
|
||||
type: "success",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user