Merge remote-tracking branch 'origin/jihan_0307_运营管理端健康咨询功能开发' into jihan_0307_运营管理端健康咨询功能开发
This commit is contained in:
commit
7373077978
@ -11,8 +11,7 @@
|
|||||||
style="display: none"
|
style="display: none"
|
||||||
ref="upload"
|
ref="upload"
|
||||||
v-if="this.type == 'url'"
|
v-if="this.type == 'url'"
|
||||||
>
|
></el-upload>
|
||||||
</el-upload>
|
|
||||||
<div class="editor" ref="editor" :style="styles"></div>
|
<div class="editor" ref="editor" :style="styles"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -30,32 +29,32 @@ export default {
|
|||||||
/* 编辑器的内容 */
|
/* 编辑器的内容 */
|
||||||
value: {
|
value: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: ""
|
||||||
},
|
},
|
||||||
/* 高度 */
|
/* 高度 */
|
||||||
height: {
|
height: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: null,
|
default: null
|
||||||
},
|
},
|
||||||
/* 最小高度 */
|
/* 最小高度 */
|
||||||
minHeight: {
|
minHeight: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: null,
|
default: null
|
||||||
},
|
},
|
||||||
/* 只读 */
|
/* 只读 */
|
||||||
readOnly: {
|
readOnly: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false
|
||||||
},
|
},
|
||||||
// 上传文件大小限制(MB)
|
// 上传文件大小限制(MB)
|
||||||
fileSize: {
|
fileSize: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 5,
|
default: 5
|
||||||
},
|
},
|
||||||
/* 类型(base64格式、url格式) */
|
/* 类型(base64格式、url格式) */
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
default: "url",
|
default: "url"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -73,21 +72,21 @@ export default {
|
|||||||
modules: {
|
modules: {
|
||||||
// 工具栏配置
|
// 工具栏配置
|
||||||
toolbar: [
|
toolbar: [
|
||||||
["bold", "italic", "underline", "strike"], // 加粗 斜体 下划线 删除线
|
["bold", "italic", "underline", "strike"], // 加粗 斜体 下划线 删除线
|
||||||
["blockquote", "code-block"], // 引用 代码块
|
["blockquote", "code-block"], // 引用 代码块
|
||||||
[{ list: "ordered" }, { list: "bullet" }], // 有序、无序列表
|
[{ list: "ordered" }, { list: "bullet" }], // 有序、无序列表
|
||||||
[{ indent: "-1" }, { indent: "+1" }], // 缩进
|
[{ indent: "-1" }, { indent: "+1" }], // 缩进
|
||||||
[{ size: ["small", false, "large", "huge"] }], // 字体大小
|
[{ size: ["small", false, "large", "huge"] }], // 字体大小
|
||||||
[{ header: [1, 2, 3, 4, 5, 6, false] }], // 标题
|
[{ header: [1, 2, 3, 4, 5, 6, false] }], // 标题
|
||||||
[{ color: [] }, { background: [] }], // 字体颜色、字体背景颜色
|
[{ color: [] }, { background: [] }], // 字体颜色、字体背景颜色
|
||||||
[{ align: [] }], // 对齐方式
|
[{ align: [] }], // 对齐方式
|
||||||
["clean"], // 清除文本格式
|
["clean"], // 清除文本格式
|
||||||
["link", "image"] // 链接、图片、视频
|
["link", "image"] // 链接、图片、视频
|
||||||
],
|
]
|
||||||
},
|
},
|
||||||
placeholder: "请输入内容",
|
placeholder: "请输入内容",
|
||||||
readOnly: this.readOnly,
|
readOnly: this.readOnly
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -100,7 +99,7 @@ export default {
|
|||||||
style.height = `${this.height}px`;
|
style.height = `${this.height}px`;
|
||||||
}
|
}
|
||||||
return style;
|
return style;
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
value: {
|
value: {
|
||||||
@ -112,8 +111,8 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
immediate: true,
|
immediate: true
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.init();
|
this.init();
|
||||||
@ -126,9 +125,9 @@ export default {
|
|||||||
const editor = this.$refs.editor;
|
const editor = this.$refs.editor;
|
||||||
this.Quill = new Quill(editor, this.options);
|
this.Quill = new Quill(editor, this.options);
|
||||||
// 如果设置了上传地址则自定义图片上传事件
|
// 如果设置了上传地址则自定义图片上传事件
|
||||||
if (this.type == 'url') {
|
if (this.type == "url") {
|
||||||
let toolbar = this.Quill.getModule("toolbar");
|
let toolbar = this.Quill.getModule("toolbar");
|
||||||
toolbar.addHandler("image", (value) => {
|
toolbar.addHandler("image", value => {
|
||||||
this.uploadType = "image";
|
this.uploadType = "image";
|
||||||
if (value) {
|
if (value) {
|
||||||
this.$refs.upload.$children[0].$refs.input.click();
|
this.$refs.upload.$children[0].$refs.input.click();
|
||||||
@ -176,10 +175,12 @@ export default {
|
|||||||
// 获取光标所在位置
|
// 获取光标所在位置
|
||||||
let length = quill.getSelection().index;
|
let length = quill.getSelection().index;
|
||||||
// 插入图片 res.url为服务器返回的图片地址
|
// 插入图片 res.url为服务器返回的图片地址
|
||||||
quill.insertEmbed(length, "image", process.env.VUE_APP_BASE_API + res.fileName);
|
quill.insertEmbed(
|
||||||
|
length,
|
||||||
|
"image",
|
||||||
|
process.env.VUE_APP_BASE_API + res.fileName
|
||||||
|
);
|
||||||
this.$emit("imgs", res.fileName);
|
this.$emit("imgs", res.fileName);
|
||||||
|
|
||||||
// 调整光标到最后
|
// 调整光标到最后
|
||||||
quill.setSelection(length + 1);
|
quill.setSelection(length + 1);
|
||||||
} else {
|
} else {
|
||||||
@ -188,13 +189,14 @@ export default {
|
|||||||
},
|
},
|
||||||
handleUploadError() {
|
handleUploadError() {
|
||||||
this.$message.error("图片插入失败");
|
this.$message.error("图片插入失败");
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.editor, .ql-toolbar {
|
.editor,
|
||||||
|
.ql-toolbar {
|
||||||
white-space: pre-wrap !important;
|
white-space: pre-wrap !important;
|
||||||
line-height: normal !important;
|
line-height: normal !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,8 +25,7 @@ export default {
|
|||||||
innerrefund: false,
|
innerrefund: false,
|
||||||
orderList: [],
|
orderList: [],
|
||||||
refundlist: [],
|
refundlist: [],
|
||||||
orderTypelist: [
|
orderTypelist: [{
|
||||||
{
|
|
||||||
value: "INTEGRAL_EXCHANGE",
|
value: "INTEGRAL_EXCHANGE",
|
||||||
label: "积分兑换",
|
label: "积分兑换",
|
||||||
},
|
},
|
||||||
@ -40,45 +39,45 @@ export default {
|
|||||||
],
|
],
|
||||||
ratelist: {}, //评分list
|
ratelist: {}, //评分list
|
||||||
orderStatuslist: [{
|
orderStatuslist: [{
|
||||||
value: "WAIT_PAY",
|
value: "WAIT_PAY",
|
||||||
label: "待付款",
|
label: "待付款",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "PAY",
|
value: "PAY",
|
||||||
label: "待发货",
|
label: "待发货",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "WAIT_RECEIVED_GOODS",
|
value: "WAIT_RECEIVED_GOODS",
|
||||||
label: "待收货",
|
label: "待收货",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "RECEIVED_GOODS",
|
value: "RECEIVED_GOODS",
|
||||||
label: "待评价",
|
label: "待评价",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "EVALUATED",
|
value: "EVALUATED",
|
||||||
label: "交易完成",
|
label: "交易完成",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "CANCEL",
|
value: "CANCEL",
|
||||||
label: "已取消",
|
label: "已取消",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "WAIT_RETURNED_GOODS",
|
value: "WAIT_RETURNED_GOODS",
|
||||||
label: "待退货",
|
label: "待退货",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "RETURNED_GOODS",
|
value: "RETURNED_GOODS",
|
||||||
label: "已退货",
|
label: "已退货",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "WAIT_REFUND",
|
value: "WAIT_REFUND",
|
||||||
label: "退款中",
|
label: "退款中",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: "REFUNDED",
|
value: "REFUNDED",
|
||||||
label: "退款成功",
|
label: "退款成功",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
@ -157,13 +156,6 @@ export default {
|
|||||||
this.queryParams.nurseStationId = item.id;
|
this.queryParams.nurseStationId = item.id;
|
||||||
this.nurseStationshow = false;
|
this.nurseStationshow = false;
|
||||||
},
|
},
|
||||||
//护理站list
|
|
||||||
info() {
|
|
||||||
getListByUser(this.getListByUserquery).then((res) => {
|
|
||||||
this.nurseStationlist = res.rows;
|
|
||||||
this.stationtotal = res.total;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
//页面所属护理站
|
//页面所属护理站
|
||||||
ParamsStation(item) {
|
ParamsStation(item) {
|
||||||
console.log(this.getListByUserquery)
|
console.log(this.getListByUserquery)
|
||||||
@ -224,7 +216,6 @@ export default {
|
|||||||
return "微信小程序";
|
return "微信小程序";
|
||||||
case "ALI_PAY_APPLET":
|
case "ALI_PAY_APPLET":
|
||||||
return "支付宝小程序";
|
return "支付宝小程序";
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -236,6 +227,8 @@ export default {
|
|||||||
return "护理站";
|
return "护理站";
|
||||||
case "SHOPPING_MALL":
|
case "SHOPPING_MALL":
|
||||||
return "商城";
|
return "商城";
|
||||||
|
case "HEALTH_CONSULTATION":
|
||||||
|
return "健康咨询";
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -258,7 +251,7 @@ export default {
|
|||||||
this.ratelist = {}
|
this.ratelist = {}
|
||||||
if (row.orderStatus == 'EVALUATED') {
|
if (row.orderStatus == 'EVALUATED') {
|
||||||
this.ratelist = res.data.orderEvaluatePictureInfoList
|
this.ratelist = res.data.orderEvaluatePictureInfoList
|
||||||
} else { }
|
} else {}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 查看录入物流单号弹框
|
// 查看录入物流单号弹框
|
||||||
@ -298,7 +291,7 @@ export default {
|
|||||||
//确认退款 确定按钮
|
//确认退款 确定按钮
|
||||||
submitRefundOrder() {
|
submitRefundOrder() {
|
||||||
var obj = {};
|
var obj = {};
|
||||||
obj.orderType=this.refundlist.orderType;
|
obj.orderType = this.refundlist.orderType;
|
||||||
obj.orderNo = this.refundlist.goOrderNo;
|
obj.orderNo = this.refundlist.goOrderNo;
|
||||||
obj.refundReason = this.refundlist.dictLabel;
|
obj.refundReason = this.refundlist.dictLabel;
|
||||||
obj.refundPrice = this.refundlist.godTotalPrice;
|
obj.refundPrice = this.refundlist.godTotalPrice;
|
||||||
@ -419,21 +412,21 @@ export default {
|
|||||||
const ids = row.id || this.ids;
|
const ids = row.id || this.ids;
|
||||||
this.$modal
|
this.$modal
|
||||||
.confirm('是否确认删除商品订单编号为"' + ids + '"的数据项?')
|
.confirm('是否确认删除商品订单编号为"' + ids + '"的数据项?')
|
||||||
.then(function () {
|
.then(function() {
|
||||||
return delGoodsOrder(ids);
|
return delGoodsOrder(ids);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.$modal.msgSuccess("删除成功");
|
this.$modal.msgSuccess("删除成功");
|
||||||
})
|
})
|
||||||
.catch(() => { });
|
.catch(() => {});
|
||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download(
|
this.download(
|
||||||
"system/goodsOrder/export", {
|
"system/goodsOrder/export", {
|
||||||
...this.queryParams,
|
...this.queryParams,
|
||||||
},
|
},
|
||||||
`goodsOrder_${new Date().getTime()}.xlsx`
|
`goodsOrder_${new Date().getTime()}.xlsx`
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user