From e1ec4e662636af70085e9148c9672e5951d3d568 Mon Sep 17 00:00:00 2001 From: zhangyanpeng <bob.zhang@highdatas.com> Date: 星期五, 02 八月 2024 14:31:57 +0800 Subject: [PATCH] 新增拜访 --- module/system/page/home/page/home_business.html | 165 ++++++++++++++++++++++++++++++++++--------------------- 1 files changed, 102 insertions(+), 63 deletions(-) diff --git a/module/system/page/home/page/home_business.html b/module/system/page/home/page/home_business.html index 3d0921a..136acc0 100644 --- a/module/system/page/home/page/home_business.html +++ b/module/system/page/home/page/home_business.html @@ -2,7 +2,7 @@ <html> <head> <meta charset="utf-8"><meta http-equiv="Expires" content="0"><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-control" content="no-cache"><meta http-equiv="Cache" content="no-cache"> - <title>鍟嗗姟棣栭〉</title> + <title>杩愯惀棣栭〉</title> <script type="text/javascript"> var pageVue = null; @@ -15,7 +15,7 @@ new BasicsVue({ el: "#vbody", data: { - title: "鍟嗗姟棣栭〉", + title: "杩愯惀棣栭〉", tableData: [], dataRequest: [ { @@ -69,12 +69,12 @@ // 棣栭〉妯℃澘鍒楄〃 modulelist: [ - {isshow: "T", code: "M001", title: "鎴戠殑閫氱煡", layout: "left", width: "100%", height: "30%", order_no: 1}, + {isshow: "T", code: "M001", title: "鎴戠殑閫氱煡", layout: "left", width: "100%", height: "40%", order_no: 1}, // {isshow: "T", code: "M002", title: "鎴戠殑鐢宠", layout: "left", width: "50%", height: "30%", order_no: 2}, - {isshow: "T", code: "M003", title: "鎴戠殑鎸囨爣", layout: "left", width: "100%", height: "306px", order_no: 3}, - {isshow: "T", code: "M004", title: "鎴戠殑瀹㈡埛", layout: "left", width: "100%", height: "148px", order_no: 4}, + {isshow: "T", code: "M003", title: "鎴戠殑宸ヤ綔", layout: "left", width: "100%", height: "30%", order_no: 3}, + {isshow: "T", code: "M004", title: "鎴戠殑瀹㈡埛", layout: "left", width: "100%", height: "30%", order_no: 4}, {isshow: "T", code: "M002", title: "鎴戠殑鎻愰啋", layout: "right", width: "100%", height: "20%", order_no: 5}, - {isshow: "T", code: "M005", title: "妞嶅叆鏃ュ巻", layout: "right", width: "100%", height: "50%", order_no: 5}, + {isshow: "T", code: "M005", title: "宸ヤ綔鏃ュ巻", layout: "right", width: "100%", height: "50%", order_no: 5}, {isshow: "T", code: "M006", title: "蹇嵎鍏ュ彛", layout: "right", width: "100%", height: "30%", order_no: 6}, ], moduleLayout: { @@ -85,7 +85,7 @@ // {isshow: "T", code: "004", title: "鎴戠殑瀹㈡埛", layout: "left", width: "100%", height: "30%", order_no: 4}, // ], // right: [ - // {isshow: "T", code: "005", title: "妞嶅叆鏃ュ巻", layout: "right", width: "100%", height: "50%", order_no: 5}, + // {isshow: "T", code: "005", title: "宸ヤ綔鏃ュ巻", layout: "right", width: "100%", height: "50%", order_no: 5}, // {isshow: "T", code: "006", title: "蹇嵎鍏ュ彛", layout: "right", width: "100%", height: "50%", order_no: 6}, // ], }, @@ -110,6 +110,10 @@ year: {}, quarter: {}, month: {}, + + customer: {val_sale: 300, rate_completion: 50}, + terminal: {val_sale: 100, rate_completion: 66}, + flow: {val_sale: 2560, rate_completion: 30}, // year: {year:"2023", quarter: "3", month:"7", val_target: 600, val_sale: 300, rate_completion: 50}, // quarter: {year:"2023", quarter: "3", month:"7", val_target: 150, val_sale: 100, rate_completion: 66}, @@ -286,9 +290,9 @@ if (me.dataRequestObj.sys_notify_message && me.dataRequestObj.sys_notify_message.data && me.dataRequestObj.sys_notify_message.data.entityset) { dataobj_.M001 = clone(me.dataRequestObj.sys_notify_message.data.entityset) var file_ = { - id: "111", type_code: "sale", title: "銆婂鎴稤MS鎿嶄綔鎵嬪唽-绠�鐗�-1.1銆�", create_time: "2024-03-20 15:48:04", + id: "111", type_code: "sale", title: "銆婅惀閿�涓�浣撳寲杩愯惀骞冲彴鎿嶄綔鎵嬪唽1.1銆�", create_time: "2024-03-20 15:48:04", files: [ - {filename: "瀹㈡埛DMS鎿嶄綔鎵嬪唽-绠�鐗�-1.1.pdf", fileid: "11111", dataname: "sys_notify_message"}, + {filename: "钀ラ攢涓�浣撳寲杩愯惀骞冲彴鎿嶄綔鎵嬪唽1.1.pdf", fileid: "11111", dataname: "sys_notify_message"}, ]} dataobj_.M001.push(file_); @@ -333,8 +337,8 @@ val_target: summary_obj_dealer.month_qty_target_sum, val_sale: summary_obj_dealer.month_qty_achieve_sum, rate_completion: summary_obj_dealer.month_qty_target_sum ? window.top.toPercent((summary_obj_dealer.month_qty_achieve_sum / summary_obj_dealer.month_qty_target_sum) * 100) : ""}, } - dataobj_.M003.shangcai.amt = clone(M003_sc_amt); - dataobj_.M003.shangcai.qty = clone(M003_sc_qty); + // dataobj_.M003.shangcai.amt = clone(M003_sc_amt); + // dataobj_.M003.shangcai.qty = clone(M003_sc_qty); } // 妞嶅叆 if (me.dataRequestObj.business_data_summary_zr && me.dataRequestObj.business_data_summary_zr.data) { @@ -392,14 +396,14 @@ */ var M004_ = { Customer: [ - {type:"first", actor: "鐩撮噰瀹㈠晢", cnt: channel_qtysum_obj.first ? channel_qtysum_obj.first : 0}, - {type:"platform", actor: "骞冲彴鍟�", cnt: channel_qtysum_obj.platform ? channel_qtysum_obj.platform : 0}, - {type:"second", actor: "闈炵洿閲囧鍟�", cnt: channel_qtysum_obj.second ? channel_qtysum_obj.second : 0}, - {type:"distribute", actor: "閰嶉�佸晢", cnt: channel_qtysum_obj.distribute ? channel_qtysum_obj.distribute : 0}, + {type:"first", actor: "鍌ㄥ", cnt: channel_qtysum_obj.first ? channel_qtysum_obj.first : 0}, + {type:"platform", actor: "棰勫悎浣�", cnt: channel_qtysum_obj.platform ? channel_qtysum_obj.platform : 0}, + {type:"second", actor: "鍚堜綔涓�", cnt: channel_qtysum_obj.second ? channel_qtysum_obj.second : 0}, + {type:"distribute", actor: "閫�鍑�/璋冩暣", cnt: channel_qtysum_obj.distribute ? channel_qtysum_obj.distribute : 0}, ], Hospital: [ - {type:"hospital", actor: "杈栧尯鍖婚櫌", cnt: channel_qtysum_obj.hospital ? channel_qtysum_obj.hospital : 0}, - // {type:"hospital", actor: "鍏跺畠鍖婚櫌", cnt: 12}, + {type:"hospital", actor: "鍖婚櫌", cnt: channel_qtysum_obj.hospital ? channel_qtysum_obj.hospital : 0}, + {type:"pharmacy", actor: "鑽簵", cnt: 12}, ] } @@ -602,7 +606,7 @@ if (this.calendar_month_map[slotData.day].order_open_time && this.calendar_month_map[slotData.day].order_open_time != "00:00") { tooltip_ = "鍏宠处鏃ャ��"+ this.calendar_month_map[slotData.day].order_open_time +"銆戝悗涓嶅厑璁镐笅鍗曘��"; }else { - tooltip_ = "鍏宠处鏃ュ唴涓嶅厑璁镐笅鍗曘��"; + tooltip_ = "娴佸悜鍙敵璇�"; } } @@ -615,39 +619,23 @@ } if (this.calendar_month_map[slotData.day] && this.calendar_month_map[slotData.day].is_implant_open) { - tooltip_ += "銆愬厑璁告鍏ヤ笂鎶ャ�戙��"; + tooltip_ += "銆愬垵鐗堟祦鍚戙��"; } if (this.calendar_month_map[slotData.day] && this.calendar_month_map[slotData.day].is_order_open) { - tooltip_ += "銆愬厑璁镐笅鍗曘�戙��"; + tooltip_ += "銆愮粓鐗堟祦鍚戙��"; } } return tooltip_; }, // 蹇嵎鍏ュ彛 - arriveAddOrder() { - console.log("Order"); - - var me = this; - var config = { - totab: true, //true: 浠ab瀵艰埅鐨勬柟寮忔墦寮� - width: "900px", - height: "900px", - icon: "icon-product", - text: "鐩撮攢璁㈠崟淇℃伅", - id: "direct_order_list_info" + "add",//totab: true鏃堕渶璁剧疆锛岀敤浜庡垽鏂槸鍚﹀凡鎵撳紑姝ら〉闈� - url: "module/order/page/direct_order_list_info.html", - data: {}, - delta: {}, - sceneCode: "add",//"refuseedit",//"approval", //"add"//"browse", - callback: function(obj, callback) { - // me.onQuery(); - if (callback) { - callback(); - } - } - }; - me.doPopupByPublic(config); + quickClick(type) { + if (type == "signatures") { + window.open("http://esign.highdatas.com") + } + else if (type == "highdatas") { + window.open("http://highdatas.com/") + } }, //鎵撳紑瀹㈡埛涓绘暟鎹垨杈栧尯鍖婚櫌鍒楄〃椤� @@ -969,6 +957,7 @@ /* border-left: 1px solid #6495ed; */ border-right: 1px solid #6495ed; border-bottom: 1px solid #6495ed; + background-color: #6495ed; border-radius: 5px; cursor: pointer; } @@ -976,6 +965,7 @@ /* border-left: 1px solid #55aa7f; */ border-right: 1px solid #55aa7f; border-bottom: 1px solid #55aa7f; + background-color: #55aa7f; border-radius: 5px; cursor: pointer; } @@ -1065,11 +1055,6 @@ <el-card class="h_card" :body-style="{width: '100%', height: '100%', 'overflow-y': 'auto', position: 'relative'}" shadow="always"> <div class="h_card_title"> <span>{{module_l.title}}</span> - - <el-radio-group style="float: right;" v-if="module_l.code == 'M003'" v-model="target_type" size="mini" @input="targetTypeChange"> - <el-radio-button label="amt">閲戦</el-radio-button> - <el-radio-button label="qty">鏁伴噺</el-radio-button> - </el-radio-group> </div> <!-- 鎴戠殑閫氱煡 --> @@ -1101,8 +1086,62 @@ <!-- 鎴戠殑鎸囨爣 --> <div v-else-if="module_l.code == 'M003'" class="h_card_body"> - <!-- 鍟嗛噰鎸囨爣 --> <el-row > + <el-col :span="8"> + <div style="font-size: 14px;"> + <div class="h_title_fontsize"> + <span style="border-bottom: 1px solid #0270c1;">鎺ㄥ箍鍟�</span> + </div> + <div class="h_card_fontsize" style="text-align: center;"> + <el-col :span="12" class="h_card_fontsize_dc"> + <div><span class="h_cnt20_fontsize">{{dataobj[module_l.code].shangcai[target_type].customer.val_sale ? dataobj[module_l.code].shangcai[target_type].customer.val_sale :'0'}}</span></div> + <div>棰勫悎浣�</div> + </el-col> + <el-col :span="12" class="h_card_fontsize_dc"> + <div><span class="h_cnt20_fontsize">{{dataobj[module_l.code].shangcai[target_type].customer.rate_completion ? dataobj[module_l.code].shangcai[target_type].customer.rate_completion :'0'}}</span></div> + <div>瀹℃壒涓�</div> + </el-col> + </div> + </div> + </el-col> + <el-col :span="8"> + <div style="font-size: 14px;"> + <div class="h_title_fontsize"> + <span style="border-bottom: 1px solid #0270c1;">鍖婚櫌鎺ㄥ箍</span> + </div> + <div class="h_card_fontsize" style="text-align: center;"> + <el-col :span="12" class="h_card_fontsize_dc" style="border-left: 1px solid #0270c1;"> + <div><span class="h_cnt20_fontsize">{{dataobj[module_l.code].shangcai[target_type].terminal.val_sale ? dataobj[module_l.code].shangcai[target_type].terminal.val_sale :'0'}}</span></div> + <div>鏈湡鏂板</div> + </el-col> + <el-col :span="12" class="h_card_fontsize_dc"> + <div><span class="h_cnt20_fontsize">{{dataobj[module_l.code].shangcai[target_type].terminal.rate_completion ? dataobj[module_l.code].shangcai[target_type].terminal.rate_completion :'0'}}</span></div> + <div>寰呯‘璁�</div> + </el-col> + </div> + </div> + </el-col> + <el-col :span="8"> + <div style="font-size: 14px;"> + <div class="h_title_fontsize"> + <span style="border-bottom: 1px solid #0270c1;">娓犻亾娴佸悜</span> + </div> + <div class="h_card_fontsize" style="text-align: center;"> + <el-col :span="12" class="h_card_fontsize_dc" style="border-left: 1px solid #0270c1;"> + <div><span class="h_cnt20_fontsize">{{dataobj[module_l.code].shangcai[target_type].flow.val_sale ? dataobj[module_l.code].shangcai[target_type].flow.val_sale :'0'}}</span></div> + <div>缁堢绾攢</div> + </el-col> + <el-col :span="12" class="h_card_fontsize_dc"> + <div><span class="h_cnt20_fontsize">{{dataobj[module_l.code].shangcai[target_type].flow.rate_completion ? dataobj[module_l.code].shangcai[target_type].flow.rate_completion :'0'}}</span></div> + <div>鐢宠瘔娴佸悜</div> + </el-col> + </div> + </div> + + </el-col> + </el-row> + <!-- 鍟嗛噰鎸囨爣 --> + <!-- <el-row > <el-col :span="8"> <div style="font-size: 14px;"> <div class="h_title_fontsize"> @@ -1173,9 +1212,9 @@ </div> </el-col> - </el-row> + </el-row> --> <!-- 妞嶅叆鎸囨爣 --> - <el-row > + <!-- <el-row > <el-col :span="8"> <div style="font-size: 14px;"> <div class="h_title_fontsize"> @@ -1246,17 +1285,17 @@ </div> </el-col> - </el-row> + </el-row> --> </div> <!-- 鎴戠殑瀹㈡埛 --> <div v-else-if="module_l.code == 'M004'" class="h_card_body"> <el-row > - <el-col :span="20"> + <el-col :span="18"> <div style="font-size: 14px;"> <div class="h_title_fontsize" > <i class="iconfont icon-gongwenbao h_cellclick" style="color: #ff5500;" @click="onOpenMenu('org')"></i> - <span class="h_cellclick" @click="onOpenMenu('org')">缁忛攢鍟�</span> + <span class="h_cellclick" @click="onOpenMenu('org')">鎺ㄥ箍鍟�</span> </div> <div class="h_div_flex"> <div v-for="(data_1, key1) in dataobj[module_l.code].Customer" style="display: block;"> @@ -1266,15 +1305,15 @@ </div> </div> </el-col> - <el-col :span="4"> + <el-col :span="6"> <div style="font-size: 14px;"> <div class="h_title_fontsize" > <i class="iconfont icon-yiyuan h_cellclick" style="color: #ff5500;" @click="onOpenMenu('hospital')"></i> - <span class=" h_cellclick" @click="onOpenMenu('hospital')">鍖婚櫌</span> + <span class=" h_cellclick" @click="onOpenMenu('hospital')">缁堢</span> </div> - <div class="h_div_flex" style="border-left: 1px solid #0270c1; justify-content: center;"> + <div class="h_div_flex" style="border-left: 1px solid #0270c1;"> <div v-for="(data_1, key1) in dataobj[module_l.code].Hospital" style="display: block;"> - <div style="text-align: center;"><span class="h_cnt20_fontsize">{{data_1.cnt}}</span>瀹�</div> + <div><span class="h_cnt20_fontsize">{{data_1.cnt}}</span>瀹�</div> <div>{{data_1.actor}}</div> </div> </div> @@ -1332,15 +1371,15 @@ <!-- 蹇嵎鍏ュ彛 --> <div v-else-if="module_r.code == 'M006'" class="h_card_body"> <div class="button-wrap"> - <!-- <div class="button implanted click_button" @click = ""> + <div class="button implanted click_button" @click = "quickClick('signatures')"> <img class="icon-button" src="implanted.png" alt="cart"> - <span>鍗� 璁�</span> + <span>鐢靛瓙绛剧珷</span> </div> - <div class="button order click_button" @click = ""> + <div class="button order click_button" @click = "quickClick('highdatas')"> <img class="icon-button" src="implanted.png" alt="cart"> - <span>澶� 妗�</span> + <span>鍏充簬鐎氭疆</span> </div> - <div class="button receive click_button" @click = ""> + <!-- <div class="button receive click_button" @click = ""> <img class="icon-button" src="implanted.png" alt="cart"> <span>杈� 鍖�</span> </div> -- Gitblit v1.8.0