snow il y a 1 an
Parent
commit
55063b8be8

+ 13 - 13
src/components/manage/src/letter/_columns.js

@@ -67,7 +67,7 @@ export const activity = [
     },
     {
         prop: mapFields.letterNo,
-        label: '评估预算函编号',
+        label: '方案编号',
         width: '120px',
     },
     {
@@ -78,23 +78,23 @@ export const activity = [
     },
     {
         prop: mapFields.letter,
-        label: '评估预算函',
+        label: '活动方案预览',
         width: '156px',
         _slot_:'letter'
     },
-    {
-        prop: mapFields.budgetAmount,
-        label: '评估预算金额',
-        width: '180px',
-    },
+    // {
+    //     prop: mapFields.budgetAmount,
+    //     label: '评估预算金额',
+    //     width: '180px',
+    // },
     {
         prop: mapFields.supplierStoreName,
-        label: '供应商店铺名称',
+        label: '供应商店铺',
         width: '156px',
     },
     {
         prop: mapFields.supplierCompanyName,
-        label: '供应商公司名称',
+        label: '供应商公司',
         width: '156px',
     },
     {
@@ -128,23 +128,23 @@ export const project = [
     },
     {
         prop: mapFields.letter,
-        label: '评估预算函',
+        label: '计划预算函预览',
         width: '156px',
         _slot_:'letter'
     },
     {
         prop: mapFields.budgetAmount,
-        label: '评估预算金额',
+        label: '计划预算函金额',
         width: '180px',
     },
     {
         prop: mapFields.supplierStoreName,
-        label: '供应商店铺名称',
+        label: '店铺名称',
         width: '156px',
     },
     {
         prop: mapFields.supplierCompanyName,
-        label: '供应商公司名称',
+        label: '方案上传公司',
         width: '156px',
     },
     {

+ 13 - 5
src/components/manage/src/letter/index.vue

@@ -5,7 +5,8 @@
       <el-button size="mini" type="primary" @click="handleUploadModalVisible">上传{{mapTitle[type]}}</el-button>
     </div>
     <ex-table
-      :columns="[...(isSelection ? [{type:'selection'}] : []), ...mapColumns[type || 'budget'], { label: '操作', _slot_: 'action', width:'100px',fixed:'right'}]"
+      :columns="[...(isSelection ? [{ type: 'selection' }] : []),
+         ...mapColumns[type || 'budget'], { label: '操作', _slot_: 'action', width: '100px',fixed:'right'}]"
       @selection="handleSelection"
       :table="table"
       :data="tableData"
@@ -16,23 +17,30 @@
          {{Number(scope.row.is_check) === mapCheck[type || 'budget'].ok  ?  "已选择" : "未选择"}}
         </el-tag>
       </template>
+
       <!-- <template #letter="{}">
         <a href="http://hwpro.test241.wanyuhengtong.com/storage/default/20230608/6916c8847df2d1ee629c3490fe43501003ef1e7a.xlsx">{{getFileNameWithUrl('http://hwpro.test241.wanyuhengtong.com/storage/default/20230608/6916c8847df2d1ee629c3490fe43501003ef1e7a.xlsx')}}</a>
       </template> -->
+      
       <template #action="{ scope }">
         <el-button type="text" size="mini" @click="openModal(scope.row)">查看</el-button>
-        <el-button v-if="type === 'budget'" type="text" size="mini" @click="deleteItem(scope.row)">删除</el-button>
+        <el-button 
+          v-if="type === 'budget' && Number(scope.row.is_check) !== mapCheck[type].ok" 
+          type="text" 
+          size="mini" 
+          @click="deleteItem(scope.row)"
+        >删除</el-button>
       </template>
     </ex-table>
 
     <excel-upload-modal 
-      :visible.sync="xlsxVisible"
-      :type="type"
       :requsetMethod="requsetMethod"
+      :visible.sync="xlsxVisible"
       @submit="handleSubmit"
       @refresh="onSearch"
-      :title="title" 
       :isFile="isFile"
+      :title="title" 
+      :type="type"
     />
 
     <preview-modal