chenrui 2 rokov pred
rodič
commit
7e894b91b7

+ 4 - 3
src/views/purchasingManagement/purchaseOrder/edit.vue

@@ -128,7 +128,7 @@
                   {{ record.packQty||'--' }}{{ record.packQty ? record.unit : '' }}/{{ record.packQtyUnit||'--' }}
                 </template>
                 <!-- 产品编码 -->
-                <template slot="code" slot-scope="text, record">
+                <!-- <template slot="code" slot-scope="text, record">
                   <a-tooltip placement="top" v-if="record.stockState=='NOT_ENOUGH'">
                     <template slot="title">
                       该产品暂时缺货!
@@ -136,7 +136,7 @@
                     <span class="noStock">{{ record.code || '--' }}</span>
                   </a-tooltip>
                   <span v-else>{{ record.code || '--' }}</span>
-                </template>
+                </template> -->
                 <!-- 采购数量 -->
                 <template slot="storageQuantity" slot-scope="text, record">
                   <a-input-number
@@ -369,7 +369,8 @@ export default {
       const _this = this
       const arr = [
         { title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
-        { title: '产品编码', scopedSlots: { customRender: 'code' }, width: '15%', align: 'center', sorter: true },
+        // { title: '产品编码', scopedSlots: { customRender: 'code' }, width: '15%', align: 'center', sorter: true },
+        { title: '产品编码', dataIndex: 'code', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, sorter: true },
         { title: '产品名称', dataIndex: 'name', width: '23%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '原厂编码', dataIndex: 'origCode', width: '14%', align: 'center', customRender: function (text) { return text && text != ' ' ? text : '--' } },
         { title: '单位', dataIndex: 'unit', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },

+ 4 - 3
src/views/purchasingManagement/purchaseOrderNew/chooseProductModal.vue

@@ -74,7 +74,7 @@
             {{ record.packQty||'--' }}{{ record.packQty ? record.unit : '' }}/{{ record.packQtyUnit||'--' }}
           </template>
           <!-- 产品编码 -->
-          <template slot="code" slot-scope="text, record">
+          <!-- <template slot="code" slot-scope="text, record">
             <a-tooltip placement="top" v-if="record.stockState=='NOT_ENOUGH'">
               <template slot="title">
                 该产品暂时缺货!
@@ -82,7 +82,7 @@
               <span class="noStock">{{ record.code || '--' }}</span>
             </a-tooltip>
             <span v-else>{{ record.code || '--' }}</span>
-          </template>
+          </template> -->
           <!-- 采购数量 -->
           <template slot="storageQuantity" slot-scope="text, record">
             <div @dblclick.stop>
@@ -228,7 +228,8 @@ export default {
     columns () {
       const _this = this
       const arr = [
-        { title: '产品编码', scopedSlots: { customRender: 'code' }, width: '150px', align: 'center', fixed: 'left' },
+        // { title: '产品编码', scopedSlots: { customRender: 'code' }, width: '150px', align: 'center', fixed: 'left' },
+        { title: '产品编码', dataIndex: 'code', width: '150px', align: 'center', customRender: function (text) { return text || '--' }, fixed: 'left', sorter: true },
         { title: '产品名称', dataIndex: 'name', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '原厂编码', dataIndex: 'origCode', width: '150px', align: 'center', customRender: function (text) { return text && text != ' ' ? text : '--' } },
         { title: '在途数', dataIndex: 'transitQty', width: '80px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },