lilei 2 tahun lalu
induk
melakukan
e67e8bcc0e

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1676015657155
+  "version": 1676018484436
 }

+ 12 - 12
src/views/purchasingManagement/purchaseOrderNew/outStockModal.vue

@@ -61,7 +61,7 @@
             :rowKey="(record) => record.productSn"
             rowKeyName="productSn"
             :row-selection="{ columnWidth: 40 }"
-            :scroll="{ y:tableHeight }"
+            :scroll="{ y:tableHeight, x: 1000 }"
             @rowSelection="rowSelectionFun"
             :data="loadData"
             :defaultLoadData="false"
@@ -122,11 +122,11 @@ export default {
       },
       disabled: false, //  查询、重置按钮是否可操作
       columns: [
-        { title: '产品编码', dataIndex: 'dealerProductEntity.code', width: '24%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品名称', dataIndex: 'dealerProductEntity.name', width: '32%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '上次采购数量', dataIndex: 'qty', width: '18%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '上次缺货数量', dataIndex: 'cancelQty', width: '18%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '单位', dataIndex: 'dealerProductEntity.unit', width: '8%', align: 'center', customRender: function (text) { return text || '--' } }
+        { title: '产品编码', dataIndex: 'dealerProductEntity.code', width: '240px', align: 'center', customRender: function (text) { return text || '--' }, fixed: 'left' },
+        { title: '产品名称', dataIndex: 'dealerProductEntity.name', width: '320px', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '上次采购数量', dataIndex: 'qty', width: '180px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '上次缺货数量', dataIndex: 'cancelQty', width: '180px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '单位', dataIndex: 'dealerProductEntity.unit', width: '80px', align: 'center', customRender: function (text) { return text || '--' } }
       ],
       title: '',
       // 加载数据方法 必须为 Promise 对象
@@ -190,7 +190,7 @@ export default {
           price: item.price
         })
       })
-      
+
       const params = {
         confirm: false,
         purchaseBillSn: this.paramsData.purchaseBillSn,
@@ -202,7 +202,7 @@ export default {
           let content = ''
           if ((res.data.productSizeRepeat != res.data.productSize) && (res.data.productSizeRepeat != 0)) {
             content = `您已经选择 ${res.data.productSize} 个产品,其中 ${res.data.productSizeRepeat} 个产品已经存在于采购单中。本次只会加入不重复的产品,上次缺货数量将作为本次采购数量。确认加入本次采购吗?`
-            this.confirmFun(content,params)
+            this.confirmFun(content, params)
           } else if (res.data.productSizeRepeat == res.data.productSize) {
             content = `抱歉,您选择的 ${res.data.productSize} 个产品,采购单中已经全部存在,无需加入!`
             this.$info({
@@ -217,12 +217,12 @@ export default {
             })
           } else {
             content = `您已经选择 ${res.data.productSize} 个产品,上次缺货数量将作为本次采购数量。确认加入本次采购吗?`
-            this.confirmFun(content,params)
+            this.confirmFun(content, params)
           }
         }
       })
     },
-    confirmFun (content,params) {
+    confirmFun (content, params) {
       const _this = this
       this.$confirm({
         title: '提示',
@@ -283,9 +283,9 @@ export default {
       if (!newValue) {
         this.onCancel()
       } else {
-        setTimeout(()=>{
+        setTimeout(() => {
           this.setTableH()
-        },200)
+        }, 200)
         this.resetSearchForm()
         this.title = '上次采购缺货产品明细(采购单号:' + this.paramsData.purchaseBillNo + ')'
       }

+ 24 - 11
src/views/shoppingCarManagement/shoppingCar/list.vue

@@ -59,7 +59,7 @@
     </div>
     <!-- 列表 -->
     <s-table
-      class="sTable fixPagination"
+      class="sTable"
       ref="table"
       :style="{ height: tableHeight+84.5+'px' }"
       size="small"
@@ -69,7 +69,7 @@
       :rowKey="(record) => record.productSn"
       :columns="columns"
       :data="loadData"
-      :scroll="{ y: tableHeight }"
+      :scroll="modes=='modals'?{ y: tableHeight }:{ x:tableWidth, y: tableHeight }"
       :defaultLoadData="false"
       bordered>
       <!-- 采购数量 -->
@@ -129,6 +129,7 @@ export default {
     return {
       loading: false,
       tableHeight: 0,
+      tableWidth: 950,
       productType: [],
       queryParam: { //  查询条件
         code: '', //  产品编码
@@ -189,15 +190,27 @@ export default {
     // 设置表头
     getColumns () {
       const _this = this
-      this.columns = [
-        { title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '20%', align: 'center' },
-        { title: '产品名称', dataIndex: 'productEntity.name', width: '30%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '可用库存数量', dataIndex: 'currentStockQty', width: '13%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '成本价', dataIndex: 'productEntity.purchasePrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
-        { title: '单位', dataIndex: 'productEntity.unit', width: '8%', align: 'center', customRender: function (text) { return (!text || text == ' ') ? '--' : text } },
-        { title: '包装数', scopedSlots: { customRender: 'baozh' }, dataIndex: 'productEntity.packQty', width: '8%', align: 'center' },
-        { title: '采购数量', scopedSlots: { customRender: 'purchaseQty' }, width: '12%', align: 'center' }
-      ]
+      if (this.modes == 'pages') {
+        this.columns = [
+          { title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '20%', align: 'center' },
+          { title: '产品名称', dataIndex: 'productEntity.name', width: '30%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+          { title: '可用库存数量', dataIndex: 'currentStockQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+          { title: '成本价', dataIndex: 'productEntity.purchasePrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
+          { title: '单位', dataIndex: 'productEntity.unit', width: '8%', align: 'center', customRender: function (text) { return (!text || text == ' ') ? '--' : text } },
+          { title: '包装数', scopedSlots: { customRender: 'baozh' }, dataIndex: 'productEntity.packQty', width: '8%', align: 'center' },
+          { title: '采购数量', scopedSlots: { customRender: 'purchaseQty' }, width: '12%', align: 'center' }
+        ]
+      } else {
+        this.columns = [
+          { title: '产品编码', dataIndex: 'productEntity.code', scopedSlots: { customRender: 'productCode' }, width: '200px', align: 'center' },
+          { title: '产品名称', dataIndex: 'productEntity.name', width: '250px', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+          { title: '可用库存数量', dataIndex: 'currentStockQty', width: '140px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+          { title: '成本价', dataIndex: 'productEntity.purchasePrice', width: '80px', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
+          { title: '单位', dataIndex: 'productEntity.unit', width: '80px', align: 'center', customRender: function (text) { return (!text || text == ' ') ? '--' : text } },
+          { title: '包装数', scopedSlots: { customRender: 'baozh' }, dataIndex: 'productEntity.packQty', width: '80px', align: 'center' },
+          { title: '采购数量', scopedSlots: { customRender: 'purchaseQty' }, width: '120px', align: 'center', fixed: 'right' }
+        ]
+      }
     },
     //  产品分类  change
     changeProductType (val, opt) {