|  | @@ -35,8 +35,7 @@
 | 
	
		
			
				|  |  |            <!-- <el-button :size="size" :type="type" @click="check(row)">查看</el-button> -->
 | 
	
		
			
				|  |  |            <!--  判断是否一键采购过 然后展示不同的判断按钮-->
 | 
	
		
			
				|  |  |            <el-button v-if="row.shortcutWarehousingStatus == '1'" :size="size" :type="type"
 | 
	
		
			
				|  |  | -                     :disabled="row.status != '录入' && row.item >= 1"
 | 
	
		
			
				|  |  | -                     @click="$refs.crud.rowDel(row, index)">删除</el-button>
 | 
	
		
			
				|  |  | +            :disabled="row.status != '录入' && row.item >= 1" @click="$refs.crud.rowDel(row, index)">删除</el-button>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |            <el-button v-else :size="size" :type="type"
 | 
	
		
			
				|  |  |              :disabled="row.status != '录入' && row.status != '待确认' && row.item >= 1 || row.numberRows >= 1"
 | 
	
	
		
			
				|  | @@ -46,7 +45,7 @@
 | 
	
		
			
				|  |  |            <crop-select v-model="search.corpId" corpType="KH" :refresh="false"></crop-select>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |          <template slot="notCompleteSearch">
 | 
	
		
			
				|  |  | -          <el-checkbox v-model="search.notComplete" true-label="1" ></el-checkbox>
 | 
	
		
			
				|  |  | +          <el-checkbox v-model="search.notComplete" true-label="1"></el-checkbox>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |          <template slot-scope="{type,size,row,$index}" slot="menuLeft">
 | 
	
		
			
				|  |  |            <el-button icon="el-icon-plus" type="primary" :size="size" @click="detailsOpen = true">新建订单</el-button>
 | 
	
	
		
			
				|  | @@ -71,7 +70,7 @@
 | 
	
		
			
				|  |  |  import { getList, remove, getGoodsInfo } from "@/api/tirePartsMall/salesManagement/saleOrder";
 | 
	
		
			
				|  |  |  import detailsPage from "./detailsPage"
 | 
	
		
			
				|  |  |  import { getDetails } from "@/api/tirePartsMall/salesManagement/saleOrder";
 | 
	
		
			
				|  |  | -import {getToken} from "@/util/auth";
 | 
	
		
			
				|  |  | +import { getToken } from "@/util/auth";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: "index",
 | 
	
	
		
			
				|  | @@ -82,7 +81,7 @@ export default {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  |        orderStatusList: [],
 | 
	
		
			
				|  |  |        actualStatusList: [],
 | 
	
		
			
				|  |  | -      returnStatusList:[],
 | 
	
		
			
				|  |  | +      returnStatusList: [],
 | 
	
		
			
				|  |  |        detailsOpen: false,
 | 
	
		
			
				|  |  |        loading: false,
 | 
	
		
			
				|  |  |        search: {},
 | 
	
	
		
			
				|  | @@ -303,8 +302,8 @@ export default {
 | 
	
		
			
				|  |  |            // type: 'select',
 | 
	
		
			
				|  |  |            search: true,
 | 
	
		
			
				|  |  |            overHidden: true,
 | 
	
		
			
				|  |  | -          cell:true,
 | 
	
		
			
				|  |  | -          width:140,
 | 
	
		
			
				|  |  | +          cell: true,
 | 
	
		
			
				|  |  | +          width: 140,
 | 
	
		
			
				|  |  |            // filterable:true,
 | 
	
		
			
				|  |  |            // remote:true,
 | 
	
		
			
				|  |  |            // props: {
 | 
	
	
		
			
				|  | @@ -355,18 +354,18 @@ export default {
 | 
	
		
			
				|  |  |            label: '数量',
 | 
	
		
			
				|  |  |            prop: "goodsTotalNum",
 | 
	
		
			
				|  |  |            overHidden: true,
 | 
	
		
			
				|  |  | -        }, 
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  |          // {
 | 
	
		
			
				|  |  |          //   label: '金额',
 | 
	
		
			
				|  |  |          //   prop: "totalMoney",
 | 
	
		
			
				|  |  |          //   overHidden: true,
 | 
	
		
			
				|  |  |          // }, 
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  | -                label: '已付金额',
 | 
	
		
			
				|  |  | -                prop: "paymentAmountTl",
 | 
	
		
			
				|  |  | -                disabled: true
 | 
	
		
			
				|  |  | -            }, 
 | 
	
		
			
				|  |  | -            {
 | 
	
		
			
				|  |  | +          label: '已付金额',
 | 
	
		
			
				|  |  | +          prop: "paymentAmountTl",
 | 
	
		
			
				|  |  | +          disabled: true
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  |            label: '状态',
 | 
	
		
			
				|  |  |            prop: "status",
 | 
	
		
			
				|  |  |            search: true,
 | 
	
	
		
			
				|  | @@ -381,7 +380,7 @@ export default {
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |            label: '结算状态',
 | 
	
		
			
				|  |  |            prop: "actualPaymentStatus",
 | 
	
		
			
				|  |  | -          searchProp:'actualPaymentType',
 | 
	
		
			
				|  |  | +          searchProp: 'actualPaymentType',
 | 
	
		
			
				|  |  |            search: true,
 | 
	
		
			
				|  |  |            overHidden: true,
 | 
	
		
			
				|  |  |            type: 'select',
 | 
	
	
		
			
				|  | @@ -416,6 +415,11 @@ export default {
 | 
	
		
			
				|  |  |            overHidden: true,
 | 
	
		
			
				|  |  |          },
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  | +          label: '备注',
 | 
	
		
			
				|  |  | +          prop: "remarks",
 | 
	
		
			
				|  |  | +          overHidden: true,
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  |            label: "制单人",
 | 
	
		
			
				|  |  |            prop: "createUserName",
 | 
	
		
			
				|  |  |            searchProp: "createUser",
 | 
	
	
		
			
				|  | @@ -486,21 +490,21 @@ export default {
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    activated() {
 | 
	
		
			
				|  |  |      setTimeout(() => {
 | 
	
		
			
				|  |  | -      console.log(this.$route.query,400);
 | 
	
		
			
				|  |  | +      console.log(this.$route.query, 400);
 | 
	
		
			
				|  |  |        if (this.$route.query.srcId) {
 | 
	
		
			
				|  |  |          this.$store.commit("IN_LTCG_STATUS");
 | 
	
		
			
				|  |  |          this.editOpen({ id: this.$route.query.srcId }, 1)
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -        // 主页快捷跳转来的 直接打开新建订单
 | 
	
		
			
				|  |  | -        if (this.$route.query.showTrue) {
 | 
	
		
			
				|  |  | -            this.$store.commit("IN_LTCG_STATUS");
 | 
	
		
			
				|  |  | -            this.detailsOpen = true;
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | +      // 主页快捷跳转来的 直接打开新建订单
 | 
	
		
			
				|  |  | +      if (this.$route.query.showTrue) {
 | 
	
		
			
				|  |  | +        this.$store.commit("IN_LTCG_STATUS");
 | 
	
		
			
				|  |  | +        this.detailsOpen = true;
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  |        if (this.$route.query.check) {
 | 
	
		
			
				|  |  |          this.editOpen({ id: this.$route.query.check.srcBillId }, 1)
 | 
	
		
			
				|  |  |          this.$store.commit("IN_LTCG_STATUS");
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  | -      if(this.$route.query.type == 'F'){
 | 
	
		
			
				|  |  | +      if (this.$route.query.type == 'F') {
 | 
	
		
			
				|  |  |          this.editOpen({ id: this.$route.query.detail.srcParentId }, 1)
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |        this.detailData = {
 | 
	
	
		
			
				|  | @@ -528,34 +532,34 @@ export default {
 | 
	
		
			
				|  |  |      });
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  | -      // 导出
 | 
	
		
			
				|  |  | -      outExport() {
 | 
	
		
			
				|  |  | -          console.log(this.search,412)
 | 
	
		
			
				|  |  | -          let config = { params: { ...this.search } }
 | 
	
		
			
				|  |  | -          if (config.params) {
 | 
	
		
			
				|  |  | -              for (const propName of Object.keys(config.params)) {
 | 
	
		
			
				|  |  | -                  const value = config.params[propName];
 | 
	
		
			
				|  |  | -                  if (value !== null && typeof (value) !== "undefined") {
 | 
	
		
			
				|  |  | -                      if (value instanceof Array) {
 | 
	
		
			
				|  |  | -                          for (const key of Object.keys(value)) {
 | 
	
		
			
				|  |  | -                              let params = propName + '[' + key + ']';
 | 
	
		
			
				|  |  | -                              config.params[params] = value[key]
 | 
	
		
			
				|  |  | -                          }
 | 
	
		
			
				|  |  | -                          delete config.params[propName]
 | 
	
		
			
				|  |  | -                      }
 | 
	
		
			
				|  |  | -                  }
 | 
	
		
			
				|  |  | +    // 导出
 | 
	
		
			
				|  |  | +    outExport() {
 | 
	
		
			
				|  |  | +      console.log(this.search, 412)
 | 
	
		
			
				|  |  | +      let config = { params: { ...this.search } }
 | 
	
		
			
				|  |  | +      if (config.params) {
 | 
	
		
			
				|  |  | +        for (const propName of Object.keys(config.params)) {
 | 
	
		
			
				|  |  | +          const value = config.params[propName];
 | 
	
		
			
				|  |  | +          if (value !== null && typeof (value) !== "undefined") {
 | 
	
		
			
				|  |  | +            if (value instanceof Array) {
 | 
	
		
			
				|  |  | +              for (const key of Object.keys(value)) {
 | 
	
		
			
				|  |  | +                let params = propName + '[' + key + ']';
 | 
	
		
			
				|  |  | +                config.params[params] = value[key]
 | 
	
		
			
				|  |  |                }
 | 
	
		
			
				|  |  | +              delete config.params[propName]
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  | -          config.params.bsType = 'CG'
 | 
	
		
			
				|  |  | -          console.log(config,427)
 | 
	
		
			
				|  |  | -          const routeData = this.$router.resolve({
 | 
	
		
			
				|  |  | -              path: '/api/blade-sales-part/order/listExport',      //跳转目标下载地址
 | 
	
		
			
				|  |  | -              query: {
 | 
	
		
			
				|  |  | -                  ...config.params    //括号内是要传递给新窗口的参数
 | 
	
		
			
				|  |  | -              }
 | 
	
		
			
				|  |  | -          })
 | 
	
		
			
				|  |  | -          window.open(routeData.href.slice(1, routeData.href.length) + '&' + `${this.website.tokenHeader}=${getToken()}`);
 | 
	
		
			
				|  |  | -      },
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      }
 | 
	
		
			
				|  |  | +      config.params.bsType = 'CG'
 | 
	
		
			
				|  |  | +      console.log(config, 427)
 | 
	
		
			
				|  |  | +      const routeData = this.$router.resolve({
 | 
	
		
			
				|  |  | +        path: '/api/blade-sales-part/order/listExport',      //跳转目标下载地址
 | 
	
		
			
				|  |  | +        query: {
 | 
	
		
			
				|  |  | +          ...config.params    //括号内是要传递给新窗口的参数
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +      window.open(routeData.href.slice(1, routeData.href.length) + '&' + `${this.website.tokenHeader}=${getToken()}`);
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  |      check(row) {
 | 
	
		
			
				|  |  |        this.form = row
 | 
	
		
			
				|  |  |        this.detailsOpen = true
 | 
	
	
		
			
				|  | @@ -606,9 +610,9 @@ export default {
 | 
	
		
			
				|  |  |        }).catch(() => {
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -      // 点击搜索触发
 | 
	
		
			
				|  |  | +    // 点击搜索触发
 | 
	
		
			
				|  |  |      searchChange(params, done) {
 | 
	
		
			
				|  |  | -        this.page.currentPage = 1
 | 
	
		
			
				|  |  | +      this.page.currentPage = 1
 | 
	
		
			
				|  |  |        done();
 | 
	
		
			
				|  |  |        this.onLoad(this.page, params)
 | 
	
		
			
				|  |  |      },
 | 
	
	
		
			
				|  | @@ -643,7 +647,7 @@ export default {
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      expandChange(row) {
 | 
	
		
			
				|  |  |        if (!row.itemData) {
 | 
	
		
			
				|  |  | -        getDetails({ id: row.id})
 | 
	
		
			
				|  |  | +        getDetails({ id: row.id })
 | 
	
		
			
				|  |  |            .then(res => {
 | 
	
		
			
				|  |  |              this.dataList[row.$index].itemData = res.data.data.orderItemsList;
 | 
	
		
			
				|  |  |            })
 | 
	
	
		
			
				|  | @@ -686,7 +690,8 @@ export default {
 | 
	
		
			
				|  |  |    color: #fff;
 | 
	
		
			
				|  |  |    font-size: 10px;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  /deep/ .el-col-md-8 {
 | 
	
		
			
				|  |  | -    width: 24.33333%;
 | 
	
		
			
				|  |  | +  width: 24.33333%;
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  </style>
 |