/**
 * @desc   : 需要更新的列
 * @author : 周兴
 * @date   : 2022/11/21 10:58
 */
export default {
  /**
   * @desc   : 订单选择商品需要更新的列
   * @author : 周兴
   * @date   : 2022/11/21 11:00
   */
  orderChooseGoods: [
    {updateField: 'itemIndex', valueFiled: 'itemIndex'},
    {updateField: 'skuCode', valueFiled: 'skuCode'},
    {updateField: 'skuModel', valueFiled: 'skuModel'},
    {updateField: 'itemPrice', valueFiled: 'itemPrice'},
    {updateField: 'itemQuantity', valueFiled: 'itemQuantity', defaultValue: 1},
    {updateField: 'skuId', valueFiled: 'skuId'},
    {updateField: 'skuName', valueFiled: 'skuName'},
    {updateField: 'priceStd', valueFiled: 'priceStandard'},
    {updateField: 'amtStd', defaultValue: 0},
    {updateField: 'priceSale', valueFiled: 'priceStandard'},
    {updateField: 'brandName', valueFiled: 'brandName'},
    {updateField: 'skuSpec', valueFiled: 'skuSpec'},
    {updateField: 'priceDiscount', defaultValue: 100},
    {updateField: 'packBox', valueFiled: 'packBox'},
    {updateField: 'unitId', valueFiled: 'unitId'},
    {updateField: 'subUnitId', valueFiled: 'subUnitId'},
    {updateField: 'unitName', valueFiled: 'unitName'},
    {updateField: 'subUnitName', valueFiled: 'subUnitName'},
    {updateField: 'decimalPlaces' , valueFiled: 'decimalPlaces'},
    {updateField: 'factPrice' , valueFiled: 'priceStandard'},
  ],

  /**
   * @desc   : 销售出库选择商品需要更新的列
   * @author : 付斌
   * @date   : 2024-04-18 14:34
   */
  orderOutChooseGoods: [
    {updateField: 'itemIndex', valueFiled: 'itemIndex'},
    {updateField: 'skuCode', valueFiled: 'skuCode'},
    {updateField: 'skuModel', valueFiled: 'skuModel'},
    {updateField: 'priceOut', valueFiled: 'priceStandard'},
    {updateField: 'outingQty', valueFiled: 'itemQuantity', defaultValue: 1},
    {updateField: 'skuId', valueFiled: 'skuId'},
    {updateField: 'skuName', valueFiled: 'skuName'},
    {updateField: 'brandName', valueFiled: 'brandName'},
    {updateField: 'skuSpec', valueFiled: 'skuSpec'},
    {updateField: 'packBox', valueFiled: 'packBox'},
    {updateField: 'unitId', valueFiled: 'unitId'},
    {updateField: 'subUnitId', valueFiled: 'subUnitId'},
    {updateField: 'unitName', valueFiled: 'unitName'},
    {updateField: 'subUnitName', valueFiled: 'subUnitName'},
    {updateField: 'decimalPlaces' , valueFiled: 'decimalPlaces'},
  ],

  /**
   * @desc   : 出库退货选择商品需要更新的列
   * @author : 付斌
   * @date   : 2024-04-18 14:35
   */
  outReturnChooseGoods: [
    {updateField: 'itemIndex', valueFiled: 'itemIndex'},
    {updateField: 'skuCode', valueFiled: 'skuCode'},
    {updateField: 'skuModel', valueFiled: 'skuModel'},
    {updateField: 'priceOut', valueFiled: 'priceStandard'},
    {updateField: 'outingQty', valueFiled: 'itemQuantity', defaultValue: -1},
    {updateField: 'skuId', valueFiled: 'skuId'},
    {updateField: 'skuName', valueFiled: 'skuName'},
    {updateField: 'brandName', valueFiled: 'brandName'},
    {updateField: 'skuSpec', valueFiled: 'skuSpec'},
    {updateField: 'packBox', valueFiled: 'packBox'},
    {updateField: 'unitId', valueFiled: 'unitId'},
    {updateField: 'subUnitId', valueFiled: 'subUnitId'},
    {updateField: 'unitName', valueFiled: 'unitName'},
    {updateField: 'subUnitName', valueFiled: 'subUnitName'},
    {updateField: 'decimalPlaces' , valueFiled: 'decimalPlaces'},
  ],

  /**
   * @desc   : 收款选择账户需要更新的列
   * @author : 付斌
   * @date   : 2024-03-27 14:14
   */
  receiptChooseMac: [
    {updateField: 'macId', valueFiled: 'macId'},
    {updateField: 'macCode', valueFiled: 'macCode'},
    {updateField: 'macName', valueFiled: 'macName'},
    {updateField: 'balance', valueFiled: 'balance'},
  ],

  /**
   * @desc   : 付款选择账户需要更新的列
   * @author : 付斌
   * @date   : 2024-03-27 14:14
   */
  paymentChooseMac: [
    {updateField: 'macId', valueFiled: 'macId'},
    {updateField: 'macCode', valueFiled: 'macCode'},
    {updateField: 'macName', valueFiled: 'macName'},
    {updateField: 'balance', valueFiled: 'balance'},
  ],

  /**
   * @desc   : 采购退货需要跟新的列
   * @author : 常皓宁
   * @date   : 2024/3/30 10:52
   */
  purchaseReturnColum: [
    {updateField: 'skuId', valueFiled: 'skuId'},
    {updateField: 'skuCode', valueFiled: 'skuCode'},
    {updateField: 'skuName', valueFiled: 'skuName'},
    {updateField: 'returnQty', valueFiled: 'returnQty', defaultValue: -1},
    {updateField: 'intoQty', valueFiled: 'usableQty'},
    {updateField: 'priceInto', valueFiled: 'costPrice'},
    {updateField: 'whId', valueFiled: 'whId'},
    {updateField: 'whName', valueFiled: 'whName'},
    {updateField: 'whId_Name', valueFiled: 'whName'},
  ],

  /**
   * @desc   : 采购入库需要跟新的列
   * @author : 常皓宁
   * @date   : 2024/3/30 10:52
   */
  purchaseEntryColum: [
    {updateField: 'skuCode', valueFiled: 'skuCode'},
    {updateField: 'itemQty', valueFiled: 'itemQty', defaultValue: 1},
    {updateField: 'skuId', valueFiled: 'skuId'},
    {updateField: 'skuName', valueFiled: 'skuName'},
    {updateField: 'pricePur', valueFiled: 'pricePurchase'},
    {updateField: 'pricePurchase', valueFiled: 'pricePurchase'},
    {updateField: 'packBox', valueFiled: 'packBox'},
    {updateField: 'unitId', valueFiled: 'unitId'},
    {updateField: 'subUnitId', valueFiled: 'subUnitId'},
    {updateField: 'unitName', valueFiled: 'unitName'},
    {updateField: 'subUnitName', valueFiled: 'subUnitName'},
    {updateField: 'decimalPlaces' , valueFiled: 'decimalPlaces'},
  ],

  /**
   * @desc   : 采购订单需要更新的列
   * @author : 常皓宁
   * @date   : 2024/4/1 10:29
   */
  purchaseColum: [
    {updateField: 'skuCode', valueFiled: 'skuCode'},
    {updateField: 'itemQty', valueFiled: 'itemQty', defaultValue: 1},
    {updateField: 'skuId', valueFiled: 'skuId'},
    {updateField: 'skuName', valueFiled: 'skuName'},
    {updateField: 'pricePur', valueFiled: 'pricePurchase'},
    {updateField: 'pricePurchase', valueFiled: 'pricePurchase'},
    {updateField: 'packBox', valueFiled: 'packBox'},
    {updateField: 'unitId', valueFiled: 'unitId'},
    {updateField: 'subUnitId', valueFiled: 'subUnitId'},
    {updateField: 'unitName', valueFiled: 'unitName'},
    {updateField: 'subUnitName', valueFiled: 'subUnitName'},
  ],

  /**
   * @desc   : 盘点选择库存商品
   * @author : 宋扬
   * @date   : 2024/4/1 10:34
   */
  checkChooseIvt: [
    {updateField: 'skuModel', valueFiled: 'skuModel'},
    {updateField: 'skuName', valueFiled: 'skuName'},
    {updateField: 'invId', valueFiled: 'invId'},
    {updateField: 'skuId', valueFiled: 'skuId'},
    {updateField: 'skuCode', valueFiled: 'skuCode'},
    {updateField: 'whName', valueFiled: 'whName'},
    {updateField: 'invQty', valueFiled: 'invQty'},
    {updateField: 'whId', valueFiled: 'whId'},
    {updateField: 'nonStdCode', valueFiled: 'nonStdCode'},
    {updateField: 'priceInto', valueFiled: 'priceInto'},
    {updateField: 'packBox', valueFiled: 'packBox'},
    {updateField: 'unitId', valueFiled: 'unitId'},
    {updateField: 'subUnitId', valueFiled: 'subUnitId'},
  ],

  /**
   * @desc   : 冻结选择库存商品
   * @author : 宋扬
   * @date   : 2024/4/1 15:54
   */
  freezeChooseIvt: [
    {updateField: 'skuModel', valueFiled: 'skuModel'},
    {updateField: 'skuName', valueFiled: 'skuName'},
    {updateField: 'invId', valueFiled: 'invId'},
    {updateField: 'skuId', valueFiled: 'skuId'},
    {updateField: 'skuCode', valueFiled: 'skuCode'},
    {updateField: 'whName', valueFiled: 'whName'},
    {updateField: 'invQty', valueFiled: 'invQty'},
    {updateField: 'usableQty', valueFiled: 'usableQty'},
    {updateField: 'packBox', valueFiled: 'packBox'},
    {updateField: 'unitId', valueFiled: 'unitId'},
    {updateField: 'subUnitId', valueFiled: 'subUnitId'},
  ],

  /**
   * @desc   : 调整选择库存商品
   * @author : 宋扬
   * @date   : 2024/4/1 16:06
   */
  transferChooseIvt: [
    {updateField: 'skuModel', valueFiled: 'skuModel'},
    {updateField: 'skuName', valueFiled: 'skuName'},
    {updateField: 'oInvId', valueFiled: 'invId'},
    {updateField: 'skuId', valueFiled: 'skuId'},
    {updateField: 'skuCode', valueFiled: 'skuCode'},
    {updateField: 'oWhName', valueFiled: 'whName'},
    {updateField: 'oinvQty', valueFiled: 'invQty'},
    {updateField: 'usableQty', valueFiled: 'usableQty'},
    {updateField: 'oWhId', valueFiled: 'whId'},
    {updateField: 'oNonStdCode', valueFiled: 'nonStdCode'},
    {updateField: 'priceInto', valueFiled: 'priceInto'},
    {updateField: 'packBox', valueFiled: 'packBox'},
    {updateField: 'unitId', valueFiled: 'unitId'},
    {updateField: 'subUnitId', valueFiled: 'subUnitId'},
  ],

  /**
   * @desc   : 选择仓库
   * @author : 宋扬
   * @date   : 2024/4/2 13:43
   */
  whChooseIvt: [
    {updateField: 'WhName', valueFiled: 'whName'},
    {updateField: 'WhId', valueFiled: 'whId'},
  ],

  /**
   *   @desc   : 其他出库
   *   @date   : 2024/4/8 14:09
   *   @author : 寇珊珊
   */
  outChooseIvt: [
    {updateField: 'skuModel', valueFiled: 'skuModel'},
    {updateField: 'skuName', valueFiled: 'skuName'},
    {updateField: 'invId', valueFiled: 'invId'},
    {updateField: 'skuId', valueFiled: 'skuId'},
    {updateField: 'skuCode', valueFiled: 'skuCode'},
    {updateField: 'WhId', valueFiled: 'whId'},
    {updateField: 'whName', valueFiled: 'whName'},
    {updateField: 'nonStdCode', valueFiled: 'nonStdCode'},
    {updateField: 'invQty', valueFiled: 'invQty'},
    {updateField: 'usableQty', valueFiled: 'usableQty'},
    {updateField: 'priceInto', valueFiled: 'priceInto'},
    {updateField: 'brandName', valueFiled: 'brandName'},
    {updateField: 'skuSpec', valueFiled: 'skuSpec'},
    {updateField: 'packBox', valueFiled: 'packBox'},
    {updateField: 'unitId', valueFiled: 'unitId'},
    {updateField: 'subUnitId', valueFiled: 'subUnitId'},
    {updateField: 'unitName', valueFiled: 'unitName'},
    {updateField: 'subUnitName', valueFiled: 'subUnitName'},
    {updateField: 'decimalPlaces' , valueFiled: 'decimalPlaces'},
  ],

  /**
   *   @desc   : 其他入库
   *   @date   : 2024/4/20 11:12
   *   @author : 寇珊珊
   */
  intoChooseIvt: [
    {updateField: 'itemIndex', valueFiled: 'itemIndex'},
    {updateField: 'skuCode', valueFiled: 'skuCode'},
    {updateField: 'skuModel', valueFiled: 'skuModel'},
    {updateField: 'priceInto',valueFiled: 'priceInto'},
    {updateField: 'itemQuantity', valueFiled: 'itemQuantity', defaultValue: 1},
    {updateField: 'skuId', valueFiled: 'skuId'},
    {updateField: 'skuName', valueFiled: 'skuName'},
    {updateField: 'priceStd', valueFiled: 'priceStandard'},
    {updateField: 'amtStd', defaultValue: 0},
    {updateField: 'priceSale', valueFiled: 'priceStandard'},
    {updateField: 'brandName', valueFiled: 'brandName'},
    {updateField: 'skuSpec', valueFiled: 'skuSpec'},
    {updateField: 'priceDiscount', defaultValue: 100},
    {updateField: 'packBox', valueFiled: 'packBox'},
    {updateField: 'unitId', valueFiled: 'unitId'},
    {updateField: 'subUnitId', valueFiled: 'subUnitId'},
    {updateField: 'unitName', valueFiled: 'unitName'},
    {updateField: 'subUnitName', valueFiled: 'subUnitName'},
    {updateField: 'decimalPlaces' , valueFiled: 'decimalPlaces'},
  ],

  /**
   *   @desc   : 销售订单外协品选供应商
   *   @date   : 2024/6/18 15:37
   *   @author : 寇珊珊
   */
   saleOrderChooseSupplier: [
    {updateField: 'supId', valueFiled: 'supplierId'},
    {updateField: 'supName', valueFiled: 'supplierName'},
  ],

}
