Browse Source

成本发票工厂按要求可修改

jbb 2 years ago
parent
commit
d7a065036c
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/views/reportForms/fabric-loss-table.vue

+ 7 - 1
src/views/reportForms/fabric-loss-table.vue

@@ -224,6 +224,12 @@
           bordered
           :pagination="false"
         >
+        
+        <!-- 工厂 -->
+        <span slot="cvenAbbName" slot-scope="text,record">
+              <a-input placeholder="请输入工厂" v-model="record.cvenAbbName" v-if="record.cbusType == '转出成本'"/>
+              <span v-else>{{text}}</span>
+          </span>
         </a-table>
       </div>
 
@@ -569,7 +575,7 @@ export default {
       costInvoiceColumns: [
         { title: '类型', width: 120, dataIndex: 'cvcname', className: 'replacecolor' },
         { title: '采购类型', width: 120, dataIndex: 'cbusType', className: 'replacecolor' },
-        { title: '工厂', width: 120, dataIndex: 'cvenAbbName', className: 'replacecolor' },
+        { title: '工厂', width: 120, dataIndex: 'cvenAbbName', className: 'replacecolor', scopedSlots: { customRender: 'cvenAbbName' } },
         { title: '成本金额', dataIndex: 'imoney', width: 120, className: 'replacecolor' }
       ],
       costInvoiceData: [