quwangxin 2 anos atrás
pai
commit
54e52b17aa

+ 15 - 14
src/views/materialPlan/index.vue

@@ -133,20 +133,20 @@
             action: 'code',
             label: '计划编号',
             align: 'center',
-		    width: 200
+            width: 200
           },
           {
             prop: 'materialCode',
             label: '编号',
             align: 'center',
-			width: 150
+            width: 150
           },
           {
             prop: 'materialName',
             label: '物料名称',
             align: 'center',
-			showOverflowTooltip: true,
-			minWidth: 110
+            showOverflowTooltip: true,
+            minWidth: 110
           },
           {
             prop: 'brandNo',
@@ -160,8 +160,8 @@
                 ? '计划生产重量(KG)'
                 : '生产重量(KG)',
             align: 'center',
-			showOverflowTooltip: true,
-			minWidth: 150
+            showOverflowTooltip: true,
+            minWidth: 150
           },
           ...(this.activeName === 'second'
             ? [
@@ -169,8 +169,8 @@
                   prop: 'producedWeight',
                   label: '已生产重量(KG)',
                   align: 'center',
-				  showOverflowTooltip: true,
-				  minWidth: 150
+                  showOverflowTooltip: true,
+                  minWidth: 150
                 }
               ]
             : []),
@@ -192,8 +192,8 @@
             prop: 'deliveryTime',
             label: '要求交付日期',
             align: 'center',
-			showOverflowTooltip: true,
-			minWidth: 110
+            showOverflowTooltip: true,
+            minWidth: 110
           },
           ...(this.activeName === 'second'
             ? [
@@ -201,12 +201,13 @@
                   prop: 'completeTime',
                   label: '实际完成时间',
                   align: 'center',
-				  showOverflowTooltip: true,
-				  minWidth: 110
+                  showOverflowTooltip: true,
+                  minWidth: 110
                 }
               ]
             : []),
           {
+            columnKey: 'status',
             label: '状态',
             align: 'center',
             slot: 'status',
@@ -221,7 +222,7 @@
             prop: 'createTime',
             label: '创建时间',
             align: 'center',
-			width: 160
+            width: 160
           },
           ...(this.activeName === 'second'
             ? [
@@ -290,7 +291,7 @@
 
       /* 刷新表格 */
       reload (where = {}) {
-		where.statusList = this.statusOpt[this.activeName][0].value.split(',')
+        where.statusList = this.statusOpt[this.activeName][0].value.split(',');
         this.$nextTick(() => {
           this.$refs.table.reload({ page: 1, where });
         });

+ 4 - 3
src/views/productionPlan/components/detail/plan.vue

@@ -6,7 +6,7 @@
         productionPlan.code
       }}</el-descriptions-item>
       <el-descriptions-item label="计划生产数量">{{
-        productionPlan.requiredFormingNum
+        productionPlan.planProductNum
       }}</el-descriptions-item>
       <!-- <el-descriptions-item label="已交货数量">已交货数量</el-descriptions-item>
       <el-descriptions-item label="未交货数量">未交货数量</el-descriptions-item> -->
@@ -14,10 +14,11 @@
         productionPlan.createUserName
       }}</el-descriptions-item>
       <el-descriptions-item label="计划类型">{{
-        ['', '内销计划', '外销计划', '预制计划'][productionPlan.orderType]
+        ['', '内销计划', '外销计划', '预制计划'][productionPlan.planType]
       }}</el-descriptions-item>
       <el-descriptions-item label="计划生产重量">{{
-        productionPlan.code
+        productionPlan.planProductNum &&
+        productionPlan.planProductNum * productionPlan.productUnitWeight
       }}</el-descriptions-item>
       <!-- <el-descriptions-item label="已交货重量">已交货重量</el-descriptions-item>
       <el-descriptions-item label="未交货重量">未交货重量</el-descriptions-item> -->

+ 1 - 0
src/views/productionPlan/index.vue

@@ -256,6 +256,7 @@
             minWidth: 110
           },
           {
+            columnKey: 'status',
             slot: 'status',
             label: '状态',
             align: 'center',

+ 2 - 2
vue.config.js

@@ -31,12 +31,12 @@ module.exports = {
     proxy: {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
-        target: 'http://192.168.3.35:8080', // kang杨威
+        // target: 'http://192.168.3.35:8080', // kang杨威
         // target: 'http://192.168.3.38:8080', // 陈潇
         // target: 'http://192.168.3.25:8080', // 黄峥嵘
         // target: 'http://192.168.3.41:8080', // 何江鹏
         // target: 'http://192.168.3.33:8080', // 谢一平
-        // target: 'http://192.168.3.51:18086', // 测试环境
+        target: 'http://192.168.3.51:18086', // 测试环境
 
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {