lilei 4 éve
szülő
commit
da4994fccd
1 módosított fájl, 8 hozzáadás és 8 törlés
  1. 8 8
      src/views/salesManagement/salesQuery/chooseActive.vue

+ 8 - 8
src/views/salesManagement/salesQuery/chooseActive.vue

@@ -18,7 +18,7 @@
           onChange: onSelectChange,
           getCheckboxProps: record => ({
             props: {
-              disabled: record.product.cost == undefined, // Column configuration not to be checked
+              disabled: record.cost == undefined||record.cost==0||record.productPrice==0||record.productPrice==undefined, // Column configuration not to be checked
             }
           })
         }"
@@ -79,14 +79,14 @@ export default {
     return {
       isShow: this.openModal,
       columns: [
-        { title: '产品编码', dataIndex: 'product.code', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品名称', dataIndex: 'product.name', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '成本价', dataIndex: 'product.cost', align: 'center', customRender: function (text) { return '¥' + (text == undefined ? '--' : text) } },
-        { title: '原售价', dataIndex: 'product.productPrice', align: 'center', customRender: function (text) { return '¥' + (text || 0) } },
-        { title: '促销价', dataIndex: 'goodsPrice', align: 'center', customRender: function (text) { return '¥' + (text || 0) } },
+        { title: '产品编码', dataIndex: 'code', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '产品名称', dataIndex: 'name', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '成本价', dataIndex: 'cost', align: 'center', customRender: function (text) { return (text == undefined ? '--' : ('¥' + text)) } },
+        { title: '原售价', dataIndex: 'productPrice', align: 'center', customRender: function (text) { return '¥' + (text || 0) } },
+        { title: '促销价', dataIndex: 'promoRuleGoods.goodsPrice', align: 'center', customRender: function (text) { return '¥' + (text || 0) } },
         { title: '数量', dataIndex: 'qty', scopedSlots: { customRender: 'salesNums' }, align: 'center' },
-        { title: '单位', dataIndex: 'product.unit', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '促销类型', dataIndex: 'promoRuleTypeName', align: 'center', customRender: function (text) { return text || '--' } }
+        { title: '单位', dataIndex: 'unit', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '促销类型', dataIndex: 'promoRuleGoods.promoRuleTypeName', align: 'center', customRender: function (text) { return text || '--' } }
       ],
       selectedRowKeys: [], // Check here to configure the default column
       selectedRows: [],