提交 4871e4dd 编写于 作者: lyf's avatar lyf

修改代码格式

上级 a8f0fe81
......@@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0,viewport-fit=cover">
<!-- 打开和关闭DNS预读取 -->
<meta http-equiv="x-dns-prefetch-control" content="on">
<!-- <meta content="never" name="referrer"/> -->
<meta content="never" name="referrer"/>
<!-- 强制查询特定主机名 -->
<link rel="dns-prefetch" href="<%= process.env.VUE_APP_SERVICE_URL %>">
<link rel="icon" type="image/x-icon" href="<%= VUE_APP_OSS_URL %>static/img/logo.png">
......
......@@ -15,7 +15,7 @@
label-suffix=":"
label-position="right"
size="mini"
style="width: 100%;"
style="width: 100%"
>
<el-form-item
label="接诊医生"
......@@ -29,7 +29,7 @@
filterable
placeholder="请选择接诊医生"
class="set-width"
style="width: 100%;"
style="width: 100%"
@change="doctorChanged($event)"
>
<el-option
......@@ -48,7 +48,7 @@
placeholder="请选择职称"
class="set-width"
disabled
style="width: 100%;"
style="width: 100%"
/>
<!-- <el-select v-model="formData.doctorTitle" placeholder="请选择职称" disabled class="set-width">
<el-option v-for="item of sexList" :key="item.value" :label="item.label" :value="item.value"></el-option>
......@@ -62,7 +62,7 @@
placeholder="请选择机构"
class="set-width"
disabled
style="width: 100%;"
style="width: 100%"
/>
</el-col>
<!-- <el-select v-model="formData.doctorHospital" placeholder="请选择机构" disabled class="set-width">
......@@ -76,7 +76,7 @@
placeholder="请选择机构"
class="set-width"
disabled
style="width: 100%;"
style="width: 100%"
/>
<!-- <el-select v-model="formData.doctorDepartment" placeholder="请选择科室" disabled class="set-width">
<el-option v-for="item of sexList" :key="item.value" :label="item.label" :value="item.value"></el-option>
......@@ -90,12 +90,15 @@
placeholder="请输入接诊医生手机号"
disabled
class="set-width"
style="width: 100%;"
style="width: 100%"
/>
</el-col>
</el-form-item>
<el-form-item
v-if="formData.receptionName == '站外医生' || formData.receptionName == '云鹊医助'"
v-if="
formData.receptionName == '站外医生' ||
formData.receptionName == '云鹊医助'
"
label="外部医生姓名"
class="required-label"
prop="outsideDoctor"
......@@ -105,7 +108,7 @@
v-model="formData.outsideDoctor"
placeholder="请输入外部医生姓名"
class="set-width"
style="width: 135%;"
style="width: 135%"
/>
</el-col>
</el-form-item>
......@@ -116,12 +119,15 @@
<el-col :span="15">
<div
class="set-width grey-bg"
style="width: 100%;"
style="width: 100%"
@click="openDiagnosisStartTimeDialog"
>
<i class="el-icon-alarm-clock" />
<span v-if="startTimeValue === ''">请选择问诊时间</span>
<span v-else>{{ dayFormatWithoutSecond(startTimeValue) }} -- {{ dayFormatWithoutSecond(endTimeValue) }}</span>
<span
v-else
>{{ dayFormatWithoutSecond(startTimeValue) }} --
{{ dayFormatWithoutSecond(endTimeValue) }}</span>
</div>
</el-col>
</el-form-item>
......@@ -134,7 +140,7 @@
<el-radio-group
v-model="formData.diagnoseChannel"
size="small"
style="line-height: 45px;width: 135%;"
style="line-height: 45px; width: 135%"
>
<el-radio :label="1">
APP问诊(系统发起问诊)
......@@ -150,7 +156,7 @@
<span
slot="footer"
class="dialog-footer"
style="text-align: center;"
style="text-align: center"
>
<el-button
type="primary"
......@@ -239,7 +245,7 @@
</div>
<div
class="startTime-footer"
style="text-align: center;"
style="text-align: center"
>
<el-button @click="startTimeConfirm('cancel')">
取 消
......@@ -257,7 +263,7 @@
</template>
<script>
import {updateDiagnosis} from '../../utils/diagnosis';
import { updateDiagnosis } from '../../utils/diagnosis';
import dayjs from 'dayjs';
import { getDoctorList } from '@/api/diagnosis';
......@@ -266,19 +272,19 @@
props: {
diagnosisDoctorVisible: {
type: Boolean,
default: false
default: false,
},
diagnoseLogId: {
type: Number,
default: 0
default: 0,
},
diagnoseType: {
type: Number,
default: 0
default: 0,
},
doctorId: {
type: Number | String,
default: 0
type: [Number, String],
default: 0,
},
},
data() {
......@@ -287,64 +293,60 @@
title: '设置接诊医生',
confirmTxt: '确定',
cancleTxt: '',
_promise: null,
isClick: false,
formData:{
receptionId:this.doctorId,
receptionName:'',
doctorTitle:'',
doctorHospital:'',
doctorDepartment:'',
doctorMobile:'',
outsideDoctor:'',
innerFlag:1,
receptionBeginTime:'',
receptionEndTime:'',
bizType:'',
diagnoseChannel:1,
formData: {
receptionId: this.doctorId,
receptionName: '',
doctorTitle: '',
doctorHospital: '',
doctorDepartment: '',
doctorMobile: '',
outsideDoctor: '',
innerFlag: 1,
receptionBeginTime: '',
receptionEndTime: '',
bizType: '',
diagnoseChannel: 1,
},
doctorList:[],
sessionDoctorList:[],
inNewTime:'',
inNewTimeObj:{},
rangeTime:'',
listKey:'',
addRules:{
doctorList: [],
sessionDoctorList: [],
inNewTime: '',
inNewTimeObj: {},
rangeTime: '',
listKey: '',
addRules: {
receptionId: [
{required: true, message: '请选择接诊医生', trigger: 'change'}
{ required: true, message: '请选择接诊医生', trigger: 'change' },
],
outsideDoctor: [
{required: true, message: '请输入外部医生姓名', trigger: 'blur'}
{ required: true, message: '请输入外部医生姓名', trigger: 'blur' },
],
diagnoseChannel: [
{required: true, message: '请选择问诊方式', trigger: 'change'}
{ required: true, message: '请选择问诊方式', trigger: 'change' },
],
},
pickerOptions1: {
disabledDate: time => {
return (
time.getTime() < Date.now() - 1 * 24 * 3600 * 1000
); // 减去一天的时间代表可以选择同一天;
}
disabledDate: (time) => {
return time.getTime() < Date.now() - 1 * 24 * 3600 * 1000; // 减去一天的时间代表可以选择同一天;
},
},
diagnosisStartTimeDialog: false,
startTimeValue: '',
endTimeValue:'',
timeRange:''
endTimeValue: '',
timeRange: '',
};
},
watch:{
diagnoseType:function () {
watch: {
diagnoseType: function () {
this.getDoctorList();
},
doctorId:function () {
if(this.doctorId == 0 || this.doctorId == null) {
doctorId: function () {
if (this.doctorId == 0 || this.doctorId == null) {
this.formData.receptionId = '';
if(this.$refs.setForm) {
if (this.$refs.setForm) {
this.$refs.setForm.resetFields();
}
}
else {
} else {
this.formData.receptionId = this.doctorId;
this.doctorChanged(this.doctorId);
}
......@@ -357,7 +359,7 @@
methods: {
confirm() {
this.$refs.setForm.validate((valid) => {
if(!this.startTimeValue || !this.endTimeValue) {
if (!this.startTimeValue || !this.endTimeValue) {
this.$message({
message: '请选择问诊时间',
type: 'warning',
......@@ -367,49 +369,53 @@
}
if (valid) {
let req = null;
if(this.formData.receptionName == '站外医生' || this.formData.receptionName == '云鹊医助') {
this.formData.innerFlag = 2;// 外部
if (
this.formData.receptionName == '站外医生' ||
this.formData.receptionName == '云鹊医助'
) {
this.formData.innerFlag = 2; // 外部
req = {
id:this.diagnoseLogId,
bizType:9,
innerFlag:this.formData.innerFlag,
receptionId:this.formData.receptionId,
receptionName:this.formData.receptionName,
outsideDoctor:this.formData.outsideDoctor,
id: this.diagnoseLogId,
bizType: 9,
innerFlag: this.formData.innerFlag,
receptionId: this.formData.receptionId,
receptionName: this.formData.receptionName,
outsideDoctor: this.formData.outsideDoctor,
// receptionBeginTime:this.rangeTime[0],
// receptionEndTime:this.rangeTime[1],
receptionBeginTime: this.dayFormat(this.startTimeValue),
receptionEndTime:this.endTimeValue,
diagnoseChannel: this.formData.diagnoseChannel
receptionEndTime: this.endTimeValue,
diagnoseChannel: this.formData.diagnoseChannel,
};
}
else {
this.formData.innerFlag = 1;// 内部
} else {
this.formData.innerFlag = 1; // 内部
req = {
id:this.diagnoseLogId,
bizType:9,
innerFlag:this.formData.innerFlag,
receptionId:this.formData.receptionId,
receptionName:this.formData.receptionName,
id: this.diagnoseLogId,
bizType: 9,
innerFlag: this.formData.innerFlag,
receptionId: this.formData.receptionId,
receptionName: this.formData.receptionName,
// receptionBeginTime:this.rangeTime[0],
// receptionEndTime:this.rangeTime[1],
receptionBeginTime: this.dayFormat(this.startTimeValue),
receptionEndTime:this.endTimeValue,
diagnoseChannel: this.formData.diagnoseChannel
receptionEndTime: this.endTimeValue,
diagnoseChannel: this.formData.diagnoseChannel,
};
}
vm.isClick = true;
updateDiagnosis(req).then(function (res) {
updateDiagnosis(req)
.then(function (res) {
vm.isClick = false;
if(res.code == '000000') {
if (res.code == '000000') {
vm.cancel();
vm.$emit('search');
} else {
vm.$message.error(res.message);
}
}).catch(function (error) {
})
.catch(function (err) {
vm.isClick = false;
vm.$message.error(res.message);
vm.$message.error(err.message);
});
}
});
......@@ -438,7 +444,7 @@
this.doctorChanged(this.doctorId);
},
doctorChanged(value) {
const selected = this.doctorList.find(item => item.doctorId === value);
const selected = this.doctorList.find((item) => item.doctorId === value);
if (selected) {
this.formData.receptionId = value;
this.formData.receptionName = selected.doctorName;
......@@ -457,11 +463,11 @@
if (sessionList) {
this.doctorList = this.sessionDoctorList;
this.doctorChanged(this.formData.receptionId);
}else {
} else {
getDoctorList({
diagnoseType:this.diagnoseType
}).then(res => {
diagnoseType: this.diagnoseType,
})
.then((res) => {
this.loading = false;
if (res.code == '000000') {
this.doctorList = res.data;
......@@ -470,24 +476,25 @@
} else {
this.$message.info('请稍后重试');
}
}).catch(() => {
})
.catch(() => {
this.loading = false;
this.$message.info('请稍后重试');
});
}
},
openDiagnosisStartTimeDialog () {
openDiagnosisStartTimeDialog() {
this.diagnosisStartTimeDialog = true;
},
startTimeConfirm(isCancle) {
console.log('isCancle-', isCancle);
if(isCancle == 'cancel') {
if (isCancle == 'cancel') {
this.startTimeValue = '';
this.endTimeValue = '';
this.timeRange = '';
}
if(isCancle == 'submit') {
if(String(this.startTimeValue).trim() === '' || !this.startTimeValue) {
if (isCancle == 'submit') {
if (String(this.startTimeValue).trim() === '' || !this.startTimeValue) {
this.$message({
message: '请选择问诊开始时间',
type: 'warning',
......@@ -495,7 +502,7 @@
});
return false;
}
if(String(this.timeRange).trim() === '') {
if (String(this.timeRange).trim() === '') {
this.$message({
message: '请选择问诊时长',
type: 'warning',
......@@ -503,33 +510,39 @@
});
return false;
}
this.endTimeValue = dayjs(this.startTimeValue).add(this.timeRange, 'minute').format('YYYY-MM-DD HH:mm:ss');
this.endTimeValue = dayjs(this.startTimeValue)
.add(this.timeRange, 'minute')
.format('YYYY-MM-DD HH:mm:ss');
}
this.diagnosisStartTimeDialog = false;
},
dayFormat (v) {
dayFormat(v) {
return dayjs(v).format('YYYY-MM-DD HH:mm:ss');
},
dayFormatWithoutSecond (v) {
if(!v) {
dayFormatWithoutSecond(v) {
if (!v) {
return '';
}
return dayjs(v).format('YYYY-MM-DD HH:mm');
},
timeRangeChange (v) {
if(this.startTimeValue && v) {
this.endTimeValue = dayjs(this.startTimeValue).add(v, 'minute').format('YYYY-MM-DD HH:mm:ss');
timeRangeChange(v) {
if (this.startTimeValue && v) {
this.endTimeValue = dayjs(this.startTimeValue)
.add(v, 'minute')
.format('YYYY-MM-DD HH:mm:ss');
}
},
startTimeChange (v) {
if(!v) {
startTimeChange(v) {
if (!v) {
this.endTimeValue = '';
}
if(this.timeRange && v) {
this.endTimeValue = dayjs(v).add(this.timeRange, 'minute').format('YYYY-MM-DD HH:mm:ss');
}
}
if (this.timeRange && v) {
this.endTimeValue = dayjs(v)
.add(this.timeRange, 'minute')
.format('YYYY-MM-DD HH:mm:ss');
}
},
},
};
</script>
......@@ -537,40 +550,39 @@
.set-width {
width: 300px;
}
.grey-bg{
.grey-bg {
padding: 0px 15px;
color: rgb(96, 98, 102);
height: 28px;
line-height: 28px;
border-radius: 4px;
border: 1px solid #DCDFE6;
border: 1px solid #dcdfe6;
font-size: 12px;
cursor: pointer;
}
.startTime-wrap{
.startTime-wrap {
display: flex;
justify-content: space-around;
.time-wrap{
.time-wrap {
display: flex;
align-items: end;
.time-range{
.time-range {
margin-left: 10px;
.mt20{
.mt20 {
margin-top: 20px;
}
}
}
.date-wrap{
.date-wrap {
display: inline-block;
}
}
.startTime-footer{
.startTime-footer {
margin-top: 100px;
padding-bottom: 50px;
}
.scale-datepicker{
.scale-datepicker {
transform: scale(1.3);
top: 289px!important;
top: 289px !important;
}
</style>
......@@ -5,7 +5,6 @@
:visible.sync="diagnosisTimeVisible"
@close="cancel"
>
<!-- <el-row :gutter="30" class="row search" type="flex" style="margin-bottom:0;">-->
<el-form
ref="setForm"
:rules="addRules"
......@@ -14,7 +13,7 @@
label-suffix=":"
label-position="right"
size="mini"
style="width: 100%;"
style="width: 100%"
>
<el-form-item
label="助诊意向时间"
......@@ -30,7 +29,7 @@
start-placeholder="开始日期"
end-placeholder="结束日期"
:picker-options="pickerOptions1"
style="width: 135%;"
style="width: 135%"
/>
</el-col>
</el-form-item>
......@@ -40,7 +39,7 @@
<el-input
v-model="model.assistantRemark"
type="textarea"
style="width: 135%;"
style="width: 135%"
size="small"
minlength="2"
maxlength="500"
......@@ -53,7 +52,7 @@
<span
slot="footer"
class="dialog-footer"
style="text-align: center;"
style="text-align: center"
>
<el-button @click="cancel">取 消</el-button>
<el-button
......@@ -67,21 +66,21 @@
</template>
<script>
import {updateDiagnosis} from '../../utils/diagnosis';
import { updateDiagnosis } from '../../utils/diagnosis';
let vm = null;
export default {
props: {
diagnosisTimeVisible: {
type: Boolean,
default: false
default: false,
},
diagnoseLogId: {
type: Number,
default: 0
default: 0,
},
bizType: {
type: Number,
default: 0
default: 0,
},
},
data() {
......@@ -97,10 +96,9 @@
title: '设置时间',
confirmTxt: '确定',
cancleTxt: '',
_promise: null,
isClick: false,
model: {
assistantRemark: ''
assistantRemark: '',
},
rangeTime: '',
addRules: {
......@@ -113,18 +111,16 @@
// validator: checkDate,
trigger: 'change',
fields: {
0: {required: true, type: 'date', message: '开始时间不能为空'},
1: {required: true, type: 'date', message: '结束时间不能为空'}
}
}
]
0: { required: true, type: 'date', message: '开始时间不能为空' },
1: { required: true, type: 'date', message: '结束时间不能为空' },
},
},
],
},
pickerOptions1: {
disabledDate: time => {
return (
time.getTime() < Date.now() - 1 * 24 * 3600 * 1000
); // 减去一天的时间代表可以选择同一天;
}
disabledDate: (time) => {
return time.getTime() < Date.now() - 1 * 24 * 3600 * 1000; // 减去一天的时间代表可以选择同一天;
},
},
};
},
......@@ -135,42 +131,40 @@
confirm() {
// this.$refs.setForm.validate((valid) => {
// if (valid) {
if(!(this.rangeTime != null && this.rangeTime.length > 0)) {
if (!(this.rangeTime != null && this.rangeTime.length > 0)) {
vm.$message.warning('请选择助诊意向时间');
return;
}
vm.isClick = true;
const req = {
id:this.diagnoseLogId,
bizType:this.bizType,
assistantBeginTime:this.rangeTime[0],
assistantEndTime:this.rangeTime[1],
assistantRemark:this.model.assistantRemark
id: this.diagnoseLogId,
bizType: this.bizType,
assistantBeginTime: this.rangeTime[0],
assistantEndTime: this.rangeTime[1],
assistantRemark: this.model.assistantRemark,
};
updateDiagnosis(req).then(function (res) {
updateDiagnosis(req)
.then(function (res) {
vm.isClick = false;
if(res.code == '000000') {
if (res.code == '000000') {
vm.cancel();
vm.$emit('search');
} else {
vm.$message.error(res.message);
}
}).catch(function (error) {
})
.catch(function (err) {
vm.isClick = false;
vm.$message.error(res.message);
vm.$message.error(err.message);
});
// }
// })
},
cancel() {
this.rangeTime = '';
this.model.assistantRemark = '';
this.$emit('update:diagnosisTimeVisible', false);
}
}
},
},
};
</script>
<style lang="scss" scoped>
</style>
<style lang="scss" scoped></style>
......@@ -62,16 +62,19 @@
<script>
export default {
props:[
'diagnosisVisible'
],
props: {
diagnosisVisible: {
type: Boolean,
default: false,
},
},
data() {
return {
show: false,
title: '设置预约时间(问诊时间)',
confirmTxt: '确定',
cancleTxt: '',
_promise: null,
returnPromise: null,
model:{
userName:'',
title:''
......@@ -97,13 +100,13 @@
this.title = '';
this.confirmTxt = '确定';
this.cancleTxt = '';
this._promise = null;
this.returnPromise = null;
},
init(obj = {}) {
Object.assign(this, obj);
this.show = true;
return new Promise((resolve, reject) => {
this._promise = {
this.returnPromise = {
resolve,
reject
};
......@@ -111,12 +114,12 @@
},
async cancle() {
this.show = false;
await this._promise.reject && this._promise.reject();
await this.returnPromise.reject && this.returnPromise.reject();
this.reset();
},
async confirm() {
this.show = false;
await this._promise.resolve && this._promise.resolve();
await this.returnPromise.resolve && this.returnPromise.resolve();
this.reset();
},
hide() {
......
......@@ -73,7 +73,6 @@
title: '设为稍后跟进',
confirmTxt: '确定',
cancleTxt: '',
_promise: null,
model:{
toFollowReason:''
},
......@@ -85,7 +84,7 @@
};
},
watch:{
toFollowReason(newdata, olddata) {
toFollowReason(newdata) {
this.model.toFollowReason = newdata;
}
......@@ -115,7 +114,7 @@
vm.$message.error(res.message);
}
}).catch(function (error) {
vm.$message.error(res.message);
vm.$message.error(error.message);
});
}
});
......
......@@ -5,7 +5,6 @@
:visible.sync="matchVisible"
@close="cancel"
>
<!-- <el-row :gutter="30" class="row search" type="flex" style="margin-bottom:0;">-->
<el-form
ref="setForm"
:rules="addRules"
......@@ -14,7 +13,7 @@
label-suffix=":"
label-position="right"
size="mini"
style="width: 100%;"
style="width: 100%"
>
<el-form-item
label="运营名称"
......@@ -27,7 +26,7 @@
placeholder="请选择运营名称"
filterable
clearable
style="width:110%;height: 32px;line-height: 32px;"
style="width: 110%; height: 32px; line-height: 32px"
@change="changeOperator"
>
<el-option
......@@ -40,11 +39,10 @@
</el-col>
</el-form-item>
</el-form>
<!-- </el-row>-->
<span
slot="footer"
class="dialog-footer"
style="text-align: center;"
style="text-align: center"
>
<el-button @click="cancel">取 消</el-button>
<el-button
......@@ -63,25 +61,27 @@
let vm = null;
export default {
props: {
matchVisible:{
matchVisible: {
type: Boolean,
default: false
default: false,
},
diagnoseLogId: {
type: Number,
default: 0
default: 0,
},
multipleSelection: {
type: Array,
default: [],
default: () => {
return [];
},
batchFlag:{
},
batchFlag: {
type: Boolean,
default: false
default: false,
},
operateUserID: {
type: String | Number,
default: ''
type: [String, Number],
default: '',
},
},
data() {
......@@ -90,41 +90,37 @@
title: '匹配运营',
confirmTxt: '确定',
cancleTxt: '',
_promise: null,
model:{
operatorName:'',
operatorId:''
model: {
operatorName: '',
operatorId: '',
},
adminList:'',
addRules:{
adminList: '',
addRules: {
operatorId: [
{required: true, message: '请选择运营人员', trigger: 'change'}
]
}
{ required: true, message: '请选择运营人员', trigger: 'change' },
],
},
};
},
watch:{
operateUserID:function () {
if(!this.batchFlag) {
if(this.operateUserID == 0 || this.operateUserID == null) {
watch: {
operateUserID: function () {
if (!this.batchFlag) {
if (this.operateUserID == 0 || this.operateUserID == null) {
this.model.operatorId = '';
if(this.$refs.setForm) {
if (this.$refs.setForm) {
this.$refs.setForm.resetFields();
}
}
else {
} else {
this.model.operatorId = this.operateUserID;
this.changeOperator(this.operateUserID);
}
}
}
},
},
created() {
vm = this;
this.getAdminList();
if(this.batchFlag) {
if (this.batchFlag) {
this.title = '批量设置运营';
}
},
......@@ -138,16 +134,18 @@
id: this.diagnoseLogId,
bizType: 1,
operatorId: this.model.operatorId,
operatorName: this.model.operatorName
operatorName: this.model.operatorName,
};
updateDiagnosis(req).then(function (res) {
updateDiagnosis(req)
.then(function (res) {
if (res.code == '000000') {
vm.cancel();
vm.$emit('search');
} else {
vm.$message.error(res.message);
}
}).catch(function (error) {
})
.catch(function (error) {
vm.$message.error(error);
});
}
......@@ -162,16 +160,18 @@
const req = {
ids: ids,
operatorId: this.model.operatorId,
operatorName: this.model.operatorName
operatorName: this.model.operatorName,
};
batchSetOperator(req).then(function (res) {
batchSetOperator(req)
.then(function (res) {
if (res.code == '000000') {
vm.cancel();
vm.$emit('search');
} else {
vm.$message.error(res.message);
}
}).catch(function (error) {
})
.catch(function (error) {
vm.$message.error(error);
});
}
......@@ -185,7 +185,7 @@
},
getAdminList() {
this.loading = true;
operatorQuery().then(res => {
operatorQuery().then((res) => {
this.loading = false;
if (res.code == '000000') {
this.adminList = res.data;
......@@ -194,17 +194,14 @@
},
changeOperator(data) {
for (let i = 0; i < this.adminList.length; i++) {
if(data == this.adminList[i].id) {
if (data == this.adminList[i].id) {
this.model.operatorName = this.adminList[i].name;
break;
}
}
}
}
},
},
};
</script>
<style lang="scss" scoped>
</style>
<style lang="scss" scoped></style>
......@@ -14,7 +14,7 @@
label-suffix=":"
label-position="right"
size="mini"
style="width: 100%;"
style="width: 100%"
>
<el-form-item
label="分诊科室"
......@@ -26,7 +26,7 @@
placeholder="请选择分诊科室"
clearable
filterable
style="width:56%;height: 32px;line-height: 32px;"
style="width: 56%; height: 32px; line-height: 32px"
@change="change"
>
<el-option
......@@ -43,7 +43,7 @@
<el-input
v-model="model.triageRemark"
type="textarea"
style="width: 90%;"
style="width: 90%"
size="small"
minlength="2"
maxlength="500"
......@@ -56,7 +56,7 @@
<span
slot="footer"
class="dialog-footer"
style="text-align: center;"
style="text-align: center"
>
<el-button @click="cancel">取 消</el-button>
<el-button
......@@ -69,25 +69,25 @@
</template>
<script>
import {updateDiagnosis, getDepList} from '../../utils/diagnosis';
import { updateDiagnosis, getDepList } from '../../utils/diagnosis';
let vm = null;
export default {
props: {
doctorVisible: {
type: Boolean,
default: false
default: false,
},
diagnoseLogId: {
type: Number,
default: 0
default: 0,
},
bizType: {
type: Number,
default: 0
default: 0,
},
triageDepartmentId: {
type: Number | String,
default: 0
type: [Number, String],
default: 0,
},
},
data() {
......@@ -96,33 +96,31 @@
title: '设置分诊科室',
confirmTxt: '确定',
cancleTxt: '',
_promise: null,
depList: [],
model: {
triageRemark: '',
triageDepartmentId: '',
triageDepartment:''
triageDepartment: '',
},
addRules: {
triageDepartmentId: [
{required: true, message: '请选择分诊科室', trigger: 'change'}
{ required: true, message: '请选择分诊科室', trigger: 'change' },
],
}
},
};
},
watch:{
triageDepartmentId:function () {
if(this.triageDepartmentId == 0 || this.triageDepartmentId == null) {
watch: {
triageDepartmentId: function () {
if (this.triageDepartmentId == 0 || this.triageDepartmentId == null) {
this.model.triageDepartmentId = '';
if(this.$refs.setForm) {
if (this.$refs.setForm) {
this.$refs.setForm.resetFields();
}
}
else {
} else {
this.model.triageDepartmentId = this.triageDepartmentId;
this.change(this.triageDepartmentId);
}
}
},
},
created() {
vm = this;
......@@ -130,14 +128,16 @@
},
methods: {
getDepList() {
getDepList().then(function (res) {
getDepList()
.then(function (res) {
if (res.code == '000000') {
vm.depList = res.data;
} else {
vm.$message.error(res.message);
}
}).catch(function (error) {
vm.$message.error(res.message);
})
.catch(function (error) {
vm.$message.error(error.message);
});
},
confirm() {
......@@ -146,19 +146,21 @@
const req = {
id: this.diagnoseLogId,
bizType: this.bizType,
triageDepartmentId:this.model.triageDepartmentId,
triageDepartment:this.model.triageDepartment,
triageRemark: this.model.triageRemark
triageDepartmentId: this.model.triageDepartmentId,
triageDepartment: this.model.triageDepartment,
triageRemark: this.model.triageRemark,
};
updateDiagnosis(req).then(function (res) {
updateDiagnosis(req)
.then(function (res) {
if (res.code == '000000') {
vm.cancel();
vm.$emit('search');
} else {
vm.$message.error(res.message);
}
}).catch(function (error) {
vm.$message.error(res.message);
})
.catch(function (error) {
vm.$message.error(error.message);
});
}
});
......@@ -173,16 +175,14 @@
},
change(data) {
for (let i = 0; i < this.depList.length; i++) {
if(data == this.depList[i].id) {
if (data == this.depList[i].id) {
this.model.triageDepartment = this.depList[i].name;
break;
}
}
}
}
},
},
};
</script>
<style lang="scss" scoped>
</style>
<style lang="scss" scoped></style>
......@@ -14,10 +14,12 @@
label-suffix=":"
label-position="right"
size="mini"
style="width: 100%;"
style="width: 100%"
>
<div style="margin-bottom: 20px;margin-top: -20px;text-align: center;">
<span style="color: #ff0000;">温馨提示:订单一旦退款,订单关联的预约单将被同步取消,请谨慎操作退款</span>
<div style="margin-bottom: 20px; margin-top: -20px; text-align: center">
<span
style="color: #ff0000"
>温馨提示:订单一旦退款,订单关联的预约单将被同步取消,请谨慎操作退款</span>
</div>
<el-form-item
......@@ -29,7 +31,7 @@
<el-input
v-model="model.refundReason"
type="textarea"
style="width: 130%;"
style="width: 130%"
size="small"
placeholder="请输入原因"
/>
......@@ -40,7 +42,7 @@
<span
slot="footer"
class="dialog-footer"
style="text-align: center;"
style="text-align: center"
>
<el-button @click="cancel">取 消</el-button>
<el-button
......@@ -58,14 +60,14 @@
let vm = null;
export default {
props: {
refundVisible:{
refundVisible: {
type: Boolean,
default: false
default: false,
},
diagnoseLogId: {
type: Number,
default: 0
}
default: 0,
},
},
data() {
return {
......@@ -73,16 +75,15 @@
title: '取消/退款',
confirmTxt: '确定',
cancleTxt: '',
_promise: null,
isClick: false,
model:{
refundReason:''
model: {
refundReason: '',
},
addRules:{
addRules: {
refundReason: [
{required: true, message: '请输入退款原因', trigger: 'blur'}
]
}
{ required: true, message: '请输入退款原因', trigger: 'blur' },
],
},
};
},
created() {
......@@ -95,10 +96,11 @@
const req = {
id: this.diagnoseLogId,
bizType: 2,
refundReason: this.model.refundReason
refundReason: this.model.refundReason,
};
vm.isClick = true;
updateDiagnosis(req).then(function (res) {
updateDiagnosis(req)
.then(function (res) {
vm.isClick = false;
if (res.code == '000000') {
vm.cancel();
......@@ -106,9 +108,10 @@
} else {
vm.$message.error(res.message);
}
}).catch(function (error) {
})
.catch(function (error) {
vm.isClick = false;
vm.$message.error(res.message);
vm.$message.error(error.message);
});
}
});
......@@ -117,10 +120,8 @@
this.model.refundReason = '';
this.$emit('update:refundVisible', false);
},
}
},
};
</script>
<style lang="scss" scoped>
</style>
<style lang="scss" scoped></style>
......@@ -18,7 +18,6 @@
温馨提示:点击确定后,预约单状态将回退为"已匹配"状态
</div>
<!-- <el-row :gutter="30" class="row search" type="flex" style="margin-bottom:0;">-->
<el-form
ref="setForm"
:rules="addRules"
......@@ -35,15 +34,7 @@
prop="statusRemark"
>
<el-col :span="15">
<!-- <el-input
type="textarea"
v-model="model.statusRemark"
style="width: 135%"
size="small"
minlength="2"
maxlength="500"
placeholder="请输入备注信息"
></el-input> -->
<el-select
v-model="model.statusRemark"
......@@ -102,10 +93,6 @@
type: Number,
default: 0,
},
bizType: {
type: Number,
default: 0,
},
},
data() {
return {
......@@ -113,7 +100,6 @@
title: '重新匹配医生',
confirmTxt: '确定',
cancleTxt: '',
_promise: null,
model: {
statusRemark: '',
},
......@@ -153,7 +139,7 @@
}
})
.catch(function (error) {
vm.$message.error(res.message);
vm.$message.error(error.message);
});
}
});
......
......@@ -36,7 +36,9 @@
},
imgList: {
type: Array,
default: []
default: ()=>{
return []
}
}
},
data() {
......@@ -53,7 +55,7 @@
};
},
watch:{
imgList(newv, oldv) {
imgList(newv) {
this.imgArr = newv;
}
},
......@@ -62,6 +64,7 @@
},
methods: {
handleRemove(file, fileList) {
console.log(file)
this.imgArr = fileList;
},
handlePictureCardPreview(file) {
......@@ -81,13 +84,6 @@
sucess(response, file, fileList) {
this.imgArr = fileList;
},
handleExceed(files, fileList) {
this.$message.warning(
`当前限制选择 15 个文件,本次选择了 ${files.length} 个文件,共选择了 ${
files.length + fileList.length
} 个文件`
);
},
setNewArr() {
const newArr = [];
if (this.imgArr && this.imgArr.length) {
......
......@@ -47,7 +47,6 @@
<script>
import { getBaseUrl } from '@/utils/index';
import refundDetailVue from '../../views/IM/diagnosis-admin/refund-detail.vue';
export default {
props: {
isDisable: {
......@@ -56,7 +55,9 @@
},
musicList: {
type: Array,
default: []
default: ()=>{
return []
}
}
},
data() {
......@@ -73,7 +74,7 @@
};
},
watch:{
musicList(newv, oldv) {
musicList(newv) {
this.musicArr = newv || [];
}
},
......@@ -101,15 +102,15 @@
}, 1000);
},
sucess(response, file, fileList) {
sucess(fileList) {
this.musicArr = fileList;
this.loading = false;
},
errfn(response, file, fileList) {
errfn() {
this.loading = false;
},
// 上传mp3
beforeMusicUpload(file) {
beforeMusicUpload() {
},
setNewArr() {
......
......@@ -231,7 +231,9 @@
},
tData: {
type: Array,
default: [],
default: ()=>{
return []
},
},
pageNo: {
type: Number,
......@@ -255,7 +257,9 @@
},
multipleSelection: {
type: Array,
default: [],
default: ()=>{
return []
},
},
},
......
......@@ -414,7 +414,9 @@
props: {
tData: {
type: Array,
default: []
default: ()=>{
return []
}
},
pageNo: {
type: Number,
......
......@@ -103,7 +103,7 @@ class RtcClient {
if (this.role == 'anchor') {
this.publish();
}
}).catch(error => {
}).catch(() => {
this.vueInstance.$message({
message: '麦克风打开失败!',
type: 'error'
......@@ -291,7 +291,7 @@ class RtcClient {
});
// 房间被解散了
this.client_.on('client-banned', err => {
this.client_.on('client-banned', () => {
console.log('房间被解散了');
});
......@@ -404,7 +404,7 @@ class RtcClient {
console.log('=========流更新========stream-updated===================');
console.log(evt);
const remoteStream = evt.stream;
const uid = this.getUidByStreamId(remoteStream.getId());
// const uid = this.getUidByStreamId(remoteStream.getId());
// remoteStream.hasVideo() // 是否有视频轨道
// remoteStream.hasAudio() //是否有音轨道
// remoteStream.getType() // 主要用于判断一个远端流是主音视频流还是辅路视频流,辅路视频流通常是一个屏幕分享流。
......
// api路径
import {isNotEmptyUtils} from './utils';
export default async(url = '', data = {}, type = 'POST', method = 'fetch', server = 'CONTENT') => {
export default async(url = '', data = {}, type = 'POST', method = 'fetch') => {
type = type.toUpperCase();
// url = (server==='WECHAT'?wechatUrl:baseUrl) + url;
......@@ -57,7 +57,7 @@ export default async(url = '', data = {}, type = 'POST', method = 'fetch', serve
if (window.XMLHttpRequest) {
requestObj = new XMLHttpRequest();
} else {
requestObj = new ActiveXObject;
requestObj = new ActiveXObject();
}
let sendData = '';
......
......@@ -1353,7 +1353,7 @@
}
},
save() {
this.$refs.form.validate((valid) => {
this.$refs.form.validate(() => {
this.formData.birthday = new Date(this.formData.birthdayStr);
// this.formData.birthday = this.formData.birthdayStr;
const params = JSON.parse(JSON.stringify(this.formData));
......
......@@ -80,7 +80,7 @@
this.$message.success('保存成功');
}
})
.catch((err) => {
.catch(() => {
console.log('网络出现点儿问题,稍后重试');
});
},
......@@ -92,7 +92,7 @@
this.checklist = res.data;
}
})
.catch((err) => {
.catch(() => {
console.log('网络出现点儿问题,稍后重试');
});
},
......
......@@ -8,7 +8,6 @@
</template>
<script>
import refundDetail from '@/components/common/info-pad';
const vm = null;
export default {
components: {
refundDetail
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册