|
|
@@ -11,7 +11,7 @@
|
|
|
<el-form ref="formRef" :model="form" :rules="rules" label-width="120px">
|
|
|
<!-- 基本信息 -->
|
|
|
<el-divider content-position="left">
|
|
|
- <span style="font-size: 16px; font-weight: bold; color: #409eff">
|
|
|
+ <span style="font-size: 16px; font-weight: bold; color: #67c23a">
|
|
|
<el-icon><Document /></el-icon> 基本信息
|
|
|
</span>
|
|
|
</el-divider>
|
|
|
@@ -87,15 +87,17 @@
|
|
|
|
|
|
<!-- 产品明细 -->
|
|
|
<el-divider content-position="left">
|
|
|
- <span style="font-size: 16px; font-weight: bold; color: #409eff">
|
|
|
+ <span style="font-size: 16px; font-weight: bold; color: #67c23a">
|
|
|
<el-icon><GoodsFilled /></el-icon> 产品明细
|
|
|
</span>
|
|
|
</el-divider>
|
|
|
<div>
|
|
|
<el-row class="mb-3">
|
|
|
<el-col :span="24">
|
|
|
- <el-button type="primary" icon="Plus" @click="handleAddProduct">添加产品</el-button>
|
|
|
- <el-button type="danger" icon="Delete" :disabled="selectedProducts.length === 0" @click="handleDeleteProducts">删除选中</el-button>
|
|
|
+ <el-button type="primary" plain icon="Plus" @click="handleAddProduct">添加产品</el-button>
|
|
|
+ <el-button type="danger" plain icon="Delete" :disabled="selectedProducts.length === 0" @click="handleDeleteProducts"
|
|
|
+ >删除选中</el-button
|
|
|
+ >
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
@@ -142,12 +144,14 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="包装规格" prop="packageSpec" min-width="150">
|
|
|
<template #default="scope">
|
|
|
- <el-input v-model="scope.row.packageSpec" placeholder="请输入包装规格" clearable />
|
|
|
+ <el-input v-model="scope.row.packageSpec" placeholder="请输入包装规格" clearable size="small" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="送货方式" prop="deliveryMethod" min-width="150">
|
|
|
<template #default="scope">
|
|
|
- <el-input v-model="scope.row.deliveryMethod" placeholder="请输入送货方式" clearable />
|
|
|
+ <el-select v-model="scope.row.deliveryMethod" placeholder="请选择送货方式" clearable size="small" style="width: 100%">
|
|
|
+ <el-option v-for="dict in crm_shfs" :key="dict.value" :label="dict.label" :value="dict.value" />
|
|
|
+ </el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" width="80" align="center" fixed="right">
|
|
|
@@ -171,7 +175,7 @@
|
|
|
|
|
|
<!-- 报价条款 -->
|
|
|
<el-divider content-position="left">
|
|
|
- <span style="font-size: 16px; font-weight: bold; color: #409eff">
|
|
|
+ <span style="font-size: 16px; font-weight: bold; color: #67c23a">
|
|
|
<el-icon><List /></el-icon> 报价条款
|
|
|
</span>
|
|
|
</el-divider>
|
|
|
@@ -270,10 +274,10 @@
|
|
|
|
|
|
<!-- 操作按钮 -->
|
|
|
<el-divider></el-divider>
|
|
|
- <el-form-item>
|
|
|
- <el-button type="primary" @click="handleSaveDraft" :loading="saveLoading">保存草稿</el-button>
|
|
|
- <el-button type="success" @click="handleSubmit">提交审批</el-button>
|
|
|
- <el-button @click="handleBack">取消</el-button>
|
|
|
+ <el-form-item class="form-actions">
|
|
|
+ <el-button type="primary" plain icon="DocumentCopy" @click="handleSaveDraft" :loading="saveLoading">保存草稿</el-button>
|
|
|
+ <el-button type="success" plain icon="CircleCheck" @click="handleSubmit">提交审批</el-button>
|
|
|
+ <el-button plain icon="Close" @click="handleBack">取消</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</el-card>
|
|
|
@@ -334,7 +338,7 @@ import type { QuoteForm, QuoteProductForm } from '@/api/crm/quote';
|
|
|
import { useRouter, useRoute } from 'vue-router';
|
|
|
import { getToken } from '@/utils/auth';
|
|
|
import request from '@/utils/request';
|
|
|
-import { UploadFilled, Document, Loading, Download, Delete, GoodsFilled, List } from '@element-plus/icons-vue';
|
|
|
+import { UploadFilled, Document, Loading, Download, Delete, GoodsFilled, List, DocumentCopy, CircleCheck, Close } from '@element-plus/icons-vue';
|
|
|
import ImagePreview from '@/components/ImagePreview/index.vue';
|
|
|
import ProductSelector from './components/ProductSelector.vue';
|
|
|
import CustomerSelector from '@/components/CustomerSelector.vue';
|
|
|
@@ -367,7 +371,7 @@ const route = useRoute();
|
|
|
const { proxy } = getCurrentInstance() as any;
|
|
|
|
|
|
// 字典数据
|
|
|
-const { crm_product_unit } = toRefs<any>(proxy?.useDict('crm_product_unit'));
|
|
|
+const { crm_product_unit, crm_shfs } = toRefs<any>(proxy?.useDict('crm_product_unit', 'crm_shfs'));
|
|
|
|
|
|
// 表单标题
|
|
|
const formTitle = computed(() => {
|
|
|
@@ -1290,4 +1294,34 @@ onMounted(() => {
|
|
|
color: #999;
|
|
|
margin-top: 5px;
|
|
|
}
|
|
|
+
|
|
|
+/* 统一表格内输入框和选择框高度为32px */
|
|
|
+:deep(.el-table .el-input__wrapper) {
|
|
|
+ height: 32px !important;
|
|
|
+ min-height: 32px !important;
|
|
|
+}
|
|
|
+
|
|
|
+:deep(.el-table .el-select__wrapper) {
|
|
|
+ height: 32px !important;
|
|
|
+ min-height: 32px !important;
|
|
|
+}
|
|
|
+
|
|
|
+:deep(.el-table .el-input--small .el-input__wrapper) {
|
|
|
+ height: 32px !important;
|
|
|
+ min-height: 32px !important;
|
|
|
+}
|
|
|
+
|
|
|
+:deep(.el-table .el-select--small .el-select__wrapper) {
|
|
|
+ height: 32px !important;
|
|
|
+ min-height: 32px !important;
|
|
|
+}
|
|
|
+
|
|
|
+/* 按钮居中样式 */
|
|
|
+.form-actions {
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.form-actions :deep(.el-form-item__content) {
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
</style>
|