Browse Source

入库审核 促特标志

chenrui 1 year ago
parent
commit
6fd6509749
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/views/financialManagement/warehousingAudit/detail.vue

+ 7 - 1
src/views/financialManagement/warehousingAudit/detail.vue

@@ -46,6 +46,12 @@
               :data="loadData"
               :data="loadData"
               :defaultLoadData="false"
               :defaultLoadData="false"
               bordered>
               bordered>
+              <!-- 产品编码 -->
+              <template slot="code" slot-scope="text, record">
+                <span>{{ record.dealerProductEntity.code }}</span>
+                <a-badge v-if="record.promotionFlag && record.promotionFlag=='GIFT'" count="促" :number-style="{ backgroundColor: '#52c41a', zoom:'80%',marginLeft:'5px' }"></a-badge>
+                <a-badge v-if="record.promotionFlag && record.promotionFlag=='DISCOUNT'" count="特" :number-style="{ backgroundColor: '#faad14', zoom:'80%',marginLeft:'5px' }"></a-badge>
+              </template>
             </s-table>
             </s-table>
           </a-collapse-panel>
           </a-collapse-panel>
         </a-collapse>
         </a-collapse>
@@ -96,7 +102,7 @@ export default {
       const _this = this
       const _this = this
       const arr = [
       const arr = [
         { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
         { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
-        { title: '产品编码', dataIndex: 'dealerProductEntity.code', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '产品编码', dataIndex: 'dealerProductEntity.code', width: '15%', align: 'center', scopedSlots: { customRender: 'code' } },
         { title: '产品名称', dataIndex: 'dealerProductEntity.name', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '产品名称', dataIndex: 'dealerProductEntity.name', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '原厂编码', dataIndex: 'dealerProductEntity.origCode', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '原厂编码', dataIndex: 'dealerProductEntity.origCode', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '采购数量', dataIndex: 'qty', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '采购数量', dataIndex: 'qty', width: '7%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },