日志记录修改

This commit is contained in:
luojiaquan
2026-09-30 16:57:44 +08:00
parent 02c281fd07
commit 903d19cad1
9 changed files with 794 additions and 101 deletions
@@ -10,6 +10,7 @@
</div>
<div class="head-code">客户编码:{{ form.customerCode || '保存后可维护子表数据' }}</div>
<div class="head-right">
<el-button v-if="!isAdd" icon="Document" v-hasPermi="['customersupplier:customerinfo:query']" @click="logOpen = true">日 志</el-button>
<el-button @click="goBack">取 消</el-button>
<el-button v-if="isAdd" type="primary" :loading="saving" v-hasPermi="['customersupplier:customerinfo:add']" @click="submitForm">保 存</el-button>
<el-button v-else type="primary" :loading="saving" v-hasPermi="['customersupplier:customerinfo:edit']" @click="submitForm">保 存</el-button>
@@ -711,6 +712,14 @@
</div>
</template>
</el-dialog>
<!-- 客户业务操作日志弹窗 -->
<customer-log-dialog
v-model="logOpen"
:customer-id="form.customerId"
:customer-name="form.customerName"
:customer-code="form.customerCode"
/>
</div>
</template>
@@ -719,6 +728,7 @@ import {
listCustomer, getCustomer, addCustomer, updateCustomer,
delCustomerCompany, delCustomerContact
} from '@/api/customersuppliermanagement/customerinfo/customer.js'
import CustomerLogDialog from '../components/CustomerLogDialog.vue'
import {
listCustomerPriceSet, listPriceSetOption,
saveCustomerPriceSet, delCustomerPriceSet
@@ -740,6 +750,7 @@ const { ensureProducts, findProduct } = useProducts()
const pageLoading = ref(false)
const saving = ref(false)
const activeTab = ref('base')
const logOpen = ref(false)
const customerId = computed(() => route.query.customerId ? Number(route.query.customerId) : null)
const isAdd = computed(() => !customerId.value)