update 订单详情

This commit is contained in:
lb
2023-03-28 16:19:25 +08:00
parent b62db4d40c
commit 422560c6ef
4 changed files with 596 additions and 292 deletions

View File

@@ -0,0 +1,24 @@
export default {
props: {
modelValue: {
type: String | Number,
required: true,
},
useBuiltin: {
type: Boolean,
default: true,
},
},
data() {
return {
orderStatusMap: ["等待", "确认", "生产", "暂停", "结束", "接受", "拒绝"],
};
},
render: function (h) {
return h(
"span",
{ style: { display: "block", marginTop: "0" } },
this.useBuiltin ? this.orderStatusMap[this.modelValue] ?? "-" : this.modelValue.toString().trim() === "" ? "-" : this.modelValue.toString()
);
},
};