/*******************************************************************************
 * Copyright(c) 2022 dongke All rights reserved. / Confidential
 * 类的信息：
 *		1.程序名称： 
 *		2.库存调库列表 
 * 编辑履历：
 *		作者				日期					版本				修改内容
 *		王英杰		        2022-0-12	            1.00		   	    
 *******************************************************************************/
const Constants = require('@/utils/Constants.js');
const util = require('@/utils/util.js') 
const mixins = require('@/mixins/index.js')
Page({
  mixins: [mixins],
  /**
   * 页面的初始数据 
   */
  data: { 
     // 查询条件
     searchContent: [{
      code: 'createtime',
      title: '近30天',
      defaultValue: 5,
      searchType: Constants.searchType.date
    } , {
      code: 'choose',
      title: '筛选',
      searchType: Constants.searchType.pick
    }],

    // 查询条件-筛选
    pullMenuList: [{
      code: 'outStatus',
      pullType: 'mSelect',
      typeName: 'outStatus'
    },  {
      code: 'designStatus',
      pullType: 'mSelect',
      typeName: 'designStatus'
    }, {
      code: 'customerFrom',
      pullType: 'mSelect',
      typeName: 'customerFrom'
    }, {
      code: 'keyType',
      pullType: 'mSelect',
      typeName: 'keyType'
    }, {
      code: 'delivery_Time',
      dataType: 'date'
    }], 

    // 列表区（脚部金额）
    footerAmount: {  },
    // 列表区（脚部信息）
    footerInfo: [{
      name: 'tsumQuantity',
      title: '品类'
    },{
      name: 'categoryQuantity',
      title: '共计'
    }, {
      name: 'tsumQuantity',
      title: '件'
    }],
    // 列表区（内容）
    contentList: [ {
      name: 'orderNo',
      title: '盘点单号'
    } ,  {
      name: [{
        name: 'orgName',
        title: ''
      }, {
        name: 'staffName',
        title: ''
      }],
      title: '责任员工'
    }, {
      name: 'data',
      title: '盘点日期'
    }, {
      name: '',
      title: '备注'
    }],

    contentObj: {
      '已出库': [{
        name: 'orderNo',
        title: '调整单号'
      } , {
        name: 'addressFull',
        title: '源仓库'
      }, {
        name: 'addressFulls',
        title: '目标仓库'
      }, {
        name: [{
          name: 'orgName',
          title: ''
        }, {
          name: 'staffName',
          title: '业务员'
        }],
        title: '责任信息'
      }, {
        name: 'data',
        title: '调整日期'
      }],
      '待出库': [{
        name: 'orderNo',
        title: '调整单号'
      } ,{
        name: 'addressFull',
        title: '源批号'
      },{
        name: 'addressFullss',
        title: '目标批号'
      }, {
        name: 'addressFull',
        title: '客户地址'
      }, {
        name: [{
          name: 'orgName',
          title: ''
        }, {
          name: 'staffName',
          title: '业务员'
        }],
        title: '责任信息'
      },{
        name: 'data',
        title: '调整日期'
      }]
    },
    buttonList: [{
      name: 'merge',
      title: mixins.$t("add"), //'保存'
  }],
    // 弹出按钮
    pupbuttonList: [{
      name: 'customerRefund',
      title: '入库办理'
      }, {
        name: 'customerRefundList',
        title: '作废'
      } , {
        name: 'customerRefundList',
        title: '打印票据'
      } 
     
    ], 
    totallength: 0, //视图下方提醒数量 
    // 路由
    routeObjName: 'inventoryAdjustment', 
  },
  
  /**
   * @desc : 查询
   * @date : 2024/2/1 15:49
   * @author : 王英杰
   */
  getData(params) {
    return this.excute(this.data.service, this.data.service.selectByCond, params);
  },

})