zenglf
2023-08-19 8611a1ba1696e76cced04ff5d658ba138a05dafd
src/views/spare/modules/sparePartScrap/SparePartScrapForm.vue
@@ -56,6 +56,8 @@
        <j-vxe-table
          keep-source
          :ref='refKeys[0]'
          :bordered='bordered'
          :alwaysEdit='true'
          :loading='sparesScrapDetailTable.loading'
          :columns='sparesScrapDetailTable.columns'
          :dataSource='sparesScrapDetailTable.dataSource'
@@ -96,6 +98,7 @@
  data() {
    return {
      departs:[],
      bordered:true,
      labelCol: {
        xs: { span: 24 },
        sm: { span: 5 }
@@ -137,6 +140,7 @@
            key: 'spareNum',
            fixed: 'left',
            type: JVXETypes.normal,
            align:'center',
            width: '150px',
            placeholder: '请输入${title}',
            defaultValue: ''
@@ -144,6 +148,7 @@
          {
            title: '备件名称',
            key: 'spareName',
            align:'center',
            type: JVXETypes.normal,
            fixed: 'left',
            width: '150px',
@@ -153,6 +158,7 @@
          {
            title: '型号',
            key: 'model',
            align:'center',
            type: JVXETypes.normal,
            width: '150px',
            placeholder: '请输入${title}',
@@ -162,6 +168,7 @@
            title: '规格',
            key: 'specification',
            type: JVXETypes.normal,
            align:'center',
            width: '150px',
            placeholder: '请输入${title}',
            defaultValue: ''
@@ -171,6 +178,7 @@
            key: 'batchNum',
            type: JVXETypes.normal,
            width: '200px',
            align:'center',
            placeholder: '请输入${title}',
            defaultValue: ''
          },
@@ -178,6 +186,7 @@
            title: '制造商',
            key: 'constructorName',
            type: JVXETypes.normal,
            align:'center',
            width: '200px',
            placeholder: '请输入${title}',
            defaultValue: ''
@@ -186,6 +195,7 @@
            title: '出厂日期',
            key: 'manufactureDate',
            type: JVXETypes.normal,
            align:'center',
            width: '200px',
            placeholder: '请输入${title}',
            defaultValue: ''
@@ -195,6 +205,7 @@
            title: '有效日期',
            key: 'validityPeriod',
            type: JVXETypes.normal,
            align:'center',
            width: '200px',
            placeholder: '请输入${title}',
            defaultValue: ''
@@ -204,6 +215,7 @@
            key: 'scrapReason',
            type: JVXETypes.textarea,
            width: '200px',
            align:'center',
            placeholder: '请输入${title}',
            defaultValue: '',
            validateRules: [
@@ -218,6 +230,7 @@
            key: 'mainUnitIdName',
            type: JVXETypes.normal,
            width: '200px',
            align:'center',
            placeholder: '请输入${title}',
            defaultValue: ''
          },
@@ -225,6 +238,7 @@
            title: '主单位',
            key: 'mainUnitId',
            type: JVXETypes.hidden,
            align:'center',
            width: '200px',
            placeholder: '请输入${title}',
            defaultValue: ''
@@ -233,6 +247,7 @@
            title: '辅单位',
            key: 'auxiliaryUnitIdName',
            type: JVXETypes.normal,
            align:'center',
            width: '200px',
            placeholder: '请输入${title}',
            defaultValue: ''
@@ -240,6 +255,7 @@
          {
            title: '辅单位',
            key: 'auxiliaryUnitId',
            align:'center',
            type: JVXETypes.hidden,
            width: '200px',
            placeholder: '请输入${title}',
@@ -248,6 +264,7 @@
          {
            title: '主数量',
            key: 'mainQuantity',
            align:'center',
            type: JVXETypes.normal,
            width: '200px',
            placeholder: '请输入${title}',
@@ -258,6 +275,7 @@
            title: '辅数量',
            key: 'auxiliaryQuantity',
            type: JVXETypes.normal,
            align:'center',
            width: '200px',
            placeholder: '请输入${title}',
            defaultValue: ''
@@ -266,6 +284,7 @@
            title: '备件id',
            key: 'sparePartId',
            type: JVXETypes.hidden,
            align:'center',
            width: '200px',
            placeholder: '请输入${title}',
            defaultValue: ''
@@ -275,12 +294,14 @@
            key: 'sparePartInventoryId',
            type: JVXETypes.hidden,
            width: '200px',
            align:'center',
            placeholder: '请输入${title}',
            defaultValue: ''
          },
          {
            title: '报废主数量',
            key: 'scrapMainQuantity',
            align:'center',
            type: JVXETypes.inputNumber,
            width: '200px',
            placeholder: '请输入${title}',
@@ -316,6 +337,7 @@
          },
          {
            title: '报废辅数量',
            align:'center',
            key: 'scrapAuxiliaryQuantity',
            type: JVXETypes.normal,
            width: '200px',
@@ -324,6 +346,7 @@
          },
          {
            title: '库区',
            align:'center',
            key: 'warehouseAreaIdName',
            type: JVXETypes.normal,
            width: '200px',
@@ -332,6 +355,7 @@
          },
          {
            title: '库区id',
            align:'center',
            key: 'warehouseAreaId',
            type: JVXETypes.hidden,
            width: '200px',
@@ -340,6 +364,7 @@
          },
          {
            title: '库位',
            align:'center',
            key: 'warehouseLocationIdName',
            type: JVXETypes.normal,
            width: '200px',
@@ -348,6 +373,7 @@
          },
          {
            title: '库位id',
            align:'center',
            key: 'warehouseLocationId',
            type: JVXETypes.hidden,
            width: '200px',