马宇豪
2023-01-05 2e3af9eda26ae2a0334906693243ed16f6485d33
测试
已修改3个文件
35 ■■■■ 文件已修改
config/dev.env.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/filters/index.js 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/purchase/person.vue 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
config/dev.env.js
@@ -13,13 +13,15 @@
  // //  IMG_API: '"http://127.0.0.1:8100/upload/"',
  //    BASE_API: '"http://192.168.0.35:8100"',
// 最新
    BASE_API: '"http://39.104.85.193:4105"',
    IMG_API: '"http://39.104.85.193:4105/upload/"',
      //
      // BASE_API: '"http://192.168.0.29:8100"',
      // IMG_API: '"http://192.168.0.29:8100/upload/"',
    // BASE_API: '"http://39.104.85.193:4105"',
    // IMG_API: '"http://39.104.85.193:4105/upload/"',
      BASE_API: '"http://192.168.0.29:8100"',
      IMG_API: '"http://192.168.0.29:8100/upload/"',
  //    IMG_API: '"http://127.0.0.1:8100/upload/"',
  // IMG_API: '"https://sinanoaq.com:8100/upload/"',
  //   BASE_API: '"http://220.171.99.118:4100"',
src/filters/index.js
@@ -19,6 +19,26 @@
  }
}
export function formatDate(value) {
    if (!value){
        return "---"
    }else{
        let date = new Date(value);
        let month =  (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1);
        let day =  (date.getDate()+1 < 10 ? '0'+(date.getDate()+1) : date.getDate()+1);
        let hours = date.getHours();
        if (hours < 10)
            hours = "0" + hours;
        let minutes = date.getMinutes();
        if (minutes < 10)
            minutes = "0" + minutes;
        let time = date.getFullYear() + "-" + month + "-" + day +
            " " + hours +":"  +  minutes ;
        // + hours + ":" + minutes
        return time;
    }
}
/* 数字 格式化*/
export function numberFormatter(num, digits) {
  const si = [
src/views/purchase/person.vue
@@ -155,6 +155,9 @@
                <el-table-column label="退货数量(挂、个)" prop="returnnum" align="center" width="100">
                </el-table-column>
                <el-table-column label="最近购买时间" prop="saletime" align="center" width="200">
                    <template slot-scope="scope">
                        <span>{{scope.row.saletime | formatDate}}</span>
                    </template>
                </el-table-column>
                <el-table-column label="证件照" align="center">
                    <template slot-scope="scope">
@@ -201,6 +204,7 @@
import {getCityListData, getProvinceListData , } from "../../api/area";
import uploadDialog from "./customerPhoto/index";
import Cookies from "js-cookie";
export default {
    name: "addSelfExam",
    data(){
@@ -312,7 +316,6 @@
            }
            this.listLoading = false
        },
        showPurchaseDetail(val){
            this.$refs.person.openPersonPurchaseDetail(this.listQuery.filter.starttime,this.listQuery.filter.endtime,val.identify,val.companynumber,this.listQuery.filter.directioncode)