|
@@ -116,7 +116,10 @@
|
|
|
</template>
|
|
|
<template #sellerOther>
|
|
|
<div style="width: 100%">
|
|
|
- <Editor :value="formData.data.remark" @updateValue="updateContentSeller" />
|
|
|
+ <div v-if="judgeStatus()">
|
|
|
+ <div v-html="getStyle(formData.data.remark)"></div>
|
|
|
+ </div>
|
|
|
+ <Editor v-else :value="formData.data.remark" @updateValue="updateContentSeller" />
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #commodity>
|
|
@@ -332,6 +335,10 @@ import { ElMessage } from "element-plus";
|
|
|
import Editor from "@/components/Editor/index.vue";
|
|
|
import selectCity from "@/components/selectCity/index.vue";
|
|
|
|
|
|
+// 接收父组件的传值
|
|
|
+const props = defineProps({
|
|
|
+ queryData: Object,
|
|
|
+});
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const accountCurrency = ref([]);
|
|
|
const fundsPaymentMethod = ref([]);
|
|
@@ -353,11 +360,21 @@ const formData = reactive({
|
|
|
},
|
|
|
});
|
|
|
const submit = ref(null);
|
|
|
+const judgeStatus = () => {
|
|
|
+ if (props.queryData.recordList && props.queryData.recordList.length > 0) {
|
|
|
+ let data = props.queryData.recordList.filter((item) => item.status === 2 && item.nodeType !== 1);
|
|
|
+ if (data && data.length > 0) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+};
|
|
|
const formOption = reactive({
|
|
|
inline: true,
|
|
|
labelWidth: 100,
|
|
|
itemWidth: 100,
|
|
|
rules: [],
|
|
|
+ disabled: judgeStatus(),
|
|
|
});
|
|
|
const formConfig = computed(() => {
|
|
|
return [
|
|
@@ -845,6 +862,13 @@ defineExpose({
|
|
|
submitData: formData.data,
|
|
|
handleSubmit,
|
|
|
});
|
|
|
+const getStyle = (text) => {
|
|
|
+ if (text) {
|
|
|
+ return text.replace(/\n|\r\n/g, "<br>");
|
|
|
+ } else {
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|