Explorar o código

Merge branch 'hw' of http://121.41.102.225:8099/Nidong/jiufang

Andy %!s(int64=3) %!d(string=hai) anos
pai
achega
d9def8b14b

+ 14 - 14
src/routerMap/index.js

@@ -1364,80 +1364,80 @@ const routerMap = [{
             ], resolve),
     },
     {
-        path: '/cms/newPage/roomList/list',
+        path: '/cms/leadMatch/roomList/list',
         name: 'RoomList', //房间列表
         meta: {
             index: 3
         },
         component: (resolve) =>
             require([
-                '@/views/newpage/roomList/list',
+                '@/views/leadMatch/roomList/list',
             ], resolve),
     },
     {
-        path: '/cms/newPage/roomList/edit',
+        path: '/cms/leadMatch/roomList/edit',
         name: 'RoomListEdit', //房间列表-->新增/编辑/查看
         meta: {
             index: 3
         },
         component: (resolve) =>
             require([
-                '@/views/newpage/roomList/edit',
+                '@/views/leadMatch/roomList/edit',
             ], resolve),
     },
     {
-        path: '/cms/newPage/weightMemo/list',
+        path: '/cms/leadMatch/weightMemo/list',
         name: 'WeightMemo', //码单列表
         meta: {
             index: 3
         },
         component: (resolve) =>
             require([
-                '@/views/newpage/weightMemo/list',
+                '@/views/leadMatch/weightMemo/list',
             ], resolve),
     },
     {
-        path: '/cms/newPage/weightMemo/edit',
+        path: '/cms/leadMatch/weightMemo/edit',
         name: 'WeightMemoEdit', //码单列表-->新增/编辑/查看
         meta: {
             index: 3
         },
         component: (resolve) =>
             require([
-                '@/views/newpage/weightMemo/edit',
+                '@/views/leadMatch/weightMemo/edit',
             ], resolve),
     },
     {
-        path: '/cms/newPage/MatchList/matchList',
+        path: '/cms/leadMatch/MatchList/matchList',
         name: 'matchList', //匹配列表-->列表
         meta: {
             index: 3
         },
         component: (resolve) =>
             require([
-                '@/views/newpage/MatchList/matchList',
+                '@/views/leadMatch/MatchList/matchList',
             ], resolve),
     },
     {
-        path: '/cms/newPage/MatchList/matchCheck',
+        path: '/cms/leadMatch/MatchList/matchCheck',
         name: 'matchCheck', //匹配列表-->查看
         meta: {
             index: 3
         },
         component: (resolve) =>
             require([
-                '@/views/newpage/MatchList/matchCheck',
+                '@/views/leadMatch/MatchList/matchCheck',
             ], resolve),
     },
     {
-        path: '/cms/newPage/MatchList/matchPage',
+        path: '/cms/leadMatch/MatchList/matchPage',
         name: 'matchPage', //匹配列表-->匹配
         meta: {
             index: 3
         },
         component: (resolve) =>
             require([
-                '@/views/newpage/MatchList/matchPage',
+                '@/views/leadMatch/MatchList/matchPage',
             ], resolve),
     },
     {

+ 9 - 3
src/views/ProcessLine/index.vue

@@ -493,6 +493,7 @@ export default {
     getChangeLists(e) {},
     saveTableData() {
       // this.tableData = JSON.parse(JSON.stringify(this.selectTags));
+       this.list[0].value = '';
       let temparr = [];
       this.selectTags.forEach((el) => {
         temparr.push(el.id);
@@ -508,6 +509,7 @@ export default {
       }).then((res) => {
         if (res.code == 200) {
           this.$Message.success(res.msg);
+          this.proxyObj.title = '';
           this.init(this.proxyObj);
           this.showModal = false;
         }
@@ -597,18 +599,22 @@ export default {
       }else{
       this.selectTags.forEach(item=>{
         total = total + item.time 
+         total = Math.floor(total * 100) / 100
       })}
        return total
     },
     workprice_total(){
+      console.log(this.selectTags)
        let total = 0;
-      if(this.selectTags == []){
+      if(this.selectTags.length == 0){
            total = 0
       }else{
       this.selectTags.forEach(item=>{
-        total = total + item.wages
+        total += item.wages;
+       
       })}
-       return this.total
+      total = (Math.floor(total * 100) / 100).toFixed(1)
+       return total
     }
   },
   // 监控data中的数据变化

+ 3 - 1
src/views/PurchasingManage/RequisitionOrder/list.vue

@@ -229,7 +229,9 @@ export default {
         method: 'get',
         url: '/api/purchase_apply_list',
         params: {
-          ...this.searchData
+          ...this.searchData,
+          page_index:this.pageIndex,
+          page_size:this.pageSize
         }
       }).then((res) => {
         this.tableData = res.data.data

+ 0 - 0
src/views/newpage/MatchList/matchCheck.vue → src/views/leadMatch/MatchList/matchCheck.vue


+ 1 - 1
src/views/newpage/MatchList/matchList.vue → src/views/leadMatch/MatchList/matchList.vue

@@ -162,7 +162,7 @@ export default {
       switch (type) {
         case 1:
           this.$router.push({
-            path: "/cms/newPage/MatchList/matchPage",
+            path: "/cms/leadMatch/MatchList/matchPage",
             query: {
               type,
               id: row.id,

+ 0 - 0
src/views/newpage/MatchList/matchPage.vue → src/views/leadMatch/MatchList/matchPage.vue


+ 361 - 0
src/views/leadMatch/roomList/edit.vue

@@ -0,0 +1,361 @@
+<template>
+  <div>
+    <Toptitle :title="$route.query.type==1?'房间编辑':$route.query.type == 2?'房间查看':'房间新增'">
+      <slot name="titleButton" class="btn_set">
+          <div class="btn_set">
+           <Upload
+              :headers="headers"
+              name="your_file"
+              :data="uploadData"
+              :show-upload-list="false"
+              :on-error="uploadError"
+              :on-success="uploadSuccess"
+              :before-upload="handleBeforeUpload"
+              :action="$store.state.ip + '/api/cut_order_room_import'"
+              style="margin-right: 10px"
+              v-if="$route.query.type != 2"
+            >
+              <Button style="margin-left:10px" type="primary">导入</Button>
+            </Upload>
+        <Button style="margin-left:10px" @click="$router.go(-1)">返回</Button>
+        <Button style="margin-left:10px" v-if="$route.query.type != 2" @click="saveData">保存</Button>
+        </div>
+      </slot>
+    </Toptitle>
+    <div class="weight_memo_info_content">
+      <div class="form_content">
+        <Form :label-width="85" :model="formData">
+          <FormItem label="项目编码:">
+               <span  v-if="this.$route.query.type == 2">{{formData.project_number}}</span>
+            <Input size='small' v-model="formData.project_number" v-else />
+          </FormItem>
+          <FormItem label="项目名称:">
+           <span  v-if="this.$route.query.type == 2">{{formData.product_name}}</span>
+            <Input v-else size='small' v-model="formData.product_name"/>
+          </FormItem>
+          <FormItem label="项目简称:">
+             <span  v-if="this.$route.query.type == 2">{{formData.project_abbreviation}}</span>
+            <Input v-else size='small' v-model="formData.project_abbreviation"/>
+          </FormItem>
+          <FormItem label="下单日期:">
+              <span v-if="this.$route.query.type == 2">{{formData.start_time}}</span>
+            <DatePicker
+              type="date"
+              v-model="formData.start_time"
+              placeholder="年/月/日"
+              v-else
+              size='small'
+            ></DatePicker>
+          </FormItem>
+        </Form>
+      </div>
+      <Card v-for="(item,index) in infoNumber" :key="index">
+          <div class="table_header">
+            <div class="table_header_left">
+              <span>图号:{{item.url_number}}</span>
+              <span>产品名称:{{item.product_title}}</span>
+              <span :style="item.state == 1?'':'color:red;'">{{item.state == 0?'未匹配':item.state == 1?'匹配完成':'匹配中'}}</span>
+            </div>
+            <div class="table_header_right">
+              <Button type="primary" size="small" :disabled="item.state==0?false:true" @click="del(item,index)">删除</Button>
+              <div @click="show(item,index)" style="cursor: pointer;"><span style="font-size:16px;">{{item.showType?'收缩':'展开'}}</span><Icon type="md-arrow-dropright"  ref="ico" class="ico"/></div>
+              <span>总计{{item.total}}条数据</span>
+            </div>
+          </div>
+          <div v-if="item.showType">
+          <div>
+            <Topsearch :list="list" @searchData="initData" />
+          </div>
+              <Table :columns="set_tableColumns" border :data="tableData">
+                  <template slot="match_state" slot-scope="{row}">
+                      <span>{{row.state == 0?'未匹配':row.state == 2?'匹配完成':'匹配中'}}</span>
+                  </template>
+              </Table>
+        </div>
+      </Card>
+    </div>
+  </div>
+</template>
+<script>
+export default {
+  data() {
+    return {
+      formData: {
+         start_time: null,
+        project_number:'',
+        project_abbreviation:'',
+        product_name:'',
+        id:''
+      },
+      add_tableColumns:[],
+      tableData:[],
+      searchData: {},
+      tableColumns:[
+            { title: "序号", type:'index', align: "center", minWidth: 140 },
+            { title: "区域", key: "region", align: "center", minWidth: 140 },
+             { title: "楼栋", key: "house", align: "center", minWidth: 140 },
+              { title: "单元", key: "unit", align: "center", minWidth: 140 },
+               { title: "楼层", key: "layer", align: "center", minWidth: 140 },
+            { title: "房间号", key: "number", align: "center", minWidth: 140 }
+      ],
+      showType: false,
+      headers: { Authorization: localStorage.getItem("token") },//请求头
+      //进入页面需要获取的数值
+      infoNumber:[],
+      cut_order_id:'',
+      del_id:[],
+      number:[],
+      region:[],
+      cut_order_product_id:'',
+    };
+  },
+  created(){
+   if(this.$route.query.type == 1||this.$route.query.type == 2){
+          this.axios.get('/api/cut_order_detail',{params:{cut_order_id:this.$route.query.cut_order_id,order_type:2}}).then(res=>{
+             this.formData.project_number = res.data.project_number;
+             this.formData.product_name = res.data.project_name;
+             this.formData.project_abbreviation = res.data.abbreviation;
+             this.formData.start_time = this.func.replaceDate(res.data.crt_time);
+             this.infoNumber = [...res.data.children];
+             this.cut_order_id = res.data.cut_order_id
+          })
+      }
+  },
+  mounted(){
+    
+  },
+  computed: {
+    list() {
+      return [
+      {
+          title: "区域名称",
+          name: "Select",
+          value: "",
+           multiple: true,
+          placeholder: "请选择",
+          serverName: "region",
+          optionName:'region',
+          optionValue:'region',
+          option: [
+          ...this.region
+          ]
+      },
+      {
+          title: "房号",
+          name: "Select",
+          value: "",
+          placeholder: "请选择",
+          serverName: "number",
+            optionName:'number',
+          optionValue:'number',
+          option: [
+           ...this.number
+          ]
+      },
+      {
+          title: "匹配状态",
+          name: "Select",
+          value: "",
+          placeholder: "请选择",
+          serverName: "state",
+          option: [
+            { label: "匹配完成", value: 2 },
+            { label: "未匹配", value: 0 },
+            { label: "匹配中", value: 1 },
+          ]
+      }
+        ];
+    },
+    uploadData(){
+        return {type:this.infoNumber.length==0?this.$route.query.type:4}
+    },
+    set_tableColumns(){
+        return [...this.tableColumns,
+               ...this.add_tableColumns,
+               { title: "匹配状态", key: "match_state", align: "center", minWidth: 140 ,slot:'match_state'}
+        ]
+    }
+  },
+  methods: {
+       saveData(){
+          let date = new Date();
+         if(!this.formData.start_time){
+             this.formData.start_time = date
+         }
+      this.axios.get('/api/cut_order_save',{params:{
+          project_name:this.formData.product_name,
+          project_number:this.formData.project_number,   
+          abbreviation:this.formData.project_abbreviation,
+          crt_time:this.formData.start_time,
+          id:this.cut_order_id,
+          }}).then(res=>{
+              if(res.code ==200){
+                   this.$Message.success(res.msg)
+               this.axios.post('/api/cut_order_del',{cut_order_product_id:this.del_id,order_type:2,cut_order_id:this.cut_order_id})
+              }  
+          });
+      },
+       search(item){
+           this.add_tableColumns = [];
+          this.axios.post('/api/cut_order_open',{
+              cut_order_product_id:item.cut_order_product_id,
+              cut_order_id:this.cut_order_id,
+              order_type:2
+              }).then(res=>{ 
+                  this.number = res.data.number;
+                  this.region = res.data.region;
+                  let obj ={
+            title:'',
+            key:'',
+            align: "center",
+             minWidth: 140
+        };
+                  this.tableData=res.data.data;
+                for(let i in this.tableData[0]){
+                 if(i.charAt(0) == 'W'){
+                      obj.title = i;
+                      obj.key = i;
+                      this.add_tableColumns.push(JSON.parse(JSON.stringify(obj))) 
+                 }
+
+             };
+             this.$forceUpdate();
+              })
+      },
+      del(item,index){
+            this.confirmDelete({
+                content:'是否删除?',
+                title:'房间删除',
+                type:'primary',
+                then:()=>{
+                     this.infoNumber.splice(index,1);
+                     this.del_id.push(item.cut_order_product_id) 
+                },
+                cancel:()=>{}
+            })
+      },
+    initData(row) {
+          this.add_tableColumns = [];
+          this.axios.post('/api/cut_order_open',{
+              cut_order_product_id:this.cut_order_product_id,
+              cut_order_id:this.cut_order_id,
+              order_type:2,
+              ...row
+              }).then(res=>{ 
+                  let obj ={
+            title:'',
+            key:'',
+            align: "center",
+             minWidth: 140
+        };
+                  this.tableData=res.data.data;
+                for(let i in this.tableData[0]){
+                 if(i.charAt(0) == 'W'){
+                      obj.title = i;
+                      obj.key = i;
+                      this.add_tableColumns.push(JSON.parse(JSON.stringify(obj))) 
+                 }
+
+             };
+             this.$forceUpdate();
+              })
+    },
+    handleBeforeUpload() {},
+     uploadError(err) {
+      this.$Message.error(err.msg || "导入失败");
+    },
+    uploadSuccess(res) {
+      if (res.code == 200) {
+        this.$Message.success("导入成功");
+         this.cut_order_id = res.data.cut_order_id;
+        this.formData.project_number = res.data.project_number;
+        this.formData.product_name = res.data.project_name;
+        this.formData.id = res.data.cut_order_id;
+        this.formData.start_time =this.func.replaceDate(res.data.crt_time);
+         if(this.infoNumber.length == 0){
+             this.infoNumber.push(res.data.children)
+             this.infoNumber[0].showType = false
+        }else{
+            this.infoNumber.push(res.data.children);
+        this.infoNumber.forEach((item,index)=>{
+          if(item.cut_order_product_id == res.data.children.cut_order_product_id){
+              this.infoNumber.pop();
+              this.infoNumber.splice(index,1,res.data.children)
+          }
+        })}
+      } else {
+        this.$Message.warning(res.msg || "导入失败");
+      }
+      },
+    show(item,index) {
+        item.showType = !item.showType
+        if(item.showType){           //全部未展开
+            this.infoNumber.forEach(_item=>{
+           _item.showType = false;
+        })
+             document.getElementsByClassName('ico')[index].style.transform = 'rotate(90deg)'
+             this.search(item);
+             this.$forceUpdate();
+             this.cut_order_product_id = item.cut_order_product_id;
+             item.showType = true
+        }else{    //展开其中一项
+             this.infoNumber.forEach(_item=>{
+           _item.showType = false;
+        })
+            document.getElementsByClassName('ico')[index].style.transform = 'rotate(0deg)';
+            this.$forceUpdate();
+        }
+    },
+  },
+};
+</script>
+<style scoped lang='scss'>
+.weight_memo_info_content{
+    height: 700px;
+    overflow: auto;
+}
+.form_content {
+  margin-top: 10px;
+  /deep/.ivu-form {
+    display: flex;
+    justify-content: flex-start;
+    flex-wrap: wrap;
+  }
+  /deep/.ivu-form-item {
+    display: inline-block;
+    width: 250px;
+  }
+}
+.table_header {
+  display: flex;
+  justify-content: space-between;
+  .table_header_left{
+      span{
+          margin: 0 20px;
+      }
+  }
+  .table_header_right {
+      width: 240px;
+    display: flex;
+    justify-content: space-around;
+  }
+}
+.mate_info{
+    display: flex;
+    justify-content: space-between;
+    margin: 20px 0;
+}
+.ico{
+   height:14px;
+   transition: all 0.4s;
+   vertical-align: middle;
+}
+/deep/ .ivu-card{
+    border-radius: 15px;
+    margin: 15px 0;
+    background: rgb(236, 236, 236);
+}
+.btn_set{
+    display: flex;
+}
+</style>

+ 172 - 0
src/views/leadMatch/roomList/list.vue

@@ -0,0 +1,172 @@
+<template>
+  <div>
+    <Toptitle title="房间列表">
+      <slot name="titleButton"> </slot>
+    </Toptitle>
+    <div class="weight_memo_content">
+      <div>
+        <Topsearch :list="list" @init="initData" @searchData="initData" />
+      </div>
+      <div
+        style="
+          text-align: right;
+          margin: 10px;
+          border-top: 1px solid #f4f4f4;
+          padding-top: 10px;
+        "
+      >
+        <Button type="primary" size="small" style="margin-right: 10px" @click="gotoPage(3)"
+          >新增</Button
+        >
+      </div>
+      <Table :columns="tableColumns" border :data="tableData">
+        <template slot="make_data" slot-scope="{row}">
+          <span>{{func.replaceDate(row.crt_time)}}</span>
+        </template>
+     </Table>
+    </div>
+      <div class="content_body_page">
+          <Page :page-size-opts="[10, 20, 30, 40,100]"
+                @on-page-size-change='changeSize'
+                @on-change='changePage'
+                :current='pageIndex'
+                show-total
+                show-elevator
+                :total="total"
+                show-sizer
+                :page-size='pageSize' />
+        </div>
+  </div>
+</template>
+<script>
+export default {
+  data() {
+    return {
+      list: [
+        {
+          title: "项目编号",
+          name: "Input",
+          value: "",
+          placeholder: "请输入项目编号",
+          serverName: "project_number",
+        },
+        {
+          title: "项目名称",
+          name: "Input",
+          value: "",
+          placeholder: "请输入项目名称",
+          serverName: "project_name",
+        },
+        {
+          title: "项目简称",
+          name: "Input",
+          value: "",
+          placeholder: "请输入项目简称",
+          serverName: "abbreviation",
+        },
+        {
+          title: "匹配状态",
+          name: "Select",
+          value: "",
+          placeholder: "请选择",
+          serverName: "state",
+          option: [
+            { label: "匹配完成", value: 2 },
+            { label: "未匹配", value: 0 },
+             { label: "匹配中", value: 1 },
+          ]
+        },
+      ],
+      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: "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 , 
+         render: (h, params) => {
+                            return h('div', [
+                                h('a', { style: {
+                                        marginRight: '5px'
+                                    }, on: {
+                                        click: () => {
+                                            this.gotoPage(1,params.row)
+                                        }
+                                    }
+                                    }, '编辑'),
+                                h('a', { style: {
+                                        marginRight: '5px'
+                                    }, on: {
+                                        click: () => {
+                                            this.gotoPage(2,params.row)
+                                        }
+                                    }
+                                    }, '查看'),
+                                h('a',{ style: {
+                                        marginRight: '5px'
+                                    }, on: {
+                                        click: () => {
+                                            this.del(params.row)
+                                        }
+                                    }},'删除')
+                            ]);
+                        }},
+      ],
+      tableData: [],
+      pageIndex: 1,
+      pageSize: 10,
+      total: 0,
+    };
+  },
+  methods: {
+    initData(row) {
+      console.log(row)
+      this.axios.get('/api/cut_order_list',{params:{
+        page_index:this.pageIndex,
+        page_size:this.pageSize,
+        ...row
+        }}).then(res=>{
+        this.tableData = res.data.data;
+        this.total = res.data.total;
+      })
+    },
+    del(row){
+      console.log(row)
+          this.axios.post('/api/cut_order_delete',{cut_order_id:row.id,order_type:2}).then(()=>{
+            this.initData()
+          })
+    },
+    gotoPage(type,row){
+      //1 编辑 2 查看 3 新增
+      switch(type){
+        case 1:
+          case 2:this.$router.push({ path: '/cms/leadMatch/roomList/edit', query: { type:type,cut_order_id:row.id} });
+          break
+          case 3:this.$router.push({ path: '/cms/leadMatch/roomList/edit', query: { type:type} });
+          break
+      }
+    },
+    changeSize (e) {
+      this.pageSize = e;
+      this.initData()
+    },
+     changePage (e) {
+      this.pageIndex = e;
+      this.initData()
+    },
+  },
+};
+</script>
+<style scoped lang='scss'>
+.weight_memo_content{
+    height: 650px;
+    overflow: auto;
+}
+.content_body_page{
+    margin-top: 10px;
+    text-align: center;
+}
+</style>

+ 343 - 0
src/views/leadMatch/weightMemo/edit.vue

@@ -0,0 +1,343 @@
+<template>
+  <div>
+    <Toptitle :title="$route.query.type==1?'码单编辑':$route.query.type == 2?'码单查看':'码单新增'">
+      <slot name="titleButton" class="btn_set">
+          <div class="btn_set">
+           <Upload
+              :headers="headers"
+              name="your_file"
+              :data="uploadData"
+              :show-upload-list="false"
+              :on-error="uploadError"
+              :on-success="uploadSuccess"
+              :before-upload="handleBeforeUpload"
+              :action="$store.state.ip + '/api/cut_order_import'"
+              style="margin-right: 10px"
+              v-if="$route.query.type != 2"
+            >
+              <Button style="margin-left:10px" type="primary">导入</Button>
+            </Upload>
+        <Button style="margin-left:10px" @click="$router.go(-1)">返回</Button>
+        <Button style="margin-left:10px" v-if="$route.query.type != 2" @click="saveData">保存</Button>
+        </div>
+      </slot>
+    </Toptitle>
+    <div class="weight_memo_info_content">
+      <div class="form_content">
+        <Form :label-width="85" :model="formData">
+          <FormItem label="项目编码:">
+               <span  v-if="this.$route.query.type == 2">{{formData.project_number}}</span>
+            <Input size='small' v-model="formData.project_number" v-else />
+          </FormItem>
+          <FormItem label="项目名称:">
+           <span  v-if="this.$route.query.type == 2">{{formData.product_name}}</span>
+            <Input v-else size='small' v-model='formData.product_name'/>
+          </FormItem>
+          <FormItem label="项目简称:">
+             <span  v-if="this.$route.query.type == 2">{{formData.project_abbreviation}}</span>
+            <Input v-else size='small' v-model="formData.project_abbreviation"/>
+          </FormItem>
+          <FormItem label="下单日期:">
+            <span v-if="this.$route.query.type == 2">{{formData.start_time}}</span>
+            <DatePicker
+              type="date"
+              v-model="formData.start_time"
+              placeholder="年/月/日"
+              v-else
+              size='small'
+            ></DatePicker>
+          </FormItem>
+        </Form>
+      </div>
+      <Card v-for="(item,index) in infoNumber" :key="index">
+          <div class="table_header">
+            <div class="table_header_left">
+              <span>图号:{{item.url_number}}</span>
+              <span>产品名称:{{item.product_title}}</span>
+              <span :style="item.state == 1?'':'color:red;'"
+                    v-if="$route.query.type != 3"
+                    >{{item.state == 0?'未匹配':item.state == 1?'匹配完成':'匹配中'}}</span>
+            </div>
+            <div class="table_header_right">
+              <Button type="primary" size="small" :disabled="item.state==0?false:true" @click="del(item,index)">删除</Button>
+              <div @click="show(item,index)" style="cursor: pointer;"><span style="font-size:16px;">{{item.showType?'收缩':'展开'}}</span><Icon type="md-arrow-dropright"  ref="ico" class="ico"/></div>
+              <span>总计{{item.total}}条数据</span>
+            </div>
+          </div>
+          <div v-if="item.showType">
+          <div>
+            <Topsearch :list="list" @searchData="search_data" />
+          </div>
+          <div v-for="(_item,_index) in tableData" :key="_index">
+              <div class="mate_info"><div>匹配信息:{{_item.value}} {{_item.number}}组</div><span>总计{{_item.children.length}}条数据</span></div>
+              <Table :columns="tableColumns" border :data="_item.children">
+                  <template slot="state" slot-scope="{row}">
+                       <span>{{row.state ==0?'未匹配':row.state ==2?'匹配完成':'匹配中'}}</span>
+                  </template>
+              </Table>
+          </div>
+        </div>
+      </Card>
+    </div>
+  </div>
+</template>
+<script>
+export default {
+  data() {
+    return {
+      formData: {
+        start_time: null,
+        project_number:'',
+        project_abbreviation:'',
+        product_name:'',
+        id:''
+      },
+      tableData:[],
+      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: "原材料", key: "material", align: "center", minWidth: 140 },
+                      { title: "木皮2", key: "veneer_two", align: "center", minWidth: 140 },
+                        { title: "毛料尺寸", key: "wollens_size", 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: "match_state", align: "center", minWidth: 140,slot:'state' },
+      ],
+      headers: { Authorization: localStorage.getItem("token") },//请求头
+      //进入页面需要获取的数值
+      infoNumber:[],
+      part_title:[],
+      cut_size:[],
+      cut_order_id:'',
+      cut_order_product_id:''
+    };
+  },
+  created(){
+      if(this.$route.query.type == 1||this.$route.query.type == 2){
+          this.axios.get('/api/cut_order_detail',{params:{cut_order_id:this.$route.query.cut_order_id,order_type:1}}).then(res=>{
+             this.formData.project_number = res.data.project_number;
+             this.formData.product_name = res.data.project_name;
+             this.formData.project_abbreviation = res.data.abbreviation;
+             this.formData.start_time = this.func.replaceDate(res.data.crt_time);
+             this.infoNumber = [...res.data.children];
+             console.log(this.infoNumber)
+             this.cut_order_id = res.data.cut_order_id
+          })
+      }
+  },
+  mounted(){
+  },
+  computed: {
+    list() {
+      return [
+      {
+          title: "部件名称",
+          name: "Select",
+          value: "",
+          multiple: true,
+          placeholder: "请选择",
+          serverName: "part_title",
+          optionName:'part_title',
+          optionValue:'part_title',
+          option: [
+            ...this.part_title
+          ]
+      },
+      {
+          title: "精裁尺寸",
+          name: "Select",
+          value: "",
+          placeholder: "请选择",
+          serverName: "cut_size",
+          optionName:'cut_size',
+          optionValue:'cut_size',
+          option: [
+           ...this.cut_size
+          ]
+      },
+      {
+          title: "匹配状态",
+          name: "Select",
+          value: "",
+          placeholder: "请选择",
+          serverName: "state",
+          option: [
+            { label: "匹配中", value: 1 },
+            { label: "未匹配", value: 0 },
+            { label: "匹配完成", value: 2 },
+          ]
+      }
+        ];
+    },
+    uploadData(){
+        return {type:this.infoNumber.length==0?this.$route.query.type:4,
+            project_number:this.formData.project_number
+        }
+    },
+  },
+  methods: {
+      saveData(){
+          let date = new Date();
+         if(!this.formData.start_time){
+             this.formData.start_time = date
+         }
+      this.axios.get('/api/cut_order_save',{params:{
+          project_name:this.formData.product_name,
+          project_number:this.formData.project_number,   
+          abbreviation:this.formData.project_abbreviation,
+          crt_time:this.formData.start_time,
+          id:this.cut_order_id,
+          }}).then(res=>{
+              if(res.code ==200){
+                   this.$Message.success(res.msg)
+               this.axios.post('/api/cut_order_del',{cut_order_product_id:this.del_id,order_type:1,cut_order_id:this.cut_order_id})
+              }  
+          });
+      },
+      search_data(row){
+                this.axios.post('/api/cut_order_open',{
+              cut_order_product_id:this.cut_order_product_id,
+              cut_order_id:this.cut_order_id,
+              order_type:1,
+              ...row
+              }).then(res=>{
+                  this.tableData=res.data.data;
+              })
+      },
+      search(item){
+          this.axios.post('/api/cut_order_open',{
+              cut_order_product_id:item.cut_order_product_id,
+              cut_order_id:this.cut_order_id,
+              order_type:1
+              }).then(res=>{
+                  this.tableData=res.data.data;
+                  this.part_title = res.data.part_title;
+                  this.cut_size = res.data.cut_size;
+                
+              })
+      },
+      del(item,index){
+            this.confirmDelete({
+                content:'是否删除?',
+                title:'码单删除',
+                type:'primary',
+                then:()=>{
+                     this.infoNumber.splice(index,1)
+                     this.del_id.push(item.cut_order_product_id) 
+                },
+                cancel:()=>{}
+            })
+      },
+    initData() {
+
+    },
+    handleBeforeUpload() {},
+     uploadError(err) {
+      this.$Message.error(err.msg || "导入失败");
+    },
+    uploadSuccess(res) {
+      if (res.code == 200) {
+        this.$Message.success("导入成功");
+        this.cut_order_id = res.data.cut_order_id;
+        this.formData.project_number = res.data.project_number;
+        this.formData.product_name = res.data.project_name;
+        this.formData.id = res.data.cut_order_id;
+        this.formData.start_time =this.func.replaceDate(res.data.crt_time);
+        console.log(this.formData.start_time)
+        if(this.infoNumber.length == 0){
+             this.infoNumber.push(res.data.children)
+             this.infoNumber[0].showType = false
+        }else{
+            this.infoNumber.push(res.data.children);
+        this.infoNumber.forEach((item,index)=>{
+          if(item.cut_order_product_id == res.data.children.cut_order_product_id){
+              this.infoNumber.pop();
+              this.infoNumber.splice(index,1,res.data.children)
+          }
+        })}
+      } else {
+        this.$Message.warning(res.msg || "导入失败");
+      }
+      },
+    show(item,index) {
+        
+        // item.showType = !item.showType
+        this.infoNumber[index].showType = !this.infoNumber[index].showType
+        if(item.showType){           //全部未展开
+            this.infoNumber.forEach(_item=>{
+           _item.showType = false;
+        })
+             document.getElementsByClassName('ico')[index].style.transform = 'rotate(90deg)'
+             item.showType = true
+             this.$forceUpdate();
+             this.cut_order_product_id = item.cut_order_product_id;
+            this.search(item)
+        }else{    //展开其中一项
+             this.infoNumber.forEach(_item=>{
+           _item.showType = false;
+        })
+            document.getElementsByClassName('ico')[index].style.transform = 'rotate(0deg)'
+            this.$forceUpdate();
+        }
+    },
+  },
+};
+</script>
+<style scoped lang='scss'>
+.weight_memo_info_content{
+    height: 700px;
+    overflow: auto;
+}
+.form_content {
+  margin-top: 10px;
+  /deep/.ivu-form {
+    display: flex;
+    justify-content: flex-start;
+    flex-wrap: wrap;
+  }
+  /deep/.ivu-form-item {
+    display: inline-block;
+    width: 250px;
+  }
+}
+.table_header {
+  display: flex;
+  justify-content: space-between;
+  .table_header_left{
+      span{
+          margin: 0 20px;
+      }
+  }
+  .table_header_right {
+      width: 240px;
+    display: flex;
+    justify-content: space-around;
+  }
+}
+.mate_info{
+    display: flex;
+    justify-content: space-between;
+    margin: 20px 0;
+}
+.ico{
+   height:14px;
+   transition: all 0.4s;
+   vertical-align: middle;
+}
+/deep/ .ivu-card{
+    border-radius: 15px;
+    margin: 15px 0;
+    background: rgb(236, 236, 236);
+}
+.btn_set{
+    display: flex;
+}
+</style>

+ 169 - 0
src/views/leadMatch/weightMemo/list.vue

@@ -0,0 +1,169 @@
+<template>
+  <div>
+    <Toptitle title="码单列表">
+      <slot name="titleButton"> </slot>
+    </Toptitle>
+    <div class="weight_memo_content">
+      <div>
+        <Topsearch :list="list" @init="initData" @searchData="initData" />
+      </div>
+      <div
+        style="
+          text-align: right;
+          margin: 10px;
+          border-top: 1px solid #f4f4f4;
+          padding-top: 10px;
+        "
+      >
+        <Button type="primary" size="small" style="margin-right: 10px" @click="gotoPage(3)"
+          >新增</Button
+        >
+      </div>
+      <Table :columns="tableColumns" border :data="tableData">
+        <template slot="make_data" slot-scope="{row}">
+          <span>{{func.replaceDate(row.crt_time)}}</span>
+        </template>
+     </Table>
+    </div>
+      <div class="content_body_page">
+          <Page :page-size-opts="[10, 20, 30, 40,100]"
+                @on-page-size-change='changeSize'
+                @on-change='changePage'
+                :current='pageIndex'
+                show-total
+                show-elevator
+                :total="total"
+                show-sizer
+                :page-size='pageSize' />
+        </div>
+  </div>
+</template>
+<script>
+export default {
+  data() {
+    return {
+      list: [
+        {
+          title: "项目编号",
+          name: "Input",
+          value: "",
+          placeholder: "请输入项目编号",
+          serverName: "project_number",
+        },
+        {
+          title: "项目名称",
+          name: "Input",
+          value: "",
+          placeholder: "请输入项目名称",
+          serverName: "project_name",
+        },
+        {
+          title: "项目简称",
+          name: "Input",
+          value: "",
+          placeholder: "请输入项目简称",
+          serverName: "abbreviation",
+        },
+        {
+          title: "匹配状态",
+          name: "Select",
+          value: "",
+          placeholder: "请选择",
+          serverName: "state",
+          option: [
+            { label: "匹配完成", value: 2 },
+            { label: "未匹配", value: 0 },
+             { label: "匹配中", value: 1 },
+          ] 
+        },
+      ],
+      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: "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 , 
+         render: (h, params) => {
+                            return h('div', [
+                                h('a', { style: {
+                                        marginRight: '5px'
+                                    }, on: {
+                                        click: () => {
+                                            this.gotoPage(1,params.row)
+                                        }
+                                    }
+                                    }, '编辑'),
+                                h('a', { style: {
+                                        marginRight: '5px'
+                                    }, on: {
+                                        click: () => {
+                                            this.gotoPage(2,params.row)
+                                        }
+                                    }
+                                    }, '查看'),
+                                h('a',{ style: {
+                                        marginRight: '5px'
+                                    }, on: {
+                                        click: () => {
+                                            this.del(params.row)
+                                        }
+                                    }},'删除')
+                            ]);
+                        }},
+      ],
+      tableData: [],
+      pageIndex: 1,
+      pageSize: 10,
+      total: 0,
+    };
+  },
+  methods: {
+    initData(row) {
+      this.axios.get('/api/cut_order_list',{params:{
+        page_index:this.pageIndex,page_size:this.pageSize,
+        ...row}}).then(res=>{
+        this.tableData = res.data.data;
+        this.total = res.data.total
+      })
+    },
+    del(row){
+      console.log(row)
+          this.axios.post('/api/cut_order_delete',{cut_order_id:row.id,order_type:1}).then(()=>{
+            this.initData()
+          })
+    },
+    gotoPage(type,row){
+      //1 编辑 2 查看 3 新增
+      switch(type){
+        case 1:
+          case 2:this.$router.push({ path: '/cms/leadMatch/weightMemo/edit', query: { type:type,cut_order_id:row.id} });
+          break
+          case 3:this.$router.push({ path: '/cms/leadMatch/weightMemo/edit', query: { type:type} });
+          break
+      }
+    },
+    changeSize (e) {
+      this.pageSize = e;
+      this.initData()
+    },
+     changePage (e) {
+      this.pageIndex = e;
+      this.initData()
+    },
+  },
+};
+</script>
+<style scoped lang='scss'>
+.weight_memo_content{
+    height: 650px;
+    overflow: auto;
+}
+.content_body_page{
+    margin-top: 10px;
+    text-align: center;
+}
+</style>

+ 0 - 8
src/views/newpage/roomList/edit.vue

@@ -1,8 +0,0 @@
-<template>
-    <div></div>
-</template>
-<script>
-export default {
-    
-}
-</script>

+ 0 - 120
src/views/newpage/roomList/list.vue

@@ -1,120 +0,0 @@
-<template>
-  <div>
-    <Toptitle title="码单列表">
-      <slot name="titleButton"> </slot>
-    </Toptitle>
-    <div class="weight_memo_content">
-      <div>
-        <Topsearch :list="list" @init="initData" @searchData="initData" />
-        <div style="padding-bottom: 15px">
-          <slot name="navButton"> </slot>
-        </div>
-      </div>
-      <div
-        style="
-          text-align: right;
-          margin: 10px;
-          border-top: 1px solid #f4f4f4;
-          padding-top: 10px;
-        "
-      >
-        <Button type="primary" size="small" style="margin-right: 10px"
-          >新增</Button
-        >
-      </div>
-      <Table :columns="tableColumns" border :data="tableData">
-        <template slot="set" slot-scope="{ row, index }">
-             <a style="margin:0 5px">编辑</a>
-             <a style="margin:0 5px">查看</a>
-             <a style="margin:0 5px;color:red;">删除</a>
-        </template>  
-     </Table>
-    </div>
-      <div class="content_body_page">
-          <Page :page-size-opts="[10, 20, 30, 40,100]"
-                @on-page-size-change='changeSize'
-                @on-change='changePage'
-                :current='pageIndex'
-                show-total
-                show-elevator
-                :total="total"
-                show-sizer
-                :page-size='pageSize' />
-        </div>
-  </div>
-</template>
-<script>
-export default {
-  data() {
-    return {
-      list: [
-        {
-          title: "项目编号",
-          name: "Input",
-          value: "",
-          placeholder: "请输入项目编号",
-          serverName: "title",
-        },
-        {
-          title: "项目名称",
-          name: "Input",
-          value: "",
-          placeholder: "请输入项目名称",
-          serverName: "title",
-        },
-        {
-          title: "项目简称",
-          name: "Input",
-          value: "",
-          placeholder: "请输入项目简称",
-          serverName: "title",
-        },
-        {
-          title: "匹配状态",
-          name: "Select",
-          value: "",
-          placeholder: "请选择",
-          serverName: "type_id",
-          option: [
-            { label: "已匹配", value: 1 },
-            { label: "未匹配", value: 0 },
-          ],
-        },
-      ],
-      tableColumns: [
-        { title: "项目编码", key: "type_code", align: "center", minWidth: 140 },
-        { title: "项目名称", key: "type_code", align: "center", minWidth: 140 },
-        { title: "项目简称", key: "type_code", align: "center", minWidth: 140 },
-        { title: "匹配状态", key: "type_code", align: "center", minWidth: 140 },
-        { title: "制单日期", key: "type_code", align: "center", minWidth: 140 },
-        { title: "操作", key: "type_code", align: "center", minWidth: 140 ,solt:'set'},
-      ],
-      tableData: [],
-      pageIndex: 1,
-      pageSize: 10,
-      total: 0,
-    };
-  },
-  methods: {
-    initData() {},
-    changeSize (e) {
-      this.pageSize = e;
-      this.initData()
-    },
-     changePage (e) {
-      this.pageIndex = e;
-      this.initData()
-    },
-  },
-};
-</script>
-<style scoped lang='scss'>
-.weight_memo_content{
-    height: 650px;
-    overflow: auto;
-}
-.content_body_page{
-    margin-top: 10px;
-    text-align: center;
-}
-</style>

+ 0 - 230
src/views/newpage/weightMemo/edit.vue

@@ -1,230 +0,0 @@
-<template>
-  <div>
-    <Toptitle title="码单信息">
-      <slot name="titleButton">
-        <Button style="margin-left:10px" type="primary">导入</Button>
-        <Button style="margin-left:10px" @click="$router.go(-1)">返回</Button>
-        <Button style="margin-left:10px">保存</Button>
-      </slot>
-    </Toptitle>
-    <div class="weight_memo_info_content">
-      <div class="form_content">
-        <Form :label-width="85" :model="formData">
-          <FormItem label="项目编码:">
-            <Input />
-          </FormItem>
-          <FormItem label="项目名称:">
-            <Input />
-          </FormItem>
-          <FormItem label="项目简称:">
-            <Input />
-          </FormItem>
-          <FormItem label="下单日期:">
-            <DatePicker
-              type="date"
-              v-model="formData.start_time"
-              placeholder="年/月/日"
-            ></DatePicker>
-          </FormItem>
-        </Form>
-      </div>
-      <Card v-for="(item,index) in infoNumber" :key="index">
-          <div class="table_header">
-            <div class="table_header_left">
-              <span>图号:{{item.url_number}}</span>
-              <span>产品名称:{{item.product_title}}</span>
-              <span :style="item.state == 1?'color:red;':''">{{item.state == 0?'未匹配':item.state == 1?'匹配完成':'匹配中'}}</span>
-            </div>
-            <div class="table_header_right">
-              <Button type="primary" size="small" :disabled="item.state==0?false:true">删除</Button>
-              <div @click="show(item,index)" style="cursor: pointer;"><span style="font-size:16px;">{{item.showType?'收缩':'展开'}}</span><Icon type="md-arrow-dropright"  ref="ico" class="ico"/></div>
-              <span>总计{{item.total}}条数据</span>
-            </div>
-          </div>
-          <div v-if="item.showType">
-          <div>
-            <Topsearch :list="list" @searchData="initData" />
-          </div>
-          <div v-for="(_item,_index) in tableData" :key="_index">
-              <div class="mate_info"><div>匹配信息:{{_item.match_info}}</div><span>总计{{_item.total}}条数据</span></div>
-              <Table :columns="tableColumns" border :data="_item.data">
-              </Table>
-          </div>
-        </div>
-      </Card>
-    </div>
-  </div>
-</template>
-<script>
-export default {
-  data() {
-    return {
-      formData: {
-        start_time: "",
-      },
-      tableData:[{
-          match_info:'w1=300 w2=550 w3==900 2组',
-          total:3,
-          data:[
-              {part_title:'饰面1',line_number:2,veneer_one:'橡木',material:'12cm多层板',veneer_two:'橡木',wollens_size:'315*565*150', material_num:'121',vacuum_size:'300*550*150',part_num:'111',treatment_area:'8.88',vacuum_area:'300*200*150',technological_requirements:'按图七口',match_state:'1'},
-              {part_title:'饰面2',line_number:3,veneer_one:'橡木',material:'12cm多层板',veneer_two:'橡木',wollens_size:'315*565*150', material_num:'3',vacuum_size:'300*550*150',part_num:'5',treatment_area:'8.88',vacuum_area:'300*200*150',technological_requirements:'按图七口',match_state:'0'},
-              {part_title:'饰面3',line_number:3,veneer_one:'橡木',material:'12cm多层板',veneer_two:'橡木',wollens_size:'315*565*150', material_num:'2',vacuum_size:'300*550*150',part_num:'7',treatment_area:'8.88',vacuum_area:'300*200*150',technological_requirements:'按图七口',match_state:'1'},
-          ]
-      },
-      {
-          match_info:'w1=300 w2=550 w3==900 3组',
-          total:3,
-          data:[
-              {part_title:'饰面1',line_number:2,veneer_one:'橡木',material:'12cm多层板',veneer_two:'橡木',wollens_size:'315*565*150', material_num:'121',vacuum_size:'300*550*150',part_num:'111',treatment_area:'8.88',vacuum_area:'300*200*150',technological_requirements:'按图七口',match_state:'1'},
-              {part_title:'饰面2',line_number:3,veneer_one:'橡木',material:'12cm多层板',veneer_two:'橡木',wollens_size:'315*565*150', material_num:'3',vacuum_size:'300*550*150',part_num:'5',treatment_area:'8.88',vacuum_area:'300*200*150',technological_requirements:'按图七口',match_state:'0'},
-              {part_title:'饰面3',line_number:3,veneer_one:'橡木',material:'12cm多层板',veneer_two:'橡木',wollens_size:'315*565*150', material_num:'2',vacuum_size:'300*550*150',part_num:'7',treatment_area:'8.88',vacuum_area:'300*200*150',technological_requirements:'按图七口',match_state:'1'},
-          ]
-      }
-      ],
-      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: "原材料", key: "material", align: "center", minWidth: 140 },
-                      { title: "木皮2", key: "veneer_two", align: "center", minWidth: 140 },
-                        { title: "毛料尺寸", key: "wollens_size", 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: "match_state", align: "center", minWidth: 140 },
-      ],
-      showType: false,
-      //进入页面需要获取的数值
-      infoNumber:[
-          {url_number:'001',product_title:'木饰面',state:0,total:6,showType:false},
-          {url_number:'004',product_title:'木饰面',state:1,total:6,showType:false},
-          {url_number:'007',product_title:'台盆柜',state:2,total:6,showType:false},
-      ],
-      icoState:'md-arrow-dropright',
-    };
-  },
-  mounted(){
-
-  },
-  computed: {
-    list() {
-      return [{
-          title: "特殊尺寸",
-          name: "Select",
-          value: "",
-          placeholder: "请选择",
-          serverName: "type_id",
-          option: [
-            { label: "已匹配", value: 1 },
-            { label: "未匹配", value: 0 },
-          ]
-      },
-      {
-          title: "部件名称",
-          name: "Select",
-          value: "",
-          placeholder: "请选择",
-          serverName: "type_id",
-          option: [
-            { label: "已匹配", value: 1 },
-            { label: "未匹配", value: 0 },
-          ]
-      },
-      {
-          title: "精裁尺寸",
-          name: "Select",
-          value: "",
-          placeholder: "请选择",
-          serverName: "type_id",
-          option: [
-            { label: "已匹配", value: 1 },
-            { label: "未匹配", value: 0 },
-          ]
-      },
-      {
-          title: "匹配状态",
-          name: "Select",
-          value: "",
-          placeholder: "请选择",
-          serverName: "type_id",
-          option: [
-            { label: "已匹配", value: 1 },
-            { label: "未匹配", value: 0 },
-          ]
-      }
-        ];
-    },
-  },
-  methods: {
-    initData() {},
-    show(item,index) {
-        item.showType = !item.showType
-        if(item.showType){           //全部未展开
-            this.infoNumber.forEach(_item=>{
-           _item.showType = false;
-        })
-             document.getElementsByClassName('ico')[index].style.transform = 'rotate(90deg)'
-             item.showType = true
-        }else{    //展开其中一项
-             this.infoNumber.forEach(_item=>{
-           _item.showType = false;
-        })
-            document.getElementsByClassName('ico')[index].style.transform = 'rotate(0deg)'
-        }
-       
-    },
-  },
-};
-</script>
-<style scoped lang='scss'>
-.weight_memo_info_content{
-    height: 700px;
-    overflow: auto;
-}
-.form_content {
-  margin-top: 10px;
-  /deep/.ivu-form {
-    display: flex;
-    justify-content: flex-start;
-    flex-wrap: wrap;
-  }
-  /deep/.ivu-form-item {
-    display: inline-block;
-    width: 250px;
-  }
-}
-.table_header {
-  display: flex;
-  justify-content: space-between;
-  .table_header_left{
-      span{
-          margin: 0 20px;
-      }
-  }
-  .table_header_right {
-      width: 240px;
-    display: flex;
-    justify-content: space-around;
-  }
-}
-.mate_info{
-    display: flex;
-    justify-content: space-between;
-    margin: 20px 0;
-}
-.ico{
-   height:14px;
-   transition: all 0.4s;
-   vertical-align: middle;
-}
-/deep/ .ivu-card{
-    border-radius: 15px;
-    margin: 15px 0;
-    background: rgb(236, 236, 236);
-}
-</style>

+ 0 - 120
src/views/newpage/weightMemo/list.vue

@@ -1,120 +0,0 @@
-<template>
-  <div>
-    <Toptitle title="码单列表">
-      <slot name="titleButton"> </slot>
-    </Toptitle>
-    <div class="weight_memo_content">
-      <div>
-        <Topsearch :list="list" @init="initData" @searchData="initData" />
-        <div style="padding-bottom: 15px">
-          <slot name="navButton"> </slot>
-        </div>
-      </div>
-      <div
-        style="
-          text-align: right;
-          margin: 10px;
-          border-top: 1px solid #f4f4f4;
-          padding-top: 10px;
-        "
-      >
-        <Button type="primary" size="small" style="margin-right: 10px"
-          >新增</Button
-        >
-      </div>
-      <Table :columns="tableColumns" border :data="tableData">
-        <template slot="set" slot-scope="{ row, index }">
-             <a style="margin:0 5px">编辑</a>
-             <a style="margin:0 5px">查看</a>
-             <a style="margin:0 5px;color:red;">删除</a>
-        </template>  
-     </Table>
-    </div>
-      <div class="content_body_page">
-          <Page :page-size-opts="[10, 20, 30, 40,100]"
-                @on-page-size-change='changeSize'
-                @on-change='changePage'
-                :current='pageIndex'
-                show-total
-                show-elevator
-                :total="total"
-                show-sizer
-                :page-size='pageSize' />
-        </div>
-  </div>
-</template>
-<script>
-export default {
-  data() {
-    return {
-      list: [
-        {
-          title: "项目编号",
-          name: "Input",
-          value: "",
-          placeholder: "请输入项目编号",
-          serverName: "title",
-        },
-        {
-          title: "项目名称",
-          name: "Input",
-          value: "",
-          placeholder: "请输入项目名称",
-          serverName: "title",
-        },
-        {
-          title: "项目简称",
-          name: "Input",
-          value: "",
-          placeholder: "请输入项目简称",
-          serverName: "title",
-        },
-        {
-          title: "匹配状态",
-          name: "Select",
-          value: "",
-          placeholder: "请选择",
-          serverName: "type_id",
-          option: [
-            { label: "已匹配", value: 1 },
-            { label: "未匹配", value: 0 },
-          ]
-        },
-      ],
-      tableColumns: [
-        { title: "项目编码", key: "type_code", align: "center", minWidth: 140 },
-        { title: "项目名称", key: "type_code", align: "center", minWidth: 140 },
-        { title: "项目简称", key: "type_code", align: "center", minWidth: 140 },
-        { title: "匹配状态", key: "type_code", align: "center", minWidth: 140 },
-        { title: "制单日期", key: "type_code", align: "center", minWidth: 140 },
-        { title: "操作", key: "type_code", align: "center", minWidth: 140 ,solt:'set'},
-      ],
-      tableData: [],
-      pageIndex: 1,
-      pageSize: 10,
-      total: 0,
-    };
-  },
-  methods: {
-    initData() {},
-    changeSize (e) {
-      this.pageSize = e;
-      this.initData()
-    },
-     changePage (e) {
-      this.pageIndex = e;
-      this.initData()
-    },
-  },
-};
-</script>
-<style scoped lang='scss'>
-.weight_memo_content{
-    height: 650px;
-    overflow: auto;
-}
-.content_body_page{
-    margin-top: 10px;
-    text-align: center;
-}
-</style>