Browse Source

业务类型10.12

caojunjie 1 năm trước cách đây
mục cha
commit
cba9333a3c

+ 42 - 0
src/api/iosBasicData/bbusinesstype.js

@@ -0,0 +1,42 @@
+import request from '@/router/axios';
+
+export const bbusinesstypeList = (current, size, params) => {
+  return request({
+    url: '/api/blade-los/businesstype/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const bbusinesstypeDetail = (id) => {
+  return request({
+    url: '/api/blade-los/businesstype/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const bbusinesstypeRemove = (ids) => {
+  return request({
+    url: '/api/blade-los/businesstype/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const bbusinesstypeSubmit = (row) => {
+  return request({
+    url: '/api/blade-los/businesstype/submit',
+    method: 'post',
+    data: row
+  })
+}
+

+ 3 - 3
src/api/iosBasicData/losbfeestemplate.js

@@ -14,7 +14,7 @@ export const losbfeestemplateList = (current, size, params) => {
 
 export const losbfeestemplateDetail = (id) => {
   return request({
-    url: '/api/blade.los/losbfeestemplate/detail',
+    url: '/api/blade-los/losbfeestemplate/detail',
     method: 'get',
     params: {
       id
@@ -24,7 +24,7 @@ export const losbfeestemplateDetail = (id) => {
 
 export const losbfeestemplateRemove = (ids) => {
   return request({
-    url: '/api/blade.los/losbfeestemplate/remove',
+    url: '/api/blade-los/losbfeestemplate/remove',
     method: 'post',
     params: {
       ids,
@@ -34,7 +34,7 @@ export const losbfeestemplateRemove = (ids) => {
 
 export const losbfeestemplateSubmit = (row) => {
   return request({
-    url: '/api/blade.los/losbfeestemplate/submit',
+    url: '/api/blade-los/losbfeestemplate/submit',
     method: 'post',
     data: row
   })

+ 5 - 1
src/components/iosbasic-data/searchquery.vue

@@ -52,7 +52,7 @@
     export default {
         data(){
             return {
-                selectValue:null,
+                // selectValue:null,
                 // 弹窗关闭
                 corpVisible:false,
             }
@@ -73,6 +73,10 @@
                     disabled: false,
                 }
             },
+            // 绑定的值
+            selectValue:{
+                default:null
+            },
             // 是否多选
             multiple:{
                 type:Boolean,

+ 4 - 0
src/enums/column-name.js

@@ -1353,6 +1353,10 @@ const columnName = [{
     code: 305,
     name: '货运代理-基础资料-币别及汇率'
   },
+  {
+    code: 306,
+    name: '货运代理-基础资料-业务类型'
+  },
 ]
 export const getColumnName = (key) => {
   for (let index = 0; index < columnName.length; index++) {

+ 382 - 0
src/views/iosBasicData/bbusinesstype/index.vue

@@ -0,0 +1,382 @@
+<template>
+  <basic-container>
+    <avue-crud :option="option"
+               :table-loading="loading"
+               :data="data"
+               :page.sync="page"
+               :permission="permissionList"
+               id="out-table"
+               :header-cell-class-name="headerClassName"
+               :before-open="beforeOpen"
+               v-model="form"
+               ref="crud"
+               @row-update="rowUpdate"
+               @row-save="rowSave"
+               @row-del="rowDel"
+               @search-change="searchChange"
+               @search-reset="searchReset"
+               @selection-change="selectionChange"
+               @current-change="currentChange"
+               @size-change="sizeChange"
+               @refresh-change="refreshChange"
+               @resetColumn="resetColumnTwo('crud', 'option', 'optionBack', 306)"
+               @saveColumn="saveColumnTwo('crud', 'option', 'optionBack', 306)"
+               @on-load="onLoad">
+      <template slot="menuLeft">
+        <el-button type="danger"
+                   size="small"
+                   icon="el-icon-delete"
+                   plain
+                   v-if="permission.bbusinesstype_delete"
+                   @click="handleDelete">删 除
+        </el-button>
+      </template>
+    </avue-crud>
+  </basic-container>
+</template>
+
+<script>
+  import {bbusinesstypeList, bbusinesstypeDetail, bbusinesstypeSubmit, bbusinesstypeRemove} from "@/api/iosBasicData/bbusinesstype";
+  import {mapGetters} from "vuex";
+
+  export default {
+    data() {
+      return {
+        form: {},
+        query: {},
+        loading: true,
+        page: {
+          pageSize: 10,
+          currentPage: 1,
+          total: 0
+        },
+        selectionList: [],
+        option:{},
+        optionBack: {
+          addBtnText:'新建业务类型',
+          addTitle:'新建业务类型',
+          editBtnText:'编辑',
+          editTitle:'编辑业务类型',
+          viewBtnText:'查看',
+          viewTitle:'查看业务类型',
+          height:'auto',
+          calcHeight: 30,
+          tip: false,
+          searchShow: true,
+          searchMenuSpan: 6,
+          border: true,
+          index: true,
+          viewBtn: true,
+          selection: true,
+          dialogClickModal: false,
+          column: [
+            {
+              label: "代码",
+              prop: "code",
+                search: true,
+              rules: [{
+                required: true,
+                message: "请输入代码",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "中文名称",
+              prop: "cnName",
+                search: true,
+              rules: [{
+                required: true,
+                message: "请输入中文名称",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "英文名称",
+              prop: "enName",
+                search: true,
+              rules: [{
+                required: true,
+                message: "请输入英文名称",
+                trigger: "blur"
+              }]
+            },
+            {
+              label: "单据号码格式",
+              prop: "billNoFormat",
+              // rules: [{
+              //   required: true,
+              //   message: "请输入单据号码格式,BL[B][Y4][M2][D2][N6]",
+              //   trigger: "blur"
+              // }]
+            },
+            {
+              label: "版本",
+              prop: "version",
+                hide: true,
+                display: false,
+            },
+            {
+              label: "状态",
+              prop: "status",
+                type:'select',
+                dicData: [{
+                    label: '启用',
+                    value: 0
+                }, {
+                    label: '停用',
+                    value: 1
+                }],
+              value:0
+            },
+            {
+              label: "是否已删除(0 否 1是)",
+              prop: "isDeleted",
+                hide: true,
+                display: false,
+            },
+              {
+                  label: "主键",
+                  prop: "id",
+                  hide: true,
+                  display: false,
+              },
+              {
+                  label: "创建人 Id",
+                  prop: "createUser",
+                  hide: true,
+                  display: false,
+              },
+              {
+                  label: "创建人",
+                  prop: "createUserName",
+                  display: false,
+              },
+              {
+                  label: "创建部门 Id",
+                  prop: "createDept",
+                  hide: true,
+                  display: false,
+              },
+              {
+                  label: "创建部门",
+                  prop: "createDeptName",
+                  display: false,
+              },
+              {
+                  label: "创建时间",
+                  prop: "createTime",
+                  width:160,
+                  display: false,
+              },
+              {
+                  label: "修改人 Id",
+                  prop: "updateUser",
+                  hide: true,
+                  display: false,
+              },
+              {
+                  label: "修改人",
+                  prop: "updateUserName",
+                  width: 160,
+                  display: false,
+              },
+              {
+                  label: "修改时间",
+                  prop: "updateTime",
+                  width: 160,
+                  display: false,
+              },
+            {
+              label: "备注",
+              prop: "remarks",
+                span: 24,
+                type: 'textarea',
+                width: "180",
+                slot: true,
+                minRows: 3,
+            },
+          ]
+        },
+        data: []
+      };
+    },
+    computed: {
+      ...mapGetters(["permission"]),
+      permissionList() {
+        return {
+          // addBtn: this.vaildData(this.permission.bbusinesstype_add, false),
+          // viewBtn: this.vaildData(this.permission.bbusinesstype_view, false),
+          // delBtn: this.vaildData(this.permission.bbusinesstype_delete, false),
+          // editBtn: this.vaildData(this.permission.bbusinesstype_edit, false)
+        };
+      },
+      ids() {
+        let ids = [];
+        this.selectionList.forEach(ele => {
+          ids.push(ele.id);
+        });
+        return ids.join(",");
+      }
+    },
+      async created() {
+          this.option = await this.getColumnData(this.getColumnName(306), this.optionBack);
+      },
+      methods: {
+      rowSave(row, done, loading) {
+        bbusinesstypeSubmit(row).then(() => {
+          this.onLoad(this.page);
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          });
+          done();
+        }, error => {
+          loading();
+          window.console.log(error);
+        });
+      },
+      rowUpdate(row, index, done, loading) {
+        bbusinesstypeSubmit(row).then(() => {
+          this.onLoad(this.page);
+          this.$message({
+            type: "success",
+            message: "操作成功!"
+          });
+          done();
+        }, error => {
+          loading();
+          console.log(error);
+        });
+      },
+      rowDel(row) {
+        this.$confirm("确定将选择数据删除?", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        })
+          .then(() => {
+            return bbusinesstypeRemove(row.id);
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!"
+            });
+          });
+      },
+      handleDelete() {
+        if (this.selectionList.length === 0) {
+          this.$message.warning("请选择至少一条数据");
+          return;
+        }
+        this.$confirm("确定将选择数据删除?", {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        })
+          .then(() => {
+            return bbusinesstypeRemove(this.ids);
+          })
+          .then(() => {
+            this.onLoad(this.page);
+            this.$message({
+              type: "success",
+              message: "操作成功!"
+            });
+            this.$refs.crud.toggleSelection();
+          });
+      },
+      beforeOpen(done, type) {
+        if (["edit", "view"].includes(type)) {
+          bbusinesstypeDetail(this.form.id).then(res => {
+            this.form = res.data.data;
+          });
+        }
+        done();
+      },
+      searchReset() {
+        this.query = {};
+        this.onLoad(this.page);
+      },
+      searchChange(params, done) {
+        this.query = params;
+        this.page.currentPage = 1;
+        this.onLoad(this.page, params);
+        done();
+      },
+      selectionChange(list) {
+        this.selectionList = list;
+      },
+      selectionClear() {
+        this.selectionList = [];
+        this.$refs.crud.toggleSelection();
+      },
+      currentChange(currentPage){
+        this.page.currentPage = currentPage;
+      },
+      sizeChange(pageSize){
+        this.page.pageSize = pageSize;
+      },
+      refreshChange() {
+        this.onLoad(this.page, this.query);
+      },
+      onLoad(page, params = {}) {
+        this.loading = true;
+        bbusinesstypeList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
+          const data = res.data.data;
+          this.page.total = data.total;
+          this.data = data.records;
+          this.loading = false;
+          this.selectionClear();
+        });
+      },
+          //自定义列保存
+          async saveColumnTwo(ref, option, optionBack, code) {
+              /**
+               * 已定义全局方法,直接使用,saveColumnData保存列数据方法,参数传值(表格名称,当前表格的option数据)
+               * 已定义全局方法,直接使用,getColumnName方法用来获取枚举值,参数根据自己定义的code值获取中文名
+               * 一定要执行异步操作,要等接口成功返回,才能执行下一行代码
+               */
+              const inSave = await this.saveColumnData(this.getColumnName(code), this[option]);
+              if (inSave) {
+                  this.$message.success("保存成功");
+                  //关闭窗口
+                  this.$refs[ref].$refs.dialogColumn.columnBox = false;
+              }
+          },
+          //自定义列重置
+          async resetColumnTwo(ref, option, optionBack, code) {
+              this[option] = this[optionBack];
+              const inSave = await this.delColumnData(this.getColumnName(code), this[optionBack]);
+              if (inSave) {
+                  this.$message.success("重置成功");
+                  this.$refs[ref].$refs.dialogColumn.columnBox = false;
+              }
+          },
+          // 更改表格颜色
+          headerClassName(tab){
+              //颜色间隔
+              let back = ""
+              if (tab.columnIndex >= 0 && tab.column.level === 1) {
+                  if (tab.columnIndex % 2 === 0) {
+                      back = "back-one"
+                  } else if (tab.columnIndex % 2 === 1) {
+                      back = "back-two"
+                  }
+              }
+              return back;
+          },
+
+    }
+  };
+</script>
+
+<style scoped>
+::v-deep#out-table .back-one {
+    background: #ecf5ff !important;
+}
+::v-deep#out-table .back-two {
+    background: #ecf5ff !important;
+}
+</style>

+ 67 - 7
src/views/iosBasicData/bports/portsTerms.vue

@@ -160,7 +160,28 @@
                                 <el-input type="textarea" v-if="item.type === 'textarea'" v-model.trim="shipForm[item.prop]" size="small"
                                           autocomplete="off" :disabled="item.disabled" :placeholder="'请输入' + item.label"></el-input>
                                 <div v-else-if="item.prop == 'carrierName'">
-                                    船公司插槽目前还没有2023-10-10
+                                    <search-query ref="SearchQuery"
+                                                  :datalist="corpData"
+                                                  title="船公司"
+                                                  :filterable="true"
+                                                  :clearable="true"
+                                                  :remote="true"
+                                                  :forParameter="{key:'id',label:'cnName',value:'id'}"
+                                                  @remoteMethod="getBcorpsListfun" @corpChange="corpCorpChange" >
+                                        <bcorps></bcorps>
+                                    </search-query>
+                                </div>
+                                <div v-else-if="item.prop == 'serviceTermCode'">
+                                    <search-query ref="SearchQuery"
+                                                  :datalist="serviceTermCodeData"
+                                                  title="服务条款"
+                                                  :filterable="true"
+                                                  :clearable="true"
+                                                  :remote="true"
+                                                  :forParameter="{key:'id',label:'cnName',value:'cnName'}"
+                                                  @remoteMethod="getBcorpsListfun" @corpChange="serviceTermCodeCorpChange" >
+                                        <bserviceterms></bserviceterms>
+                                    </search-query>
                                 </div>
                                 <el-input v-else type="age" style="width: 100%;" v-model.trim="shipForm[item.prop]" size="small" autocomplete="off"
                                           :disabled="item.disabled" clearable :placeholder="'请输入' + item.label"></el-input>
@@ -179,7 +200,13 @@
 
 <script>
 import {bportsDetail, bportsSubmit} from "@/api/iosBasicData/bports";
+import SearchQuery from "@/components/iosbasic-data/searchquery.vue";
+import bcorps from "@/views/iosBasicData/bcorps/index.vue";
+import bserviceterms from "@/views/iosBasicData/bserviceterms/index.vue";
+import {getBcorpsList} from "@/api/iosBasicData/bcorps";
+import {getBservicetermsList} from "@/api/iosBasicData/bserviceterms";
     export default {
+        components: {bcorps, SearchQuery,bserviceterms},
         props:{
             detailData: {
                 type: Object
@@ -194,6 +221,10 @@ import {bportsDetail, bportsSubmit} from "@/api/iosBasicData/bports";
                 // 船公司弹窗绑定的数据
                 shipForm:{},
                 shipIndex:null,
+                // 客户(船公司)数据
+                corpData:[],
+                // 服务条款
+                serviceTermCodeData:[],
 
                 // 获取到的数据
                 form:{
@@ -309,7 +340,7 @@ import {bportsDetail, bportsSubmit} from "@/api/iosBasicData/bports";
                 shipData:{
                     column:[
                         {
-                            label: "公司名称",
+                            label: "公司名称",
                             prop: "carrierName",
                             rules: [{
                                 required: true,
@@ -329,11 +360,11 @@ import {bportsDetail, bportsSubmit} from "@/api/iosBasicData/bports";
                         {
                             label: "船公司特殊要求",
                             prop: "details",
-                            rules: [{
-                                required: true,
-                                message: "请输入船公司特殊要求",
-                                trigger: "blur"
-                            }]
+                            // rules: [{
+                            //     required: true,
+                            //     message: "请输入船公司特殊要求",
+                            //     trigger: "blur"
+                            // }]
                         },
                         {
                             label: "备注",
@@ -346,7 +377,36 @@ import {bportsDetail, bportsSubmit} from "@/api/iosBasicData/bports";
                 },
             }
         },
+        created() {
+            this.getBcorpsListfun()
+            this.getBservicetermsListfun()
+        },
         methods:{
+            // 获取客户(船公司)数据
+            getBcorpsListfun(cnName){
+                getBcorpsList(1,10,{cnName}).then(res=>{
+                    this.corpData = res.data.data.records
+                })
+            },
+            // 船公司选中的回调
+            corpCorpChange(value){
+                for(let item of this.corpData) {
+                    if (item.id == value) {
+                        this.$set(this.shipForm,'carrierId',item.id)
+                        this.$set(this.shipForm,'carrierName',item.cnName)
+                    }
+                }
+            },
+            // 服务条款请求的数据
+            getBservicetermsListfun(cnName){
+                getBservicetermsList(1,10,{cnName}).then(res=>{
+                    this.serviceTermCodeData = res.data.data.records
+                })
+            },
+            // 服务条款选择的回调
+            serviceTermCodeCorpChange(value){
+                this.shipForm.serviceTermCode = value
+            },
             // 获取详情数据
             bportsDetailfun(id){
                 this.pageLoading = true

+ 91 - 30
src/views/iosBasicData/losbfeestemplate/feesTemplateItems.vue

@@ -25,8 +25,18 @@
                         <el-col v-for="(item, index) in basicData.column" :key="index" :span="item.span ? item.span : 8"
                                 :class="{ isShow: item.display }" >
                             <el-form-item :label="item.label" :prop="item.prop" :rules="item.rules">
-                                <div v-if="item.prop == 'businessTypeId'">
-                                    业务类型
+                                <div v-if="item.prop == 'businessTypeCnName'">
+                                    <search-query ref="SearchQuery"
+                                                  :selectValue="form[item.prop]"
+                                                  :datalist="businessTypeData"
+                                                  title="业务类型"
+                                                  :filterable="true"
+                                                  :clearable="true"
+                                                  :remote="true"
+                                                  :forParameter="{key:'id',label:'cnName',value:'cnName'}"
+                                                  @remoteMethod="bbusinesstypeListfun" @corpChange="businessTypeCorpChange" >
+                                        <bbusinesstype></bbusinesstype>
+                                    </search-query>
                                 </div>
                                 <el-select v-else-if="item.type == 'select'"  v-model="form[item.prop]" :placeholder="'请选择' + item.label" clearable
                                            filterable style="width: 100%" size="small"
@@ -57,11 +67,47 @@
                 </div>
                 <el-table
                     stripe
-                    :data="form.feestemplateList"
+                    :data="form.feesTemplateItemsList"
                     id="out-table"
                     :header-cell-class-name="headerClassName"
                     style="width: 100%">
                     <el-table-column
+                        prop="curCode"
+                        label="客户">
+                    </el-table-column>
+                    <el-table-column
+                        prop="curCode"
+                        label="客户英文名称">
+                    </el-table-column>
+                    <el-table-column
+                        prop="curCode"
+                        label="费用编码">
+                    </el-table-column>
+                    <el-table-column
+                        prop="feeCnName"
+                        label="费用">
+                    </el-table-column>
+                    <el-table-column
+                        prop="curCode"
+                        label="费用英文名称">
+                    </el-table-column>
+                    <el-table-column
+                        prop="quantityRule"
+                        label="数量规则">
+                    </el-table-column>
+                    <el-table-column
+                        prop="quantity"
+                        label="数量">
+                    </el-table-column>
+                    <el-table-column
+                        prop="price"
+                        label="单价">
+                    </el-table-column>
+                    <el-table-column
+                        prop="curCode"
+                        label="币别">
+                    </el-table-column>
+                    <el-table-column
                         prop="remarks"
                         label="备注">
                     </el-table-column>
@@ -88,7 +134,7 @@
         <el-dialog
             title="费用详细"
             :visible.sync="feestemplateVisible"
-            width="50%"
+            width="60%"
             append-to-body
             :destroy-on-close="true"
             :modal-append-to-body="false"
@@ -158,13 +204,15 @@ import {losbfeestemplateDetail, losbfeestemplateSubmit} from "@/api/iosBasicData
 import {bfeesList} from "@/api/iosBasicData/bfees";
 import {getBcorpsList} from "@/api/iosBasicData/bcorps";
 import { getRateList } from "@/api/iosBasicData/rateManagement";
+import {bbusinesstypeList} from "@/api/iosBasicData/bbusinesstype";
 import SearchQuery from '@/components/iosbasic-data/searchquery.vue'
 import bcorps from "@/views/iosBasicData/bcorps/index.vue";
 import bfeesdefine from "@/views/iosBasicData/bfeesdefine/index.vue";
+import bbusinesstype from "@/views/iosBasicData/bbusinesstype/index.vue";
 
 
 export default {
-    components: {SearchQuery,bcorps,bfeesdefine},
+    components: {SearchQuery,bcorps,bfeesdefine,bbusinesstype},
     props:{
         detailData: {
             type: Object
@@ -186,32 +234,36 @@ export default {
             feeData:[],
             // 币别请求数据
             curCodeData:[],
+            // 业务类型数据
+            businessTypeData:[],
 
             // 获取到的数据
             form:{
-                feestemplateList:[]
+                isShared:0,
+                status:0,
+                feesTemplateItemsList:[]
             },
             // 基础资料数据
             basicData:{
                 column:[
+                    // {
+                    //     label: "业务类型",
+                    //     prop: "businessTypeId",
+                    //     rules: [{
+                    //         required: true,
+                    //         message: "",
+                    //         trigger: "blur"
+                    //     }]
+                    // },
                     {
                         label: "业务类型",
-                        prop: "businessTypeId",
+                        prop: "businessTypeCnName",
                         rules: [{
                             required: true,
                             message: "",
                             trigger: "blur"
                         }]
                     },
-                    // {
-                    //     label: "业务类型中文名称",
-                    //     prop: "businessTypeCnName",
-                    //     rules: [{
-                    //         required: true,
-                    //         message: "",
-                    //         trigger: "blur"
-                    //     }]
-                    // },
                     {
                         label: "业务类型英文",
                         prop: "businessTypeEnName",
@@ -261,11 +313,6 @@ export default {
                             label:'付',
                             value:'C'
                         }],
-                        rules: [{
-                            required: true,
-                            message: "请输入收付",
-                            trigger: "blur"
-                        }]
                     },
                     {
                         label: "是否公开共享",
@@ -279,11 +326,6 @@ export default {
                             label:'是',
                             value:1
                         }],
-                        rules: [{
-                            required: true,
-                            message: "请输入是否公开共享",
-                            trigger: "blur"
-                        }]
                     },
                     {
                         label: "状态",
@@ -409,6 +451,7 @@ export default {
         this.getBcorpsListfun()
         this.bfeesListfun()
         this.getRateListfun()
+        this.bbusinesstypeListfun()
     },
     methods:{
         // 获取客户数据
@@ -432,6 +475,12 @@ export default {
                 this.curCodeData = res.data.data.records
             })
         },
+        // 获取业务类型
+        bbusinesstypeListfun(cnName){
+            bbusinesstypeList(1,10,{cnName}).then(res=>{
+                this.businessTypeData = res.data.data.records
+            })
+        },
         // 客户选择之后的回调
         corpCorpChange(value){
             for(let item of this.corpData) {
@@ -457,6 +506,16 @@ export default {
         curCodeCorpChange(value) {
             this.$set(this.feestemplateForm,'curCode',value)
         },
+        // 业务类型选择之后
+        businessTypeCorpChange(value){
+            for(let item of this.businessTypeData) {
+                if (item.cnName == value){
+                    this.$set(this.form,'businessTypeId',item.id)
+                    this.$set(this.form,'businessTypeCnName',item.cnName)
+                    this.$set(this.form,'businessTypeEnName',item.enName)
+                }
+            }
+        },
         // 获取详情数据
         losbfeestemplateDetailfun(id){
             this.pageLoading = true
@@ -482,7 +541,6 @@ export default {
         },
         // 保存接口
         losbfeestemplateSubmitfun(){
-            this.form.extendedData = JSON.stringify(this.form.extendedDataArr)
             losbfeestemplateSubmit(this.form).then((res)=>{
                 this.$message({
                     type: "success",
@@ -506,14 +564,17 @@ export default {
         },
         // 费用详细删除
         feestemplateCompanyDelete(index,row){
-            this.form.feestemplateList.splice(index,1)
+            this.form.feesTemplateItemsList.splice(index,1)
         },
         // 费用详细确认
         feestemplatecompanyConfirm(){
             if (this.feestemplateIndex != null) {
-                this.form.feestemplateList.splice(this.feestemplateIndex,1,this.feestemplateForm)
+                this.form.feesTemplateItemsList.splice(this.feestemplateIndex,1,this.feestemplateForm)
             }else {
-                this.form.feestemplateList.push(this.feestemplateForm)
+                if (!this.form.feesTemplateItemsList) {
+                    this.form.feesTemplateItemsList = []
+                }
+                this.form.feesTemplateItemsList.push(this.feestemplateForm)
             }
             this.feestemplateForm = {}
             this.feestemplateIndex = null