Browse Source

修改需求

QuKatie 3 years ago
parent
commit
42f13e5aef

+ 6 - 3
src/views/finance/charge/add-or-update.vue

@@ -88,9 +88,9 @@ export default {
         pageSize: this.page.pageSize,
         pageSize: this.page.pageSize,
       };
       };
       contrastList(data).then((res) => {
       contrastList(data).then((res) => {
-        res.rows.map(e=>{
-          e.srcBillNo=e.fMblno
-        })
+        res.rows.map((e) => {
+          e.srcBillNo = e.fMblno;
+        });
         this.tableData = res.rows;
         this.tableData = res.rows;
         this.page.total = res.total;
         this.page.total = res.total;
       });
       });
@@ -99,6 +99,9 @@ export default {
       this.selectionList = rows;
       this.selectionList = rows;
     },
     },
     importDate() {
     importDate() {
+      if (!this.form.fCorpid) {
+        return this.$message.error("请选择客户名称");
+      }
       if (this.selectionList.length == 0) {
       if (this.selectionList.length == 0) {
         return this.$message.error("请选择数据");
         return this.$message.error("请选择数据");
       }
       }

+ 7 - 0
src/views/finance/charge/js/index.js

@@ -98,6 +98,13 @@ export const tableOption = [{
   },
   },
   {
   {
     surface: "15",
     surface: "15",
+    label: "tMblno",
+    name: "提单号",
+    checked: 0,
+    width: 100,
+  },
+  {
+    surface: "16",
     label: "fRemarks",
     label: "fRemarks",
     name: "备注",
     name: "备注",
     checked: 0,
     checked: 0,

+ 1 - 8
src/views/finance/charge/kaihe-detail.vue

@@ -721,14 +721,7 @@ export default {
         fFromDate: this.form.date ? this.form.date[0] : null,
         fFromDate: this.form.date ? this.form.date[0] : null,
         fToDate: this.form.date ? this.form.date[1] : null,
         fToDate: this.form.date ? this.form.date[1] : null,
       };
       };
-      this.$refs["form"].validate((valid) => {
-        if (valid) {
-          this.$refs.addOrUpdate.init(data, this.tableData);
-        } else {
-          this.$message.error("请选择客户名称");
-          return false;
-        }
-      });
+      this.$refs.addOrUpdate.init(data, this.tableData);
     },
     },
     imporData(rows) {
     imporData(rows) {
       this.tableData = this.tableData.concat(rows);
       this.tableData = this.tableData.concat(rows);

+ 6 - 3
src/views/finance/contrast/add-or-update.vue

@@ -88,9 +88,9 @@ export default {
         pageSize: this.page.pageSize,
         pageSize: this.page.pageSize,
       };
       };
       contrastList(data).then((res) => {
       contrastList(data).then((res) => {
-            res.rows.map(e=>{
-          e.srcBillNo=e.fMblno
-        })
+        res.rows.map((e) => {
+          e.srcBillNo = e.fMblno;
+        });
         this.tableData = res.rows;
         this.tableData = res.rows;
         this.page.total = res.total;
         this.page.total = res.total;
       });
       });
@@ -99,6 +99,9 @@ export default {
       this.selectionList = rows;
       this.selectionList = rows;
     },
     },
     importDate() {
     importDate() {
+      if (!this.form.fCorpid) {
+        return this.$message.error("请选择客户名称");
+      }
       if (this.selectionList.length == 0) {
       if (this.selectionList.length == 0) {
         return this.$message.error("请选择数据");
         return this.$message.error("请选择数据");
       }
       }

+ 8 - 1
src/views/finance/contrast/js/index.js

@@ -78,6 +78,13 @@ export const tableOption = [
   },
   },
   {
   {
     surface: "13",
     surface: "13",
+    label: "tMblno",
+    name: "提单号",
+    checked: 0,
+    width: 100,
+  },
+  {
+    surface: "14",
     label: "fRemarks",
     label: "fRemarks",
     name: "备注",
     name: "备注",
     checked: 0,
     checked: 0,
@@ -211,7 +218,7 @@ export const tableOption2 = [{
     width: 100,
     width: 100,
   },
   },
   {
   {
-    surface: "19",
+    surface: "20",
     label: "fRemarks",
     label: "fRemarks",
     name: "备注",
     name: "备注",
     checked: 0,
     checked: 0,

+ 1 - 8
src/views/finance/contrast/kaihe-detail.vue

@@ -703,14 +703,7 @@ export default {
         fFromDate: this.form.date ? this.form.date[0] : null,
         fFromDate: this.form.date ? this.form.date[0] : null,
         fToDate: this.form.date ? this.form.date[1] : null,
         fToDate: this.form.date ? this.form.date[1] : null,
       };
       };
-      this.$refs["form"].validate((valid) => {
-        if (valid) {
-          this.$refs.addOrUpdate.init(data, this.tableData);
-        } else {
-          this.$message.error("请选择客户名称");
-          return false;
-        }
-      });
+      this.$refs.addOrUpdate.init(data, this.tableData);
     },
     },
     imporData(rows) {
     imporData(rows) {
       this.tableData = this.tableData.concat(rows);
       this.tableData = this.tableData.concat(rows);

+ 3 - 0
src/views/finance/payment/add-or-update.vue

@@ -99,6 +99,9 @@ export default {
       this.selectionList = rows;
       this.selectionList = rows;
     },
     },
     importDate() {
     importDate() {
+      if (!this.form.fCorpid) {
+        return this.$message.error("请选择客户名称");
+      }
       if (this.selectionList.length == 0) {
       if (this.selectionList.length == 0) {
         return this.$message.error("请选择数据");
         return this.$message.error("请选择数据");
       }
       }

+ 111 - 104
src/views/finance/payment/js/index.js

@@ -1,108 +1,115 @@
 export const tableOption = [{
 export const tableOption = [{
-  surface: "1",
-  label: "fBillno",
-  name: "系统编号",
-  checked: 0,
-  width: 150,
-},
-{
-  surface: "2",
-  label: "fCorpidName",
-  name: "客户名称",
-  checked: 0,
-  width: 150,
-},
-{
-  surface: "3",
-  label: "bank",
-  name: "付款银行",
-  checked: 0,
-  width: 150,
-},
-{
-  surface: "4",
-  label: "fBankNumber",
-  name: "付款账号",
-  checked: 0,
-  width: 150,
-},
-{
-  surface: "5",
-  label: "waterBillNo",
-  name: "水单号",
-  checked: 0,
-  width: 150,
-},
-{
-  surface: "6",
-  label: "vessel",
-  name: "船名",
-  checked: 0,
-  width: 150,
-},
-{
-  surface: "7",
-  label: "voyage",
-  name: "航次",
-  checked: 0,
-  width: 150,
-},
-{
-  surface: "8",
-  label: "loadportName",
-  name: "起运港",
-  checked: 0,
-  width: 150,
-},
-{
-  surface: "9",
-  label: "destportName",
-  name: "目的港",
-  checked: 0,
-  width: 150,
-},
-{
-  surface: "10",
-  label: "fAmtdr",
-  name: "应收金额",
-  checked: 0,
-  width: 150,
-},
-{
-  surface: "11",
-  label: "fAmtcr",
-  name: "付费金额",
-  checked: 0,
-  width: 150,
-},
-{
-  surface: "12",
-  label: "fBillstatusName",
-  name: "状态",
-  checked: 0,
-  width: 100,
-},
-{
-  surface: "13",
-  label: "createBy",
-  name: "制单人",
-  checked: 0,
-  width: 100,
-},
-{
-  surface: "14",
-  label: "createTime",
-  name: "制单日期",
-  checked: 0,
-  width: 150,
-},
-{
-  surface: "15",
-  label: "fRemarks",
-  name: "备注",
-  checked: 0,
-  width: 200,
-}
+    surface: "1",
+    label: "fBillno",
+    name: "系统编号",
+    checked: 0,
+    width: 150,
+  },
+  {
+    surface: "2",
+    label: "fCorpidName",
+    name: "客户名称",
+    checked: 0,
+    width: 150,
+  },
+  {
+    surface: "3",
+    label: "bank",
+    name: "付款银行",
+    checked: 0,
+    width: 150,
+  },
+  {
+    surface: "4",
+    label: "fBankNumber",
+    name: "付款账号",
+    checked: 0,
+    width: 150,
+  },
+  {
+    surface: "5",
+    label: "waterBillNo",
+    name: "水单号",
+    checked: 0,
+    width: 150,
+  },
+  {
+    surface: "6",
+    label: "vessel",
+    name: "船名",
+    checked: 0,
+    width: 150,
+  },
+  {
+    surface: "7",
+    label: "voyage",
+    name: "航次",
+    checked: 0,
+    width: 150,
+  },
+  {
+    surface: "8",
+    label: "loadportName",
+    name: "起运港",
+    checked: 0,
+    width: 150,
+  },
+  {
+    surface: "9",
+    label: "destportName",
+    name: "目的港",
+    checked: 0,
+    width: 150,
+  },
+  {
+    surface: "10",
+    label: "fAmtdr",
+    name: "应收金额",
+    checked: 0,
+    width: 150,
+  },
+  {
+    surface: "11",
+    label: "fAmtcr",
+    name: "付费金额",
+    checked: 0,
+    width: 150,
+  },
+  {
+    surface: "12",
+    label: "fBillstatusName",
+    name: "状态",
+    checked: 0,
+    width: 100,
+  },
+  {
+    surface: "13",
+    label: "createBy",
+    name: "制单人",
+    checked: 0,
+    width: 100,
+  },
+  {
+    surface: "14",
+    label: "createTime",
+    name: "制单日期",
+    checked: 0,
+    width: 150,
+  },
+  {
+    surface: "15",
+    label: "tMblno",
+    name: "提单号",
+    checked: 0,
+    width: 100,
+  },
+  {
+    surface: "16",
+    label: "fRemarks",
+    name: "备注",
+    checked: 0,
+    width: 200,
+  }
 ]
 ]
 export const tableOption2 = [{
 export const tableOption2 = [{
     surface: "1",
     surface: "1",

+ 1 - 8
src/views/finance/payment/kaihe-detail.vue

@@ -721,14 +721,7 @@ export default {
         fFromDate: this.form.date ? this.form.date[0] : null,
         fFromDate: this.form.date ? this.form.date[0] : null,
         fToDate: this.form.date ? this.form.date[1] : null,
         fToDate: this.form.date ? this.form.date[1] : null,
       };
       };
-      this.$refs["form"].validate((valid) => {
-        if (valid) {
-          this.$refs.addOrUpdate.init(data, this.tableData);
-        } else {
-          this.$message.error("请选择客户名称");
-          return false;
-        }
-      });
+      this.$refs.addOrUpdate.init(data, this.tableData);
     },
     },
     imporData(rows) {
     imporData(rows) {
       this.tableData = this.tableData.concat(rows);
       this.tableData = this.tableData.concat(rows);