Browse Source

基础资料代码修改

wengyuwen 4 years ago
parent
commit
21c37f84a2

+ 1 - 11
src/views/kaihe/basicdata/route/index.vue

@@ -392,7 +392,7 @@
         dialogFull:false,
 
 
-        contactList:[],
+
         // 遮罩层
         loading: true,
         // 选中数组
@@ -409,16 +409,6 @@
         corpsList: [],
         // 弹出层标题
         title: "",
-        // 状态数据字典
-        statusOptions: [],
-        // 是否显示弹出层
-        open: false,
-        // 客户类别字典
-        fTypeidOptions: [],
-        // 结算表票结、月结字典
-        fStltypeidOptions: [],
-        // 删除状态字典
-        delFlagOptions: [],
         // 查询参数
         queryParams: {
           pageNum: 1,

+ 3 - 53
src/views/kaihe/basicdata/wharf/index.vue

@@ -409,7 +409,6 @@
 
         //全屏放大
         dialogFull:false,
-        contactList:[],
         // 遮罩层
         loading: true,
         // 选中数组
@@ -426,16 +425,9 @@
         corpsList: [],
         // 弹出层标题
         title: "",
-        // 状态数据字典
-        statusOptions: [],
         // 是否显示弹出层
         open: false,
-        // 客户类别字典
-        fTypeidOptions: [],
-        // 结算表票结、月结字典
-        fStltypeidOptions: [],
-        // 删除状态字典
-        delFlagOptions: [],
+
         // 查询参数
         queryParams: {
           pageNum: 1,
@@ -467,18 +459,6 @@
     },
     created() {
       this.getList();
-      this.getDicts("data_customer_category").then(response => {
-        this.fTypeidOptions = response.data;
-      });
-      this.getDicts("data_stltype_type").then(response => {
-        this.fStltypeidOptions = response.data;
-      });
-      this.getDicts("data_delete_state").then(response => {
-        this.delFlagOptions = response.data;
-      });
-      this.getDicts("sys_normal_disable").then(response => {
-        this.statusOptions = response.data;
-      });
       this.getDicts("f_types").then(response => {
         this.fTypesOptions = response.data;
       });
@@ -512,20 +492,6 @@
       full(){
         this.dialogFull = !this.dialogFull
       },
-      // 客户类别默认为客户结算方式默认月结
-      query() {
-        this.$set(this.form, "fStltypeid", 1);
-      },
-      // 添加行
-      addRow(tableData,event){
-        var obj = {}
-         tableData.push(obj)
-      },
-      //删除行
-      deleteRow(index, rows) {
-        rows.splice(index, 1);
-      },
-
       /** 查询客户详情列表 */
       getList() {
         this.loading = true;
@@ -535,18 +501,7 @@
           this.loading = false;
         });
       },
-      // 客户类别字典翻译
-      fTypeidFormat(row, column) {
-        return this.selectDictLabel(this.fTypeidOptions, row.fTypeid);
-      },
-      // 结算表票结、月结字典翻译
-      fStltypeidFormat(row, column) {
-        return this.selectDictLabel(this.fStltypeidOptions, row.fStltypeid);
-      },
-      // 删除状态字典翻译
-      delFlagFormat(row, column) {
-        return this.selectDictLabel(this.delFlagOptions, row.delFlag);
-      },
+
       // 取消按钮
       cancel() {
         this.open = false;
@@ -565,10 +520,7 @@
         };
         this.resetForm("form");
       },
-      // 从表重置
-      contList() {
-        this.contactList = []
-      },
+
       // 状态修改
       handleStatusChange(row) {
         let text = row.fStatus === "0" ? "启用" : "停用";
@@ -604,8 +556,6 @@
       handleAdd() {
         this.doNot = false
         this.reset();
-        this.query();
-        this.contList();
         this.open = true;
         this.title = "添加客户详情";
       },