Browse Source

前端sdy

zhongtianhaoyuan 4 years ago
parent
commit
38daff9b71

+ 31 - 17
src/views/tranManagement/tranManagementTransporFeedback.vue

@@ -21,7 +21,6 @@
         >
       </el-col>
     </el-row>
-
     <ws-form
       class="position"
       ref="deptBudgetList"
@@ -122,7 +121,7 @@
             <!--司机-->
 
             <ws-form-item
-              label="姓名"
+              label="姓名"
               span="1"
               prop="driver"
               v-show="item.temporaryDriverFlag != 0"
@@ -199,13 +198,15 @@
                     style="
                       vertical-align: text-top;
                       position: relative;
-                      top: -1px;
                     "
                     src="../../../public/img/fujian.png"
                     alt=""
                   />
                 </el-upload>
-                <div v-show="item.temporaryDriverFlag == 0">
+                <div v-show="item.temporaryDriverFlag == 0 && item.signStatus == '未签合同'" class="signStatus">
+                  {{ item.signStatus }}
+                </div>
+                <div v-show="item.temporaryDriverFlag == 0 && item.signStatus == '已签合同'" class="signStatus1">
                   {{ item.signStatus }}
                 </div>
               </template>
@@ -228,12 +229,7 @@
         合计(吨):{{ total }}/{{ deptBudgetList.weight }}
       </div>
       <el-button class="add bg-bottom" type="primary" size="small" @click="add">
-        <img
-          width="22"
-          height="22"
-          src="../../../public/img/add.png"
-          alt=""
-        />
+        <img width="22" height="22" src="../../../public/img/add.png" alt="" />
         <div class="spans">添加临时用车</div></el-button
       >
     </ws-form>
@@ -355,11 +351,10 @@ export default {
       appendixIdsAdd: '',
     }
   },
- activated(){
-   this.deptBudgetList.id = this.$route.query.id
-   this.getList()
-
- },
+  activated() {
+    this.deptBudgetList.id = this.$route.query.id
+    this.getList()
+  },
   computed: {
     totalStorage: function () {
       var maxStorage = 0
@@ -369,7 +364,6 @@ export default {
       return maxStorage
     },
     total: function () {
-      
       if (this.deptBudgetList.tranCarInfoList != null) {
         var maxStorage = 0
         for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
@@ -378,7 +372,7 @@ export default {
           )
         }
         return maxStorage
-      }else{
+      } else {
         return 0
       }
     },
@@ -1009,4 +1003,24 @@ export default {
   height: 20px;
   line-height: 18px;
 }
+.signStatus {
+  height: 25px;
+  border-radius: 3px;
+  border: 1px solid #5473e8;
+  padding: 0 3px;
+  margin-left: 90px;
+  color: #ffffff;
+  background: #c4cada;
+  line-height: 24px;
+}
+.signStatus1 {
+  height: 25px;
+  background: #e6ebff;
+  border-radius: 3px;
+  border: 1px solid #5473e8;
+  padding: 0 3px;
+  margin-left: 90px;
+  color: #5473E8;
+  line-height: 24px;
+}
 </style>

+ 68 - 75
src/views/tranManagement/tranManagementTransporFeedbackLook.vue

@@ -102,7 +102,7 @@
             <div class="catNos" v-show="item.temporaryDriverFlag == 0">司机-{{index+1}}</div>
              <div class="catNos catNosCor" v-show="item.temporaryDriverFlag != 0">司机-{{index+1}}(临)</div>
             <!--司机-->
-            <ws-form-item label="姓名:" span="1" prop="driver" v-show="freightspace[index].temporaryDriverFlag == 0">
+            <ws-form-item label="姓名:" span="1" prop="driver">
               <span>{{ item.driver }} </span>
             </ws-form-item>
 
@@ -115,13 +115,9 @@
               <span>{{ item.carNo }} </span>
             </ws-form-item>
             <!--装车(吨)-->
-            <ws-form-item label="装车(吨)" span="1" prop="loadNetWeight">
+            <ws-form-item label="装车净重(吨)" span="1" prop="loadNetWeight">
               {{ item.loadNetWeight }}
             </ws-form-item>
-            <!-- 卸车 -->
-            <ws-form-item label="卸车(吨)" span="1" prop="unloadNetWeight">
-              {{item.unloadNetWeight}}
-            </ws-form-item>
             <!--磅单-->
             <ws-form-item label="磅单" span="1" prop="loadPoundImg">
               <template slot-scope="scope">
@@ -137,7 +133,10 @@
                   @click="fujian(scope.row)"
                   alt=""
                 />
-                <div v-show="item.temporaryDriverFlag == 0">
+                 <div v-show="item.temporaryDriverFlag == 0 && item.signStatus == '未签合同'" class="signStatus">
+                  {{ item.signStatus }}
+                </div>
+                <div v-show="item.temporaryDriverFlag == 0 && item.signStatus == '已签合同'" class="signStatus1">
                   {{ item.signStatus }}
                 </div>
               </template>
@@ -160,24 +159,27 @@
         >关闭</el-button
       >
     </div>
+ <!-- 附件弹框 -->
     <WinseaContentModal
       v-model="accessoryTFs"
       :title="$t('system.noticeCircular.information')"
       @on-cancel="handleClose"
     >
-      <p>上传附件</p>
-      <ws-upload
-        ref="upload"
-        table-name="maintain_work_order"
-        oss-key="mainPlan"
-        :comp-id="compId"
-        :file-list="fileList"
-        :appendix-ids="appendixIdsAdd"
-        :vesselId="deptBudgetList.loadPoundImg"
-        :size-limit="size"
-        @uploadSuccess="uploadSuccess"
-        accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
-      />
+      <p>查看附件</p>
+      <div
+        style="display: inline-block; margin: 5px"
+        v-for="item in appendixIdss"
+      >
+        <img width="100" height="100" :src="item" alt="" />
+      </div>
+    </WinseaContentModal>
+    <WinseaContentModal
+      v-model="accesscard"
+      :title="$t('system.noticeCircular.information')"
+      @on-cancel="handleClose1"
+    >
+      <p>查看附件</p>
+      <img width="100" height="100" :src="accessurl" alt="" />
     </WinseaContentModal>
   </div>
 </template>
@@ -249,12 +251,16 @@ export default {
       name: '',
       staffList: [],
       options: [],
-      carModel: [],
+      // carModel: [],
       tranCarInfoList: {},
       //上传
       accessoryTFs: false,
-      fileList: [],
-      appendixIdsAdd: '',
+      accesscard : false,
+      accessurl: '',
+      // fileList: [],
+      // appendixIdsAdd: '',
+      //附件
+      appendixIdss:[],
     }
   },
   mounted() {
@@ -271,6 +277,7 @@ export default {
       return maxStorage
     },
     total: function () {
+      if (this.deptBudgetList.tranCarInfoList != null) {
       var maxStorage = 0
       for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
         maxStorage += Number(
@@ -278,6 +285,9 @@ export default {
         )
       }
       return maxStorage
+      }else{
+        return 0
+      }
     },
     label1: function () {
       //  for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
@@ -295,32 +305,6 @@ export default {
     },
   },
   methods: {
-    dataFilter(val) {
-      this.deptBudgetList.personCharge = val
-      if (val) {
-        this.options = this.staffList.filter((item) => {
-          if (
-            !!~item.staffName.indexOf(val) ||
-            !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
-          ) {
-            return true
-          }
-        })
-      } else {
-        this.options = this.staffList
-      }
-    },
-    selectstaff(e) {
-      for (var i = 0; i < this.staffList.length; i++) {
-        if (this.staffList[i].staffName == e) {
-          this.deptBudgetList.driverPhone = this.staffList[i].staffMobilePhone
-          this.freightspace[i].driverPhone = this.staffList[i].staffMobilePhone
-          // this.deptBudgetList.tranCarInfoList[i].driverPhone = this.staffList[i].staffMobilePhone
-          console.log(this.freightspace[i].driverPhone, 'dianhu')
-          this.deptBudgetList.personChargeKey = this.staffList[i].staffId
-        }
-      }
-    },
     marker: function (item) {
       this.deptBudgetList.warehousePositioning =
         item.lnglat.lat + ',' + item.lnglat.lng
@@ -337,9 +321,9 @@ export default {
     handleClose() {
       this.dialogViewSpareMoney = false
     },
-
-    //下拉司机姓名改变事件
-    selectdriver() {},
+      handleClose1() {
+      this.accesscard = false
+    },
     handleChange(value) {
       this.selectedOptions = value
     },
@@ -373,27 +357,17 @@ export default {
             if (!this.freightspace[i].loadNetWeight) {
               this.freightspace[i].loadNetWeight = 0
             }
+            if (response.records[i].addressUrl != null) {
+              response.records[i].addressUrlArray =
+                response.records[i].addressUrl.split(',')
+              this.fileList[i] = response.records[i].addressUrl.split(',')
+            } else {
+              response.records[i].addressUrlArray = []
+            }
           }
-        })
-      //司机姓名下拉
-      getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
-        .toPromise()
-        .then((response) => {
-          this.options = response
-          this.staffList = response
-        })
-      //车型
-      packList({ constId: 'TRAN5' })
-        .toPromise()
-        .then((response) => {
-          this.carModel = response
+          
         })
     },
-    handleExamine() {},
-    approve() {},
-    // returnsales() {
-    //   this.$router.push({ path: 'purchaseContract' })
-    // },
     selectChapterTwo(e) {
       for (var i = 0; i < this.ChapterTwoList.length; i++) {
         if (this.ChapterTwoList[i].constValue == e) {
@@ -432,8 +406,8 @@ export default {
     //上传
     fujian(row) {
       if (
-        row.receiveAttachmentPath === null ||
-        row.receiveAttachmentPath === ''
+        row.addressUrl === null ||
+        row.addressUrl === ''
       ) {
         EventBus.$emit(
           'warning',
@@ -444,6 +418,7 @@ export default {
       }
       this.appendixIdss = row.receiveAttachmentPath
     },
+
   },
 }
 </script>
@@ -522,7 +497,6 @@ export default {
   width: 100px;
   text-align: center;
   background: #fff;
-  // border: 1px solid #cdd2dc;
 }
 .button-container {
   display: flex;
@@ -600,8 +574,7 @@ export default {
   display: inline-block;
 }
 .center {
-  width: 900px;
-  margin: 0 auto;
+  margin-right: 50px;
 }
 .el-form-item {
   width: 50%;
@@ -770,4 +743,24 @@ margin-top: 20px;
 .catNosCor{
   color: #5473E8;
 }
+.signStatus {
+  height: 25px;
+  border-radius: 3px;
+  border: 1px solid #5473e8;
+  padding: 0 3px;
+  margin-left: 90px;
+  color: #ffffff;
+  background: #c4cada;
+  line-height: 24px;
+}
+.signStatus1 {
+  height: 25px;
+  background: #e6ebff;
+  border-radius: 3px;
+  border: 1px solid #5473e8;
+  padding: 0 3px;
+  margin-left: 90px;
+  color: #5473E8;
+  line-height: 24px;
+}
 </style>

+ 3 - 3
src/views/tranManagement/tranManagementTransporHairRespond.vue

@@ -12,10 +12,10 @@
       <!-- 接单开始 -->
       <template slot="right">
         <div>
-          <span style="display: inline-block; width: 300px; color: #8890b1"
+          <span style="display: inline-block; width: 60px; color: #8890b1"
             >接单日期</span
           >
-        </div>>
+        </div>
         <el-date-picker
           v-model="deptBudgetList.inOutDate"
           type="daterange"
@@ -470,6 +470,6 @@ export default {
 }
 .el-range-editor--small.el-input__inner {
   height: 32px;
-  margin-left: -20%;
+  margin: 0 10px;
 }
 </style>

+ 5 - 7
src/views/tranManagement/tranManagementTransporTationFire.vue

@@ -3,16 +3,14 @@
   <div>
     <BaseHeaderLayout :leftSpan="12">
       <template slot="left">
-        <ws-button class="but" type="primary" @click="statusquery(1)">
-          执行中</ws-button
-        >
-        <ws-button class="but" @click="statusquery(2)">已完成</ws-button>
-        <ws-button class="but" @click="statusquery()">全部任务</ws-button>
+        <ws-button class="but" :type="searchType==1 ?'primary':''" @click="statusquery(1)"> 执行中</ws-button>
+        <ws-button class="but" :type="searchType==2 ?'primary':''" @click="statusquery(2)">已完成</ws-button>
+        <ws-button class="but" :type="searchType== undefined ?'primary':''" @click="statusquery()">全部任务</ws-button>
       </template>
       <!-- 接单开始 -->
       <template slot="right">
         <div>
-           <span style="display: inline-block; width: 300px;color: #8890B1;">接单日期</span>
+           <span style="display: inline-block; width: 60px;color: #8890B1;">接单日期</span>
         </div>
          <el-date-picker
           v-model="deptBudgetList.inOutDate"
@@ -488,6 +486,6 @@ export default {
 }
 .el-range-editor--small.el-input__inner {
   height: 32px;
-  margin-left: -20%;
+  margin: 0 10px;
 }
 </style>

+ 31 - 29
src/views/tranManagement/tranManagementTransporTrainDetails.vue

@@ -222,7 +222,8 @@ export default {
       arr: [],
     }
   },
-  mounted() {
+
+  activated() {
     this.deptBudgetList.id = this.$route.query.id
     this.getList()
   },
@@ -236,29 +237,29 @@ export default {
     },
   },
   methods: {
-    dataFilter(val) {
-      this.deptBudgetList.personCharge = val
-      if (val) {
-        this.options = this.staffList.filter((item) => {
-          if (
-            !!~item.staffName.indexOf(val) ||
-            !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
-          ) {
-            return true
-          }
-        })
-      } else {
-        this.options = this.staffList
-      }
-    },
-    selectstaff(e) {
-      for (var i = 0; i < this.staffList.length; i++) {
-        if (this.staffList[i].staffName == e) {
-          this.deptBudgetList.driverPhone = this.staffList[i].staffMobilePhone
-          this.deptBudgetList.personChargeKey = this.staffList[i].staffId
-        }
-      }
-    },
+    // dataFilter(val) {
+    //   this.deptBudgetList.personCharge = val
+    //   if (val) {
+    //     this.options = this.staffList.filter((item) => {
+    //       if (
+    //         !!~item.staffName.indexOf(val) ||
+    //         !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
+    //       ) {
+    //         return true
+    //       }
+    //     })
+    //   } else {
+    //     this.options = this.staffList
+    //   }
+    // },
+    // selectstaff(e) {
+    //   for (var i = 0; i < this.staffList.length; i++) {
+    //     if (this.staffList[i].staffName == e) {
+    //       this.deptBudgetList.driverPhone = this.staffList[i].staffMobilePhone
+    //       this.deptBudgetList.personChargeKey = this.staffList[i].staffId
+    //     }
+    //   }
+    // },
     marker: function (item) {
       this.deptBudgetList.warehousePositioning =
         item.lnglat.lat + ',' + item.lnglat.lng
@@ -275,8 +276,6 @@ export default {
     handleClose() {
       this.dialogViewSpareMoney = false
     },
-    //下拉司机姓名改变事件
-    selectdriver() {},
     handleChange(value) {
       this.selectedOptions = value
     },
@@ -304,7 +303,9 @@ export default {
           this.deptBudgetList = response
           this.deptBudgetList.tranCarInfoList = response.tranCarInfoList
           if (this.deptBudgetList.tranCarInfoList.length > 0) {
+            
             if (response.tranCarInfoList[0].boxNo) {
+              // alert("数组拆分")
               this.list = response.tranCarInfoList[0].boxNo.split(',')
               for (var i = 0; i < this.list.length; i++) {
                 var num = this.list[i]
@@ -312,6 +313,7 @@ export default {
                   trainNo: num,
                 })
               }
+              console.log(this.freightspace,"拆分车厢号数组")
             }
           }
         })
@@ -433,6 +435,7 @@ export default {
 /deep/.ws-info-table .el-form-item {
   border-right: 1px solid transparent;
   border-bottom: 1px solid transparent;
+  margin-top: 6px;
 }
 .readonly {
   position: relative;
@@ -552,8 +555,7 @@ export default {
   display: inline-block;
 }
 .center {
-  width: 900px;
-  margin: 0 auto;
+  margin-right: 50px;
 }
 .el-form-item {
   width: 50%;
@@ -708,7 +710,7 @@ export default {
 /deep/.liaison {
   background: #f5f7fa;
   border-radius: 4px;
-  border: 0px solid #d8dce6;
+  border: 1px solid #d8dce6;
 }
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
   // border: 0px solid #d8dce6;

+ 4 - 7
src/views/tranManagement/tranManagementTransporTrainNo.vue

@@ -140,20 +140,17 @@
               value-format="yyyy-MM-dd"
             />
           </ws-form-item>
-          <!--车型-->
+           <!--车型-->
           <ws-form-item label="车型" span="1" prop="carModel">
             <el-select
               v-model="item.carModel"
-              placeholder="请输入车型"
-              class="typeselect"
-              multiple
+              placeholder="请选择车型"
               filterable
-              allow-create
-              default-first-option
+        
             >
               <el-option
                 v-for="items in carModel"
-                :key="items.constKey"
+                :key="items.value"
                 :label="items.constValue"
                 :value="items.constValue"
               />

+ 5 - 0
src/views/tranManagement/tranManagementVehicle.vue

@@ -319,6 +319,11 @@ export default {
       console.log(`当前页: ${val}`)
       this.getList()
     },
+    changestatus(state){
+      this.searchType = state
+      this.getList()
+
+    },
     getList() {
       automobileList({
         compId: sessionStorage.getItem('ws-pf_compId'),

+ 1 - 1
vue.config.js

@@ -144,7 +144,7 @@ module.exports = {
         // target: 'http://standard-dev.winsea.com/', //目标地址
         // target: 'http://localhost:8090/',
         // target: 'http://192.168.1.121:8090/',
-        target: 'http://192.168.1.115:8090/',
+        target: 'http://192.168.1.119:8090/',
         // target: 'http://192.168.1.119:8090/',
         // target: 'http://192.168.24.5:8098',//目标地址
         // target: 'http://product-server.winsea.com/',