|
@@ -0,0 +1,47 @@
|
|
|
+/**
|
|
|
+ * Created by zhang on 2018/1/30.
|
|
|
+ */
|
|
|
+let installationFeeObj={
|
|
|
+ rationInstallSheet:null,
|
|
|
+ installationFeeSpread:null,
|
|
|
+ rationInstallsetting: {
|
|
|
+ header: [
|
|
|
+ {headerName: "按统一设置", headerWidth: 100, dataCode: "name", dataType: "String"},
|
|
|
+ {headerName: "费用项", headerWidth: 120, dataCode: "stdValue", hAlign: "right", dataType: "String"},
|
|
|
+ {headerName: "费用规则", headerWidth: 120, dataCode: "actualValue", hAlign: "right", dataType: "String"},
|
|
|
+ {headerName: "编码", headerWidth: 120, dataCode: "actualValue", hAlign: "right", dataType: "String"},
|
|
|
+ {headerName: "基数", headerWidth: 120, dataCode: "actualValue", hAlign: "right", dataType: "String"},
|
|
|
+ {headerName: "费率(%)", headerWidth: 120, dataCode: "actualValue", hAlign: "right", dataType: "String"},
|
|
|
+ {headerName: "其中人工(%)", headerWidth: 120, dataCode: "actualValue", hAlign: "right", dataType: "String"},
|
|
|
+ {headerName: "其中材料(%)", headerWidth: 120, dataCode: "actualValue", hAlign: "right", dataType: "String"},
|
|
|
+ {headerName: "其中机械(%)", headerWidth: 120, dataCode: "actualValue", hAlign: "right", dataType: "String"},
|
|
|
+ {headerName: "费用类型", headerWidth: 120, dataCode: "actualValue", hAlign: "right", dataType: "String"},
|
|
|
+ {headerName: "记取位置", headerWidth: 120, dataCode: "actualValue", hAlign: "right", dataType: "String"}
|
|
|
+ ],
|
|
|
+ view: {
|
|
|
+ lockColumns: [0, 1]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ showCalcInstallSettingDiv:function () {
|
|
|
+ $("#calc_installation_fee").modal({show:true});
|
|
|
+ },
|
|
|
+ engineeringTypeChecking:function () {
|
|
|
+ let property = projectInfoObj.projectInfo.property;
|
|
|
+ let engineering = property.engineering;
|
|
|
+ if(engineering==engineeringType.BUILD_IN){//如果是安装工程,则显示
|
|
|
+ $('#AZZJF_div').show();
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+$(function () {
|
|
|
+ $('#calc_installation_fee').on('shown.bs.modal',function () {
|
|
|
+ if(installationFeeObj.installationFeeSpread == null){//初始化显示
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+});
|