Kaynağa Gözat

供应商报表-增加筛选条件,列表字段

jbb 2 yıl önce
ebeveyn
işleme
efe894714f
1 değiştirilmiş dosya ile 53 ekleme ve 13 silme
  1. 53 13
      src/views/reportForms/supply-capacity-table.vue

+ 53 - 13
src/views/reportForms/supply-capacity-table.vue

@@ -43,6 +43,23 @@
                   <a-input placeholder="请输入计划单号" v-model="queryParam.planLotNumber"></a-input>
                 </a-form-item>
               </a-col>
+              <a-col :md="6" :sm="8">
+                <a-form-item label="供应商类型">
+                  <a-input placeholder="请输入供应商类型" v-model="queryParam.CVenCodeType"></a-input>
+                </a-form-item>
+              </a-col>
+              <a-col :md="6" :sm="8">
+                <a-form-item label="款号">
+                  <a-input placeholder="请输入款号" v-model="queryParam.itemNumber"></a-input>
+                </a-form-item>
+              </a-col>
+              <a-col :md="6" :sm="8">
+                <a-form-item label="部门">
+                  <a-input placeholder="请输入部门" v-model="queryParam.CDepCode"></a-input>
+                </a-form-item>
+              </a-col>
+
+              
             </template>
 
             <a-col :md="6" :sm="8">
@@ -80,6 +97,7 @@
         :data-source="supplyCapacityData"
         :loading="loading"
         :pagination="pagination"
+        :scroll="{ x: 1600,y: 500 }"
         @change="handleTableChange"
       >
       </a-table>
@@ -104,23 +122,38 @@ export default {
     return {
       description: '供应商产能报表',
       supplyCapacityColumns: [
+      {
+          title: '账套号',
+          width: 80,
+          align: 'left',
+          dataIndex: 'account',
+          className: 'replacecolor'
+        },
         {
           title: '订单号',
           width: 140,
           align: 'left',
           dataIndex: 'csrccode',
+          ellipsis: true,
           className: 'replacecolor'
         },
 
         {
           title: '计划单号',
-          width: 90,
+          width: 140,
           dataIndex: 'cplanLotNumber',
+          className: 'replacecolor',
+          ellipsis: true,
+        },
+        {
+          title: '款号',
+          width:90,
+          dataIndex: 'itemNumber',
           className: 'replacecolor'
         },
         { title: '部门', width: 90, dataIndex: 'cdepCode', className: 'replacecolor' },
         { title: '业务员', width: 90, dataIndex: 'cpersonCode', className: 'replacecolor' },
-        { title: '供应商', width: 180, dataIndex: 'cvenCode', className: 'replacecolor' },
+        { title: '供应商', width: 180, dataIndex: 'cvenCode', className: 'replacecolor',ellipsis: true, },
 
         { title: '供应商类型', width: 100, dataIndex: 'cvenCodeType', className: 'replacecolor' },
         { title: '订单类型', width: 90, dataIndex: 'iorderType', className: 'replacecolor' },
@@ -135,21 +168,23 @@ export default {
         {
           title: '计划到货月份',
           width: 120,
-          dataIndex: 'arriveMonth',
+          dataIndex: 'darriveDate',
           // customRender: text => {
           //   return moment(text).format('YYYY-MM')
           // },
           className: 'replacecolor'
         },
-        {
-          title: '计划到货日期',
-          width: 120,
-          dataIndex: 'darriveDate',
-          customRender: text => {
-            return moment(text).format('YYYY-MM')
-          },
-          className: 'replacecolor'
-        },
+        // {
+        //   title: '计划到货日期',
+        //   width: 120,
+        //   dataIndex: 'darriveDate',
+        //   customRender: text => {
+        //     return moment(text).format('YYYY-MM')
+        //   },
+        //   className: 'replacecolor'
+        // },
+        //   className: 'replacecolor'
+        // },
         { title: '系数', width: 60, dataIndex: 'coefficient', className: 'replacecolor' }
       ],
       supplyCapacityData: [],
@@ -159,6 +194,7 @@ export default {
         csrccode: '',
         startDate: '',
         endDate: '',
+        CVenCodeType:'成衣厂',
         // timeRange = [], 月份范围
         orderType: '',
         venCode: '',
@@ -183,7 +219,9 @@ export default {
     // 供应商产能数据
     getSupplyCapList() {
       this.$nextTick(() => {
+        this.loading = true
         supplyCapList(this.queryParam).then(res => {
+          this.loading = false
           if (res.success) {
             // res.result.records.map(item=>{
             //   item.
@@ -283,7 +321,9 @@ export default {
       this.getSupplyCapList()
     },
     searchReset() {
-      this.queryParam = {}
+      this.queryParam = {
+        CVenCodeType:'成衣厂'
+      }
       this.getSupplyCapList()
     },
     // 查询条件 月范围份转换成字符串并赋值