|
@@ -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' }
|