@xysfe/actui2 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Marketing/index.js +1 -1
- package/lib/Marketing/index.mjs +59 -6
- package/lib/Marketing/kcb/index.js +1 -1
- package/lib/Marketing/kcb/index.mjs +65 -102
- package/lib/Marketing/kcb/style.css +1 -1
- package/lib/MarketingPage/index.js +1 -1
- package/lib/MarketingPage/index.mjs +1 -9
- package/lib/MarketingPage/style.css +1 -1
- package/lib/common/popup/index.js +1 -1
- package/lib/common/popup/index.mjs +12 -19
- package/lib/common/popup/style.css +1 -1
- package/lib/index.js +1 -1
- package/lib/index.mjs +2 -2
- package/lib/utils/create-api/index.js +1 -0
- package/lib/utils/create-api/index.mjs +146 -0
- package/package.json +1 -1
- package/types/components/Marketing/index.d.ts +1 -1
- package/types/components/Marketing/src/kcb.vue.d.ts +30 -5
- package/types/index.d.ts +2 -2
- package/types/utils/create-api.d.ts +11 -0
- package/lib/PlanSubPlan/index2.js +0 -1
- package/lib/PlanSubPlan/index2.mjs +0 -527
- package/lib/PlanSubPlan/style2.css +0 -1
package/types/index.d.ts
CHANGED
|
@@ -132,7 +132,7 @@ export { default as Picker } from "./components/Picker/index.js";
|
|
|
132
132
|
export { default as PickerLongText } from "./components/PickerLongText/index.js";
|
|
133
133
|
export { default as PlanSetting } from "./components/PlanSetting/index.js";
|
|
134
134
|
export { default as PlanSettingLayer } from "./components/PlanSettingLayer/index.js";
|
|
135
|
-
export { default as PlanSubPlan } from "./components/
|
|
135
|
+
export { default as PlanSubPlan } from "./components/PlanSubPlan/index.js";
|
|
136
136
|
export { default as PosterLayer } from "./components/PosterLayer/index.js";
|
|
137
137
|
export { default as PrizeLayer } from "./components/PrizeLayer/index.js";
|
|
138
138
|
export { default as ProductLayer } from "./components/ProductLayer/index.js";
|
|
@@ -466,7 +466,7 @@ import Picker from './components/Picker/index.js';
|
|
|
466
466
|
import PickerLongText from './components/PickerLongText/index.js';
|
|
467
467
|
import PlanSetting from './components/PlanSetting/index.js';
|
|
468
468
|
import PlanSettingLayer from './components/PlanSettingLayer/index.js';
|
|
469
|
-
import PlanSubPlan from './components/
|
|
469
|
+
import PlanSubPlan from './components/PlanSubPlan/index.js';
|
|
470
470
|
import PosterLayer from './components/PosterLayer/index.js';
|
|
471
471
|
import PrizeLayer from './components/PrizeLayer/index.js';
|
|
472
472
|
import ProductLayer from './components/ProductLayer/index.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function createAPI(Component: any, config?: {
|
|
2
|
+
showMethod?: string;
|
|
3
|
+
closeMethod?: string;
|
|
4
|
+
resolveEvents?: string[];
|
|
5
|
+
rejectEvents?: string[];
|
|
6
|
+
singleton?: boolean;
|
|
7
|
+
toPromise?: boolean;
|
|
8
|
+
destroyDelay?: number;
|
|
9
|
+
defaultProps?: any;
|
|
10
|
+
}): Function;
|
|
11
|
+
export default createAPI;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";require('./style2.css');var _Object$keys=require("@babel/runtime-corejs3/core-js/object/keys");var _Object$getOwnPropertySymbols=require("@babel/runtime-corejs3/core-js/object/get-own-property-symbols");var _filterInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/filter");var _Object$getOwnPropertyDescriptor=require("@babel/runtime-corejs3/core-js/object/get-own-property-descriptor");var _Object$getOwnPropertyDescriptors=require("@babel/runtime-corejs3/core-js/object/get-own-property-descriptors");var _Object$defineProperties=require("@babel/runtime-corejs3/core-js/object/define-properties");var _Object$defineProperty=require("@babel/runtime-corejs3/core-js/object/define-property");var _toConsumableArray=require("@babel/runtime-corejs3/helpers/toConsumableArray");var _defineProperty=require("@babel/runtime-corejs3/helpers/defineProperty");var _mapInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/map");var _findIndexInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/find-index");var _concatInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/concat");var _includesInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/includes");var _forEachInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/for-each");var _findInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/find");var _spliceInstanceProperty=require("@babel/runtime-corejs3/core-js/instance/splice");var _Number$isNaN=require("@babel/runtime-corejs3/core-js/number/is-nan");function ownKeys(e,r){var t=_Object$keys(e);if(_Object$getOwnPropertySymbols){var o=_Object$getOwnPropertySymbols(e);r&&(o=_filterInstanceProperty(o).call(o,function(r2){return _Object$getOwnPropertyDescriptor(e,r2).enumerable})),t.push.apply(t,o)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var _context9,_context0;var t=null!=arguments[r]?arguments[r]:{};r%2?_forEachInstanceProperty(_context9=ownKeys(Object(t),true)).call(_context9,function(r2){_defineProperty(e,r2,t[r2])}):_Object$getOwnPropertyDescriptors?_Object$defineProperties(e,_Object$getOwnPropertyDescriptors(t)):_forEachInstanceProperty(_context0=ownKeys(Object(t))).call(_context0,function(r2){_Object$defineProperty(e,r2,_Object$getOwnPropertyDescriptor(t,r2))})}return e}var utils_create=require("../utils/create/index.js");var Picker=require("../Picker/index.js");var common=require("../common/index.js");var ConstMap={COL_TYPE_CASH_VALUE:3,COL_TYPE_AGE:5,COL_TYPE_YEAR:14};var _sfc_main={name:"ActPlanSubPlan",components:{ActPicker:Picker.Picker},props:{costTable:{type:Object,default:function _default(){return{}}},value:{type:Array,default:function _default2(){return[]}},product:{type:Object,default:function _default3(){return{}}}},data:function data(){return{showPicker:false,pickerData:{planIndex:-1,key:"begin"},pickerSelectedIndex:[0]}},computed:{subPlanList:{get:function get(){var _context;if(!this.value||this.value.length===0){return[{begin:"",beginAge:"",end:"",endAge:"",value:""}]}return _mapInstanceProperty(_context=this.value).call(_context,function(item){return _objectSpread(_objectSpread({},item),{},{value:item.value?Number(item.value)/100:""})})},set:function set(newValue){var convertedValue=_mapInstanceProperty(newValue).call(newValue,function(item){return _objectSpread(_objectSpread({},item),{},{value:item.value?Number(item.value)*100:""})});this.$emit("input",convertedValue)}},subPlanSelectList:function subPlanSelectList(){if(!this.costTable)return[];var _this$costTable=this.costTable,_this$costTable$colsT=_this$costTable.colsType,colsType=_this$costTable$colsT===void 0?[]:_this$costTable$colsT,_this$costTable$rows=_this$costTable.rows,rows=_this$costTable$rows===void 0?[]:_this$costTable$rows;var yearIndex=colsType&&_findIndexInstanceProperty(colsType).call(colsType,function(item){return Number(item)===ConstMap.COL_TYPE_YEAR});var ageIndex=colsType&&_findIndexInstanceProperty(colsType).call(colsType,function(item){return Number(item)===ConstMap.COL_TYPE_AGE});var result=_mapInstanceProperty(rows).call(rows,function(row){var _context2;var year=row[yearIndex];var age=ageIndex>-1?row[ageIndex]:"";return{text:age?_concatInstanceProperty(_context2="第".concat(year,"年 (")).call(_context2,age,"周岁)"):"第".concat(year,"年"),value:year,age}});return result},cashRow:function cashRow(){if(!this.costTable)return[];var _this$costTable2=this.costTable,_this$costTable2$cols=_this$costTable2.colsType,colsType=_this$costTable2$cols===void 0?[]:_this$costTable2$cols,_this$costTable2$rows=_this$costTable2.rows,rows=_this$costTable2$rows===void 0?[]:_this$costTable2$rows;var yearIndex=colsType&&_findIndexInstanceProperty(colsType).call(colsType,function(item){return Number(item)===ConstMap.COL_TYPE_YEAR});var cashIndex=colsType&&_findIndexInstanceProperty(colsType).call(colsType,function(item){return Number(item)===ConstMap.COL_TYPE_CASH_VALUE});if(this.isFenhongShouXian(this.product)){cashIndex=colsType&&_findIndexInstanceProperty(colsType).call(colsType,function(item){return Number(item)===50})}if(cashIndex===-1)return[];var result=_mapInstanceProperty(rows).call(rows,function(item){var year=item[yearIndex];var cash=item[cashIndex];return{year,value:cash}});return result}},methods:{isFenhongShouXian:function isFenhongShouXian(){var _context3;var product=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var firstLevelId=product.common&&product.common.cate&&product.common.cate.firstLevelId;var secondLevelId=product.common&&product.common.cate&&product.common.cate.secondLevelId;return Number(firstLevelId)===42&&_includesInstanceProperty(_context3=[63,45]).call(_context3,Number(secondLevelId))},formatSubPlanList:function formatSubPlanList(subPlanList){var type=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"render";if(!subPlanList)return[];_forEachInstanceProperty(subPlanList).call(subPlanList,function(item){if(item.value){item.value=type==="render"?Number(item.value)/100:Number(item.value)*100}});return subPlanList},updateSubPlanList:function updateSubPlanList(newList){this.subPlanList=_toConsumableArray(newList)},handleSubPlanDateSelect:function handleSubPlanDateSelect(selectedVal,selectedIndex,selectedText){var _this$pickerData=this.pickerData,planIndex=_this$pickerData.planIndex,key=_this$pickerData.key;var selectedItem=this.subPlanSelectList[selectedIndex[0]];var value=selectedItem.value,age=selectedItem.age;var newList=_toConsumableArray(this.subPlanList);newList[planIndex]=_objectSpread(_objectSpread({},newList[planIndex]),{},_defineProperty(_defineProperty({},key,value),"".concat(key,"Age"),age));this.validateMaxValueAfterDateChange(newList,planIndex)},changeSubPlanDate:function changeSubPlanDate(index,key){this.pickerData={planIndex:index,key};var currentValue=this.subPlanList[index][key];if(currentValue){var _context4;var currentIndex=_findIndexInstanceProperty(_context4=this.subPlanSelectList).call(_context4,function(item){return String(item.value)===String(currentValue)});this.pickerSelectedIndex=[currentIndex>=0?currentIndex:0]}else if(key==="end"&&this.subPlanList[index].begin){var _context5;var beginValue=this.subPlanList[index].begin;var beginIndex=_findIndexInstanceProperty(_context5=this.subPlanSelectList).call(_context5,function(item){return String(item.value)===String(beginValue)});this.pickerSelectedIndex=[beginIndex>=0?beginIndex:0]}else{this.pickerSelectedIndex=[0]}this.showPicker=true},getSubPlanDateList:function getSubPlanDateList(type){return this.subPlanSelectList},getSubPlanText:function getSubPlanText(value){var _context6;if(!value)return"";var target=_findInstanceProperty(_context6=this.subPlanSelectList).call(_context6,function(item){return String(item.value)===String(value)});return target?target.text.split(" ").join("\n"):""},resetSubPlan:function resetSubPlan(){this.updateSubPlanList([{begin:"",end:"",beginAge:"",endAge:"",value:""}])},addSubPlan:function addSubPlan(){var _context7;var newList=_concatInstanceProperty(_context7=[]).call(_context7,_toConsumableArray(this.subPlanList),[{begin:"",end:"",beginAge:"",endAge:"",value:""}]);this.updateSubPlanList(newList);this.$emit("add")},deleteSubPlanItem:function deleteSubPlanItem(index){var newList=_toConsumableArray(this.subPlanList);_spliceInstanceProperty(newList).call(newList,index,1);this.updateSubPlanList(newList)},calculateMaxValue:function calculateMaxValue(cashValue){return Math.round(cashValue*.2)},createExceedLimitDialog:function createExceedLimitDialog(index,value,maxValue){var _this=this;var needSplit=arguments.length>3&&arguments[3]!==void 0?arguments[3]:false;var currentList=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;var sourceList=currentList||this.subPlanList;var newList=_toConsumableArray(sourceList);var target=sourceList[index];var begin=target.begin,beginAge=target.beginAge,end=target.end;var dialog=this.$createGoldDialog({closable:false,title:"提示",content:"当前减保金额超过上限,将自动按照最大值默认填充",zIndex:2222,buttonType:"sticky",showCancelButton:true,cancelButtonText:"取消",confirmButtonText:"确认",confirmButtonColor:"#F05A4B",onConfirm:function onConfirm(){if(needSplit){newList[index]=_objectSpread(_objectSpread({},newList[index]),{},{end:begin,endAge:beginAge,value:maxValue});var _loop=function _loop2(year2){var existingIndex=_findIndexInstanceProperty(newList).call(newList,function(item){return item.begin===String(year2)&&item.end===String(year2)});if(existingIndex===-1){var newItem={begin:year2,beginAge:age,end:year2,endAge:age,value:""};var newItemCashValue=_this.getSubPlanMaxValue(newItem);if(newItemCashValue!==Infinity){newItem.value=_this.calculateMaxValue(newItemCashValue)}newList.push(newItem)}else{var existingItem=newList[existingIndex];var existingCashValue=_this.getSubPlanMaxValue(existingItem);if(existingCashValue!==Infinity){newList[existingIndex]=_objectSpread(_objectSpread({},newList[existingIndex]),{},{value:_this.calculateMaxValue(existingCashValue)})}}};for(var year=Number(begin)+1,age=Number(beginAge)+1;year<=Number(end);year++,age++){_loop(year)}}else{newList[index]=_objectSpread(_objectSpread({},newList[index]),{},{value:maxValue})}_this.updateSubPlanList(newList)},onCancel:function onCancel(){newList[index]=_objectSpread(_objectSpread({},newList[index]),{},{value});_this.updateSubPlanList(newList)}});dialog.show()},handleSubPlanValue:function handleSubPlanValue(e,index){var value=e.target.value.replace(/[^\d.]/g,"");if(!value)return;value=Number(value);var target=this.subPlanList[index];var begin=target.begin,end=target.end;if(_Number$isNaN(value)){var _newList=_toConsumableArray(this.subPlanList);_newList[index]=_objectSpread(_objectSpread({},_newList[index]),{},{value:""});this.updateSubPlanList(_newList);return}var cashValue=this.getSubPlanMaxValue(target);var newList=_toConsumableArray(this.subPlanList);if(cashValue!==Infinity){var maxValue=this.calculateMaxValue(cashValue);if(value>maxValue){var needSplit=begin&&end&&begin!==end;this.createExceedLimitDialog(index,value,maxValue,needSplit);return}else{newList[index]=_objectSpread(_objectSpread({},newList[index]),{},{value})}}else{newList[index]=_objectSpread(_objectSpread({},newList[index]),{},{value})}this.updateSubPlanList(newList)},setSubPlanMaxValue:function setSubPlanMaxValue(index){var target=this.subPlanList[index];var cashValue=this.getSubPlanMaxValue(target);if(cashValue!==Infinity){var maxValue=this.calculateMaxValue(cashValue);var newList=_toConsumableArray(this.subPlanList);newList[index]=_objectSpread(_objectSpread({},newList[index]),{},{value:maxValue});this.updateSubPlanList(newList)}},getSubPlanMaxValue:function getSubPlanMaxValue(item){var _context8;if(!item||!item.begin||this.cashRow.length===0)return Infinity;var begin=item.begin;var beginCashItem=_findInstanceProperty(_context8=this.cashRow).call(_context8,function(item2){return String(item2.year)===String(begin)});if(beginCashItem){return Number(beginCashItem.value)}return Infinity},validateMaxValueAfterDateChange:function validateMaxValueAfterDateChange(newList,planIndex){var target=newList[planIndex];var currentValue=target.value;if(!currentValue||currentValue===""){this.updateSubPlanList(newList);return}var cashValue=this.getSubPlanMaxValue(target);if(cashValue===Infinity){this.updateSubPlanList(newList);return}var maxValue=this.calculateMaxValue(cashValue);if(Number(currentValue)>maxValue){var begin=target.begin,end=target.end;var needSplit=begin&&end&&begin!==end;this.createExceedLimitDialog(planIndex,Number(currentValue),maxValue,needSplit,newList)}else{this.updateSubPlanList(newList)}}}};var _sfc_render=function render(){var _vm=this,_c=_vm._self._c;return _c("div",{staticClass:"act-planSubPlan"},[_c("div",[_vm._l(_vm.subPlanList,function(subPlanItem,index){return _c("div",{key:index,staticClass:"subplan-item"},[_c("div",{directives:[{name:"show",rawName:"v-show",value:_vm.subPlanList.length>1,expression:"subPlanList.length > 1"}],staticClass:"delete-icon",on:{"click":function click($event){return _vm.deleteSubPlanItem(index)}}}),_c("div",{staticClass:"subplan-item-wrapper"},[_c("div",{staticClass:"subplan-item-content"},[_c("p",{staticClass:"label"},[_vm._v("开始时间")]),_c("div",{staticClass:"subplan-date"},[_c("div",{staticClass:"subplan-date-input",class:{disabled:!_vm.getSubPlanText(subPlanItem.begin)},domProps:{"innerHTML":_vm._s(_vm.getSubPlanText(subPlanItem.begin)||"开始时间")},on:{"click":function click($event){return _vm.changeSubPlanDate(index,"begin")}}}),_c("span",[_vm._v("至")]),_c("div",{staticClass:"subplan-date-input",class:{disabled:!_vm.getSubPlanText(subPlanItem.end)},domProps:{"innerHTML":_vm._s(_vm.getSubPlanText(subPlanItem.end)||"结束时间")},on:{"click":function click($event){return _vm.changeSubPlanDate(index,"end")}}})])]),_c("div",{staticClass:"subplan-item-content"},[_c("p",{staticClass:"label"},[_vm._v("每年领取金")]),_c("input",{attrs:{"placeholder":"请输入","type":"tel","pattern":"[0-9]*"},domProps:{"value":subPlanItem.value},on:{"blur":function blur($event){return _vm.handleSubPlanValue($event,index)}}})])])])}),_c("div",{staticClass:"subplan-button-wrapper"},[_c("div",{staticClass:"subplan-button subplan-button-reset",on:{"click":_vm.resetSubPlan}},[_vm._v(" 重置 ")]),_c("div",{staticClass:"subplan-button subplan-button-add",on:{"click":_vm.addSubPlan}},[_c("i",{staticClass:"add-icon"}),_vm._v(" 添加行 ")])]),_c("div",{staticClass:"subplan-hint"},[_vm._v("*根据减保规则,如领取金额超过减保上限,则以最大可领取金额计算")])],2),_c("act-picker",{attrs:{"data":[_vm.subPlanSelectList],"selectedIndex":_vm.pickerSelectedIndex},on:{"select":_vm.handleSubPlanDateSelect},model:{value:_vm.showPicker,callback:function callback($$v){_vm.showPicker=$$v},expression:"showPicker"}})],1)};var _sfc_staticRenderFns=[];var __component__=common.normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns,false,null,"e61cb2f2");var PlanSubPlan=__component__.exports;PlanSubPlan.install=function(Vue){Vue.component(PlanSubPlan.name,PlanSubPlan);Vue.prototype["$createPlanSubPlan"]=utils_create.create(PlanSubPlan,Vue)};exports.PlanSubPlan=PlanSubPlan;
|
|
@@ -1,527 +0,0 @@
|
|
|
1
|
-
import _Object$keys from "@babel/runtime-corejs3/core-js/object/keys";
|
|
2
|
-
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js/object/get-own-property-symbols";
|
|
3
|
-
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js/instance/filter";
|
|
4
|
-
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js/object/get-own-property-descriptor";
|
|
5
|
-
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js/object/get-own-property-descriptors";
|
|
6
|
-
import _Object$defineProperties from "@babel/runtime-corejs3/core-js/object/define-properties";
|
|
7
|
-
import _Object$defineProperty from "@babel/runtime-corejs3/core-js/object/define-property";
|
|
8
|
-
import _toConsumableArray from "@babel/runtime-corejs3/helpers/toConsumableArray";
|
|
9
|
-
import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
|
|
10
|
-
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js/instance/map";
|
|
11
|
-
import _findIndexInstanceProperty from "@babel/runtime-corejs3/core-js/instance/find-index";
|
|
12
|
-
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js/instance/concat";
|
|
13
|
-
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js/instance/includes";
|
|
14
|
-
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js/instance/for-each";
|
|
15
|
-
import _findInstanceProperty from "@babel/runtime-corejs3/core-js/instance/find";
|
|
16
|
-
import _spliceInstanceProperty from "@babel/runtime-corejs3/core-js/instance/splice";
|
|
17
|
-
import _Number$isNaN from "@babel/runtime-corejs3/core-js/number/is-nan";
|
|
18
|
-
import { c as create } from "../utils/create/index.mjs";
|
|
19
|
-
import { P as Picker } from "../Picker/index.mjs";
|
|
20
|
-
import { n as normalizeComponent } from "../common/index.mjs";
|
|
21
|
-
import './style2.css';function ownKeys(e, r) {
|
|
22
|
-
var t = _Object$keys(e);
|
|
23
|
-
if (_Object$getOwnPropertySymbols) {
|
|
24
|
-
var o = _Object$getOwnPropertySymbols(e);
|
|
25
|
-
r && (o = _filterInstanceProperty(o).call(o, function(r2) {
|
|
26
|
-
return _Object$getOwnPropertyDescriptor(e, r2).enumerable;
|
|
27
|
-
})), t.push.apply(t, o);
|
|
28
|
-
}
|
|
29
|
-
return t;
|
|
30
|
-
}
|
|
31
|
-
function _objectSpread(e) {
|
|
32
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
33
|
-
var _context9, _context0;
|
|
34
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
35
|
-
r % 2 ? _forEachInstanceProperty(_context9 = ownKeys(Object(t), true)).call(_context9, function(r2) {
|
|
36
|
-
_defineProperty(e, r2, t[r2]);
|
|
37
|
-
}) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context0 = ownKeys(Object(t))).call(_context0, function(r2) {
|
|
38
|
-
_Object$defineProperty(e, r2, _Object$getOwnPropertyDescriptor(t, r2));
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
return e;
|
|
42
|
-
}
|
|
43
|
-
var ConstMap = {
|
|
44
|
-
COL_TYPE_CASH_VALUE: 3,
|
|
45
|
-
COL_TYPE_AGE: 5,
|
|
46
|
-
COL_TYPE_YEAR: 14
|
|
47
|
-
};
|
|
48
|
-
var _sfc_main = {
|
|
49
|
-
name: "ActPlanSubPlan",
|
|
50
|
-
components: {
|
|
51
|
-
ActPicker: Picker
|
|
52
|
-
},
|
|
53
|
-
props: {
|
|
54
|
-
costTable: {
|
|
55
|
-
type: Object,
|
|
56
|
-
default: function _default() {
|
|
57
|
-
return {};
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
// 改为 value 以支持 v-model
|
|
61
|
-
value: {
|
|
62
|
-
type: Array,
|
|
63
|
-
default: function _default2() {
|
|
64
|
-
return [];
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
product: {
|
|
68
|
-
type: Object,
|
|
69
|
-
default: function _default3() {
|
|
70
|
-
return {};
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
data: function data() {
|
|
75
|
-
return {
|
|
76
|
-
showPicker: false,
|
|
77
|
-
pickerData: {
|
|
78
|
-
planIndex: -1,
|
|
79
|
-
key: "begin"
|
|
80
|
-
},
|
|
81
|
-
pickerSelectedIndex: [0]
|
|
82
|
-
};
|
|
83
|
-
},
|
|
84
|
-
computed: {
|
|
85
|
-
// 使用计算属性来处理 subPlanList
|
|
86
|
-
subPlanList: {
|
|
87
|
-
get: function get() {
|
|
88
|
-
var _context;
|
|
89
|
-
if (!this.value || this.value.length === 0) {
|
|
90
|
-
return [{
|
|
91
|
-
begin: "",
|
|
92
|
-
beginAge: "",
|
|
93
|
-
end: "",
|
|
94
|
-
endAge: "",
|
|
95
|
-
value: ""
|
|
96
|
-
}];
|
|
97
|
-
}
|
|
98
|
-
return _mapInstanceProperty(_context = this.value).call(_context, function(item) {
|
|
99
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
100
|
-
value: item.value ? Number(item.value) / 100 : ""
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
},
|
|
104
|
-
set: function set(newValue) {
|
|
105
|
-
var convertedValue = _mapInstanceProperty(newValue).call(newValue, function(item) {
|
|
106
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
107
|
-
value: item.value ? Number(item.value) * 100 : ""
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
this.$emit("input", convertedValue);
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
// 减保方案时间选择总列表
|
|
114
|
-
subPlanSelectList: function subPlanSelectList() {
|
|
115
|
-
if (!this.costTable) return [];
|
|
116
|
-
var _this$costTable = this.costTable, _this$costTable$colsT = _this$costTable.colsType, colsType = _this$costTable$colsT === void 0 ? [] : _this$costTable$colsT, _this$costTable$rows = _this$costTable.rows, rows = _this$costTable$rows === void 0 ? [] : _this$costTable$rows;
|
|
117
|
-
var yearIndex = colsType && _findIndexInstanceProperty(colsType).call(colsType, function(item) {
|
|
118
|
-
return Number(item) === ConstMap.COL_TYPE_YEAR;
|
|
119
|
-
});
|
|
120
|
-
var ageIndex = colsType && _findIndexInstanceProperty(colsType).call(colsType, function(item) {
|
|
121
|
-
return Number(item) === ConstMap.COL_TYPE_AGE;
|
|
122
|
-
});
|
|
123
|
-
var result = _mapInstanceProperty(rows).call(rows, function(row) {
|
|
124
|
-
var _context2;
|
|
125
|
-
var year = row[yearIndex];
|
|
126
|
-
var age = ageIndex > -1 ? row[ageIndex] : "";
|
|
127
|
-
return {
|
|
128
|
-
text: age ? _concatInstanceProperty(_context2 = "第".concat(year, "年 (")).call(_context2, age, "周岁)") : "第".concat(year, "年"),
|
|
129
|
-
value: year,
|
|
130
|
-
age
|
|
131
|
-
};
|
|
132
|
-
});
|
|
133
|
-
return result;
|
|
134
|
-
},
|
|
135
|
-
cashRow: function cashRow() {
|
|
136
|
-
if (!this.costTable) return [];
|
|
137
|
-
var _this$costTable2 = this.costTable, _this$costTable2$cols = _this$costTable2.colsType, colsType = _this$costTable2$cols === void 0 ? [] : _this$costTable2$cols, _this$costTable2$rows = _this$costTable2.rows, rows = _this$costTable2$rows === void 0 ? [] : _this$costTable2$rows;
|
|
138
|
-
var yearIndex = colsType && _findIndexInstanceProperty(colsType).call(colsType, function(item) {
|
|
139
|
-
return Number(item) === ConstMap.COL_TYPE_YEAR;
|
|
140
|
-
});
|
|
141
|
-
var cashIndex = colsType && _findIndexInstanceProperty(colsType).call(colsType, function(item) {
|
|
142
|
-
return Number(item) === ConstMap.COL_TYPE_CASH_VALUE;
|
|
143
|
-
});
|
|
144
|
-
if (this.isFenhongShouXian(this.product)) {
|
|
145
|
-
cashIndex = colsType && _findIndexInstanceProperty(colsType).call(colsType, function(item) {
|
|
146
|
-
return Number(item) === 50;
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
if (cashIndex === -1) return [];
|
|
150
|
-
var result = _mapInstanceProperty(rows).call(rows, function(item) {
|
|
151
|
-
var year = item[yearIndex];
|
|
152
|
-
var cash = item[cashIndex];
|
|
153
|
-
return {
|
|
154
|
-
year,
|
|
155
|
-
value: cash
|
|
156
|
-
};
|
|
157
|
-
});
|
|
158
|
-
return result;
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
methods: {
|
|
162
|
-
isFenhongShouXian: function isFenhongShouXian() {
|
|
163
|
-
var _context3;
|
|
164
|
-
var product = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
165
|
-
var firstLevelId = product.common && product.common.cate && product.common.cate.firstLevelId;
|
|
166
|
-
var secondLevelId = product.common && product.common.cate && product.common.cate.secondLevelId;
|
|
167
|
-
return Number(firstLevelId) === 42 && _includesInstanceProperty(_context3 = [63, 45]).call(_context3, Number(secondLevelId));
|
|
168
|
-
},
|
|
169
|
-
formatSubPlanList: function formatSubPlanList(subPlanList) {
|
|
170
|
-
var type = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "render";
|
|
171
|
-
if (!subPlanList) return [];
|
|
172
|
-
_forEachInstanceProperty(subPlanList).call(subPlanList, function(item) {
|
|
173
|
-
if (item.value) {
|
|
174
|
-
item.value = type === "render" ? Number(item.value) / 100 : Number(item.value) * 100;
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
return subPlanList;
|
|
178
|
-
},
|
|
179
|
-
// 更新数据的统一方法
|
|
180
|
-
updateSubPlanList: function updateSubPlanList(newList) {
|
|
181
|
-
this.subPlanList = _toConsumableArray(newList);
|
|
182
|
-
},
|
|
183
|
-
handleSubPlanDateSelect: function handleSubPlanDateSelect(selectedVal, selectedIndex, selectedText) {
|
|
184
|
-
var _this$pickerData = this.pickerData, planIndex = _this$pickerData.planIndex, key = _this$pickerData.key;
|
|
185
|
-
var selectedItem = this.subPlanSelectList[selectedIndex[0]];
|
|
186
|
-
var value = selectedItem.value, age = selectedItem.age;
|
|
187
|
-
var newList = _toConsumableArray(this.subPlanList);
|
|
188
|
-
newList[planIndex] = _objectSpread(_objectSpread({}, newList[planIndex]), {}, _defineProperty(_defineProperty({}, key, value), "".concat(key, "Age"), age));
|
|
189
|
-
this.validateMaxValueAfterDateChange(newList, planIndex);
|
|
190
|
-
},
|
|
191
|
-
changeSubPlanDate: function changeSubPlanDate(index, key) {
|
|
192
|
-
this.pickerData = {
|
|
193
|
-
planIndex: index,
|
|
194
|
-
key
|
|
195
|
-
};
|
|
196
|
-
var currentValue = this.subPlanList[index][key];
|
|
197
|
-
if (currentValue) {
|
|
198
|
-
var _context4;
|
|
199
|
-
var currentIndex = _findIndexInstanceProperty(_context4 = this.subPlanSelectList).call(_context4, function(item) {
|
|
200
|
-
return String(item.value) === String(currentValue);
|
|
201
|
-
});
|
|
202
|
-
this.pickerSelectedIndex = [currentIndex >= 0 ? currentIndex : 0];
|
|
203
|
-
} else if (key === "end" && this.subPlanList[index].begin) {
|
|
204
|
-
var _context5;
|
|
205
|
-
var beginValue = this.subPlanList[index].begin;
|
|
206
|
-
var beginIndex = _findIndexInstanceProperty(_context5 = this.subPlanSelectList).call(_context5, function(item) {
|
|
207
|
-
return String(item.value) === String(beginValue);
|
|
208
|
-
});
|
|
209
|
-
this.pickerSelectedIndex = [beginIndex >= 0 ? beginIndex : 0];
|
|
210
|
-
} else {
|
|
211
|
-
this.pickerSelectedIndex = [0];
|
|
212
|
-
}
|
|
213
|
-
this.showPicker = true;
|
|
214
|
-
},
|
|
215
|
-
getSubPlanDateList: function getSubPlanDateList(type) {
|
|
216
|
-
return this.subPlanSelectList;
|
|
217
|
-
},
|
|
218
|
-
getSubPlanText: function getSubPlanText(value) {
|
|
219
|
-
var _context6;
|
|
220
|
-
if (!value) return "";
|
|
221
|
-
var target = _findInstanceProperty(_context6 = this.subPlanSelectList).call(_context6, function(item) {
|
|
222
|
-
return String(item.value) === String(value);
|
|
223
|
-
});
|
|
224
|
-
return target ? target.text.split(" ").join("\n") : "";
|
|
225
|
-
},
|
|
226
|
-
resetSubPlan: function resetSubPlan() {
|
|
227
|
-
this.updateSubPlanList([{
|
|
228
|
-
begin: "",
|
|
229
|
-
end: "",
|
|
230
|
-
beginAge: "",
|
|
231
|
-
endAge: "",
|
|
232
|
-
value: ""
|
|
233
|
-
}]);
|
|
234
|
-
},
|
|
235
|
-
addSubPlan: function addSubPlan() {
|
|
236
|
-
var _context7;
|
|
237
|
-
var newList = _concatInstanceProperty(_context7 = []).call(_context7, _toConsumableArray(this.subPlanList), [{
|
|
238
|
-
begin: "",
|
|
239
|
-
end: "",
|
|
240
|
-
beginAge: "",
|
|
241
|
-
endAge: "",
|
|
242
|
-
value: ""
|
|
243
|
-
}]);
|
|
244
|
-
this.updateSubPlanList(newList);
|
|
245
|
-
this.$emit("add");
|
|
246
|
-
},
|
|
247
|
-
deleteSubPlanItem: function deleteSubPlanItem(index) {
|
|
248
|
-
var newList = _toConsumableArray(this.subPlanList);
|
|
249
|
-
_spliceInstanceProperty(newList).call(newList, index, 1);
|
|
250
|
-
this.updateSubPlanList(newList);
|
|
251
|
-
},
|
|
252
|
-
// 计算最大减保金额 = 当年度现价 * 20%,结果四舍五入
|
|
253
|
-
calculateMaxValue: function calculateMaxValue(cashValue) {
|
|
254
|
-
return Math.round(cashValue * 0.2);
|
|
255
|
-
},
|
|
256
|
-
// 创建弹窗的通用方法
|
|
257
|
-
createExceedLimitDialog: function createExceedLimitDialog(index, value, maxValue) {
|
|
258
|
-
var _this = this;
|
|
259
|
-
var needSplit = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
260
|
-
var currentList = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : null;
|
|
261
|
-
var sourceList = currentList || this.subPlanList;
|
|
262
|
-
var newList = _toConsumableArray(sourceList);
|
|
263
|
-
var target = sourceList[index];
|
|
264
|
-
var begin = target.begin, beginAge = target.beginAge, end = target.end;
|
|
265
|
-
var dialog = this.$createGoldDialog({
|
|
266
|
-
closable: false,
|
|
267
|
-
title: "提示",
|
|
268
|
-
content: "当前减保金额超过上限,将自动按照最大值默认填充",
|
|
269
|
-
zIndex: 2222,
|
|
270
|
-
buttonType: "sticky",
|
|
271
|
-
showCancelButton: true,
|
|
272
|
-
cancelButtonText: "取消",
|
|
273
|
-
confirmButtonText: "确认",
|
|
274
|
-
confirmButtonColor: "#F05A4B",
|
|
275
|
-
onConfirm: function onConfirm() {
|
|
276
|
-
if (needSplit) {
|
|
277
|
-
newList[index] = _objectSpread(_objectSpread({}, newList[index]), {}, {
|
|
278
|
-
end: begin,
|
|
279
|
-
endAge: beginAge,
|
|
280
|
-
value: maxValue
|
|
281
|
-
});
|
|
282
|
-
var _loop = function _loop2(year2) {
|
|
283
|
-
var existingIndex = _findIndexInstanceProperty(newList).call(newList, function(item) {
|
|
284
|
-
return item.begin === String(year2) && item.end === String(year2);
|
|
285
|
-
});
|
|
286
|
-
if (existingIndex === -1) {
|
|
287
|
-
var newItem = {
|
|
288
|
-
begin: year2,
|
|
289
|
-
beginAge: age,
|
|
290
|
-
end: year2,
|
|
291
|
-
endAge: age,
|
|
292
|
-
value: ""
|
|
293
|
-
};
|
|
294
|
-
var newItemCashValue = _this.getSubPlanMaxValue(newItem);
|
|
295
|
-
if (newItemCashValue !== Infinity) {
|
|
296
|
-
newItem.value = _this.calculateMaxValue(newItemCashValue);
|
|
297
|
-
}
|
|
298
|
-
newList.push(newItem);
|
|
299
|
-
} else {
|
|
300
|
-
var existingItem = newList[existingIndex];
|
|
301
|
-
var existingCashValue = _this.getSubPlanMaxValue(existingItem);
|
|
302
|
-
if (existingCashValue !== Infinity) {
|
|
303
|
-
newList[existingIndex] = _objectSpread(_objectSpread({}, newList[existingIndex]), {}, {
|
|
304
|
-
value: _this.calculateMaxValue(existingCashValue)
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
for (var year = Number(begin) + 1, age = Number(beginAge) + 1; year <= Number(end); year++, age++) {
|
|
310
|
-
_loop(year);
|
|
311
|
-
}
|
|
312
|
-
} else {
|
|
313
|
-
newList[index] = _objectSpread(_objectSpread({}, newList[index]), {}, {
|
|
314
|
-
value: maxValue
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
_this.updateSubPlanList(newList);
|
|
318
|
-
},
|
|
319
|
-
onCancel: function onCancel() {
|
|
320
|
-
newList[index] = _objectSpread(_objectSpread({}, newList[index]), {}, {
|
|
321
|
-
value
|
|
322
|
-
});
|
|
323
|
-
_this.updateSubPlanList(newList);
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
|
-
dialog.show();
|
|
327
|
-
},
|
|
328
|
-
handleSubPlanValue: function handleSubPlanValue(e, index) {
|
|
329
|
-
var value = e.target.value.replace(/[^\d.]/g, "");
|
|
330
|
-
if (!value) return;
|
|
331
|
-
value = Number(value);
|
|
332
|
-
var target = this.subPlanList[index];
|
|
333
|
-
var begin = target.begin, end = target.end;
|
|
334
|
-
if (_Number$isNaN(value)) {
|
|
335
|
-
var _newList = _toConsumableArray(this.subPlanList);
|
|
336
|
-
_newList[index] = _objectSpread(_objectSpread({}, _newList[index]), {}, {
|
|
337
|
-
value: ""
|
|
338
|
-
});
|
|
339
|
-
this.updateSubPlanList(_newList);
|
|
340
|
-
return;
|
|
341
|
-
}
|
|
342
|
-
var cashValue = this.getSubPlanMaxValue(target);
|
|
343
|
-
var newList = _toConsumableArray(this.subPlanList);
|
|
344
|
-
if (cashValue !== Infinity) {
|
|
345
|
-
var maxValue = this.calculateMaxValue(cashValue);
|
|
346
|
-
if (value > maxValue) {
|
|
347
|
-
var needSplit = begin && end && begin !== end;
|
|
348
|
-
this.createExceedLimitDialog(index, value, maxValue, needSplit);
|
|
349
|
-
return;
|
|
350
|
-
} else {
|
|
351
|
-
newList[index] = _objectSpread(_objectSpread({}, newList[index]), {}, {
|
|
352
|
-
value
|
|
353
|
-
});
|
|
354
|
-
}
|
|
355
|
-
} else {
|
|
356
|
-
newList[index] = _objectSpread(_objectSpread({}, newList[index]), {}, {
|
|
357
|
-
value
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
this.updateSubPlanList(newList);
|
|
361
|
-
},
|
|
362
|
-
// 为指定索引的减保计划项设置最大值
|
|
363
|
-
setSubPlanMaxValue: function setSubPlanMaxValue(index) {
|
|
364
|
-
var target = this.subPlanList[index];
|
|
365
|
-
var cashValue = this.getSubPlanMaxValue(target);
|
|
366
|
-
if (cashValue !== Infinity) {
|
|
367
|
-
var maxValue = this.calculateMaxValue(cashValue);
|
|
368
|
-
var newList = _toConsumableArray(this.subPlanList);
|
|
369
|
-
newList[index] = _objectSpread(_objectSpread({}, newList[index]), {}, {
|
|
370
|
-
value: maxValue
|
|
371
|
-
});
|
|
372
|
-
this.updateSubPlanList(newList);
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
getSubPlanMaxValue: function getSubPlanMaxValue(item) {
|
|
376
|
-
var _context8;
|
|
377
|
-
if (!item || !item.begin || this.cashRow.length === 0) return Infinity;
|
|
378
|
-
var begin = item.begin;
|
|
379
|
-
var beginCashItem = _findInstanceProperty(_context8 = this.cashRow).call(_context8, function(item2) {
|
|
380
|
-
return String(item2.year) === String(begin);
|
|
381
|
-
});
|
|
382
|
-
if (beginCashItem) {
|
|
383
|
-
return Number(beginCashItem.value);
|
|
384
|
-
}
|
|
385
|
-
return Infinity;
|
|
386
|
-
},
|
|
387
|
-
// 时间修改后检验最大值
|
|
388
|
-
validateMaxValueAfterDateChange: function validateMaxValueAfterDateChange(newList, planIndex) {
|
|
389
|
-
var target = newList[planIndex];
|
|
390
|
-
var currentValue = target.value;
|
|
391
|
-
if (!currentValue || currentValue === "") {
|
|
392
|
-
this.updateSubPlanList(newList);
|
|
393
|
-
return;
|
|
394
|
-
}
|
|
395
|
-
var cashValue = this.getSubPlanMaxValue(target);
|
|
396
|
-
if (cashValue === Infinity) {
|
|
397
|
-
this.updateSubPlanList(newList);
|
|
398
|
-
return;
|
|
399
|
-
}
|
|
400
|
-
var maxValue = this.calculateMaxValue(cashValue);
|
|
401
|
-
if (Number(currentValue) > maxValue) {
|
|
402
|
-
var begin = target.begin, end = target.end;
|
|
403
|
-
var needSplit = begin && end && begin !== end;
|
|
404
|
-
this.createExceedLimitDialog(planIndex, Number(currentValue), maxValue, needSplit, newList);
|
|
405
|
-
} else {
|
|
406
|
-
this.updateSubPlanList(newList);
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
|
-
var _sfc_render = function render() {
|
|
412
|
-
var _vm = this, _c = _vm._self._c;
|
|
413
|
-
return _c("div", {
|
|
414
|
-
staticClass: "act-planSubPlan"
|
|
415
|
-
}, [_c("div", [_vm._l(_vm.subPlanList, function(subPlanItem, index) {
|
|
416
|
-
return _c("div", {
|
|
417
|
-
key: index,
|
|
418
|
-
staticClass: "subplan-item"
|
|
419
|
-
}, [_c("div", {
|
|
420
|
-
directives: [{
|
|
421
|
-
name: "show",
|
|
422
|
-
rawName: "v-show",
|
|
423
|
-
value: _vm.subPlanList.length > 1,
|
|
424
|
-
expression: "subPlanList.length > 1"
|
|
425
|
-
}],
|
|
426
|
-
staticClass: "delete-icon",
|
|
427
|
-
on: {
|
|
428
|
-
"click": function click($event) {
|
|
429
|
-
return _vm.deleteSubPlanItem(index);
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
}), _c("div", {
|
|
433
|
-
staticClass: "subplan-item-wrapper"
|
|
434
|
-
}, [_c("div", {
|
|
435
|
-
staticClass: "subplan-item-content"
|
|
436
|
-
}, [_c("p", {
|
|
437
|
-
staticClass: "label"
|
|
438
|
-
}, [_vm._v("开始时间")]), _c("div", {
|
|
439
|
-
staticClass: "subplan-date"
|
|
440
|
-
}, [_c("div", {
|
|
441
|
-
staticClass: "subplan-date-input",
|
|
442
|
-
class: {
|
|
443
|
-
disabled: !_vm.getSubPlanText(subPlanItem.begin)
|
|
444
|
-
},
|
|
445
|
-
domProps: {
|
|
446
|
-
"innerHTML": _vm._s(_vm.getSubPlanText(subPlanItem.begin) || "开始时间")
|
|
447
|
-
},
|
|
448
|
-
on: {
|
|
449
|
-
"click": function click($event) {
|
|
450
|
-
return _vm.changeSubPlanDate(index, "begin");
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
}), _c("span", [_vm._v("至")]), _c("div", {
|
|
454
|
-
staticClass: "subplan-date-input",
|
|
455
|
-
class: {
|
|
456
|
-
disabled: !_vm.getSubPlanText(subPlanItem.end)
|
|
457
|
-
},
|
|
458
|
-
domProps: {
|
|
459
|
-
"innerHTML": _vm._s(_vm.getSubPlanText(subPlanItem.end) || "结束时间")
|
|
460
|
-
},
|
|
461
|
-
on: {
|
|
462
|
-
"click": function click($event) {
|
|
463
|
-
return _vm.changeSubPlanDate(index, "end");
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
})])]), _c("div", {
|
|
467
|
-
staticClass: "subplan-item-content"
|
|
468
|
-
}, [_c("p", {
|
|
469
|
-
staticClass: "label"
|
|
470
|
-
}, [_vm._v("每年领取金")]), _c("input", {
|
|
471
|
-
attrs: {
|
|
472
|
-
"placeholder": "请输入",
|
|
473
|
-
"type": "tel",
|
|
474
|
-
"pattern": "[0-9]*"
|
|
475
|
-
},
|
|
476
|
-
domProps: {
|
|
477
|
-
"value": subPlanItem.value
|
|
478
|
-
},
|
|
479
|
-
on: {
|
|
480
|
-
"blur": function blur($event) {
|
|
481
|
-
return _vm.handleSubPlanValue($event, index);
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
})])])]);
|
|
485
|
-
}), _c("div", {
|
|
486
|
-
staticClass: "subplan-button-wrapper"
|
|
487
|
-
}, [_c("div", {
|
|
488
|
-
staticClass: "subplan-button subplan-button-reset",
|
|
489
|
-
on: {
|
|
490
|
-
"click": _vm.resetSubPlan
|
|
491
|
-
}
|
|
492
|
-
}, [_vm._v(" 重置 ")]), _c("div", {
|
|
493
|
-
staticClass: "subplan-button subplan-button-add",
|
|
494
|
-
on: {
|
|
495
|
-
"click": _vm.addSubPlan
|
|
496
|
-
}
|
|
497
|
-
}, [_c("i", {
|
|
498
|
-
staticClass: "add-icon"
|
|
499
|
-
}), _vm._v(" 添加行 ")])]), _c("div", {
|
|
500
|
-
staticClass: "subplan-hint"
|
|
501
|
-
}, [_vm._v("*根据减保规则,如领取金额超过减保上限,则以最大可领取金额计算")])], 2), _c("act-picker", {
|
|
502
|
-
attrs: {
|
|
503
|
-
"data": [_vm.subPlanSelectList],
|
|
504
|
-
"selectedIndex": _vm.pickerSelectedIndex
|
|
505
|
-
},
|
|
506
|
-
on: {
|
|
507
|
-
"select": _vm.handleSubPlanDateSelect
|
|
508
|
-
},
|
|
509
|
-
model: {
|
|
510
|
-
value: _vm.showPicker,
|
|
511
|
-
callback: function callback($$v) {
|
|
512
|
-
_vm.showPicker = $$v;
|
|
513
|
-
},
|
|
514
|
-
expression: "showPicker"
|
|
515
|
-
}
|
|
516
|
-
})], 1);
|
|
517
|
-
};
|
|
518
|
-
var _sfc_staticRenderFns = [];
|
|
519
|
-
var __component__ = /* @__PURE__ */ normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, "e61cb2f2");
|
|
520
|
-
var PlanSubPlan = __component__.exports;
|
|
521
|
-
PlanSubPlan.install = function(Vue) {
|
|
522
|
-
Vue.component(PlanSubPlan.name, PlanSubPlan);
|
|
523
|
-
Vue.prototype["$createPlanSubPlan"] = create(PlanSubPlan, Vue);
|
|
524
|
-
};
|
|
525
|
-
export {
|
|
526
|
-
PlanSubPlan as P
|
|
527
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.act-planSubPlan[data-v-e61cb2f2] .act-popup-content{height:initial}.act-planSubPlan[data-v-e61cb2f2] .act-picker-panel{height:50vh}.act-planSubPlan .subplan-item[data-v-e61cb2f2]{background:#F7F8FC;font-size:15px;color:#666666;display:-webkit-box;display:-webkit-flex;display:flex;padding:0 9px;border-radius:9px;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin-top:9px}.act-planSubPlan .subplan-item input[data-v-e61cb2f2],.act-planSubPlan .subplan-item .subplan-date-input[data-v-e61cb2f2]{background:none;text-align:right;color:#333333;border:none}.act-planSubPlan .subplan-item input[data-v-e61cb2f2]::-webkit-input-placeholder{color:#B3B3B3}.act-planSubPlan .subplan-item-content[data-v-e61cb2f2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;height:50px;border-top:1PX solid rgba(189,191,198,0.3)}.act-planSubPlan .subplan-item-content[data-v-e61cb2f2]:first-child{border-top:none}.act-planSubPlan .subplan-date[data-v-e61cb2f2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.act-planSubPlan .subplan-date input[data-v-e61cb2f2],.act-planSubPlan .subplan-date .subplan-date-input[data-v-e61cb2f2]{width:90px}.act-planSubPlan .subplan-date span[data-v-e61cb2f2]{margin:0 12px}.act-planSubPlan .subplan-date-input[data-v-e61cb2f2]{font-size:13px;line-height:16px;white-space:pre-wrap}.act-planSubPlan .subplan-date-input.disabled[data-v-e61cb2f2]{color:#B3B3B3;font-size:15px;line-height:20px}.act-planSubPlan .subplan-item-wrapper[data-v-e61cb2f2]{-webkit-box-flex:1;-webkit-flex:1;flex:1}.act-planSubPlan .delete-icon[data-v-e61cb2f2]{display:block;background:url(../assets/icon-minus-big.cf93.png) no-repeat;background-size:100% 100%;width:16px;height:16px;-webkit-flex-shrink:0;flex-shrink:0;margin-right:8px}.act-planSubPlan .subplan-button-wrapper[data-v-e61cb2f2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;margin:15px auto 6px}.act-planSubPlan .subplan-button[data-v-e61cb2f2]{border-radius:20px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;font-size:15px}.act-planSubPlan .subplan-button-reset[data-v-e61cb2f2]{width:100px;height:36px;border-radius:20px;border:1px solid #ECEFF3;margin-right:12px}.act-planSubPlan .add-icon[data-v-e61cb2f2]{display:block;background:url(../assets/icon-add-big.8f77.png) no-repeat;background-size:100% 100%;width:15px;height:15px;margin-right:6px}.act-planSubPlan .subplan-button-add[data-v-e61cb2f2]{width:180px;height:36px;background:#fdeeed;color:#F05A4B;font-weight:bold}.act-planSubPlan .subplan-hint[data-v-e61cb2f2]{color:#999999;font-size:13px;line-height:17px}
|