zenglf
2023-08-19 8611a1ba1696e76cced04ff5d658ba138a05dafd
src/views/spare/modules/sparePartPurchaseStorage/SparePartPurchaseStorageModal.vue
@@ -20,6 +20,7 @@
            >
              <a-input
                placeholder='请输入库单编号'
                :disabled="disableSubmit"
                v-decorator="['num', validatorRules.num]"
              />
            </a-form-item>
@@ -42,6 +43,7 @@
                :placeholder="'请选择采购部门'"
                :options="this.departs"
                style="width: 100%"
                :disabled="disableSubmit"
                v-decorator="['departId', validatorRules.departId]"
              />
            </a-form-item>
@@ -89,6 +91,7 @@
      type='primary'
      :style="{ marginRight: '8px',marginBottom:'8px' }"
      :loading='confirmLoading'
      :disabled="disableSubmit"
      @click='selectSparePart()'
    >增加备件信息
    </a-button>
@@ -113,15 +116,17 @@
            :options='record.suppliers'
            @change='(e) => handleChange(e, record.key, col, index)'
            style='width: 100%'
            :disabled='false'
            :disabled="disableSubmit"
          />
          <a-select
            v-if="col.dataIndex == 'warehouseAreaId'"
            :value='text'
            :disabled="disableSubmit"
            :options='record.warehouseAreas'
            @change='(e) => handleChange(e, record.key, col, index)'
            style='width: 100%'
            :disabled='false'
          />
          <a-select
            v-if="col.dataIndex == 'warehouseLocationId'"
@@ -129,22 +134,25 @@
            :options='record.warehouseLocations'
            @change='(e) => handleChange(e, record.key, col, index)'
            style='width: 100%'
            :disabled='false'
            :disabled="disableSubmit"
          />
          <a-input-number
            :value='text'
            v-if="col.dataIndex == 'mainQuantity'"
            :min='0'
            :disabled="disableSubmit"
            :max='record.wastageRate'
            @change='(e)=>handleChange(e, record.key, col, index)'
          />
          <a-input
            :value='text'
            :disabled="disableSubmit"
            v-if="col.dataIndex == 'batchNum'"
            @change='(e)=>handleChange(e, record.key, col, index)'
          />
          <a-date-picker
            :value='text'
            :disabled="disableSubmit"
            v-if="col.dataIndex == 'manufactureDate'"
            format='YYYY-MM-DD'
            @change='(e)=>handleChange(e, record.key, col, index)'
@@ -159,6 +167,7 @@
      >
        <a-popconfirm
          title='确定删除吗?'
          :disabled="disableSubmit"
          @confirm='() => handleDelete(text,record, index)'
        >
          <a>删除</a>
@@ -176,6 +185,7 @@
      <a-button
        @click='handleOk()'
        type='primary'
        :disabled="disableSubmit"
        :loading='confirmLoading'
      >确定
      </a-button>