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

修改代码格式

上级 a8f0fe81
...@@ -7,7 +7,7 @@ ...@@ -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"> <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预读取 --> <!-- 打开和关闭DNS预读取 -->
<meta http-equiv="x-dns-prefetch-control" content="on"> <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="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"> <link rel="icon" type="image/x-icon" href="<%= VUE_APP_OSS_URL %>static/img/logo.png">
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
:visible.sync="diagnosisTimeVisible" :visible.sync="diagnosisTimeVisible"
@close="cancel" @close="cancel"
> >
<!-- <el-row :gutter="30" class="row search" type="flex" style="margin-bottom:0;">-->
<el-form <el-form
ref="setForm" ref="setForm"
:rules="addRules" :rules="addRules"
...@@ -14,7 +13,7 @@ ...@@ -14,7 +13,7 @@
label-suffix=":" label-suffix=":"
label-position="right" label-position="right"
size="mini" size="mini"
style="width: 100%;" style="width: 100%"
> >
<el-form-item <el-form-item
label="助诊意向时间" label="助诊意向时间"
...@@ -30,7 +29,7 @@ ...@@ -30,7 +29,7 @@
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
:picker-options="pickerOptions1" :picker-options="pickerOptions1"
style="width: 135%;" style="width: 135%"
/> />
</el-col> </el-col>
</el-form-item> </el-form-item>
...@@ -40,7 +39,7 @@ ...@@ -40,7 +39,7 @@
<el-input <el-input
v-model="model.assistantRemark" v-model="model.assistantRemark"
type="textarea" type="textarea"
style="width: 135%;" style="width: 135%"
size="small" size="small"
minlength="2" minlength="2"
maxlength="500" maxlength="500"
...@@ -53,7 +52,7 @@ ...@@ -53,7 +52,7 @@
<span <span
slot="footer" slot="footer"
class="dialog-footer" class="dialog-footer"
style="text-align: center;" style="text-align: center"
> >
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button <el-button
...@@ -67,21 +66,21 @@ ...@@ -67,21 +66,21 @@
</template> </template>
<script> <script>
import {updateDiagnosis} from '../../utils/diagnosis'; import { updateDiagnosis } from '../../utils/diagnosis';
let vm = null; let vm = null;
export default { export default {
props: { props: {
diagnosisTimeVisible: { diagnosisTimeVisible: {
type: Boolean, type: Boolean,
default: false default: false,
}, },
diagnoseLogId: { diagnoseLogId: {
type: Number, type: Number,
default: 0 default: 0,
}, },
bizType: { bizType: {
type: Number, type: Number,
default: 0 default: 0,
}, },
}, },
data() { data() {
...@@ -97,10 +96,9 @@ ...@@ -97,10 +96,9 @@
title: '设置时间', title: '设置时间',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null,
isClick: false, isClick: false,
model: { model: {
assistantRemark: '' assistantRemark: '',
}, },
rangeTime: '', rangeTime: '',
addRules: { addRules: {
...@@ -113,18 +111,16 @@ ...@@ -113,18 +111,16 @@
// validator: checkDate, // validator: checkDate,
trigger: 'change', trigger: 'change',
fields: { fields: {
0: {required: true, type: 'date', message: '开始时间不能为空'}, 0: { required: true, type: 'date', message: '开始时间不能为空' },
1: {required: true, type: 'date', message: '结束时间不能为空'} 1: { required: true, type: 'date', message: '结束时间不能为空' },
} },
} },
] ],
}, },
pickerOptions1: { pickerOptions1: {
disabledDate: time => { disabledDate: (time) => {
return ( return time.getTime() < Date.now() - 1 * 24 * 3600 * 1000; // 减去一天的时间代表可以选择同一天;
time.getTime() < Date.now() - 1 * 24 * 3600 * 1000 },
); // 减去一天的时间代表可以选择同一天;
}
}, },
}; };
}, },
...@@ -135,42 +131,40 @@ ...@@ -135,42 +131,40 @@
confirm() { confirm() {
// this.$refs.setForm.validate((valid) => { // this.$refs.setForm.validate((valid) => {
// if (valid) { // if (valid) {
if(!(this.rangeTime != null && this.rangeTime.length > 0)) { if (!(this.rangeTime != null && this.rangeTime.length > 0)) {
vm.$message.warning('请选择助诊意向时间'); vm.$message.warning('请选择助诊意向时间');
return; return;
} }
vm.isClick = true; vm.isClick = true;
const req = { const req = {
id:this.diagnoseLogId, id: this.diagnoseLogId,
bizType:this.bizType, bizType: this.bizType,
assistantBeginTime:this.rangeTime[0], assistantBeginTime: this.rangeTime[0],
assistantEndTime:this.rangeTime[1], assistantEndTime: this.rangeTime[1],
assistantRemark:this.model.assistantRemark assistantRemark: this.model.assistantRemark,
}; };
updateDiagnosis(req).then(function (res) { updateDiagnosis(req)
vm.isClick = false; .then(function (res) {
if(res.code == '000000') { vm.isClick = false;
vm.cancel(); if (res.code == '000000') {
vm.$emit('search'); vm.cancel();
} else { vm.$emit('search');
vm.$message.error(res.message); } else {
} vm.$message.error(res.message);
}).catch(function (error) { }
vm.isClick = false; })
vm.$message.error(res.message); .catch(function (err) {
}); vm.isClick = false;
// } vm.$message.error(err.message);
// }) });
}, },
cancel() { cancel() {
this.rangeTime = ''; this.rangeTime = '';
this.model.assistantRemark = ''; this.model.assistantRemark = '';
this.$emit('update:diagnosisTimeVisible', false); this.$emit('update:diagnosisTimeVisible', false);
} },
} },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
</style>
...@@ -62,16 +62,19 @@ ...@@ -62,16 +62,19 @@
<script> <script>
export default { export default {
props:[ props: {
'diagnosisVisible' diagnosisVisible: {
], type: Boolean,
default: false,
},
},
data() { data() {
return { return {
show: false, show: false,
title: '设置预约时间(问诊时间)', title: '设置预约时间(问诊时间)',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null, returnPromise: null,
model:{ model:{
userName:'', userName:'',
title:'' title:''
...@@ -97,13 +100,13 @@ ...@@ -97,13 +100,13 @@
this.title = ''; this.title = '';
this.confirmTxt = '确定'; this.confirmTxt = '确定';
this.cancleTxt = ''; this.cancleTxt = '';
this._promise = null; this.returnPromise = null;
}, },
init(obj = {}) { init(obj = {}) {
Object.assign(this, obj); Object.assign(this, obj);
this.show = true; this.show = true;
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this._promise = { this.returnPromise = {
resolve, resolve,
reject reject
}; };
...@@ -111,12 +114,12 @@ ...@@ -111,12 +114,12 @@
}, },
async cancle() { async cancle() {
this.show = false; this.show = false;
await this._promise.reject && this._promise.reject(); await this.returnPromise.reject && this.returnPromise.reject();
this.reset(); this.reset();
}, },
async confirm() { async confirm() {
this.show = false; this.show = false;
await this._promise.resolve && this._promise.resolve(); await this.returnPromise.resolve && this.returnPromise.resolve();
this.reset(); this.reset();
}, },
hide() { hide() {
......
...@@ -73,7 +73,6 @@ ...@@ -73,7 +73,6 @@
title: '设为稍后跟进', title: '设为稍后跟进',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null,
model:{ model:{
toFollowReason:'' toFollowReason:''
}, },
...@@ -85,7 +84,7 @@ ...@@ -85,7 +84,7 @@
}; };
}, },
watch:{ watch:{
toFollowReason(newdata, olddata) { toFollowReason(newdata) {
this.model.toFollowReason = newdata; this.model.toFollowReason = newdata;
} }
...@@ -115,7 +114,7 @@ ...@@ -115,7 +114,7 @@
vm.$message.error(res.message); vm.$message.error(res.message);
} }
}).catch(function (error) { }).catch(function (error) {
vm.$message.error(res.message); vm.$message.error(error.message);
}); });
} }
}); });
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
:visible.sync="matchVisible" :visible.sync="matchVisible"
@close="cancel" @close="cancel"
> >
<!-- <el-row :gutter="30" class="row search" type="flex" style="margin-bottom:0;">-->
<el-form <el-form
ref="setForm" ref="setForm"
:rules="addRules" :rules="addRules"
...@@ -14,7 +13,7 @@ ...@@ -14,7 +13,7 @@
label-suffix=":" label-suffix=":"
label-position="right" label-position="right"
size="mini" size="mini"
style="width: 100%;" style="width: 100%"
> >
<el-form-item <el-form-item
label="运营名称" label="运营名称"
...@@ -27,7 +26,7 @@ ...@@ -27,7 +26,7 @@
placeholder="请选择运营名称" placeholder="请选择运营名称"
filterable filterable
clearable clearable
style="width:110%;height: 32px;line-height: 32px;" style="width: 110%; height: 32px; line-height: 32px"
@change="changeOperator" @change="changeOperator"
> >
<el-option <el-option
...@@ -40,11 +39,10 @@ ...@@ -40,11 +39,10 @@
</el-col> </el-col>
</el-form-item> </el-form-item>
</el-form> </el-form>
<!-- </el-row>-->
<span <span
slot="footer" slot="footer"
class="dialog-footer" class="dialog-footer"
style="text-align: center;" style="text-align: center"
> >
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button <el-button
...@@ -63,25 +61,27 @@ ...@@ -63,25 +61,27 @@
let vm = null; let vm = null;
export default { export default {
props: { props: {
matchVisible:{ matchVisible: {
type: Boolean, type: Boolean,
default: false default: false,
}, },
diagnoseLogId: { diagnoseLogId: {
type: Number, type: Number,
default: 0 default: 0,
}, },
multipleSelection: { multipleSelection: {
type: Array, type: Array,
default: [], default: () => {
return [];
},
}, },
batchFlag:{ batchFlag: {
type: Boolean, type: Boolean,
default: false default: false,
}, },
operateUserID: { operateUserID: {
type: String | Number, type: [String, Number],
default: '' default: '',
}, },
}, },
data() { data() {
...@@ -90,41 +90,37 @@ ...@@ -90,41 +90,37 @@
title: '匹配运营', title: '匹配运营',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null, model: {
model:{ operatorName: '',
operatorName:'', operatorId: '',
operatorId:''
}, },
adminList:'', adminList: '',
addRules:{ addRules: {
operatorId: [ operatorId: [
{required: true, message: '请选择运营人员', trigger: 'change'} { required: true, message: '请选择运营人员', trigger: 'change' },
] ],
} },
}; };
}, },
watch:{ watch: {
operateUserID:function () { operateUserID: function () {
if (!this.batchFlag) {
if(!this.batchFlag) { if (this.operateUserID == 0 || this.operateUserID == null) {
if(this.operateUserID == 0 || this.operateUserID == null) {
this.model.operatorId = ''; this.model.operatorId = '';
if(this.$refs.setForm) { if (this.$refs.setForm) {
this.$refs.setForm.resetFields(); this.$refs.setForm.resetFields();
} }
} } else {
else {
this.model.operatorId = this.operateUserID; this.model.operatorId = this.operateUserID;
this.changeOperator(this.operateUserID); this.changeOperator(this.operateUserID);
} }
} }
} },
}, },
created() { created() {
vm = this; vm = this;
this.getAdminList(); this.getAdminList();
if(this.batchFlag) { if (this.batchFlag) {
this.title = '批量设置运营'; this.title = '批量设置运营';
} }
}, },
...@@ -138,18 +134,20 @@ ...@@ -138,18 +134,20 @@
id: this.diagnoseLogId, id: this.diagnoseLogId,
bizType: 1, bizType: 1,
operatorId: this.model.operatorId, operatorId: this.model.operatorId,
operatorName: this.model.operatorName operatorName: this.model.operatorName,
}; };
updateDiagnosis(req).then(function (res) { updateDiagnosis(req)
if (res.code == '000000') { .then(function (res) {
vm.cancel(); if (res.code == '000000') {
vm.$emit('search'); vm.cancel();
} else { vm.$emit('search');
vm.$message.error(res.message); } else {
} vm.$message.error(res.message);
}).catch(function (error) { }
vm.$message.error(error); })
}); .catch(function (error) {
vm.$message.error(error);
});
} }
// 批量设置运营 // 批量设置运营
else { else {
...@@ -162,18 +160,20 @@ ...@@ -162,18 +160,20 @@
const req = { const req = {
ids: ids, ids: ids,
operatorId: this.model.operatorId, operatorId: this.model.operatorId,
operatorName: this.model.operatorName operatorName: this.model.operatorName,
}; };
batchSetOperator(req).then(function (res) { batchSetOperator(req)
if (res.code == '000000') { .then(function (res) {
vm.cancel(); if (res.code == '000000') {
vm.$emit('search'); vm.cancel();
} else { vm.$emit('search');
vm.$message.error(res.message); } else {
} vm.$message.error(res.message);
}).catch(function (error) { }
vm.$message.error(error); })
}); .catch(function (error) {
vm.$message.error(error);
});
} }
} }
}); });
...@@ -185,7 +185,7 @@ ...@@ -185,7 +185,7 @@
}, },
getAdminList() { getAdminList() {
this.loading = true; this.loading = true;
operatorQuery().then(res => { operatorQuery().then((res) => {
this.loading = false; this.loading = false;
if (res.code == '000000') { if (res.code == '000000') {
this.adminList = res.data; this.adminList = res.data;
...@@ -194,17 +194,14 @@ ...@@ -194,17 +194,14 @@
}, },
changeOperator(data) { changeOperator(data) {
for (let i = 0; i < this.adminList.length; i++) { 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; this.model.operatorName = this.adminList[i].name;
break; break;
} }
} }
} },
},
}
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
</style>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
label-suffix=":" label-suffix=":"
label-position="right" label-position="right"
size="mini" size="mini"
style="width: 100%;" style="width: 100%"
> >
<el-form-item <el-form-item
label="分诊科室" label="分诊科室"
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
placeholder="请选择分诊科室" placeholder="请选择分诊科室"
clearable clearable
filterable filterable
style="width:56%;height: 32px;line-height: 32px;" style="width: 56%; height: 32px; line-height: 32px"
@change="change" @change="change"
> >
<el-option <el-option
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<el-input <el-input
v-model="model.triageRemark" v-model="model.triageRemark"
type="textarea" type="textarea"
style="width: 90%;" style="width: 90%"
size="small" size="small"
minlength="2" minlength="2"
maxlength="500" maxlength="500"
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<span <span
slot="footer" slot="footer"
class="dialog-footer" class="dialog-footer"
style="text-align: center;" style="text-align: center"
> >
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button <el-button
...@@ -69,25 +69,25 @@ ...@@ -69,25 +69,25 @@
</template> </template>
<script> <script>
import {updateDiagnosis, getDepList} from '../../utils/diagnosis'; import { updateDiagnosis, getDepList } from '../../utils/diagnosis';
let vm = null; let vm = null;
export default { export default {
props: { props: {
doctorVisible: { doctorVisible: {
type: Boolean, type: Boolean,
default: false default: false,
}, },
diagnoseLogId: { diagnoseLogId: {
type: Number, type: Number,
default: 0 default: 0,
}, },
bizType: { bizType: {
type: Number, type: Number,
default: 0 default: 0,
}, },
triageDepartmentId: { triageDepartmentId: {
type: Number | String, type: [Number, String],
default: 0 default: 0,
}, },
}, },
data() { data() {
...@@ -96,33 +96,31 @@ ...@@ -96,33 +96,31 @@
title: '设置分诊科室', title: '设置分诊科室',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null,
depList: [], depList: [],
model: { model: {
triageRemark: '', triageRemark: '',
triageDepartmentId: '', triageDepartmentId: '',
triageDepartment:'' triageDepartment: '',
}, },
addRules: { addRules: {
triageDepartmentId: [ triageDepartmentId: [
{required: true, message: '请选择分诊科室', trigger: 'change'} { required: true, message: '请选择分诊科室', trigger: 'change' },
], ],
} },
}; };
}, },
watch:{ watch: {
triageDepartmentId:function () { triageDepartmentId: function () {
if(this.triageDepartmentId == 0 || this.triageDepartmentId == null) { if (this.triageDepartmentId == 0 || this.triageDepartmentId == null) {
this.model.triageDepartmentId = ''; this.model.triageDepartmentId = '';
if(this.$refs.setForm) { if (this.$refs.setForm) {
this.$refs.setForm.resetFields(); this.$refs.setForm.resetFields();
} }
} } else {
else {
this.model.triageDepartmentId = this.triageDepartmentId; this.model.triageDepartmentId = this.triageDepartmentId;
this.change(this.triageDepartmentId); this.change(this.triageDepartmentId);
} }
} },
}, },
created() { created() {
vm = this; vm = this;
...@@ -130,15 +128,17 @@ ...@@ -130,15 +128,17 @@
}, },
methods: { methods: {
getDepList() { getDepList() {
getDepList().then(function (res) { getDepList()
if (res.code == '000000') { .then(function (res) {
vm.depList = res.data; if (res.code == '000000') {
} else { vm.depList = res.data;
vm.$message.error(res.message); } else {
} vm.$message.error(res.message);
}).catch(function (error) { }
vm.$message.error(res.message); })
}); .catch(function (error) {
vm.$message.error(error.message);
});
}, },
confirm() { confirm() {
this.$refs.setForm.validate((valid) => { this.$refs.setForm.validate((valid) => {
...@@ -146,20 +146,22 @@ ...@@ -146,20 +146,22 @@
const req = { const req = {
id: this.diagnoseLogId, id: this.diagnoseLogId,
bizType: this.bizType, bizType: this.bizType,
triageDepartmentId:this.model.triageDepartmentId, triageDepartmentId: this.model.triageDepartmentId,
triageDepartment:this.model.triageDepartment, triageDepartment: this.model.triageDepartment,
triageRemark: this.model.triageRemark triageRemark: this.model.triageRemark,
}; };
updateDiagnosis(req).then(function (res) { updateDiagnosis(req)
if (res.code == '000000') { .then(function (res) {
vm.cancel(); if (res.code == '000000') {
vm.$emit('search'); vm.cancel();
} else { vm.$emit('search');
vm.$message.error(res.message); } 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 @@ ...@@ -173,16 +175,14 @@
}, },
change(data) { change(data) {
for (let i = 0; i < this.depList.length; i++) { 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; this.model.triageDepartment = this.depList[i].name;
break; break;
} }
} }
} },
} },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
</style>
...@@ -14,10 +14,12 @@ ...@@ -14,10 +14,12 @@
label-suffix=":" label-suffix=":"
label-position="right" label-position="right"
size="mini" size="mini"
style="width: 100%;" style="width: 100%"
> >
<div style="margin-bottom: 20px;margin-top: -20px;text-align: center;"> <div style="margin-bottom: 20px; margin-top: -20px; text-align: center">
<span style="color: #ff0000;">温馨提示:订单一旦退款,订单关联的预约单将被同步取消,请谨慎操作退款</span> <span
style="color: #ff0000"
>温馨提示:订单一旦退款,订单关联的预约单将被同步取消,请谨慎操作退款</span>
</div> </div>
<el-form-item <el-form-item
...@@ -29,7 +31,7 @@ ...@@ -29,7 +31,7 @@
<el-input <el-input
v-model="model.refundReason" v-model="model.refundReason"
type="textarea" type="textarea"
style="width: 130%;" style="width: 130%"
size="small" size="small"
placeholder="请输入原因" placeholder="请输入原因"
/> />
...@@ -40,7 +42,7 @@ ...@@ -40,7 +42,7 @@
<span <span
slot="footer" slot="footer"
class="dialog-footer" class="dialog-footer"
style="text-align: center;" style="text-align: center"
> >
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
<el-button <el-button
...@@ -58,14 +60,14 @@ ...@@ -58,14 +60,14 @@
let vm = null; let vm = null;
export default { export default {
props: { props: {
refundVisible:{ refundVisible: {
type: Boolean, type: Boolean,
default: false default: false,
}, },
diagnoseLogId: { diagnoseLogId: {
type: Number, type: Number,
default: 0 default: 0,
} },
}, },
data() { data() {
return { return {
...@@ -73,16 +75,15 @@ ...@@ -73,16 +75,15 @@
title: '取消/退款', title: '取消/退款',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null,
isClick: false, isClick: false,
model:{ model: {
refundReason:'' refundReason: '',
}, },
addRules:{ addRules: {
refundReason: [ refundReason: [
{required: true, message: '请输入退款原因', trigger: 'blur'} { required: true, message: '请输入退款原因', trigger: 'blur' },
] ],
} },
}; };
}, },
created() { created() {
...@@ -95,21 +96,23 @@ ...@@ -95,21 +96,23 @@
const req = { const req = {
id: this.diagnoseLogId, id: this.diagnoseLogId,
bizType: 2, bizType: 2,
refundReason: this.model.refundReason refundReason: this.model.refundReason,
}; };
vm.isClick = true; vm.isClick = true;
updateDiagnosis(req).then(function (res) { updateDiagnosis(req)
vm.isClick = false; .then(function (res) {
if (res.code == '000000') { vm.isClick = false;
vm.cancel(); if (res.code == '000000') {
vm.$emit('search'); vm.cancel();
} else { vm.$emit('search');
vm.$message.error(res.message); } else {
} vm.$message.error(res.message);
}).catch(function (error) { }
vm.isClick = false; })
vm.$message.error(res.message); .catch(function (error) {
}); vm.isClick = false;
vm.$message.error(error.message);
});
} }
}); });
}, },
...@@ -117,10 +120,8 @@ ...@@ -117,10 +120,8 @@
this.model.refundReason = ''; this.model.refundReason = '';
this.$emit('update:refundVisible', false); this.$emit('update:refundVisible', false);
}, },
} },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped></style>
</style>
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
温馨提示:点击确定后,预约单状态将回退为"已匹配"状态 温馨提示:点击确定后,预约单状态将回退为"已匹配"状态
</div> </div>
<!-- <el-row :gutter="30" class="row search" type="flex" style="margin-bottom:0;">-->
<el-form <el-form
ref="setForm" ref="setForm"
:rules="addRules" :rules="addRules"
...@@ -35,15 +34,7 @@ ...@@ -35,15 +34,7 @@
prop="statusRemark" prop="statusRemark"
> >
<el-col :span="15"> <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 <el-select
v-model="model.statusRemark" v-model="model.statusRemark"
...@@ -102,10 +93,6 @@ ...@@ -102,10 +93,6 @@
type: Number, type: Number,
default: 0, default: 0,
}, },
bizType: {
type: Number,
default: 0,
},
}, },
data() { data() {
return { return {
...@@ -113,7 +100,6 @@ ...@@ -113,7 +100,6 @@
title: '重新匹配医生', title: '重新匹配医生',
confirmTxt: '确定', confirmTxt: '确定',
cancleTxt: '', cancleTxt: '',
_promise: null,
model: { model: {
statusRemark: '', statusRemark: '',
}, },
...@@ -153,7 +139,7 @@ ...@@ -153,7 +139,7 @@
} }
}) })
.catch(function (error) { .catch(function (error) {
vm.$message.error(res.message); vm.$message.error(error.message);
}); });
} }
}); });
......
...@@ -36,7 +36,9 @@ ...@@ -36,7 +36,9 @@
}, },
imgList: { imgList: {
type: Array, type: Array,
default: [] default: ()=>{
return []
}
} }
}, },
data() { data() {
...@@ -53,7 +55,7 @@ ...@@ -53,7 +55,7 @@
}; };
}, },
watch:{ watch:{
imgList(newv, oldv) { imgList(newv) {
this.imgArr = newv; this.imgArr = newv;
} }
}, },
...@@ -62,6 +64,7 @@ ...@@ -62,6 +64,7 @@
}, },
methods: { methods: {
handleRemove(file, fileList) { handleRemove(file, fileList) {
console.log(file)
this.imgArr = fileList; this.imgArr = fileList;
}, },
handlePictureCardPreview(file) { handlePictureCardPreview(file) {
...@@ -81,13 +84,6 @@ ...@@ -81,13 +84,6 @@
sucess(response, file, fileList) { sucess(response, file, fileList) {
this.imgArr = fileList; this.imgArr = fileList;
}, },
handleExceed(files, fileList) {
this.$message.warning(
`当前限制选择 15 个文件,本次选择了 ${files.length} 个文件,共选择了 ${
files.length + fileList.length
} 个文件`
);
},
setNewArr() { setNewArr() {
const newArr = []; const newArr = [];
if (this.imgArr && this.imgArr.length) { if (this.imgArr && this.imgArr.length) {
......
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
<script> <script>
import { getBaseUrl } from '@/utils/index'; import { getBaseUrl } from '@/utils/index';
import refundDetailVue from '../../views/IM/diagnosis-admin/refund-detail.vue';
export default { export default {
props: { props: {
isDisable: { isDisable: {
...@@ -56,7 +55,9 @@ ...@@ -56,7 +55,9 @@
}, },
musicList: { musicList: {
type: Array, type: Array,
default: [] default: ()=>{
return []
}
} }
}, },
data() { data() {
...@@ -73,7 +74,7 @@ ...@@ -73,7 +74,7 @@
}; };
}, },
watch:{ watch:{
musicList(newv, oldv) { musicList(newv) {
this.musicArr = newv || []; this.musicArr = newv || [];
} }
}, },
...@@ -101,15 +102,15 @@ ...@@ -101,15 +102,15 @@
}, 1000); }, 1000);
}, },
sucess(response, file, fileList) { sucess(fileList) {
this.musicArr = fileList; this.musicArr = fileList;
this.loading = false; this.loading = false;
}, },
errfn(response, file, fileList) { errfn() {
this.loading = false; this.loading = false;
}, },
// 上传mp3 // 上传mp3
beforeMusicUpload(file) { beforeMusicUpload() {
}, },
setNewArr() { setNewArr() {
......
...@@ -231,7 +231,9 @@ ...@@ -231,7 +231,9 @@
}, },
tData: { tData: {
type: Array, type: Array,
default: [], default: ()=>{
return []
},
}, },
pageNo: { pageNo: {
type: Number, type: Number,
...@@ -255,7 +257,9 @@ ...@@ -255,7 +257,9 @@
}, },
multipleSelection: { multipleSelection: {
type: Array, type: Array,
default: [], default: ()=>{
return []
},
}, },
}, },
......
...@@ -414,7 +414,9 @@ ...@@ -414,7 +414,9 @@
props: { props: {
tData: { tData: {
type: Array, type: Array,
default: [] default: ()=>{
return []
}
}, },
pageNo: { pageNo: {
type: Number, type: Number,
......
...@@ -103,7 +103,7 @@ class RtcClient { ...@@ -103,7 +103,7 @@ class RtcClient {
if (this.role == 'anchor') { if (this.role == 'anchor') {
this.publish(); this.publish();
} }
}).catch(error => { }).catch(() => {
this.vueInstance.$message({ this.vueInstance.$message({
message: '麦克风打开失败!', message: '麦克风打开失败!',
type: 'error' type: 'error'
...@@ -291,7 +291,7 @@ class RtcClient { ...@@ -291,7 +291,7 @@ class RtcClient {
}); });
// 房间被解散了 // 房间被解散了
this.client_.on('client-banned', err => { this.client_.on('client-banned', () => {
console.log('房间被解散了'); console.log('房间被解散了');
}); });
...@@ -404,7 +404,7 @@ class RtcClient { ...@@ -404,7 +404,7 @@ class RtcClient {
console.log('=========流更新========stream-updated==================='); console.log('=========流更新========stream-updated===================');
console.log(evt); console.log(evt);
const remoteStream = evt.stream; const remoteStream = evt.stream;
const uid = this.getUidByStreamId(remoteStream.getId()); // const uid = this.getUidByStreamId(remoteStream.getId());
// remoteStream.hasVideo() // 是否有视频轨道 // remoteStream.hasVideo() // 是否有视频轨道
// remoteStream.hasAudio() //是否有音轨道 // remoteStream.hasAudio() //是否有音轨道
// remoteStream.getType() // 主要用于判断一个远端流是主音视频流还是辅路视频流,辅路视频流通常是一个屏幕分享流。 // remoteStream.getType() // 主要用于判断一个远端流是主音视频流还是辅路视频流,辅路视频流通常是一个屏幕分享流。
......
// api路径 // api路径
import {isNotEmptyUtils} from './utils'; 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(); type = type.toUpperCase();
// url = (server==='WECHAT'?wechatUrl:baseUrl) + url; // url = (server==='WECHAT'?wechatUrl:baseUrl) + url;
...@@ -57,7 +57,7 @@ export default async(url = '', data = {}, type = 'POST', method = 'fetch', serve ...@@ -57,7 +57,7 @@ export default async(url = '', data = {}, type = 'POST', method = 'fetch', serve
if (window.XMLHttpRequest) { if (window.XMLHttpRequest) {
requestObj = new XMLHttpRequest(); requestObj = new XMLHttpRequest();
} else { } else {
requestObj = new ActiveXObject; requestObj = new ActiveXObject();
} }
let sendData = ''; let sendData = '';
......
...@@ -1353,7 +1353,7 @@ ...@@ -1353,7 +1353,7 @@
} }
}, },
save() { save() {
this.$refs.form.validate((valid) => { this.$refs.form.validate(() => {
this.formData.birthday = new Date(this.formData.birthdayStr); this.formData.birthday = new Date(this.formData.birthdayStr);
// this.formData.birthday = this.formData.birthdayStr; // this.formData.birthday = this.formData.birthdayStr;
const params = JSON.parse(JSON.stringify(this.formData)); const params = JSON.parse(JSON.stringify(this.formData));
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
this.$message.success('保存成功'); this.$message.success('保存成功');
} }
}) })
.catch((err) => { .catch(() => {
console.log('网络出现点儿问题,稍后重试'); console.log('网络出现点儿问题,稍后重试');
}); });
}, },
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
this.checklist = res.data; this.checklist = res.data;
} }
}) })
.catch((err) => { .catch(() => {
console.log('网络出现点儿问题,稍后重试'); console.log('网络出现点儿问题,稍后重试');
}); });
}, },
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
</template> </template>
<script> <script>
import refundDetail from '@/components/common/info-pad'; import refundDetail from '@/components/common/info-pad';
const vm = null;
export default { export default {
components: { components: {
refundDetail refundDetail
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册