🌈 style: 删除console.log

This commit is contained in:
砂糖
2025-08-13 16:39:47 +08:00
parent 08168aba15
commit 53d57e4ccd
20 changed files with 305 additions and 212 deletions

View File

@@ -0,0 +1,46 @@
<template>
<el-select v-model="_value" placeholder="请选择">
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
</el-select>
</template>
<script>
import { mapGetters } from 'vuex';
export default {
name: 'AmountSelect',
computed: {
...mapGetters(['financialAccounts']),
_value: {
get() {
return this.value;
},
set(value) {
this.$emit('input', value);
}
}
},
props: {
value: {
type: String,
default: ''
}
},
data() {
return {
options: [],
}
},
mounted() {
this.getFinancialAccounts();
},
methods: {
getFinancialAccounts() {
this.options = this.financialAccounts.map(item => ({
label: item.accountName,
value: item.accountId
}));
},
}
}
</script>

View File

@@ -52,7 +52,6 @@ export default {
},
mounted() {
this.options = this.rawMaterialList;
console.log(this.options, this.rawMaterialList);
},
computed: {
...mapGetters(['rawMaterialList'])

View File

@@ -63,7 +63,6 @@ export default {
productId: {
handler(newVal) {
const res = this.productMap[this.productId] ? this.productMap[this.productId] : {};
console.log(res)
this.product = res;
},
immediate: true

View File

@@ -48,7 +48,6 @@ export default {
materialId: {
handler: function (newVal) {
const res = this.materialMap[this.materialId] ? this.materialMap[this.materialId] : {};
console.log(res)
this.material = res;
},
immediate: true

View File

@@ -44,7 +44,6 @@ export default {
}
this.vditor = new Vditor('vditor', config);
if (this.readonly) {
console.log(this.vditor)
this.vditor.vditor.disabled()
}
},