فهرست منبع

【新增】折叠

howie 2 سال پیش
والد
کامیت
5e6c0887ef

+ 16 - 4
src/components/Common/collapse.vue

@@ -1,13 +1,25 @@
 <template>
-$END$
+  <div>
+    <div class="btn_box">
+      <div><slot name="left_btn" /></div>
+      <div><slot name="right_btn" /></div>
+    </div>
+    <div>
+      <slot name="search" />
+    </div>
+  </div>
 </template>
 
 <script>
 export default {
-name: "collapse"
+  name: 'Collapse'
 }
 </script>
 
-<style scoped>
-
+<style scoped lang="scss">
+.btn_box {
+  display: flex;
+  justify-content: space-between;
+  margin-bottom: 10px;
+}
 </style>

+ 5 - 0
src/styles/element-ui.scss

@@ -46,3 +46,8 @@
 .el-range-separator {
   box-sizing: content-box;
 }
+
+// 全局设置表格表头背景
+.el-table th {
+  background-color: #eef2f8;
+}

+ 2 - 2
src/views/supply/implement/commercial_implement_list.vue

@@ -118,7 +118,7 @@
               align="left"
               label="经销商名称"
               prop="customerName"
-              min-width="160"
+              min-width="250"
               show-overflow-tooltip
             />
             <el-table-column
@@ -144,7 +144,7 @@
               show-overflow-tooltip
             />
             <el-table-column align="left" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip />
-            <el-table-column align="left" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip />
+            <el-table-column align="left" label="规格型号" prop="specification" min-width="300" show-overflow-tooltip />
             <el-table-column align="left" label="数量" prop="qty" min-width="160" show-overflow-tooltip />
             <el-table-column align="left" label="单价" prop="price" min-width="160" show-overflow-tooltip>
               <template v-slot="scope">

+ 15 - 15
src/views/supply/implement/nsales_list.vue

@@ -154,7 +154,7 @@
               align="left"
               label="金蝶推送状态"
               prop="syncStatus"
-              min-width="100"
+              min-width="130"
               show-overflow-tooltip
               sortable
             >
@@ -522,20 +522,20 @@ export default {
         this.listLoading = false
       })
     },
-    updateReceipt() {
-      if (!this.value1) {
-        this.$errorMsg('请选择时间')
-        return
-      }
-      updateReceipt({
-        startTime: this.value1[0],
-        endTime: this.value1[1]
-      }).then(res => {
-        this.getList()
-        this.$successMsg('已更新')
-        this.value1 = ''
-      })
-    },
+    // updateReceipt() {
+    //   if (!this.value1) {
+    //     this.$errorMsg('请选择时间')
+    //     return
+    //   }
+    //   updateReceipt({
+    //     startTime: this.value1[0],
+    //     endTime: this.value1[1]
+    //   }).then(res => {
+    //     this.getList()
+    //     this.$successMsg('已更新')
+    //     this.value1 = ''
+    //   })
+    // },
     // 提交筛选表单
     submitScreenForm() {
       this.currentPage = 1