|  | @@ -12,38 +12,42 @@
 | 
	
		
			
				|  |  |                </a-form-item>
 | 
	
		
			
				|  |  |              </a-col>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +            <!-- test -->
 | 
	
		
			
				|  |  |              <a-col :md="6" :sm="8">
 | 
	
		
			
				|  |  | -              <a-form-item label="开始月份">
 | 
	
		
			
				|  |  | -                <a-date-picker
 | 
	
		
			
				|  |  | -                  placeholder="请选择开始月份"
 | 
	
		
			
				|  |  | +              <a-form-item label="起始时间">
 | 
	
		
			
				|  |  | +                <a-range-picker
 | 
	
		
			
				|  |  |                    style="width: 100%"
 | 
	
		
			
				|  |  | -                  format="YYYY-MM"
 | 
	
		
			
				|  |  | -                  v-model="queryParam.startDate"
 | 
	
		
			
				|  |  | -                ></a-date-picker>
 | 
	
		
			
				|  |  | +                  v-model="queryParam.timeRange"
 | 
	
		
			
				|  |  | +                  format="YYYY-MM-DD"
 | 
	
		
			
				|  |  | +                  :placeholder="['开始时间', '结束时间']"
 | 
	
		
			
				|  |  | +                  @change="onDateChange"
 | 
	
		
			
				|  |  | +                  @ok="onDateOk"
 | 
	
		
			
				|  |  | +                />
 | 
	
		
			
				|  |  |                </a-form-item>
 | 
	
		
			
				|  |  |              </a-col>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -            <a-col :md="6" :sm="8">
 | 
	
		
			
				|  |  | -              <a-form-item label="结束月份">
 | 
	
		
			
				|  |  | -                <a-date-picker
 | 
	
		
			
				|  |  | -                  placeholder="请选择结束月份"
 | 
	
		
			
				|  |  | +            <!-- <a-col :md="6" :sm="8">
 | 
	
		
			
				|  |  | +              <a-form-item label="起始月份">
 | 
	
		
			
				|  |  | +                <a-range-picker
 | 
	
		
			
				|  |  |                    style="width: 100%"
 | 
	
		
			
				|  |  | +                  v-model="queryParam.timeRange"
 | 
	
		
			
				|  |  |                    format="YYYY-MM"
 | 
	
		
			
				|  |  | -                  v-model="queryParam.endDate"
 | 
	
		
			
				|  |  | -                ></a-date-picker>
 | 
	
		
			
				|  |  | +                  :placeholder="['开始月份', '结束月份']"
 | 
	
		
			
				|  |  | +                  @change="onDateChange"
 | 
	
		
			
				|  |  | +                  @ok="onDateOk"
 | 
	
		
			
				|  |  | +                />
 | 
	
		
			
				|  |  | +              </a-form-item>
 | 
	
		
			
				|  |  | +            </a-col> -->
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            <a-col :md="6" :sm="8">
 | 
	
		
			
				|  |  | +              <a-form-item label="订单类型">
 | 
	
		
			
				|  |  | +                <a-input placeholder="请输入订单类型" v-model="queryParam.orderType"></a-input>
 | 
	
		
			
				|  |  |                </a-form-item>
 | 
	
		
			
				|  |  |              </a-col>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              <template v-if="toggleSearchStatus">
 | 
	
		
			
				|  |  | -              <a-col :md="6" :sm="8">
 | 
	
		
			
				|  |  | -                <a-form-item label="订单类型">
 | 
	
		
			
				|  |  | -                  <a-input placeholder="请输入订单类型" v-model="queryParam.orderType"></a-input>
 | 
	
		
			
				|  |  | -                </a-form-item>
 | 
	
		
			
				|  |  | -              </a-col>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |                <a-col :md="6" :sm="8">
 | 
	
		
			
				|  |  |                  <a-form-item label="供应商">
 | 
	
		
			
				|  |  | -                  <a-input placeholder="请输入供应商" v-model="queryParam.venCode"></a-input>
 | 
	
		
			
				|  |  | +                  <a-input placeholder="请输入供应商" v-model="queryParam.venName"></a-input>
 | 
	
		
			
				|  |  |                  </a-form-item>
 | 
	
		
			
				|  |  |                </a-col>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -100,6 +104,7 @@
 | 
	
		
			
				|  |  |  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
 | 
	
		
			
				|  |  |  import JEllipsis from '@/components/jeecg/JEllipsis'
 | 
	
		
			
				|  |  |  import moment from 'moment'
 | 
	
		
			
				|  |  | +import Dayjs from 'dayjs'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import { supplyCapList } from '@api/reportForms/supply-capacity-table'
 | 
	
		
			
				|  |  |  import { downFile } from '@/api/manage'
 | 
	
	
		
			
				|  | @@ -123,12 +128,12 @@ export default {
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |            title: '计划单号',
 | 
	
		
			
				|  |  |            width: 120,
 | 
	
		
			
				|  |  | -          dataIndex: 'planLotNumber',
 | 
	
		
			
				|  |  | +          dataIndex: 'cplanLotNumber',
 | 
	
		
			
				|  |  |            className: 'replacecolor'
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | -        { title: '部门', width: 120, dataIndex: 'cDepCode', className: 'replacecolor' },
 | 
	
		
			
				|  |  | -        { title: '业务员', width: 120, dataIndex: 'cPersonCode', className: 'replacecolor' },
 | 
	
		
			
				|  |  | -        { title: '供应商', width: 120, dataIndex: 'venCode', className: 'replacecolor' },
 | 
	
		
			
				|  |  | +        { title: '部门', width: 120, dataIndex: 'cdepCode', className: 'replacecolor' },
 | 
	
		
			
				|  |  | +        { title: '业务员', width: 120, dataIndex: 'cpersonCode', className: 'replacecolor' },
 | 
	
		
			
				|  |  | +        { title: '供应商', width: 120, dataIndex: 'cvenCode', className: 'replacecolor' },
 | 
	
		
			
				|  |  |          // customRender: function(text) {
 | 
	
		
			
				|  |  |          //   if (text == '1') {
 | 
	
		
			
				|  |  |          //     return '销售类型1'
 | 
	
	
		
			
				|  | @@ -143,32 +148,32 @@ export default {
 | 
	
		
			
				|  |  |          //     return '销售类型4'
 | 
	
		
			
				|  |  |          //   }
 | 
	
		
			
				|  |  |          // }
 | 
	
		
			
				|  |  | -        { title: '供应商类型', width: 120, dataIndex: 'venCodeType', className: 'replacecolor' },
 | 
	
		
			
				|  |  | -        { title: '订单类型', width: 120, dataIndex: 'orderType', className: 'replacecolor' },
 | 
	
		
			
				|  |  | +        { title: '供应商类型', width: 120, dataIndex: 'cvenCodeType', className: 'replacecolor' },
 | 
	
		
			
				|  |  | +        { title: '订单类型', width: 120, dataIndex: 'iorderType', className: 'replacecolor' },
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |            title: '数量',
 | 
	
		
			
				|  |  |            width: 120,
 | 
	
		
			
				|  |  | -          dataIndex: 'iQuantity',
 | 
	
		
			
				|  |  | +          dataIndex: 'iquantity',
 | 
	
		
			
				|  |  |            className: 'replacecolor'
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  | -        { title: '累计入库数量', width: 120, dataIndex: 'iReceivedQTY', className: 'replacecolor' },
 | 
	
		
			
				|  |  | +        { title: '累计入库数量', width: 120, dataIndex: 'ireceivedQTY', className: 'replacecolor' },
 | 
	
		
			
				|  |  |          { title: '单位', width: 100, dataIndex: 'unit', className: 'replacecolor' },
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |            title: '计划到货月份',
 | 
	
		
			
				|  |  |            width: 120,
 | 
	
		
			
				|  |  |            dataIndex: 'arriveMonth',
 | 
	
		
			
				|  |  | -          // customRender: text => {
 | 
	
		
			
				|  |  | -          //   return moment(text).format('YYYY-MM')
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | +          customRender: text => {
 | 
	
		
			
				|  |  | +            return moment(text).format('YYYY-MM')
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  |            className: 'replacecolor'
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |            title: '计划到货日期',
 | 
	
		
			
				|  |  |            width: 120,
 | 
	
		
			
				|  |  | -          dataIndex: 'planDeliveryData',
 | 
	
		
			
				|  |  | -          // customRender: text => {
 | 
	
		
			
				|  |  | -          //   return moment(text).format('YYYY-MM-DD')
 | 
	
		
			
				|  |  | -          // },
 | 
	
		
			
				|  |  | +          dataIndex: 'darriveDate',
 | 
	
		
			
				|  |  | +          customRender: text => {
 | 
	
		
			
				|  |  | +            return moment(text).format('YYYY-MM-DD')
 | 
	
		
			
				|  |  | +          },
 | 
	
		
			
				|  |  |            className: 'replacecolor'
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          { title: '系数', width: 100, dataIndex: 'coefficient', className: 'replacecolor' }
 | 
	
	
		
			
				|  | @@ -180,10 +185,12 @@ export default {
 | 
	
		
			
				|  |  |          csrccode: '',
 | 
	
		
			
				|  |  |          startDate: '',
 | 
	
		
			
				|  |  |          endDate: '',
 | 
	
		
			
				|  |  | +        // timeRange = [], 月份范围
 | 
	
		
			
				|  |  |          orderType: '',
 | 
	
		
			
				|  |  |          venCode: '',
 | 
	
		
			
				|  |  |          planLotNumber: '',
 | 
	
		
			
				|  |  | -        pageNo: '' // 当前页
 | 
	
		
			
				|  |  | +        pageNo: '1',
 | 
	
		
			
				|  |  | +        pageSize: '10'
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        // 分页
 | 
	
		
			
				|  |  |        pagination: {
 | 
	
	
		
			
				|  | @@ -192,11 +199,11 @@ export default {
 | 
	
		
			
				|  |  |          // pageSize: 0
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        dateFormat: 'YYYY-MM-DD'
 | 
	
		
			
				|  |  | +      // value3: ref<Dayjs>(),
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    created() {
 | 
	
		
			
				|  |  |      this.getSupplyCapList() // 渲染 供应链产能报表
 | 
	
		
			
				|  |  | -    // console.log('000')
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    methods: {
 | 
	
	
		
			
				|  | @@ -302,9 +309,18 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      searchReset() {
 | 
	
		
			
				|  |  |        this.queryParam = {}
 | 
	
		
			
				|  |  | +      this.queryParam.timeRange = []
 | 
	
		
			
				|  |  |        this.getSupplyCapList()
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    // 查询条件 月范围份转换成字符串并赋值
 | 
	
		
			
				|  |  | +    onDateChange(value, dateString) {
 | 
	
		
			
				|  |  | +      console.log('查询开始月份', dateString[0], '查询结束月份', dateString[1])
 | 
	
		
			
				|  |  | +      this.queryParam.startDate = dateString[0]
 | 
	
		
			
				|  |  | +      this.queryParam.endDate = dateString[1]
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    onDateOk(value) {
 | 
	
		
			
				|  |  | +      console.log('value', value)
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      // 分页变化时触发
 | 
	
		
			
				|  |  |      handleTableChange(pagination, filters, sorter) {
 | 
	
		
			
				|  |  |        console.log('分页器信息', pagination)
 |