Browse Source

提交配载

caojunjie 4 years ago
parent
commit
48ffe178e8

+ 0 - 1
src/views/Warehousing/components/incomeMoney.vue

@@ -192,7 +192,6 @@
       >
         <template slot-scope="scope">
           <el-input
-              disabled
               oninput='this.value=this.value.replace(/[^\-?\d.]/g,"").replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3")'
               v-model="scope.row.fAmount"
               placeholder="金额"

+ 13 - 3
src/views/fleet/sendcar/AddOrUpdate.vue

@@ -856,7 +856,7 @@
                         type="text"
                         icon="el-icon-document-delete"
                         @click.native.prevent="changeStowageRow(scope.row)"
-                        v-if=" schedulingList[0].transProp == '1' && scope.row.billStatus >= 6 "
+                        v-if="scope.row.billStatus >= 6 "
                         :disabled="!scope.row.mBillNo"
                         v-hasPermi="['fleet:ftmsorderbillscars:edit']"
                     >撤销配载</el-button>
@@ -1736,6 +1736,16 @@ export default {
       if (date == undefined) return ''
       return moment(date).format("YYYY-MM-DD HH:mm:ss")
     },
+    // changeStowageRow(row) {
+    //   revokeStowage(row).then((response) => {
+    //     if (response.code == 200) {
+    //       this.msgSuccess("配载撤销成功");
+    //       response.data.map((e, index) => {
+    //         this.$set(this.vehicleList, index, e);
+    //       });
+    //     }
+    //   });
+    // },
     changeStowageRow(row) {
       revokeStowage(row).then((response) => {
         if (response.code == 200) {
@@ -2138,8 +2148,8 @@ export default {
     // 查询可配载数据
     selectStowage(row) {
       this.formList = row
-      this.formLabelAlign.mblno = row.mblno
-      this.formLabelAlign.sourceId = row.id
+      this.$set(this.formLabelAlign,'mblno',row.mblno)
+      this.$set(this.formLabelAlign,'sourceId',row.id)
       selectStowage(row).then((response) => {
         this.stowageDialog = true;
         if (response.rows) {

+ 2 - 0
src/views/fleet/sendcar/index.vue

@@ -839,10 +839,12 @@ export default {
         }
         this.vehicleList = response.data.cars;
         if(res){
+          console.log(res)
           res.billStatus = 1
           res.billKind = 'MH'
           res.orderNo = ''
           res.id = ''
+          res.pId = response.data.plans.id
           this.$set(res, "billStatus", 5);
           console.log(this.vehicleList)
           this.vehicleList.push(res)