lilei 2 年之前
父節點
當前提交
bf97aa768a

+ 8 - 7
src/views/inventoryManagement/inventoryQuery/detailModal.vue

@@ -7,7 +7,7 @@
     title="库存详情"
     v-model="isShow"
     @cancel="isShow=false"
-    :width="960">
+    width="80%">
     <!-- 合计 -->
     <a-alert type="info" style="margin-bottom:10px">
       <div class="ftext" slot="message">
@@ -64,6 +64,7 @@ export default {
             const no = (data.pageNo - 1) * data.pageSize
             for (var i = 0; i < data.list.length; i++) {
               data.list[i].no = no + i + 1
+              data.list[i].productOrigCode = data.list[i].productOrigCode.trim()
             }
             this.disabled = false
             // 总计
@@ -94,12 +95,12 @@ export default {
       const arr = [
         { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
         { title: '产品编码', dataIndex: 'productCode', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品名称', dataIndex: 'productName', align: 'center', width: '31%', ellipsis: true, customRender: function (text) { return text || '--' } },
-        { title: '原厂编码', dataIndex: 'productOrigCode', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '入库时间', dataIndex: 'putTime', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '仓库', dataIndex: 'warehouseName', width: '6%', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
-        { title: '仓位', dataIndex: 'warehouseLocationName', width: '6%', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
-        { title: '入库类型', dataIndex: 'putBizTypeDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '产品名称', dataIndex: 'productName', align: 'center', width: '22%', ellipsis: true, customRender: function (text) { return text || '--' }, ellipsis: true},
+        { title: '原厂编码', dataIndex: 'productOrigCode', width: '10%', align: 'center', customRender: function (text) { return text ? text : '--' } },
+        { title: '入库时间', dataIndex: 'putTime', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '仓库', dataIndex: 'warehouseName', width: '10%', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
+        { title: '仓位', dataIndex: 'warehouseLocationName', width: '10%', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
+        { title: '入库类型', dataIndex: 'putBizTypeDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '库存数量', dataIndex: 'currentQty', width: '6%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
       ]
       if (this.$hasPermissions('B_inventoryQuery_detail_costPrice')) { // 成本价权限

+ 10 - 10
src/views/inventoryManagement/inventoryQuery/warehouseDetail.vue

@@ -188,26 +188,26 @@ export default {
       const arr = [
         { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
         { title: '产品编码', dataIndex: 'productCode', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品名称', dataIndex: 'productName', width: '14%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '产品名称', dataIndex: 'productName', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '原厂编码', dataIndex: 'productOrigCode', width: '6%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '批次号', dataIndex: 'stockBatchNo', width: '9%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '单据类型', dataIndex: 'bizTypeDictValue', width: '5%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '关联单号', dataIndex: 'bizNo', width: '14%', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '下推单号', dataIndex: 'bizSubNo', width: '14%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '单据类型', dataIndex: 'bizTypeDictValue', width: '9%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '关联单号', dataIndex: 'bizNo', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '下推单号', dataIndex: 'bizSubNo', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '单据审核时间', dataIndex: 'auditTime', width: '7%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '单位名称', dataIndex: 'unitName', width: '10%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '仓库', dataIndex: 'warehouseName', width: '4%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '仓位', dataIndex: 'warehouseLocationName', width: '4%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '数量', scopedSlots: { customRender: 'qty' }, width: '4%', align: 'center' },
-        { title: '出入库状态', dataIndex: 'stateDictValue', width: '5%', align: 'center', customRender: function (text) { return text || '--' } }
+        { title: '仓库', dataIndex: 'warehouseName', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '仓位', dataIndex: 'warehouseLocationName', width: '8%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '数量', scopedSlots: { customRender: 'qty' }, width: '5%', align: 'center' },
+        { title: '出入库状态', dataIndex: 'stateDictValue', width: '6%', align: 'center', customRender: function (text) { return text || '--' } }
         // { title: '总成本', dataIndex: 'totalCost', width: '4%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         // { title: '总售价', dataIndex: 'totalPrice', width: '4%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
       ]
       if (this.$hasPermissions('B_inventoryQuery_rkDetail_costPrice')) { // 成本价权限
-        arr.splice(13, 0, { title: '总成本', dataIndex: 'totalCost', width: '4%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
+        arr.splice(13, 0, { title: '总成本', dataIndex: 'totalCost', width: '5%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
       }
       if (this.$hasPermissions('B_inventoryQuery_rkDetail_salesPrice')) { // 售价权限
-        arr.splice(arr.length, 0, { title: '总售价', width: '4%', align: 'right', scopedSlots: { customRender: 'totalAmount' } })
+        arr.splice(arr.length, 0, { title: '总售价', width: '5%', align: 'right', scopedSlots: { customRender: 'totalAmount' } })
       }
       return arr
     }

+ 1 - 0
src/views/purchasingManagement/purchaseReturn/addModal.vue

@@ -32,6 +32,7 @@
           <warehouse
             v-model="form.warehouseSn"
             id="purchaseReturn-basicInfo-warehouseSn"
+            :disabled="itemSn?true:false"
             isPermission
             placeholder="请选择退货仓库"
           />

+ 2 - 2
src/views/purchasingManagement/purchaseReturn/purchaseReturnDeatil.vue

@@ -459,10 +459,9 @@ export default {
       this.getStatisticsData()
       this.getBasicsData()
       this.resetSearchForm(true)
-      this.getChooseList()
     },
     getChooseList () {
-      this.$refs.partQuery.pageInit(this.supplierSn, this.sparePartsReturnSn)
+      this.$refs.partQuery.pageInit(this.supplierSn, this.sparePartsReturnSn, this.detailsData?this.detailsData.warehouseSn:undefined)
     },
     // 获取页面统计数据
     getStatisticsData () {
@@ -487,6 +486,7 @@ export default {
         } else {
           this.detailsData = null
         }
+        this.getChooseList()
       })
     }
   },

+ 4 - 1
src/views/purchasingManagement/purchaseReturn/queryPart.vue

@@ -125,10 +125,12 @@ export default {
       rowSelectionInfo: null,
       isChecked: false,
       repeatList: null,
+      warehouseSn: null,
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
         this.queryParam.supplierSn = this.buyerSn
         this.queryParam.createDate = '2023-01-01 00:00:00'
+        this.queryParam.warehouseSn = this.warehouseSn
         return queryDetailStockPage(Object.assign(parameter, this.queryParam)).then(res => {
           let data
           if (res.status == 200) {
@@ -189,8 +191,9 @@ export default {
       this.queryParam.beginDate = date[0] ? date[0] : ''
       this.queryParam.endDate = date[1] ? date[1] : ''
     },
-    pageInit (buyerSn, returnSn) {
+    pageInit (buyerSn, returnSn, warehouseSn) {
       this.buyerSn = buyerSn
+      this.warehouseSn = warehouseSn
       this.getRepeatResult(returnSn)
       this.$refs.chooseTable.refresh()
       // this.$refs.chooseTable.clearSelected()