zxz 3 年 前
コミット
b3d94a86c0
1 ファイル変更21 行追加13 行削除
  1. 21 13
      src/views/financialManagement/collectionManagementList.vue

+ 21 - 13
src/views/financialManagement/collectionManagementList.vue

@@ -155,7 +155,9 @@
             </template>
           </el-table-column>
 
-          <el-table-column prop="agent" label="库管"></el-table-column>
+          <el-table-column prop="agent" label="库管">
+            <!-- <span>{{ agent }}</span> -->
+            </el-table-column>
           <el-table-column fixed="right" label="操作" width="100">
             <template slot-scope="scope">
               <el-button @click="add1(scope.row)" v-if="scope.$index == 0">新增</el-button>
@@ -218,8 +220,8 @@ export default {
       currentPage: 1,
       pageSize: 10,
       appendixIdsAdd: '',
-      searchType: 1,
-      searchTypeText: '',
+      searchType: '',
+      searchTypeText: '全部',
       searchKeyWord: '',
       contractType: 2,
       goodsType: 2,
@@ -339,7 +341,7 @@ export default {
       this.buyer = item.buyer
       this.tranCarNo = item.tranCarNo
       this.staffId = item.staffId
-
+      //this.freightspace[0].agent = this.agent
       var tranCarNos = ''
       this.dialogFormVisible2 = true
       this.dataList = item
@@ -515,14 +517,14 @@ export default {
     //   }
     // },
     add1(item) {
-          if (!this.freightspace.carNo) {
+          if (!item.carNo) {
         this.$message({
            message: '车牌号不能为空',
              type: 'warning'
         })
         return
       }
-      if (this.freightspace.carNo.length <= 7) {
+      if (item.carNo.length < 7) {
         this.$message({
           message: '车牌号输入有误',
           type: 'warning'
@@ -530,8 +532,8 @@ export default {
         return
       }
       if (
-        !this.freightspace.boxNo.length < 1 ||
-        this.freightspace.boxNo.length > 15
+        item.boxNo.length < 1 ||
+        item.boxNo.length > 15
       ) {
         this.$message({
           message: '箱号输入错误',
@@ -539,7 +541,7 @@ export default {
         })
         return
       }
-      if (!this.freightspace.boxNo) {
+      if (!item.boxNo) {
         this.$message({
           message: '箱号不能为空',
           type: 'warning'
@@ -547,8 +549,8 @@ export default {
         return
       }
       if (
-        this.freightspace.titleNo.length < 1 ||
-        this.freightspace.titleNo.length > 15
+        item.titleNo.length < 1 ||
+        item.titleNo.length > 15
       ) {
         this.$message({
           message: '封号输入错误',
@@ -556,7 +558,7 @@ export default {
         })
         return
       }
-      if (!this.freightspace.titleNo) {
+      if (!item.titleNo) {
         this.$message({
           message: '封号不能为空',
           type: 'warning'
@@ -585,8 +587,14 @@ export default {
 
       paifa(item)
         .toPromise()
-        .then(response => {})
+        .then(response => {
       this.freightspace = response
+      this.$notify.success({
+                title: '成功',
+                message: '提交成功'
+              })
+      //this.dialogFormVisible2 = false
+      })
     },
     editClick(row) {
       var status = ''