lilei 3 år sedan
förälder
incheckning
378f4e19e3
1 ändrade filer med 4 tillägg och 3 borttagningar
  1. 4 3
      src/views/inventoryManagement/inventoryChecking/detailModal.vue

+ 4 - 3
src/views/inventoryManagement/inventoryChecking/detailModal.vue

@@ -7,7 +7,7 @@
     title="详情"
     v-model="isShow"
     @cancle="isShow = false"
-    :width="960">
+    width="80%">
     <a-spin :spinning="spinning" tip="Loading...">
       <a-card size="small" :bordered="false" class="inventoryCheckingDetail-cont">
         <div class="print-cont" v-if="$hasPermissions('B_inventoryCheckingPrint')">
@@ -105,7 +105,7 @@
           :columns="columns"
           :data="loadData"
           :defaultLoadData="false"
-          :scroll="{ x: 990, y: 450 }"
+          :scroll="{ x: 1200, y: 450 }"
           :rowClassName="(record, index) => record.checkProfitLossQty < 0 ? 'redBg-row':''"
           bordered>
           <!-- 产品分类 -->
@@ -189,7 +189,7 @@ export default {
         { title: '序号', dataIndex: 'no', width: 50, align: 'center' },
         { title: '产品编码', dataIndex: 'productCode', width: 180, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '产品名称', dataIndex: 'productName', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: 140 },
+        { title: '产品分类', scopedSlots: { customRender: 'productType' }, align: 'center', width: 140 },
         { title: '单位', dataIndex: 'productUnit', width: 60, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '库存数量', dataIndex: 'stockQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '盘点数量', dataIndex: 'checkQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
@@ -197,6 +197,7 @@ export default {
       ]
       if (this.basicInfoData && this.basicInfoData.warehouseFlag == '1') {
         arr.splice(4, 0, { title: '仓库', dataIndex: 'warehouseName', width: 140, align: 'center', customRender: function (text) { return text || '--' } })
+        arr.splice(5, 0, { title: '仓位', dataIndex: 'warehouseLocationName', width: 140, align: 'center', customRender: function (text) { return text || '--' } })
       }
       return arr
     }