mushencc il y a 4 ans
Parent
commit
bae50ee66b

+ 4 - 4
src/views/BasicSettings/Materialfield.vue

@@ -130,7 +130,7 @@ export default {
     this.initData()
   },
   methods: {
-    ...mapActions(['undata_navData']),
+    ...mapActions(['undata_Data']),
     initData () {
       //加载所属分类
       this.axios({
@@ -191,7 +191,7 @@ export default {
             if (res.code == 200) {
               this.$Message.success(res.msg)
               this.getData(this.proxyObj)
-              this.undata_navData()
+              this.undata_Data()
             }
           })
         }
@@ -231,7 +231,7 @@ export default {
         if (res.code == 200) {
           this.$Message.success(res.msg)
           this.getData(this.proxyObj)
-          this.undata_navData()
+          this.undata_Data()
           this.showModal = false;
         } else {
           if (Array.isArray(res.data)) {
@@ -244,7 +244,7 @@ export default {
             })
             this.attribute = result;
             this.getData(this.proxyObj)
-            this.undata_navData()
+            this.undata_Data()
           }
         }
       })

+ 3 - 3
src/views/BasicSettings/Measure.vue

@@ -101,7 +101,7 @@ export default {
     }
   },
   methods: {
-    ...mapActions(['undata_navData']),
+    ...mapActions(['undata_Data']),
     init (row) {
       this.pageIndex = 1
       row.page_index = this.pageIndex;
@@ -146,7 +146,7 @@ export default {
         if (res.code == 200) {
           this.$Message.success(res.msg)
           this.getData(this.searchObj)
-          this.undata_navData()
+          this.undata_Data()
         }
       })
     },
@@ -161,7 +161,7 @@ export default {
             if (res.code == 200) {
               this.$Message.success(res.msg)
               this.getData(this.proxyObj)
-              this.undata_navData()
+              this.undata_Data()
             }
           })
         }

+ 3 - 3
src/views/BasicSettings/Technology.vue

@@ -121,7 +121,7 @@ export default {
     }
   },
   methods: {
-    ...mapActions(['undata_navData']),
+    ...mapActions(['undata_Data']),
     init (row) {
       this.pageIndex = 1
       row.page_size = this.pageSize;
@@ -182,7 +182,7 @@ export default {
           this.$Message.success(res.msg)
           this.showModal = false;
           this.getData(this.proxyObj)
-          this.undata_navData()
+          this.undata_Data()
         } else {
           if (Array.isArray(res.data)) {
             this.repeatFlag = true;
@@ -210,7 +210,7 @@ export default {
             if (res.code == 200) {
               this.$Message.success(res.msg)
               this.getData(this.proxyObj)
-              this.undata_navData()
+              this.undata_Data()
             }
           })
         }

+ 1 - 1
src/views/GoodsMannage/index.vue

@@ -73,7 +73,7 @@ export default {
           render: (h, params) => {
             return h('img', {
               attrs: {
-                src: this.$store.state.ip + params.row.img_url,
+                src: params.row.img_url?this.$store.state.ip + params.row.img_url:'',
                 style: 'max-width:50px;max-height:50px;position:relative;top:3px;'
               },
               props: {

+ 2 - 2
src/views/ProductMannage/index.vue

@@ -278,7 +278,7 @@ export default {
             const { row } = params;
             return h("img", {
               attrs: {
-                src: this.$store.state.ip + params.row.img_url,
+                src: params.row.img_url?this.$store.state.ip + params.row.img_url:'',
                 style:
                   "max-width:50px;max-height:50px;position:relative;top:3px;",
               },
@@ -334,7 +334,7 @@ export default {
             const { row } = params;
             return h("img", {
               attrs: {
-                src: this.$store.state.ip + params.row.url,
+                src: params.row.url?this.$store.state.ip + params.row.url:'',
                 style:
                   "max-width:50px;max-height:50px;position:relative;top:3px;",
               },

+ 15 - 0
src/views/ProductionOrderList/Dispatchlist/details.vue

@@ -19,6 +19,13 @@
       <div slot="titleButton">
         <Button @click="back" style="margin-right:10px;">返回</Button>
         <Button
+          @click="leadingOut"
+          type="primary"
+          style="margin-right:10px;"
+          ghost
+          >导出</Button
+        >
+        <Button
           @click="batchPrint"
           type="primary"
           style="margin-right:10px;"
@@ -427,6 +434,14 @@ export default {
     });
   },
   methods: {
+    leadingOut(){
+         this.axios.get('/api/dispatch_produce_export',{params:{...this.$route.query}}).then(res=>{
+           if (res.code == 200) {
+        let url = `${this.$store.state.ip}/api/storage/${res.data.file}`;
+        location.href = url;
+      }
+         })
+    },
     changeSelected(row){
          this.formData.house = row[0].value;
           this.formData.unit = row[1].value;

+ 31 - 16
src/views/leadMatch/MatchList/matchCheck.vue

@@ -352,41 +352,56 @@ export default {
       matchedDetailList: [],
       matchedList: [],
       matchedSheetTableColumns: [
-        { title: "序号", align: "center", type: "index", minWidth: 60 },
-        { title: "区域名称", align: "center", key: "region", minWidth: 100 },
-        { title: "房号", align: "center", key: "house_number", minWidth: 60 },
-        { title: "部件名称", align: "center", key: "part_name", minWidth: 80 },
-        { title: "行号", align: "center", key: "line", minWidth: 70 },
-        { title: "木皮1", align: "center", key: "skin1", minWidth: 60 },
+        { title: "序号", align: "center", type: "index", resizable: true,
+                        width: 100 },
+        { title: "区域名称", align: "center", key: "region",  resizable: true,
+                        width: 160 },
+        { title: "房号", align: "center", key: "house_number",  resizable: true,
+                        width: 160 },
+        { title: "部件名称", align: "center", key: "part_name",  resizable: true,
+                        width: 180 },
+        { title: "行号", align: "center", key: "line",  resizable: true,
+                        width: 170 },
+        { title: "木皮1", align: "center", key: "skin1",  resizable: true,
+                        width: 160 },
         {
           title: "原材料",
           align: "center",
-          minWidth: 120,
+          resizable: true,
+                        width: 150,
           render: (h, params) => {
             return h("span", {}, params.row.board1 +';'+params.row.board2);
           },
         },
-        { title: "木皮2", align: "center", key: "skin2", minWidth: 80 },
-        { title: "毛料尺寸", align: "center", key: "wool_size", minWidth: 80 },
+        { title: "木皮2", align: "center", key: "skin2", resizable: true,
+                        width: 150 },
+        { title: "毛料尺寸", align: "center", key: "wool_size",  resizable: true,
+                        width: 150 },
         {
           title: "原料数量",
           align: "center",
           key: "wool_number",
-          minWidth: 80,
+          resizable: true,
+                        width: 100,
         },
-        { title: "精裁尺寸", align: "center", key: "cut_size", minWidth: 80 },
+        { title: "精裁尺寸", align: "center", key: "cut_size",  resizable: true,
+                        width: 100 },
         {
           title: "零部件数量",
           align: "center",
           key: "num",
-          minWidth: 90,
+           resizable: true,
+                        width: 100,
         },
-        { title: "贴皮面积", align: "center", key: "stick", minWidth: 80 },
-        { title: "精裁面积", align: "center", key: "cut", minWidth: 80 },
-         { title: "是否打印", align: "center", key: "chip_state", minWidth: 80 ,  render: (h, params) => {
+        { title: "贴皮面积", align: "center", key: "stick", resizable: true,
+                        width: 140 },
+        { title: "精裁面积", align: "center", key: "cut",  resizable: true,
+                        width: 140 },
+         { title: "是否打印", align: "center", key: "chip_state",  resizable: true,
+                        width: 80 ,  render: (h, params) => {
             return h("span", {}, params.row.chip_state==0?'否':'是');
           }},
-        { title: "工艺要求", align: "center", key: "remark", minWidth: 80 },
+        { title: "工艺要求", align: "center", key: "remark", minWidth: 180 },
       ], //匹配表头
       processModal: false,
       process_man: "",

+ 8 - 4
src/views/leadMatch/MatchList/matchList.vue

@@ -93,19 +93,22 @@ export default {
           title: "项目编号",
           align: "center",
           key: "project_number",
-          minWidth: 60,
+         resizable: true,
+                        width: 250
         },
         {
           title: "项目名称",
           align: "center",
           key: "project_name",
-          minWidth: 60,
+          resizable: true,
+                        width: 250
         },
         {
           title: "项目简称",
           align: "center",
           key: "project_short_title",
-          minWidth: 60,
+          resizable: true,
+                        width: 250
         },
         // {
         //   title: "匹配状态",
@@ -145,7 +148,8 @@ export default {
           title: "制单日期",
           align: "center",
           key: "crt_time",
-          minWidth: 50,
+          resizable: true,
+                        width: 250,
           render: (h, params) => {
             return h("span", {}, this.func.replaceDate(params.row.crt_time));
           },

+ 29 - 15
src/views/leadMatch/MatchList/matchPage.vue

@@ -864,38 +864,52 @@ export default {
       unmatchedRoomTableColumnsUsed: [],
       matchedSheetTableColumns: [
         // { title: "全选", align: "center", minWidth: 60, type: "selection" },
-        { title: "序号", align: "center", type: "index", minWidth: 60 },
-        { title: "区域名称", align: "center", key: "region", minWidth: 100 },
-        { title: "房号", align: "center", key: "house_number", minWidth: 60 },
-        { title: "部件名称", align: "center", key: "part_name", minWidth: 80 },
-        { title: "行号", align: "center", key: "line", minWidth: 70 },
-        { title: "木皮1", align: "center", key: "skin1", minWidth: 60 },
+        { title: "序号", align: "center", type: "index",  resizable: true,
+                        width: 60 },
+        { title: "区域名称", align: "center", key: "region",  resizable: true,
+                        width: 100 },
+        { title: "房号", align: "center", key: "house_number",  resizable: true,
+                        width: 100},
+        { title: "部件名称", align: "center", key: "part_name",  resizable: true,
+                        width: 100 },
+        { title: "行号", align: "center", key: "line",  resizable: true,
+                        width: 80 },
+        { title: "木皮1", align: "center", key: "skin1",  resizable: true,
+                        width: 100 },
         {
           title: "原材料",
           align: "center",
-          minWidth: 80,
+          resizable: true,
+                        width: 100,
           render: (h, params) => {
             return h("span", {}, params.row.board1 + ";" + params.row.board2);
           },
         },
-        { title: "木皮2", align: "center", key: "skin2", minWidth: 80 },
-        { title: "毛料尺寸", align: "center", key: "wool_size", minWidth: 80 },
+        { title: "木皮2", align: "center", key: "skin2",  resizable: true,
+                        width: 100 },
+        { title: "毛料尺寸", align: "center", key: "wool_size",  resizable: true,
+                        width: 100 },
         {
           title: "原料数量",
           align: "center",
           key: "wool_number",
-          minWidth: 80,
+          resizable: true,
+                        width: 80,
         },
-        { title: "精裁尺寸", align: "center", key: "cut_size", minWidth: 80 },
+        { title: "精裁尺寸", align: "center", key: "cut_size",  resizable: true,
+                        width: 100 },
         {
           title: "零部件数量",
           align: "center",
           key: "num",
-          minWidth: 90,
+          resizable: true,
+                        width: 80
         },
-        { title: "贴皮面积", align: "center", key: "stick", minWidth: 80 },
-        { title: "精裁面积", align: "center", key: "cut", minWidth: 80 },
-        { title: "工艺要求", align: "center", key: "remark", minWidth: 80 },
+        { title: "贴皮面积", align: "center", key: "stick", resizable: true,
+                        width: 100 },
+        { title: "精裁面积", align: "center", key: "cut",  resizable: true,
+                        width: 100 },
+        { title: "工艺要求", align: "center", key: "remark", minWidth: 120 },
         // {
         //   title: "操作",
         //   align: "center",

+ 14 - 7
src/views/leadMatch/roomList/edit.vue

@@ -105,12 +105,18 @@ export default {
       tableData:[],
       searchData: {},
       tableColumns:[
-            { title: "序号", type:'index', align: "center", minWidth: 70 },
-            { title: "区域", key: "region", align: "center", minWidth: 70 },
-             { title: "楼栋", key: "house", align: "center", minWidth: 70 },
-              { title: "单元", key: "unit", align: "center", minWidth: 70 },
-               { title: "楼层", key: "layer", align: "center", minWidth: 70 },
-            { title: "房间号", key: "number", align: "center", minWidth: 70 }
+            { title: "序号", type:'index', align: "center", resizable: true,
+                        width: 100 },
+            { title: "区域", key: "region", align: "center", resizable: true,
+                        width: 200 },
+             { title: "楼栋", key: "house", align: "center", resizable: true,
+                        width: 200 },
+              { title: "单元", key: "unit", align: "center", resizable: true,
+                        width: 200 },
+               { title: "楼层", key: "layer", align: "center", resizable: true,
+                        width: 200 },
+            { title: "房间号", key: "number", align: "center", resizable: true,
+                        width: 200 }
       ],
       showType: false,
       headers: { Authorization: localStorage.getItem("token") },
@@ -230,7 +236,8 @@ export default {
             title:'',
             key:'',
             align: "center",
-             minWidth: 70
+           resizable: true,
+             width: 120
         };
                   this.tableData=res.data.data;
                 for(let i in this.tableData[0]){

+ 8 - 4
src/views/leadMatch/roomList/list.vue

@@ -78,14 +78,18 @@ export default {
         // },
       ],
       tableColumns: [
-        { title: "项目编码", key: "project_number", align: "center", minWidth: 140 },
-        { title: "项目名称", key: "project_name", align: "center", minWidth: 140 },
-        { title: "项目简称", key: "abbreviation", align: "center", minWidth: 140 },
+        { title: "项目编码", key: "project_number", align: "center", resizable: true,
+                        width: 300},
+        { title: "项目名称", key: "project_name", align: "center", resizable: true,
+                        width: 300},
+        { title: "项目简称", key: "abbreviation", align: "center",resizable: true,
+                        width: 300},
         // { title: "匹配状态", key: "state", align: "center", minWidth: 140 ,
         // render:(h,params)=>{
         //   return h('span',{},params.row.state===0?'未匹配':params.row.state===2?'匹配完成':'匹配中')
         // }},
-        { title: "制单日期", key: "make_data", align: "center", minWidth: 140 ,slot:"make_data"},
+        { title: "制单日期", key: "make_data", align: "center", resizable: true,
+                        width: 300 ,slot:"make_data"},
         { title: "操作", key:'',align: "center", minWidth: 140 , 
          render: (h, params) => {
                             return h('div', [

+ 33 - 17
src/views/leadMatch/weightMemo/edit.vue

@@ -117,23 +117,39 @@ export default {
       del_id:[],
       searchData: {},
       tableColumns:[
-            { title: "序号", type:'index', align: "center", minWidth: 140 },
-              { title: "部件名称", key: "part_title", align: "center", minWidth: 140 },
-                { title: "行号", key: "line_number", align: "center", minWidth: 140 },
-                  { title: "木皮1", key: "veneer_one", align: "center", minWidth: 140 },
-                    { title: "原材料1", key: "board1", align: "center", minWidth: 140 },
-                    { title: "原材料2", key: "board2", align: "center", minWidth: 140 },
-                      { title: "木皮2", key: "veneer_two", align: "center", minWidth: 140 },
-                        { title: "毛料尺寸", key: "wollens_size", align: "center", minWidth: 140 },
-                         { title: "毛料合并的行号", key: "wool_line", align: "center", minWidth: 140 },
-                          { title: "原料数量", key: "material_num", align: "center", minWidth: 140 },
-                            { title: "精裁尺寸", key: "vacuum_size", align: "center", minWidth: 140 },
-                              { title: "零部件数量", key: "part_num", align: "center", minWidth: 140 },
-                                { title: "贴皮面积", key: "treatment_area", align: "center", minWidth: 140 },
-                                { title: "精裁面积", key: "vacuum_area", align: "center", minWidth: 140 },
-                                { title: "工艺要求", key: "technological_requirements", align: "center", minWidth: 140 },
-                                { title: "打印芯片", key: "chip_state", align: "center", minWidth: 140 },
-                                { title: "匹配状态", key: "state", align: "center", minWidth: 140,slot:'state' },
+            { title: "序号", type:'index', align: "center",resizable: true,
+                        width: 100 },
+              { title: "部件名称", key: "part_title", align: "center",resizable: true,
+                        width: 140 },
+                { title: "行号", key: "line_number", align: "center", resizable: true,
+                        width: 100 },
+                  { title: "木皮1", key: "veneer_one", align: "center", resizable: true,
+                        width: 140 },
+                    { title: "原材料1", key: "board1", align: "center", resizable: true,
+                        width: 140 },
+                    { title: "原材料2", key: "board2", align: "center", resizable: true,
+                        width: 140 },
+                      { title: "木皮2", key: "veneer_two", align: "center", resizable: true,
+                        width: 140 },
+                        { title: "毛料尺寸", key: "wollens_size", align: "center", resizable: true,
+                        width: 140 },
+                         { title: "毛料合并的行号", key: "wool_line", align: "center", resizable: true,
+                        width: 140 },
+                          { title: "原料数量", key: "material_num", align: "center", resizable: true,
+                        width: 140 },
+                            { title: "精裁尺寸", key: "vacuum_size", align: "center", resizable: true,
+                        width: 140 },
+                              { title: "零部件数量", key: "part_num", align: "center", resizable: true,
+                        width: 140 },
+                                { title: "贴皮面积", key: "treatment_area", align: "center", resizable: true,
+                        width: 140 },
+                                { title: "精裁面积", key: "vacuum_area", align: "center", resizable: true,
+                        width: 140 },
+                                { title: "工艺要求", key: "technological_requirements", align: "center", resizable: true,
+                        width: 140 },
+                                { title: "打印芯片", key: "chip_state", align: "center", resizable: true,
+                        width: 140 },
+                                { title: "匹配状态", key: "state", align: "center",minWidth:140, slot:'state' },
       ],
       headers: { Authorization: localStorage.getItem("token") },//请求头
       //进入页面需要获取的数值

+ 9 - 5
src/views/leadMatch/weightMemo/list.vue

@@ -78,15 +78,19 @@ export default {
         // },
       ],
       tableColumns: [
-        { title: "项目编码", key: "project_number", align: "center", minWidth: 140 },
-        { title: "项目名称", key: "project_name", align: "center", minWidth: 140 },
-        { title: "项目简称", key: "abbreviation", align: "center", minWidth: 140 },
+        { title: "项目编码", key: "project_number", align: "center" , resizable: true,
+                        width: 300},
+        { title: "项目名称", key: "project_name", align: "center",  resizable: true,
+                        width: 300 },
+        { title: "项目简称", key: "abbreviation", align: "center", resizable: true,
+                        width: 300},
         // { title: "匹配状态", key: "state", align: "center", minWidth: 140,
         // render:(h,params)=>{
         //   return h('span',{},params.row.state===0?'未匹配':params.row.state===2?'匹配完成':'匹配中')
         // }},
-        { title: "制单日期", key: "make_data", align: "center", minWidth: 140 ,slot:"make_data"},
-        { title: "操作", key:'',align: "center", minWidth: 140 , 
+        { title: "制单日期", key: "make_data", align: "center",  resizable: true,
+                        width: 300,slot:"make_data"},
+        { title: "操作", key:'',align: "center", 
          render: (h, params) => {
                             return h('div', [
                                 h('a', { style: {