admin
2020-11-10 e130e13ef0cc4a827aa2c8d9e47d619a4cea40d0
订单筛选改变
6个文件已修改
1个文件已添加
1014 ■■■■ 已修改文件
childPath/dingDan/dingDan.html 607 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
childPath/dingDan/dingDan_taoBao_wq.html 285 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
childPath/system/taobaoAuthLink.html 99 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/admin-creat.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/pageHeader.xml 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
menu.json 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
window/0phone/tiXian.html 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
childPath/dingDan/dingDan.html
@@ -41,7 +41,9 @@
                    <!-- 关闭按钮 -->
                    <div class="admin-btn-arcS admin-tan-close" @click="fileWork.action_close()"><i class="fi fi-no"></i></div>
                    <!-- 标题 -->
                    <div class="fboxRow Xcenter Ycenter admin-margin"><div class="font18 font-blue">文件上传</div></div>
                    <div class="fboxRow Xcenter Ycenter admin-margin">
                        <div class="font18 font-blue">文件上传</div>
                    </div>
                    <!-- 文件选择 -->
                    <div class="fboxRow Xcenter Ycenter admin-margin">
                        <div class="font-cyan">订单表格:</div>
@@ -63,107 +65,224 @@
<script type="text/javascript">
    // 文件上传vue
    var vm_file = null;
    
    // ==================================================================================== 页面数据
    doui.onReady({
        success: function ()
        {
        success: function() {
            // ----------------------------------------------------- 顶部
            // 创建顶部dom
            adminDom.header.creat({ el: "#thisHeader", });
            adminDom.header.creat({
                el: "#thisHeader",
            });
            // 输入类型
            adminDom.header.select({
                show: true,
                list: [
                    { key: "1", value: "订单号" },
                    { key: "2", value: "用户ID" },
                list: [{
                        key: "1",
                        value: "订单号"
                    },
                    {
                        key: "2",
                        value: "用户ID"
                    },
                ],
            });
            // 输入搜索
            adminDom.header.input({ placeholder: "根据选择填写", })
            // 筛选项
            adminDom.header.screen({
                show: true,
                list: [
            adminDom.header.input({
                placeholder: "根据选择填写",
            })
                    
                    {
            var choiceList = [{
                        title: "订单类型", 
                        muchCheck: false, // 是否可以多选
                        child: [
                            { key: [1], value: "自购订单", check: false },
                            { key: [2], value: "分享订单", check: false },
                            { key: [3], value: "团队订单", check: false },
                    muchCheck: true, // 是否可以多选
                    child: [{
                            key: [1],
                            value: "自购订单",
                            check: false
                        },
                        {
                            key: [2],
                            value: "分享订单",
                            check: false
                        },
                        {
                            key: [3],
                            value: "团队订单",
                            check: false
                        },
                        ],
                        input: { type: "number", num: 0 },
                    input: {
                        type: "number",
                        num: 0
                    },
                    },
                    {
                        title: "订单状态", 
                        muchCheck: false, // 是否可以多选
                        child: [
                            { key: [1], value: "有效", check: false },
                            { key: [2], value: "售后", check: false },
                            { key: [3], value: "失效", check: false },
                    child: [{
                            key: [1],
                            value: "有效",
                            check: false
                        },
                        {
                            key: [2],
                            value: "售后",
                            check: false
                        },
                        {
                            key: [3],
                            value: "失效",
                            check: false
                        },
                        ],
                        input: { type: "number", num: 0 },
                    input: {
                        type: "number",
                        num: 0
                    },
                    },
                    {
                        title: "到账状态", 
                        muchCheck: false, // 是否可以多选
                        child: [
                            { key: [1], value: "未到账", check: false },
                            { key: [2], value: "已到账", check: false },
                            { key: [3], value: "已失效", check: false },
                    child: [{
                            key: [1],
                            value: "未到账",
                            check: false
                        },
                        {
                            key: [2],
                            value: "已到账",
                            check: false
                        },
                        {
                            key: [3],
                            value: "已失效",
                            check: false
                        },
                        ],
                        input: { type: "number", num: 0 },
                    input: {
                        type: "number",
                        num: 0
                    },
                    },
                
                    {
                        title: "支付时间", 
                        muchCheck: false, // 是否可以多选
                        child: [],
                        input: { type: "date", num: 2 },
                    input: {
                        type: "date",
                        num: 2
                    },
                    },
                    {
                        title: "渠道来源", 
                        muchCheck: false, // 是否可以多选
                        child: [
                            { key: [1], value: "淘宝", check: false },
                            { key: [2], value: "京东", check: false },
                            { key: [3], value: "拼多多", check: false },
                    child: [{
                            key: [1],
                            value: "淘宝",
                            check: false
                        },
                        {
                            key: [2],
                            value: "京东",
                            check: false
                        },
                        {
                            key: [3],
                            value: "拼多多",
                            check: false
                        },
                        {
                            key: [4],
                            value: "唯品会",
                            check: false
                        },
                        {
                            key: [5],
                            value: "苏宁",
                            check: false
                        },
                        ],
                        input: { type: "number", num: 0 },
                    input: {
                        type: "number",
                        num: 0
                    },
                    },
                    {
                        title: "订单风险", 
                        muchCheck: false, // 是否可以多选
                        child: [
                            { key: [1], value: "同商品", check: false },
                            { key: [2], value: "同店铺", check: false },
                            { key: [3], value: "高额返利", check: false },
                    child: [{
                            key: [1],
                            value: "同商品",
                            check: false
                        },
                        {
                            key: [2],
                            value: "同店铺",
                            check: false
                        },
                        {
                            key: [3],
                            value: "高额返利",
                            check: false
                        },
                        ],
                        input: { type: "number", num: 0 },
                    input: {
                        type: "number",
                        num: 0
                    },
                    },
                    {
                        title: "付款金额(最大值)", 
                        muchCheck: false, // 是否可以多选
                        child: [],
                        input: { type: "number", num: 1 },
                    input: {
                        type: "number",
                        num: 1,
                        value:''
                    },
                ],
                }
            ];
            // 筛选项
            adminDom.header.screen({
                show: true,
                list: choiceList,
                btns:[{name:'刷单风险',actionClick:function(){
                        choiceList[0].child[0].check=true;
                        choiceList[0].child[1].check=true
                        choiceList[1].child[0].check=true;
                        choiceList[4].child[0].check=true;
                        choiceList[6].input.value="9";
                }},{name:'清除所选',actionClick:function(){
                    choiceList[0].child[0].check=false;
                    choiceList[0].child[1].check=false
                    choiceList[1].child[0].check=false;
                    choiceList[4].child[0].check=false;
                    choiceList[6].input.value="";
                }}]
            });
            // setTimeout(function(){
            //     choiceList[0].child[0].check=true;
            // },10000);
            
            
            // ----------------------------------------------------- 表格
            // 创建表格dom
            adminDom.table.creat({
                el: "#thisTable",
                touchSearch: function(optC)
                {
                touchSearch: function(optC) {
                    // 发起请求
                    doui.showLoading({ content: "加载列表" });
                    doui.showLoading({
                        content: "加载列表"
                    });
                    var types=optC.screen[0].result;
                    console.log("订单类型:"+optC.screen[0].result);
                    doui.request({
                        type: "jsonp",
                        url: gethttp() + "/admin/new/api/v1/order/getUserOrderList",
@@ -172,7 +291,7 @@
                            pageSize: optC.table.pageSize, // 每页数量
                            keyType: optC.select.result, // 搜索类型
                            key: optC.input[0].result, // 搜索关键字
                            type: optC.screen[0].result[0], // 订单类型
                            type: types, // 订单类型
                            orderState: optC.screen[1].result[0], // 订单状态
                            state: optC.screen[2].result[0], // 到账状态
                            startTime: optC.screen[3].result[0], // 时间最小
@@ -181,104 +300,201 @@
                            riskType:optC.screen[5].result[0],
                            payment: optC.screen[6].result[0], // 付款金额
                        },
                        success: function (res)
                        {
                        success: function(res) {
                            doui.hideLoading();
                            if (res.code != 0) { doui.showToast({ content: res.msg }); }
                            else
                            {
                            if (res.code != 0) {
                                doui.showToast({
                                    content: res.msg
                                });
                            } else {
                                // 申明 表格内容数据
                                var mo_tr = []; // tr组
                                for (var i = 0, mo = res.data.result_list; i < mo.length; i++)
                                {
                                for (var i = 0, mo = res.data.result_list; i < mo.length; i++) {
                                    // 当前行
                                    var thatTr = {
                                        check: false,
                                        td: [
                                            { title: "商品图片", key: mo[i].commonOrderGoods?mo[i].commonOrderGoods.picture:"", value: mo[i].commonOrderGoods?mo[i].commonOrderGoods.picture:"", dataType: "img" },
                                            { title: "商品标题", key:mo[i].commonOrderGoods.goodsId, value: mo[i].commonOrderGoods.title ,dataType:'link'},
                                            { title: "订单号", key: mo[i].orderNo, value: mo[i].orderNo },
                                            { title: "订单类型", key: mo[i].hongBaoType, value: mo[i].hongBaoType },
                                            { title: "支付金额", key: mo[i].payment, value: "¥"+mo[i].payment },
                                            { title: "支付时间", key: mo[i].downTime, value: mo[i].downTime, "class": "font13 font-gray" },
                                            { title: "订单状态", key: mo[i].state, value: mo[i].state },
                                            { title: "收货时间", key: mo[i].receiveTime, value: mo[i].receiveTime, "class": "font13 font-gray" },
                                            { title: "收益金额", key: mo[i].hongBao, value: "¥"+mo[i].hongBao },
                                            { title: "收益状态", key: mo[i].hongBaoState, value: mo[i].hongBaoState },
                                            { title: "收益时间", key: mo[i].hongBaoDate, value: mo[i].hongBaoDate, "class": "font13 font-gray" },
                                            { title: "用户头像", key: mo[i].userPortrait, value: mo[i].userPortrait, dataType: "img", "class": "admin-imgS" },
                                            { title: "用户昵称", key: mo[i].userName, value: mo[i].userName },
                                            { title: "用户ID", key: mo[i].userId, value: mo[i].userId },
                                            { title: "直接邀请人", key: mo[i].levelOneId, value: "ID:"+mo[i].levelOneId+"  ¥"+mo[i].levelOneMoney },
                                            { title: "间接邀请人", key: mo[i].levelTwoId, value: "ID:"+mo[i].levelTwoId+"  ¥"+mo[i].levelTwoMoney },
                                            { title: "一级分类", key:mo[i].commonOrderGoods.category1, value: mo[i].commonOrderGoods.category1},
                                        td: [{
                                                title: "商品图片",
                                                key: mo[i].commonOrderGoods ? mo[i].commonOrderGoods.picture : "",
                                                value: mo[i].commonOrderGoods ? mo[i].commonOrderGoods.picture : "",
                                                dataType: "img"
                                            },
                                            {
                                                title: "商品标题",
                                                key: mo[i].commonOrderGoods.goodsId,
                                                value: mo[i].commonOrderGoods.title,
                                                dataType: 'link'
                                            },
                                            {
                                                title: "订单号",
                                                key: mo[i].orderNo,
                                                value: mo[i].orderNo
                                            },
                                            {
                                                title: "订单类型",
                                                key: mo[i].hongBaoType,
                                                value: mo[i].hongBaoType
                                            },
                                            {
                                                title: "支付金额",
                                                key: mo[i].payment,
                                                value: "¥" + mo[i].payment
                                            },
                                            {
                                                title: "支付时间",
                                                key: mo[i].downTime,
                                                value: mo[i].downTime,
                                                "class": "font13 font-gray"
                                            },
                                            {
                                                title: "订单状态",
                                                key: mo[i].state,
                                                value: mo[i].state
                                            },
                                            {
                                                title: "收货时间",
                                                key: mo[i].receiveTime,
                                                value: mo[i].receiveTime,
                                                "class": "font13 font-gray"
                                            },
                                            {
                                                title: "收益金额",
                                                key: mo[i].hongBao,
                                                value: "¥" + mo[i].hongBao
                                            },
                                            {
                                                title: "收益状态",
                                                key: mo[i].hongBaoState,
                                                value: mo[i].hongBaoState
                                            },
                                            {
                                                title: "收益时间",
                                                key: mo[i].hongBaoDate,
                                                value: mo[i].hongBaoDate,
                                                "class": "font13 font-gray"
                                            },
                                            {
                                                title: "用户头像",
                                                key: mo[i].userPortrait,
                                                value: mo[i].userPortrait,
                                                dataType: "img",
                                                "class": "admin-imgS"
                                            },
                                            {
                                                title: "用户昵称",
                                                key: mo[i].userName,
                                                value: mo[i].userName
                                            },
                                            {
                                                title: "用户ID",
                                                key: mo[i].userId,
                                                value: mo[i].userId
                                            },
                                            {
                                                title: "直接邀请人",
                                                key: mo[i].levelOneId,
                                                value: "ID:" + mo[i].levelOneId + "  ¥" + mo[i].levelOneMoney
                                            },
                                            {
                                                title: "间接邀请人",
                                                key: mo[i].levelTwoId,
                                                value: "ID:" + mo[i].levelTwoId + "  ¥" + mo[i].levelTwoMoney
                                            },
                                            {
                                                title: "一级分类",
                                                key: mo[i].commonOrderGoods.category1,
                                                value: mo[i].commonOrderGoods.category1
                                            },
                                        ],
                                    };
                                    // 订单类型
                                    if (thatTr.td[3].key == 1) { thatTr.td[3].value = "自购"; thatTr.td[3]["class"] = "font-blue"; }
                                    else if (thatTr.td[3].key == 2) { thatTr.td[3].value = "分享"; thatTr.td[3]["class"] = "font-green"; }
                                    else if (thatTr.td[3].key == 3) { thatTr.td[3].value = "团队"; thatTr.td[3]["class"] = "font-green"; }
                                    if (thatTr.td[3].key == 1) {
                                        thatTr.td[3].value = "自购";
                                        thatTr.td[3]["class"] = "font-blue";
                                    } else if (thatTr.td[3].key == 2) {
                                        thatTr.td[3].value = "分享";
                                        thatTr.td[3]["class"] = "font-green";
                                    } else if (thatTr.td[3].key == 3) {
                                        thatTr.td[3].value = "团队";
                                        thatTr.td[3]["class"] = "font-green";
                                    }
                                    //渠道标识
                                    
                                    
                                    // 订单号分析
                                    if (i >= 1)
                                    {
                                        if (thatTr.td[2].key == mo[i-1].orderNo) { thatTr.td[2].value = "(同上)"; thatTr.td[2]["class"] = "font-gray"; }
                                    if (i >= 1) {
                                        if (thatTr.td[2].key == mo[i - 1].orderNo) {
                                            thatTr.td[2].value = "(同上)";
                                            thatTr.td[2]["class"] = "font-gray";
                                        }
                                    }
                                    //商品链接
                                    if(mo[i].sourceType==1)
                                    {
                                    if (mo[i].sourceType == 1) {
                                        thatTr.td[3].value=thatTr.td[3].value+" (淘宝)";
                                        thatTr.td[1].key="https://detail.tmall.com/item.htm?id="+thatTr.td[1].key;
                                    }
                                    else if(mo[i].sourceType==2)
                                    {
                                    } else if (mo[i].sourceType == 2) {
                                        thatTr.td[3].value=thatTr.td[3].value+" (京东)";
                                        thatTr.td[1].key="https://item.jd.com/"+thatTr.td[1].key+".html";
                                    }
                                    else if(mo[i].sourceType==3)
                                    {
                                    } else if (mo[i].sourceType == 3) {
                                        thatTr.td[3].value=thatTr.td[3].value+" (拼多多)";
                                        thatTr.td[1].key="http://yangkeduo.com/goods.html?goods_id="+thatTr.td[1].key;
                                    }
                                    
                                    // 订单状态
                                    if (thatTr.td[6].key == 1) { thatTr.td[6].value = "已付款"; thatTr.td[6]["class"] = "font-orange"; }
                                    else if (thatTr.td[6].key == 2) { thatTr.td[6].value = "已收货"; thatTr.td[6]["class"] = "font-green"; }
                                    else if (thatTr.td[6].key == 3) {
                                    if (thatTr.td[6].key == 1) {
                                        thatTr.td[6].value = "已付款";
                                        thatTr.td[6]["class"] = "font-orange";
                                    } else if (thatTr.td[6].key == 2) {
                                        thatTr.td[6].value = "已收货";
                                        thatTr.td[6]["class"] = "font-green";
                                    } else if (thatTr.td[6].key == 5) {
                                        thatTr.td[6].value = "已收货,待入账";
                                        thatTr.td[6]["class"] = "font-green";
                                    } else if (thatTr.td[6].key == 3) {
                                        var drawbackMoney="";
                                        if(mo[i].weiQuanBackMoney!=null&&mo[i].weiQuanBackMoney!=undefined)
                                        {
                                            if(mo[i].weiQuanBackMoney>0)
                                            {
                                        if (mo[i].weiQuanBackMoney != null && mo[i].weiQuanBackMoney != undefined) {
                                            if (mo[i].weiQuanBackMoney > 0) {
                                                drawbackMoney="已扣除:"+mo[i].weiQuanBackMoney;
                                            }else{
                                                drawbackMoney="未扣除:"+Math.abs(mo[i].weiQuanBackMoney);
                                            }
                                        }
                                        
                                        thatTr.td[6].value = "订单售后#"+ mo[i].weiQuanState+"#"+ drawbackMoney   ; thatTr.td[6]["class"] = "font-red";
                                        thatTr.td[6].value = "订单售后#" + mo[i].weiQuanState + "#" + drawbackMoney;
                                        thatTr.td[6]["class"] = "font-red";
                                    } else if (thatTr.td[6].key == 4) {
                                        thatTr.td[6].value = "已失效";
                                        thatTr.td[6]["class"] = "font-gray";
                                    }
                                    else if (thatTr.td[6].key == 4) { thatTr.td[6].value = "已失效"; thatTr.td[6]["class"] = "font-gray"; }
                                    
                                    if(mo[i].otherState==1)
                                    {
                                    if (mo[i].otherState == 1) {
                                        thatTr.td[6].value=thatTr.td[6].value+"(免单中)";
                                        thatTr.td[6]["class"] = "font-orange";
                                    }else if(mo[i].otherState==2)
                                    {
                                    } else if (mo[i].otherState == 2) {
                                        thatTr.td[6].value=thatTr.td[6].value+"(免单成功)";
                                        thatTr.td[6]["class"] = "font-orange";
                                    }
                                    
                                    // 收益状态
                                    if (thatTr.td[9].key == 1) { thatTr.td[9].value = "未到账"; thatTr.td[9]["class"] = "font-orange"; }
                                    else if (thatTr.td[9].key == 2) { thatTr.td[9].value = "已到账"; thatTr.td[9]["class"] = "font-green"; }
                                    else if (thatTr.td[9].key == 3) { thatTr.td[9].value = "已失效"; thatTr.td[9]["class"] = "font-gray"; }
                                    if (thatTr.td[9].key == 1) {
                                        thatTr.td[9].value = "未到账";
                                        thatTr.td[9]["class"] = "font-orange";
                                    } else if (thatTr.td[9].key == 2) {
                                        thatTr.td[9].value = "已到账";
                                        thatTr.td[9]["class"] = "font-green";
                                    } else if (thatTr.td[9].key == 3) {
                                        thatTr.td[9].value = "已失效";
                                        thatTr.td[9]["class"] = "font-gray";
                                    }
                                    // 受益人分析
                                    if (!thatTr.td[14].key) { thatTr.td[14].value = "(无)"; thatTr.td[14]["class"] = "font-gray"; }
                                    if (!thatTr.td[15].key) { thatTr.td[15].value = "(无)"; thatTr.td[15]["class"] = "font-gray"; }
                                    if (!thatTr.td[14].key) {
                                        thatTr.td[14].value = "(无)";
                                        thatTr.td[14]["class"] = "font-gray";
                                    }
                                    if (!thatTr.td[15].key) {
                                        thatTr.td[15].value = "(无)";
                                        thatTr.td[15]["class"] = "font-gray";
                                    }
                                    
                                    if (mo[i].commonOrderGoods.category3 != null && mo[i].commonOrderGoods.category3.length > 0) {
                                        thatTr.td[16].value = mo[i].commonOrderGoods.category3;
@@ -290,48 +506,139 @@
                                    mo_tr.push(thatTr);
                                }
                                // 更新表格的数据
                                adminDom.table.opt({ pageMax: res.data.pe.totalPage }); // 最大页码
                                adminDom.table.tbody({ tr: mo_tr }); // 内容数据
                                adminDom.table.opt({
                                    pageMax: res.data.pe.totalPage
                                }); // 最大页码
                                adminDom.table.tbody({
                                    tr: mo_tr
                                }); // 内容数据
                            }
                        }
                    });
                }
            });
            // 表格设置
            adminDom.table.opt({ showCheck: false, pageSize: 20, });
            adminDom.table.opt({
                showCheck: false,
                pageSize: 20,
            });
            // 表格头排
            adminDom.table.thead({
                th: [
                    { title: "商品图片", width: "0.6rem", orderUp: "", orderDown: "" },
                    { title: "商品标题", width: "1rem", orderUp: "", orderDown: "" },
                    { title: "订单号", width: "1rem", orderUp: "", orderDown: "" },
                    { title: "订单类型", width: "0.6rem", orderUp: "", orderDown: "" },
                    { title: "支付金额", width: "0.6rem", orderUp: "", orderDown: "" },
                    { title: "支付时间", width: "0.6rem", orderUp: "", orderDown: "" },
                    { title: "订单状态", width: "0.6rem", orderUp: "", orderDown: "" },
                    { title: "收货时间", width: "0.6rem", orderUp: "", orderDown: "" },
                    { title: "收益金额", width: "0.6rem", orderUp: "", orderDown: "" },
                    { title: "收益状态", width: "0.6rem", orderUp: "", orderDown: "" },
                    { title: "收益时间", width: "0.6rem", orderUp: "", orderDown: "" },
                    { title: "用户头像", width: "0.6rem", orderUp: "", orderDown: "" },
                    { title: "用户昵称", width: "0.6rem", orderUp: "", orderDown: "" },
                    { title: "用户ID", width: "0.6rem", orderUp: "", orderDown: "" },
                    { title: "直接邀请人", width: "0.6rem", orderUp: "", orderDown: "" },
                    { title: "间接邀请人", width: "0.6rem", orderUp: "", orderDown: "" },
                    { title: "商品分类", width: "0.6rem", orderUp: "", orderDown: "" },
                th: [{
                        title: "商品图片",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "商品标题",
                        width: "1rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "订单号",
                        width: "1rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "订单类型",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "支付金额",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "支付时间",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "订单状态",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "收货时间",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "收益金额",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "收益状态",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "收益时间",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "用户头像",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "用户昵称",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "用户ID",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "直接邀请人",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "间接邀请人",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "商品分类",
                        width: "0.6rem",
                        orderUp: "",
                        orderDown: ""
                    },
                ]
            });
            // 工具栏
            adminDom.table.tools({
                show: true,
                list: [
                    { "title": "上传订单", "name": "add", "icon": "fi fi-cloud-upload" },
                ],
                touch: function (back)
                {
                list: [{
                    "title": "上传订单",
                    "name": "add",
                    "icon": "fi fi-cloud-upload"
                }, ],
                touch: function(back) {
                    // 上传订单
                    if (back.toolName == "add")
                    {
                    if (back.toolName == "add") {
                        // 显示弹框
                        vm_file.fileWork.show = true;
                    }
@@ -348,14 +655,18 @@
                        show: false, // 是否显示
                        "file": null,
                        // 关闭按钮
                        action_close: function () { vm_file.fileWork["file"] = null; $("#myimg").val(); vm_file.fileWork.show = false; },
                        action_close: function() {
                            vm_file.fileWork["file"] = null;
                            $("#myimg").val();
                            vm_file.fileWork.show = false;
                        },
                        // 文件改变
                        action_change: function () { vm_file.fileWork["file"] = $("#myimg")[0].files[0]; },
                        action_change: function() {
                            vm_file.fileWork["file"] = $("#myimg")[0].files[0];
                        },
                        // 确定上传按钮 点击
                        action_sub: function ()
                        {
                            if (vm_file.fileWork["file"])
                            {
                        action_sub: function() {
                            if (vm_file.fileWork["file"]) {
                                // 发情请求
                                doui.showLoading("正在上传");
                                doui.upload({
@@ -364,17 +675,24 @@
                                        file: vm_file.fileWork["file"],
                                    },
                                    // 进度
                                    progress: function (res) { doui.showLoading("已上传"+res.percentage); },
                                    progress: function(res) {
                                        doui.showLoading("已上传" + res.percentage);
                                    },
                                    // 成功
                                    success: function (res)
                                    {
                                    success: function(res) {
                                        doui.hideLoading();
                                        if (res.code != 0) { doui.showToast(res.msg); }
                                        else { vm_file.fileWork.action_close(); doui.showToast("上传成功"); vm_table.search(); }
                                        if (res.code != 0) {
                                            doui.showToast(res.msg);
                                        } else {
                                            vm_file.fileWork.action_close();
                                            doui.showToast("上传成功");
                                            vm_table.search();
                                        }
                                    },
                                });
                            } else {
                                doui.showToast("请选择文件");
                            }
                            else { doui.showToast("请选择文件"); }
                        },
                    },
                },
@@ -389,5 +707,4 @@
            document.body.style.display = "block";
        }
    });
</script>
childPath/dingDan/dingDan_taoBao_wq.html
@@ -35,6 +35,27 @@
            <!-- =============================================================== 表格 -->
            <div id="thisTable" class="admin-main-overHeader"></div>
            
            <!-- =============================================================== 文件上传 弹框 -->
            <div v-show="fileWork.show" id="fileUpload" class="layer-dark fboxRow Xcenter Ycenter">
                <div class="admin-tan-box" style="height:auto;">
                    <!-- 关闭按钮 -->
                    <div class="admin-btn-arcS admin-tan-close" @click="fileWork.action_close()"><i class="fi fi-no"></i></div>
                    <!-- 标题 -->
                    <div class="fboxRow Xcenter Ycenter admin-margin"><div class="font18 font-blue">文件上传</div></div>
                    <!-- 文件选择 -->
                    <div class="fboxRow Xcenter Ycenter admin-margin">
                        <div class="font-cyan">维权订单表格:</div>
                        <div class="inputShell border-1px border-round" style="width:1.2rem;">
                            <input id="myimg" type="file" accept="application/vnd.ms-excel" @change="fileWork.action_change()"/>
                        </div>
                    </div>
                    <!-- 提交 按钮 -->
                    <div class="fboxRow Xcenter Ycenter admin-margin">
                        <div class="admin-btn-roundL bg-green click-scale" @click="fileWork.action_sub()">确定上传</div>
                    </div>
                </div>
            </div>
        </div>
    </body>
    
@@ -42,27 +63,30 @@
<script type="text/javascript">
    // 文件上传vue
    var vm_file = null;
    
    // ==================================================================================== 页面数据
    doui.onReady({
        success: function ()
        {
        success: function() {
            // ----------------------------------------------------- 顶部
            // 创建顶部dom
            adminDom.header.creat({ el: "#thisHeader", });
            adminDom.header.creat({
                el: "#thisHeader",
            });
            // 输入搜索
            adminDom.header.input({ placeholder: "请填写准确的订单号", })
            adminDom.header.input({
                placeholder: "请填写准确的订单号",
            })
            // ----------------------------------------------------- 表格
            // 创建表格dom
            adminDom.table.creat({
                el: "#thisTable",
                touchSearch: function(optC)
                {
                touchSearch: function(optC) {
                    // 发起请求
                    doui.showLoading({ content: "加载列表" });
                    doui.showLoading({
                        content: "加载列表"
                    });
                    doui.request({
                        type: "jsonp",
                        url: gethttp()+ "/admin/new/api/v1/taobaoOrder/listTaoBaoWQOrder",//gethttp()
@@ -70,70 +94,241 @@
                            pageIndex: optC.table.page, // 页码
                            key: optC.input[0].result, // 搜索关键字
                        },
                        success: function (res)
                        {
                        success: function(res) {
                            doui.hideLoading();
                            if (res.code != 0) { doui.showToast({ content: res.msg }); }
                            else
                            {
                            if (res.code != 0) {
                                doui.showToast({
                                    content: res.msg
                                });
                            } else {
                                // 申明 表格内容数据
                                var mo_tr = []; // tr组
                                for (var i = 0, mo = res.data.result_list; i < mo.length; i++)
                                {
                                for (var i = 0, mo = res.data.result_list; i < mo.length; i++) {
                                    // 当前行
                                    var thatTr = {
                                        check: false,
                                        td: [
                                            { title: "商品标题", key:mo[i].goodsName, value: mo[i].goodsName},
                                            { title: "订单号", key: mo[i].orderId, value: mo[i].orderId },
                                            { title: "子订单号", key: mo[i].orderItemId, value: mo[i].orderItemId },
                                            { title: "售后金额", key: mo[i].money, value: "¥"+ mo[i].money },
                                            { title: "返还给商家金额", key: mo[i].fanMoney, value: "¥"+ mo[i].fanMoney},
                                            { title: "售后状态", key: mo[i].state, value: mo[i].state },
                                            { title: "结算时间", key: mo[i].jieSuanTime, value: mo[i].jieSuanTime },
                                            { title: "售后时间", key: mo[i].weiQuanTime, value: mo[i].weiQuanTime },
                                            { title: "售后完成时间", key: mo[i].weiQuanFinishTime, value:mo[i].weiQuanFinishTime },
                                            { title: "本地创建时间", key: mo[i].createTime, value: mo[i].createTime },
                                            { title: "本地更新时间", key: mo[i].updateTime, value: mo[i].updateTime },
                                        td: [{
                                                title: "商品标题",
                                                key: mo[i].goodsName,
                                                value: mo[i].goodsName
                                            },
                                            {
                                                title: "订单号",
                                                key: mo[i].orderId,
                                                value: mo[i].orderId
                                            },
                                            {
                                                title: "子订单号",
                                                key: mo[i].orderItemId,
                                                value: mo[i].orderItemId
                                            },
                                            {
                                                title: "售后金额",
                                                key: mo[i].money,
                                                value: "¥" + mo[i].money
                                            },
                                            {
                                                title: "返还给商家金额",
                                                key: mo[i].fanMoney,
                                                value: "¥" + mo[i].fanMoney
                                            },
                                            {
                                                title: "售后状态",
                                                key: mo[i].state,
                                                value: mo[i].state
                                            },
                                            {
                                                title: "结算时间",
                                                key: mo[i].jieSuanTime,
                                                value: mo[i].jieSuanTime
                                            },
                                            {
                                                title: "售后时间",
                                                key: mo[i].weiQuanTime,
                                                value: mo[i].weiQuanTime
                                            },
                                            {
                                                title: "售后完成时间",
                                                key: mo[i].weiQuanFinishTime,
                                                value: mo[i].weiQuanFinishTime
                                            },
                                            {
                                                title: "本地创建时间",
                                                key: mo[i].createTime,
                                                value: mo[i].createTime
                                            },
                                            {
                                                title: "本地更新时间",
                                                key: mo[i].updateTime,
                                                value: mo[i].updateTime
                                            },
                                        ],
                                    };
                                    
                                    
                                    if(thatTr.td[4].key==null||thatTr.td[4].key==''||thatTr.td[4].key==undefined){thatTr.td[4].value="(暂无)" }
                                    if(thatTr.td[8].key==null||thatTr.td[8].key==''||thatTr.td[8].key==undefined){thatTr.td[8].value="(暂无)" }
                                    if (thatTr.td[4].key == null || thatTr.td[4].key == '' || thatTr.td[4].key == undefined) {
                                        thatTr.td[4].value = "(暂无)"
                                    }
                                    if (thatTr.td[8].key == null || thatTr.td[8].key == '' || thatTr.td[8].key == undefined) {
                                        thatTr.td[8].value = "(暂无)"
                                    }
                                    // 将当前行放入tr组
                                    mo_tr.push(thatTr);
                                }
                                // 更新表格的数据
                                adminDom.table.opt({ pageMax: res.data.pe.totalPage }); // 最大页码
                                adminDom.table.tbody({ tr: mo_tr }); // 内容数据
                                adminDom.table.opt({
                                    pageMax: res.data.pe.totalPage
                                }); // 最大页码
                                adminDom.table.tbody({
                                    tr: mo_tr
                                }); // 内容数据
                            }
                        }
                    });
                }
            });
            // 表格设置
            adminDom.table.opt({ showCheck: false, pageSize: 20, });
            adminDom.table.opt({
                showCheck: false,
                pageSize: 20,
            });
            // 表格头排
            adminDom.table.thead({
                th: [
                    { title: "商品标题", width: "", orderUp: "", orderDown: "" },
                    { title: "订单号", width: "", orderUp: "", orderDown: "" },
                    { title: "子订单号", width: "", orderUp: "", orderDown: "" },
                    { title: "售后金额", width: "", orderUp: "", orderDown: "" },
                    { title: "返还给商家金额", width: "", orderUp: "", orderDown: "" },
                    { title: "售后状态", width: "", orderUp: "", orderDown: "" },
                    { title: "结算时间", width: "", orderUp: "", orderDown: "" },
                    { title: "售后时间", width: "", orderUp: "", orderDown: "" },
                    { title: "售后完成时间", width: "", orderUp: "", orderDown: "" },
                    { title: "本地创建时间", width: "", orderUp: "", orderDown: "" },
                    { title: "本地更新时间", width: "", orderUp: "", orderDown: "" }
                th: [{
                        title: "商品标题",
                        width: "",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "订单号",
                        width: "",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "子订单号",
                        width: "",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "售后金额",
                        width: "",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "返还给商家金额",
                        width: "",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "售后状态",
                        width: "",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "结算时间",
                        width: "",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "售后时间",
                        width: "",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "售后完成时间",
                        width: "",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "本地创建时间",
                        width: "",
                        orderUp: "",
                        orderDown: ""
                    },
                    {
                        title: "本地更新时间",
                        width: "",
                        orderUp: "",
                        orderDown: ""
                    }
                ]
            });
            // 工具栏
            adminDom.table.tools({
                show: true,
                list: [{
                    "title": "上传维权订单",
                    "name": "add",
                    "icon": "fi fi-cloud-upload"
                }, ],
                touch: function(back) {
                    // 更新订单
                    if (back.toolName == "add") {
                        // 显示弹框
                        vm_file.fileWork.show = true;
                    }
                },
            });
            // ----------------------------------------------------- 文件上传弹框
            vm_file = new Vue({
                el: "#fileUpload",
                data: {
                    // 文件工作
                    fileWork: {
                        show: false, // 是否显示
                        "file": null,
                        // 关闭按钮
                        action_close: function () { vm_file.fileWork["file"] = null; $("#myimg").val(); vm_file.fileWork.show = false; },
                        // 文件改变
                        action_change: function () { vm_file.fileWork["file"] = $("#myimg")[0].files[0]; },
                        // 确定上传按钮 点击
                        action_sub: function ()
                        {
                            if (vm_file.fileWork["file"])
                            {
                                // 发情请求
                                doui.showLoading("正在上传");
                                doui.upload({
                                    url: gethttp() + "/admin/new/api/v1/taobaoOrder/uploadWQOrderFile",
                                    data: {
                                        file: vm_file.fileWork["file"],
                                    },
                                    // 进度
                                    progress: function (res) { doui.showLoading("已上传"+res.percentage); },
                                    // 成功
                                    success: function (res)
                                    {
                                        doui.hideLoading();
                                        if (res.code != 0) { doui.showToast(res.msg); }
                                        else { vm_file.fileWork.action_close(); doui.showToast("上传成功"); vm_table.search(); }
                                    },
                                });
                            }
                            else { doui.showToast("请选择文件"); }
                        },
                    },
                },
            });
            // 模拟搜索点击
            vm_table.search();
            document.body.style.display = "block";
        }
    });
</script>
childPath/system/taobaoAuthLink.html
New file
@@ -0,0 +1,99 @@
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="chrome=1" />
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <title>系统转链</title>
        <link rel="stylesheet" type="text/css" href="../../css/doui.min.css" />
        <script src="../../js/doui.min.js" type="text/javascript" charset="utf-8"></script>
        <script src="../../js/requestHost.js" type="text/javascript" charset="utf-8"></script>
        <link rel="stylesheet" type="text/css" href="../../layui/css/layui.css" />
        <script src="../../layui/layui.all.js" type="text/javascript" charset="utf-8"></script>
        <script type="text/javascript">
            doui.importLoad({
                importArray: [
                    // 雷打不动
                    getHostPath() + "js/jquery.min.js",
                    getHostPath() + "js/vue.min.js",
                    // 字体图标
                    getHostPath() + "fontAdmin/iconfont.css",
                    getHostPath() + "font/iconfont.css",
                    // dom模板
                    getHostPath() + "css/admin-all.css",
                    getHostPath() + "js/admin-creat.js",
                ],
            });
        </script>
    </head>
    <body class="fontPC" style="padding-top: 0.2rem;">
        <form class="layui-form" action="">
            <div class="layui-form-item">
                <label class="layui-form-label">用户ID</label>
                <div class="layui-input-block">
                    <input type="text" name="uid" required lay-verify="required" placeholder="请输入用户ID" autocomplete="off" class="layui-input"
                     style="width: 1rem !important;">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">授权链接</label>
                <div class="layui-input-block" style="position: relative;">
                    <textarea name="content" class="layui-textarea" rows="5"></textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </body>
</html>
<script>
    //Demo
    layui.use('form', function() {
        var form = layui.form;
        //监听提交
        form.on('submit(formDemo)', function(data) {
            doui.showLoading("正在获取授权链接...");
            doui.request({
                type: "jsonp",
                url: gethttp() + "/admin/new/api/v1/config/getTaoBaoAuthLink",
                data: data.field,
                success: function(res) {
                    doui.hideLoading();
                    if (res.code != 0) {
                        layer.msg(res.msg);
                    } else {
                        $("textarea").val(res.data.url);
                        doui.showToast("获取成功");
                    }
                }
            });
            return false;
        });
        setTimeout(function() {
            form.render();
        }, 100);
    });
</script>
<script type="text/javascript">
    // ==================================================================================== 页面数据
    doui.onReady({
        success: function() {
        }
    });
</script>
js/admin-creat.js
@@ -128,6 +128,7 @@
                    screen: { 
                        show: false, // 是否显示
                        list: [], // 可选列表
                        btns:[],//按钮列表
                        touch: function () {}, // 事件触发
                        // 展开 / 收起 点击
                        action_show: function () { $(".admin-header-screen").toggleClass("displayNone"); },
@@ -148,6 +149,9 @@
                            var thisScreen = vm_header.resultGet();
                            vm_header.screen.touch(thisScreen.screen);
                        },
                        action_btnClick:function(item){
                            item.actionClick();
                        }
                    },
                },
                // 额外方法
@@ -293,6 +297,7 @@
            if (typeof(objC.show)!="undefined") { vm_header.screen.show = objC.show; }
            if (typeof(objC.list)!="undefined") { vm_header.screen.list = objC.list; }
            if (typeof(objC.touch)!="undefined") { vm_header.screen.touch = objC.touch; }
            if (typeof(objC.btns)!="undefined") { vm_header.screen.btns = objC.btns; }
        },
    },
    
js/pageHeader.xml
@@ -41,11 +41,18 @@
                <div v-if="item.input.num>0" :id="'adminHeaderOpt'+index" class="fboxRow Xstart Ycenter admin-marginLeft">
                    <div v-for="(item2,index2) in item.input.num" class="fboxRow Xstart Ycenter admin-marginRight">
                        <div v-if="index2>=1" class="font-gray admin-marginRight">~</div>
                        <div class="inputShell admin-opt-input"><input :type="item.input.type"/></div>
                        <div class="inputShell admin-opt-input"><input :type="item.input.type" :value="item.input.value!=undefined?item.input.value:''"/></div>
                    </div>
                </div>
            </div>
        </div>
        <!--快捷按钮 -->
        <div v-if="screen.btns!=null && screen.btns.length>0" style="display:flex">
         <div v-for="(item,index) in screen.btns" style="display:flex">
              <div class="admin-opt-xuan btn" style="background:#01AAED;color:white;" @click="screen.action_btnClick(item)">{{item.name}}</div>
         </div>
        </div>
    </div>
    
</div>
menu.json
@@ -560,6 +560,11 @@
                "value": "文案转链",
                "href": "childPath/system/convertLink.html",
                "child": []
            },
            {
                "value": "淘宝授权链接获取",
                "href": "childPath/system/taobaoAuthLink.html",
                "child": []
            }
        ]
    }
window/0phone/tiXian.html
@@ -60,7 +60,9 @@
                            <!--ID-->
                            <div class="font22 font-gray nodeMarginCol">ID:{{item.extract.userInfo.id}}</div>
                        </div>
                        <div class="flex1"></div>
                        <div class="flex1" style="margin-left: 20px;color: gray;margin-top: 10px;">
                            {{item.system}}
                        </div>
                        <!--提现记录-->
                        <!--<div class="fboxRow Xstart Ycenter">
                            <div class="font22 font-gray nodeMarginRow">提现记录</div>