<!doctype html>
|
<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>
|
|
<script type="text/javascript">
|
function loadJsCss(callback) {
|
var jscss_urls = [];
|
window.top.initJsCss(document, jscss_urls, callback);
|
};
|
|
function initVue() {
|
new ListVue({
|
el: "#vbody",
|
data: {
|
dataname: "fee_task",
|
title: "折扣计算",
|
|
filterfieldClick: {},
|
tablefieldClick: {},
|
formfieldClick: {},
|
filterTxt: "",
|
},
|
created() {
|
|
},
|
|
mounted() {
|
//获取数据
|
this.initData();
|
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
|
hideLoading();
|
});
|
},
|
|
methods:{
|
initData() {
|
var me = this;
|
this.onQuery(function(result, callback) {//查询后的回调,用于获取字段的
|
if (result.meta && result.meta[me.dataname] && result.meta[me.dataname].fields) {
|
var metas = clone(result.meta[me.dataname].fields);
|
var filterFields_ = [];
|
var tableFields_ = [];
|
|
metas.map(f=>{
|
f.isshow = "T";
|
|
if (f.isfilter) {
|
filterFields_.push(clone(f));
|
}
|
else {
|
var filter_f = clone(f);
|
filter_f.isshow = "F";
|
filterFields_.push(filter_f);
|
}
|
|
tableFields_.push(clone(f));
|
})
|
if (!me.filterFields || (me.filterFields && me.filterFields.length == 0)) {
|
me.filterFields = clone(filterFields_);
|
me.tableFields = clone(tableFields_);
|
|
//字段数组转字段obj
|
me.fieldsToFieldsObj();
|
|
//设置字段事件
|
me.tableFieldClick();
|
}
|
}
|
|
if (callback) {
|
callback();
|
}
|
});
|
},
|
|
tableFieldClick() {
|
var me = this;
|
//筛选字段事件设置
|
this.filterfieldClick = {
|
};
|
//表格字段事件设置
|
this.tablefieldClick = {
|
state_name: {
|
val: {
|
notclick_val: ["草稿"],
|
notclick_bindfield: [],
|
onclick: function(obj) {//数据值点击事件
|
me.onShowStateDetail(obj)
|
},
|
},
|
},
|
};
|
|
//表单字段事件设置
|
this.formfieldClick = {
|
};
|
},
|
|
addData() {
|
let me = this;
|
var config = {
|
totab: true,
|
width: "500px",
|
height: "300px",
|
icon: "icon-product",
|
text: "产品信息",
|
id: "tasksales_edit",
|
url: "module/performance/page/taskSales_info.html",
|
data: {},
|
delta: {},
|
sceneCode: "add",
|
callback: function(obj, callback) {
|
me.onQuery();
|
if (callback) {
|
callback();
|
}
|
}
|
};
|
me.doPopupByPublic(config);
|
},
|
|
onShowStateDetail(obj){
|
var me = this;
|
var config = {
|
totab: false, //true: 以Tab导航的方式打开
|
width: "1100px",
|
height: "520px",
|
icon: "icon-product",
|
text: "流程步骤",
|
id: "customer_acct" + obj.row.id,//totab: true时需设置,用于判断是否已打开此页面
|
url: "module/tool/page/popup_workflow_step_user.html?v=2023020703",
|
data: {
|
"id": "cac23e332c3e4ce1952e8b0426123d3a",
|
"actor": "First",
|
"state_code": "Opening",
|
"state_name": "开户中",
|
"state_detail_code": "BPresidentApproval",
|
"state_detail_name": "业务负责人审批",
|
"code": "D00001193",
|
"ncc_code": "D00399",
|
"name": "江苏中和泰药品有限公司_aty",
|
"short_name": null,
|
"category_code": "Customer",
|
"category_name": "客户",
|
"province": "安徽省",
|
"city": "安庆市",
|
"county": "迎江区",
|
"register_address": "徐州市沛县大屯街道办事处天津路安泰花园西区41-79#80#81#",
|
"business_address": "",
|
"business_person": "",
|
"contact_type": "",
|
"email": "Adele.ma@highdatas.com",
|
"authorization_type": null,
|
"authorization_content": null,
|
"affiliated_describe": "",
|
"business_need_code": "BlankHospitalDevelopment",
|
"business_need_others": "",
|
"credit_amt": null,
|
"credit_available": null,
|
"opening_is_special": null,
|
"opening_reason": null,
|
"is_preload": null,
|
"file_authorization_content": null,
|
"file_name_authorization_content": null,
|
"create_time": "2023-03-28 13:46:19",
|
"update_time": "2023-03-28 13:46:19",
|
"creator_id": "H10014",
|
"creator_name": "陈雨垚",
|
"certificate_no": "91320322MA1Y57F366",
|
"province_grant": null,
|
"authorization_province": null,
|
"relation_id": null,
|
"relation_code": null,
|
"relation_name": null,
|
"is_ncc_first_business": true,
|
},
|
delta: {machine_code: "Org_Account_Open"},
|
sceneCode: "browse",//"refuseedit",//"approval", //"add"//"browse",
|
callback: function(obj, callback) {
|
if (callback) {
|
callback();
|
}
|
}
|
};
|
me.doPopupByPublic(config);
|
},
|
|
onEditData(config, scope) {
|
var me = this;
|
var row = scope.row;
|
|
//1. empty row
|
if (!row || !row.id) {
|
Root.message({
|
type: 'warning',
|
message: '请选择要编辑的数据'
|
});
|
return false;
|
}
|
|
//3. popup
|
var config = {
|
totab: false, //true: 以Tab导航的方式打开
|
width: "500px",
|
height: "300px",
|
icon: "icon-product",
|
text: "产品线信息",
|
id: "product_edit" + row.id,//totab: true时需设置,用于判断是否已打开此页面
|
url: "module/md/page/product/page/product_edit.html",
|
data: row,
|
delta: null,
|
sceneCode: "edit",//"refuseedit",//"approval", //"add"//"browse",
|
callback: function(obj, callback) {
|
me.onQuery();
|
if (callback) {
|
callback();
|
}
|
}
|
};
|
me.doPopupByPublic(config);
|
},
|
|
doCount() {
|
var me = this;
|
var config = {
|
totab: false, //true: 以Tab导航的方式打开
|
width: "700px",
|
height: "600px",
|
icon: "icon-product",
|
text: "折扣计算进度",
|
id: "countProcess",
|
url: "module/performance/page/popup/countProcess.html",
|
data: {},
|
delta: {type: "task"},
|
sceneCode: "edit", //"add"//"browse",
|
callback: function(obj, callback) {
|
if (callback) {
|
callback();
|
}
|
}
|
};
|
me.doPopupByPublic(config);
|
},
|
|
|
|
}
|
});
|
};
|
|
loadJsCss(function () {
|
initVue();
|
});
|
</script>
|
<style>
|
/* 在vue.js中 v-cloak 这个指令是防止页面加载时出现 vuejs 的变量名而设计的 */
|
[v-cloak] {
|
display: none !important;
|
}
|
</style>
|
|
</head>
|
|
<body style="margin: 0px;">
|
<div v-cloak id="vbody">
|
<div id="page_root">
|
<div class="topbar">
|
<span>{{title}}</span>
|
|
<div style="margin-right: 18px;float: right;">
|
<el-button-group style="margin-left: 3px">
|
<el-button @click="addData":icon="buttonsconfig.add.icon">{{buttonsconfig.add.name}}</el-button>
|
<el-button
|
:disabled="!(selectedrow.id)"
|
@click="doCount" icon="el-icon-cpu">试算
|
</el-button>
|
<el-button
|
:disabled="!(selectedrow.id && (selectedrow.state_code == 'Input' || selectedrow.state_code == 'Rejected'))"
|
type = "success"
|
@click="" icon="el-icon-check">生效
|
</el-button>
|
<el-button
|
:disabled="!(selectedrow.id && (selectedrow.state_code == 'Input' || selectedrow.state_code == 'Rejected'))"
|
@click="" icon="el-icon-refresh-left">初始化数据
|
</el-button>
|
</el-button-group>
|
</div>
|
</div>
|
|
<div class="topbar-line">
|
<div class="query-bar">
|
<h-form-filter ref="form1"
|
:form-attr="filterAttr"
|
:table-fields="filterFields"
|
:form-data="filterObj"
|
:table-field-click="filterfieldClick"
|
:isdraggableorder="false"
|
|
v-on:on-query="onQuery"
|
v-on:on-init-query="onInitFilter"
|
v-on:order-fields="orderFilterFields"
|
>
|
</h-form-filter>
|
</div>
|
</div>
|
|
<div class="h_dialog__body">
|
<h-table
|
v-if="isRefresh"
|
ref="table1"
|
:table-fields="tableFields"
|
:table-data="tableData"
|
:is-edit-table-data="isEditTableData"
|
:pagesize="pagesize"
|
:pagenum="pagenum"
|
:total="total"
|
:table-height="tableHeight"
|
:table-field-click="tablefieldClick"
|
:is-show-index="false"
|
:tableloading="tableloading"
|
:isdraggableorder="false"
|
:is-highlight-row="true"
|
|
v-on:get-data="getData"
|
v-on:row-click="rowClick"
|
>
|
</h-table>
|
</div>
|
</div>
|
</div>
|
|
<div id="page_loading" style="position: absolute; top:0px; width: 100vw; height: 50vh;">
|
<div class="spinner">
|
<div class="cube1"></div>
|
<div class="cube2"></div>
|
</div>
|
</div>
|
|
</body>
|
</html>
|