lilei 4 lat temu
rodzic
commit
2c1a1e4a34

+ 2 - 1
src/views/purchasingManagement/purchaseOrder/edit.vue

@@ -122,6 +122,7 @@
                   class="button-info"
                   :loading="addLoading"
                   @click="handleAdd(record,0)"
+                  :disabled="record.purchasePrice<=0"
                   id="purchaseOrderEdit-add-btn">添加</a-button>
               </template>
             </s-table>
@@ -235,7 +236,7 @@ export default {
         { title: '产品名称', dataIndex: 'name', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '原厂编码', dataIndex: 'origCode', width: 200, align: 'center', customRender: function (text) { return text == ' ' ? '--' : text } },
         { title: '箱/单位', dataIndex: 'unit', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '采购单价', dataIndex: 'terminalPrice', width: 100, align: 'center', customRender: function (text) { return '¥' + (text || 0) }, fixed: 'right' },
+        { title: '采购单价', dataIndex: 'purchasePrice', width: 100, align: 'center', customRender: function (text) { return '¥' + (text || 0) }, fixed: 'right' },
         { title: '采购数量', dataIndex: 'qty', scopedSlots: { customRender: 'storageQuantity' }, width: 150, align: 'center', fixed: 'right' },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: 100, align: 'center', fixed: 'right' }
       ],