demo20230512/Browser_Local/js/LCA/LCA.Config.js
2023-05-12 10:20:28 +08:00

71 lines
2.8 KiB
JavaScript

/*
Logic Solution
WeeeCarbonFootprint
Survey Order Config
*/
var arr = window.location.href.split("/");
if (arr[3].indexOf('app') == 0)
baseUrl = '';
else
baseUrl = '/' + arr[3];
//console.log('LCA.config.js', baseUrl);
angular.module('LCA.Config', [])
.constant('SURVEY_ORDER_CONFIG', {
})
.factory('LCA_ORDER_TABLE_MODEL', function () {
var tabItems = [
{
currentPage: 1,
totalPage: 1,
searchText: "",
title: '我的盤查',
name: 'Index',
templateUrl: baseUrl+'/Partials/LCA-Index',
selected: true,
datas: [],
tableHeader: [
{ "Name": "發送時間", "Key": "CreatedDate", "Width": 255 },
{ "Name": "盤查類別", "Key": "LCATypeDisplayName", "Width": 155 },
{ "Name": "盤查說明", "Key": "Description", "Width": 220 },
{ "Name": "盤查產品名稱", "Key": "ProductName", "Width": 225 },
{ "Name": "盤查狀態", "Key": "StatusDisplayName", "Width": 153 }]
},
{
currentPage: 1,
totalPage: 1,
searchText: "",
title: '接收盤查指令',
name: 'Receive',
templateUrl: baseUrl+'/Partials/LCA-Receive',
selected: false,
datas: [],
radios: ["全部", "已回覆", "未回覆"],
tableHeader: [
{ "Name": "時間", "Key": "CreatedDate", "Width": 312 },
{ "Name": "盤查來源", "Key": "SenderCompanyName", "Width": 312 },
{ "Name": "欲盤查產品名稱", "Key": "ProductName", "Width": 312 },
{ "Name": "回覆方式", "Key": "Start", "Width": 132 }]
},
{
currentPage: 1,
totalPage: 1,
searchText: "",
title: '發送的盤查指令',
name: 'Send',
templateUrl: baseUrl+'/Partials/LCA-Send',
selected: false,
datas: [],
radios: ["全部", "已回覆", "未回覆"],
tableHeader: [
{ "Name": "發送時間", "Key": "CreatedDate", "Width": 280 },
{ "Name": "最後回覆時間", "Key": "ReplyDate", "Width": 280 },
{ "Name": "分配原則", "Key": "Distribute", "Width": 210 },
{ "Name": "盤查對象", "Key": "SenderCompanyName", "Width": 170 },
{ "Name": "盤查狀態", "Key": "Status", "Width": 128 }]
}];
return {
tabs: tabItems,
}
});