chenrui il y a 1 an
Parent
commit
73e791d8a8

+ 1 - 1
src/views/purchasingManagement/purchaseReturn/addModal.vue

@@ -112,7 +112,7 @@ export default {
         explainInfo: '', // 补充说明
         warehouseSn: undefined,
         attachmentList: '',
-        grabFlag: 0
+        grabFlag: 1
       },
       attachList: [], // 附件
       rules: {

+ 4 - 5
src/views/purchasingManagement/purchaseReturn/queryPart.vue

@@ -34,9 +34,9 @@
                 <a-button type="primary" style="margin-right: 5px" @click="handleBatchAdd" :loading="addMoreLoading">批量添加</a-button>
                 <span v-if="selNums&&selNums!=0" style="margin:0 10px;">已选中{{ selNums }}项</span>
               </div>
-              <a-checkbox @change="onChange" :checked="isChecked">
+            <!--  <a-checkbox @change="onChange" :checked="isChecked">
                 显示最大可退数量为0的产品
-              </a-checkbox>
+              </a-checkbox> -->
             </a-col>
           </a-row>
         </a-form>
@@ -48,7 +48,7 @@
       ref="chooseTable"
       size="small"
       :rowKey="(record,i) => i"
-      :row-selection="{ columnWidth: 40,getCheckboxProps: record => ({ props: { disabled: record.currentStockQty == 0 || record.isCheckedFlag} }) }"
+      :row-selection="{ columnWidth: 40}"
       @rowSelection="rowSelectionFun"
       :columns="columns"
       :data="loadData"
@@ -63,7 +63,6 @@
             v-model="record.qty"
             :precision="0"
             :min="1"
-            :disabled="record.currentStockQty == 0"
             :max="record.currentStockQty"
             style="width: 100%;"
             placeholder="请输入"/>
@@ -159,7 +158,7 @@ export default {
         { title: '单位', dataIndex: 'product.unit', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '批次号', dataIndex: 'sparePartsBatchNo', width: '13%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '库存数量', dataIndex: 'currentStockQty', width: '9%', align: 'center', customRender: function (text) { return (text || text == 0) ? text : '--' } },
-        // { title: '已退数量', dataIndex: 'returnedQty', width: '9%', align: 'center', customRender: function (text) { return (text || text == 0) ? text : '--' } },
+        // productQty{ title: '已退数量', dataIndex: 'returnedQty', width: '9%', align: 'center', customRender: function (text) { return (text || text == 0) ? text : '--' } },
         // { title: '最大可退数量', dataIndex: 'currentStockQty', width: '9%', align: 'center', customRender: function (text) { return (text || text == 0) ? text : '--' } },
         { title: '申请退货数量', width: '13%', align: 'center', scopedSlots: { customRender: 'qty' } },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: '10%', align: 'center' }