Преглед на файлове

Merge branch 'master' of http://139.196.39.194:9021/chenc/sen-yu-new-web

jbb преди 2 години
родител
ревизия
2a5520fb60

BIN
dist.zip


+ 5 - 1
src/api/document/shipmentList.js

@@ -8,9 +8,12 @@ const shipmentList = params => getAction('/shippingDetails/syShippingDetails/lis
 // 新增
 const addShipmentList = params => postAction('/shippingDetails/syShippingDetails/add', params)
 
-// 详情
+// ID查询
 const shipmentQueryById = params => getAction('/shippingDetails/syShippingDetails/queryById', params)
 
+//详情
+const queryByDetails = params => getAction('/shippingDetails/syShippingDetails/queryByDetails', params)
+
 // 编辑
 const editById = params => postAction('/shippingDetails/syShippingDetails/edit', params)
 
@@ -54,6 +57,7 @@ export {
   submitShipment,
   queryOrderData,
   shipmentQueryById,
+  queryByDetails,
   editById,
   queryDeclarationElements,
   syDeclarationElementsAdd,

+ 2 - 2
src/views/reportForms/order-statistics/chart/external/customerChart.vue

@@ -136,8 +136,8 @@ export default {
         xAxis: {
           type: 'category',
           axisLabel: {
-            interval: 0 //控制X轴刻度全部显示
-            // rotate: 30 //倾斜角度
+            interval: 0, //控制X轴刻度全部显示
+            rotate: 45 //倾斜角度
           },
 
           axisPointer: {

+ 5 - 2
src/views/reportForms/order-statistics/chart/interior/customerChart.vue

@@ -136,8 +136,8 @@ export default {
         xAxis: {
           type: 'category',
           axisLabel: {
-            interval: 0 //控制X轴刻度全部显示
-            // rotate: 30 //倾斜角度
+            interval: 0, //控制X轴刻度全部显示
+            rotate: 45 //倾斜角度
           },
 
           axisPointer: {
@@ -171,6 +171,7 @@ export default {
           {
             name: '实际数量',
             type: 'bar',
+            itemStyle : { normal: {label : {show: true}}},
             // tooltip: {
             //   valueFormatter: function(value) {
             //     // return value + ' ml';
@@ -187,11 +188,13 @@ export default {
             //   }
             // },
             barWidth: '30%',
+            
             data: this.iquantityArr
           },
           {
             name: '本币金额',
             type: 'line',
+            itemStyle : { normal: {label : {show: true}}},
             tooltip: {
               // valueFormatter: function(value) {
               //   // return value + ' ml'

+ 3 - 1
src/views/reportForms/order-statistics/chart/interior/departmentChart.vue

@@ -209,7 +209,8 @@ export default {
             //   }
             // },
             itemStyle: {
-              color: 'orange'
+              color: 'orange',
+              normal: {label : {show: true}}
               // normal:{
               // 颜色:  function ( params )  {
               //     	//注意,如果颜色太少,后面的颜色不会自动循环。最好再定义几个颜色
@@ -224,6 +225,7 @@ export default {
           {
             name: '本币金额',
             type: 'line',
+            itemStyle : { normal: {label : {show: true}}},
             tooltip: {
               // valueFormatter: function(value) {
               //   // return value + ' ml'

+ 5 - 2
src/views/shipment-details/addShipDetDrawer.vue

@@ -657,8 +657,11 @@ export default {
             var rowData = newObj.syShippingDetailsItemList[i];
             for (var j=i+1;j<newObj.syShippingDetailsItemList.length; j++){
               var nextData = newObj.syShippingDetailsItemList[j];
-              if (rowData.syOrderDataItemId == nextData.syOrderDataItemId){
-                this.$message.error('第'+(i+1)+'行和第'+(j+1)+'行物订单子表id重复,无法保存');
+              if (rowData.smallPo == nextData.smallPo && rowData.orderNumber == nextData.orderNumber  && 
+              rowData.preDeliveryDate == nextData.preDeliveryDate  && rowData.preCompletionDate == nextData.preCompletionDate && 
+              rowData.itemNumber == nextData.itemNumber && rowData.inventoryCode == nextData.inventoryCode&& 
+              rowData.colour == nextData.colour&& rowData.size == nextData.size){
+                this.$message.error('第'+(i+1)+'行和第'+(j+1)+'行数据相同,无法保存');
                 return;
               }
             }  

+ 66 - 37
src/views/shipment-details/detailsShipDetDrawer.vue

@@ -105,6 +105,68 @@ export default {
           className: 'replacecolor'
         },
 
+ {
+          title: '小po',
+          dataIndex: 'smallPo',
+          width: 120,
+          className: 'replacecolor'
+        },
+         {
+          title: 'Pack Id',
+          dataIndex: 'packId',
+          width: 120,
+          className: 'replacecolor'
+        },
+          {
+          title: '分销点',
+          dataIndex: 'distributionPoint',
+          width: 120,
+          className: 'replacecolor'
+        },
+        {
+          title: '存货编码',
+          dataIndex: 'inventoryCode',
+          width: 120,
+          className: 'replacecolor'
+        },
+        {
+          title: '存货名称',
+          dataIndex: 'inventoryName',
+          width: 250,
+          className: 'replacecolor'
+        },
+         {
+          title: '颜色',
+          dataIndex: 'colour',
+          width: 160,
+          customRender: t => ellipsis(t),
+          className: 'replacecolor'
+        },
+        {
+          title: '尺码',
+          dataIndex: 'size',
+          width: 100,
+          className: 'replacecolor'
+        },
+        {
+          title: '配码规格',
+          dataIndex: 'codingRules',
+          width: 180,
+          className: 'replacecolor'
+        },
+        {
+          title: '订单数量',
+          dataIndex: 'orderQuantity',
+          width: 120,
+          className: 'replacecolor'
+        },
+          {
+          title: '发货数量',
+          dataIndex: 'shipmentQuantity',
+          width: 120,
+          className: 'replacecolor'
+        },
+
         // {
         //   title: '创建时间',
         //   dataIndex: 'createTime',
@@ -156,43 +218,10 @@ export default {
 
           className: 'replacecolor'
         },
-        {
-          title: '小po',
-          dataIndex: 'smallPo',
-          width: 120,
-          className: 'replacecolor'
-        },
-        {
-          title: 'Pack Id',
-          dataIndex: 'packId',
-          width: 120,
-          className: 'replacecolor'
-        },
-        {
-          title: '分销点',
-          dataIndex: 'distributionPoint',
-          width: 120,
-          className: 'replacecolor'
-        },
-        {
-          title: '颜色',
-          dataIndex: 'colour',
-          width: 160,
-          customRender: t => ellipsis(t),
-          className: 'replacecolor'
-        },
-        {
-          title: '尺码',
-          dataIndex: 'size',
-          width: 100,
-          className: 'replacecolor'
-        },
-        {
-          title: '配码规格',
-          dataIndex: 'codingRules',
-          width: 180,
-          className: 'replacecolor'
-        },
+       
+       
+      
+       
         {
           title: '采购/委外订单号',
           dataIndex: 'purOrSubOrder',

+ 3 - 2
src/views/shipment-details/shipmentList.vue

@@ -241,6 +241,7 @@ import {
   deleteShipment,
   submitShipment,
   shipmentQueryById,
+  queryByDetails,
   queryDeclarationElements,
   cancelSubmitShipment,
   pushShipment,
@@ -594,7 +595,7 @@ export default {
     edit(record) {
       this.$refs.editShipDetDrawer.visible = true
 
-      shipmentQueryById({ id: record.id }).then(res => {
+      queryByDetails({ id: record.id,itemIds: record.itemIds }).then(res => {
         if (res.success) {
           // console.log('编辑对象', res.result)
           this.$refs.editShipDetDrawer.editShipDet = res.result
@@ -606,7 +607,7 @@ export default {
     details(record) {
       this.$refs.detailsShipDetDrawer.visible = true
       // console.log('点击项的ID', record.id)
-      shipmentQueryById({ id: record.id }).then(res => {
+      queryByDetails({ id: record.id,itemIds: record.itemIds}).then(res => {
         if (res.success) {
           console.log('点击的对象', res.result)
           // 把通过id查询到的对象,赋值给子组件