Browse Source

Merge branch 'master' of http://47.100.3.209:3000/gdc/yiliangyiyun-pc

ccjgmwz 3 years ago
parent
commit
a748641831
90 changed files with 4061 additions and 1625 deletions
  1. 18 0
      src/api/V2/customerFundManagement/index.js
  2. 2 0
      src/api/V2/houseSelfCollect/index.js
  3. 2 1
      src/api/V2/warehouse/index.js
  4. 1 0
      src/components/editSelect/index.vue
  5. 5 0
      src/lang/zh.js
  6. 35 0
      src/model/customerFundManagement/index.js
  7. 4 1
      src/model/houseSelfCollect/index.js
  8. 5 2
      src/model/warehouse/index.js
  9. 2 2
      src/views/contractManagement/futuresPurchaseContractAdd.vue
  10. 1 1
      src/views/contractManagement/futuresPurchaseContractEdit.vue
  11. 2 2
      src/views/contractManagement/futuresSalesContractAdd.vue
  12. 2 2
      src/views/contractManagement/futuresSalesContractEdit.vue
  13. 108 55
      src/views/contractManagement/purchaseContract.vue
  14. 2 2
      src/views/contractManagement/purchaseContractAdd.vue
  15. 2 1
      src/views/contractManagement/purchaseContractEdit.vue
  16. 28 0
      src/views/contractManagement/purchaseContractExamine.vue
  17. 156 77
      src/views/contractManagement/salesContract.vue
  18. 8 3
      src/views/contractManagement/salesContractAdd.vue
  19. 3 2
      src/views/contractManagement/salesContractEdit.vue
  20. 28 1
      src/views/contractManagement/salesContractExamine.vue
  21. 63 0
      src/views/customerFundManagement/component/router/router.js
  22. 575 0
      src/views/customerFundManagement/customerFundAdd.vue
  23. 594 0
      src/views/customerFundManagement/customerFundEdit.vue
  24. 542 0
      src/views/customerFundManagement/customerFundList.vue
  25. 1 1
      src/views/financialManagement/collectionManagementList.vue
  26. 7 1
      src/views/houseSelfCollect/inspectInfo.vue
  27. 9 7
      src/views/houseSelfCollect/inspectionManagement.vue
  28. 24 3
      src/views/houseSelfCollect/paymentManagement.vue
  29. 8 7
      src/views/houseSelfCollect/weighingManagement.vue
  30. 1 1
      src/views/outboundManagement/collectionManagement.vue
  31. 1 1
      src/views/purchasingManagement/procurementPlanAdd.vue
  32. 1 1
      src/views/purchasingManagement/procurementPlanEdit.vue
  33. 2 2
      src/views/purchasingManagement/procurementPlanLook.vue
  34. 1 1
      src/views/purchasingManagement/purchaseOrderList.vue
  35. 1 1
      src/views/salesManagement/salesPlanAdd.vue
  36. 1 1
      src/views/salesManagement/salesPlanEdit.vue
  37. 2 2
      src/views/salesManagement/salesPlanLook.vue
  38. 1 1
      src/views/salesManagement/salesPlanOrderList.vue
  39. 5 1
      src/views/statisticalReport/autoSettlementList.vue
  40. 7 15
      src/views/statisticalReport/huoyunList.vue
  41. 12 4
      src/views/statisticalReport/purchaseClosingCashierList.vue
  42. 7 2
      src/views/statisticalReport/purchaseReceiptStatisticsList.vue
  43. 9 2
      src/views/statisticalReport/salesClosingCashierList.vue
  44. 6 1
      src/views/statisticalReport/salesDeliveryReportList.vue
  45. 6 12
      src/views/statisticalReport/shippingList.vue
  46. 5 1
      src/views/statisticalReport/stockPurchaseReceiptReportList.vue
  47. 3 1
      src/views/statisticalReport/stockSaleOutReportList.vue
  48. 1 0
      src/views/system/systemFile/fileManage.vue
  49. 1 1
      src/views/system/systemFile/systemOperation.vue
  50. 5 0
      src/views/system/systemFileManage/systemDocuments/fileManage.vue
  51. 1 1
      src/views/system/systemFileManage/systemOperation/circulationStatement.vue
  52. 1 0
      src/views/system/systemFileManage/systemOperation/documentWarning.vue
  53. 2 2
      src/views/taskManagement/tranManagementTransportAdd.vue
  54. 2 2
      src/views/taskManagement/tranManagementTransportEdit.vue
  55. 1 1
      src/views/taskManagement/tranManagementWarehouseInOutTask.vue
  56. 11 11
      src/views/taskManagement/tranManagementWarehouseInOutTaskAdd.vue
  57. 2 3
      src/views/taskManagement/tranManagementWarehouseInOutTaskAudit.vue
  58. 3 3
      src/views/taskManagement/tranManagementWarehouseInOutTaskEdit.vue
  59. 7 8
      src/views/tranManagement/component/routers/route.js
  60. 1 0
      src/views/tranManagement/tranManagementDriverAdd.vue
  61. 74 45
      src/views/tranManagement/tranManagementFireFeedback.vue
  62. 3 2
      src/views/tranManagement/tranManagementFireFeedbackLook.vue
  63. 53 45
      src/views/tranManagement/tranManagementFireReceivingFeedback.vue
  64. 3 1
      src/views/tranManagement/tranManagementFireReceivingFeedbackLook.vue
  65. 7 2
      src/views/tranManagement/tranManagementReceivingloading.vue
  66. 2 1
      src/views/tranManagement/tranManagementReceivingloadingLook.vue
  67. 6 2
      src/views/tranManagement/tranManagementShipping.vue
  68. 3 3
      src/views/tranManagement/tranManagementShippingArrangemen.vue
  69. 1293 1075
      src/views/tranManagement/tranManagementShippingFeedback.vue
  70. 3 1
      src/views/tranManagement/tranManagementShippingFeedbackLook.vue
  71. 6 16
      src/views/tranManagement/tranManagementTransporFeedback.vue
  72. 3 1
      src/views/tranManagement/tranManagementTransporFeedbackLook.vue
  73. 2 2
      src/views/tranManagement/tranManagementTransporTationFire.vue
  74. 12 30
      src/views/tranManagement/tranManagementTransporTrainNo.vue
  75. 93 77
      src/views/tranManagement/tranManagementUnShippingFeedback.vue
  76. 13 12
      src/views/tranManagement/tranManagementUnShippingFeedbackLook.vue
  77. 6 2
      src/views/tranManagement/tranManagementVehicle.vue
  78. 16 37
      src/views/tranManagement/tranManagementVehicleDispatching.vue
  79. 1 1
      src/views/warehouse/tranManagementWarehouseInOutTask.vue
  80. 2 1
      src/views/warehouse/warehouseManagementDelivery.vue
  81. 1 1
      src/views/warehouse/warehouseManagementEdit.vue
  82. 26 1
      src/views/warehouse/warehouseManagementGross.vue
  83. 26 3
      src/views/warehouse/warehouseManagementNoWeightIn.vue
  84. 28 3
      src/views/warehouse/warehouseManagementNoWeightOut.vue
  85. 2 1
      src/views/warehouse/warehouseManagementPerfectDelivery.vue
  86. 1 2
      src/views/warehouse/warehouseManagementPerfectput.vue
  87. 1 1
      src/views/warehouse/warehouseManagementPut.vue
  88. 1 1
      src/views/warehouse/warehouseManagementPutOutLook.vue
  89. 27 2
      src/views/warehouse/warehouseManagementTare.vue
  90. 1 1
      vue.config.js

+ 18 - 0
src/api/V2/customerFundManagement/index.js

@@ -0,0 +1,18 @@
+
+//客户列表查看
+export const API_GET_CUSTOMERINFO_LOOK = '/customerInfo/selectCustomerInfo'
+
+//查看客户信息
+export const API_GET_LOOK_CUSTOMERINFO = '/customerInfo/getCustomerInfo'
+
+// 添加客户
+export const API_POST_ADDCUSTOMERINFO = '/customerInfo/api/addCustomerInfo'
+
+// 编辑
+export const API_POST_EDITCUSTOMERINFO = '/customerInfo/api/modifyCustomerInfo'
+
+// 删除
+export const API_POST_DELCUSTOMERINFO = '/customerInfo/deleteCustomerInfo'
+
+//识别银行卡
+export const API_GET_CUSTOMER_GETBANK = '/driverViewInfo/bankShibie'

+ 2 - 0
src/api/V2/houseSelfCollect/index.js

@@ -82,3 +82,5 @@ export const API_POST_PAYMENT_SETTLEMENTEDIT = '/paymentManagement/api/editColle
 export const API_GET_INSPECT_GETDRYGRAINPRICE = '/purchasePrice/dryGrainPrice'
 //付款权限查询
 export const API_GET_INSPECT_GETJURISDICTION = '/paymentManagement/selectTaskId'
+//财务开票
+export const API_POST_INVOICING = '/paymentManagement/readXmlManagement'

+ 2 - 1
src/api/V2/warehouse/index.js

@@ -78,6 +78,7 @@ export const API_GET_WAREHOUSERESPONSIBLE = '/warehouseBaseInfo/selectResponsibl
 export const API_GET_WAREHOUSETASK = '/inOutWarehouseTask/selectWarehouseTask'
 // 修改经办人
 export const API_GET_CHECKORUPDATE = '/inOutWarehouseTask/api/checkOrUpdateInOutTask'
-
+// 获取出入库任务编号
+export const API_GET_RECEIPTTASKNO = '/inOutWarehouseTask/selectInOutWarehouseNo'
 
 

+ 1 - 0
src/components/editSelect/index.vue

@@ -81,6 +81,7 @@
              :placeholder="getPleaseChoose"
              style="width: 100%;"
              filterable
+             clearable
              @change="selectContract">
     <el-option v-for="(item,index) in unitList"
                :key="item.constValue"

+ 5 - 0
src/lang/zh.js

@@ -487,6 +487,7 @@ export default {
     salesContract: '现货销售合同',
     salesContractEdit: '现货销售合同  /  编辑',
     salesContractExamine: '现货销售合同  /  查看',
+    salesContractAudit: '现货销售合同  /  审核',
     salesContractAdd: '现货销售合同  /  添加',
     futuresPurchaseContract: '期货采购合同',
     futuresPurchaseContractAdd: '期货采购合同  /  添加',
@@ -524,6 +525,10 @@ export default {
     warehouseManagementPutOutLook: '查看',
     //客户管理
     customerList: '客户管理',
+    //客户管理
+    customerFundList: '客户资金管理',
+    customerFundEdit:'客户管理编辑',
+    customerFundAdd:'客户管理添加',
     //采购管理
     purchasingManagement: '采购业务管理',
     procurementPlanList: '采购计划',

+ 35 - 0
src/model/customerFundManagement/index.js

@@ -0,0 +1,35 @@
+import { errorCatcher, errorHandle, filter } from 'base-core-lib'
+import { appRx } from '../defalutConfig/indexRx'
+import {
+    API_GET_CUSTOMERINFO_LOOK,
+    API_POST_ADDCUSTOMERINFO,
+    API_POST_EDITCUSTOMERINFO,
+    API_POST_DELCUSTOMERINFO,
+    API_GET_CUSTOMER_GETBANK,
+    API_GET_LOOK_CUSTOMERINFO
+} from '@/api/V2/customerFundManagement'
+// import { app } from 'electron'
+
+// 客户管理列表
+export const getCustomerList = appRx.get(API_GET_CUSTOMERINFO_LOOK, errorCatcher, errorHandle, filter)
+
+// 查看客户信息
+export const lookCustomer = appRx.get(API_GET_LOOK_CUSTOMERINFO, errorCatcher, errorHandle, filter)
+
+// 添加客户
+export const addCustomer = appRx.post(API_POST_ADDCUSTOMERINFO, errorCatcher, errorHandle, filter)
+
+// 编辑
+export const editCustomerInfo = appRx.post(API_POST_EDITCUSTOMERINFO, errorCatcher, errorHandle, filter)
+
+// 删除客户
+export const delCustomerInfo = appRx.post(API_POST_DELCUSTOMERINFO, errorCatcher, errorHandle, filter)
+
+//银行卡识别
+export const getBank = appRx.get(API_GET_CUSTOMER_GETBANK, errorCatcher, errorHandle, filter)
+
+
+
+
+
+

+ 4 - 1
src/model/houseSelfCollect/index.js

@@ -42,7 +42,8 @@ import {
   API_GET_CUSTOMER_CODE,
   API_GET_CUSTOMER_CODEJY,
   API_GET_INSPECT_GETDRYGRAINPRICE,
-  API_GET_INSPECT_GETJURISDICTION
+  API_GET_INSPECT_GETJURISDICTION,
+  API_POST_INVOICING
 } from '@/api/V2/houseSelfCollect'
 //客户管理列表
 export const getCustomerManage = appRx.get(API_GET_CUSTOMER_MANAGE, errorCatcher, errorHandle, filter)
@@ -128,3 +129,5 @@ export const settlementEdit = appRx.post(API_POST_PAYMENT_SETTLEMENTEDIT, errorC
 export const getDryGrainPrice = appRx.get(API_GET_INSPECT_GETDRYGRAINPRICE, errorCatcher, errorHandle, filter)
 //付款权限查询
 export const getJurisdiction  = appRx.get(API_GET_INSPECT_GETJURISDICTION, errorCatcher, errorHandle, filter)
+//财务开票
+export const invoicing  = appRx.post(API_POST_INVOICING, errorCatcher, errorHandle, filter)

+ 5 - 2
src/model/warehouse/index.js

@@ -37,7 +37,8 @@ import {
     API_GET_WAREHOUSE,
     API_GET_WAREHOUSERESPONSIBLE,
     API_GET_WAREHOUSETASK,
-    API_GET_CHECKORUPDATE
+    API_GET_CHECKORUPDATE,
+    API_GET_RECEIPTTASKNO
 } from '@/api/V2/warehouse'
 // import { app } from 'electron'
 // 列表
@@ -114,4 +115,6 @@ export const getsponsible = appRx.get(API_GET_WAREHOUSERESPONSIBLE,errorCatcher,
 //出入库任务
 export const getwarehousetask = appRx.get(API_GET_WAREHOUSETASK,errorCatcher, errorHandle, filter)
 //修改经办人
-export const postcheckorupdate = appRx.post(API_GET_CHECKORUPDATE,errorCatcher, errorHandle, filter)
+export const postcheckorupdate = appRx.post(API_GET_CHECKORUPDATE,errorCatcher, errorHandle, filter)
+//获取出入库任务编号
+export const getReceiptTaskNo = appRx.get(API_GET_RECEIPTTASKNO,errorCatcher, errorHandle, filter)

+ 2 - 2
src/views/contractManagement/futuresPurchaseContractAdd.vue

@@ -184,8 +184,8 @@
         </ws-form-item>
         <!--临时仓库负责人-->
         <ws-form-item v-show="deptBudgetList.deliverType == 1" label="临时仓库负责人" span="1" prop="packingMethod">
-          <el-select v-model="deptBudgetList.personCharge" placeholder="请选择临时仓库负责人" filterable
-            :filter-method="dataFilter" @change="selectstaff">
+          <el-select v-model="deptBudgetList.personCharge" placeholder="请选择临时仓库负责人" filterable clearable
+             @change="selectstaff">
             <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
           </el-select>
         </ws-form-item>

+ 1 - 1
src/views/contractManagement/futuresPurchaseContractEdit.vue

@@ -350,7 +350,7 @@
             v-model="deptBudgetList.personCharge"
             placeholder="请选择临时仓库负责人"
             filterable
-            :filter-method="dataFilter"
+            
             @change="selectstaff"
           >
             <el-option

+ 2 - 2
src/views/contractManagement/futuresSalesContractAdd.vue

@@ -173,8 +173,8 @@
         </ws-form-item>
         <!--临时仓库负责人-->
         <ws-form-item v-show="deptBudgetList.deliverType == 1" label="临时仓库负责人" span="1" prop="packingMethod">
-          <el-select v-model="deptBudgetList.personCharge" placeholder="请选择临时仓库负责人" filterable
-            :filter-method="dataFilter" @change="selectstaff">
+          <el-select v-model="deptBudgetList.personCharge" placeholder="请选择临时仓库负责人" filterable clearable
+             @change="selectstaff">
             <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
           </el-select>
         </ws-form-item>

+ 2 - 2
src/views/contractManagement/futuresSalesContractEdit.vue

@@ -168,8 +168,8 @@
         </ws-form-item>
         <!--临时仓库负责人-->
         <ws-form-item v-show="deptBudgetList.deliverType == 1" label="临时仓库负责人" span="1" prop="packingMethod">
-          <el-select v-model="deptBudgetList.personCharge" placeholder="请选择临时仓库负责人" filterable
-            :filter-method="dataFilter" @change="selectstaff">
+          <el-select v-model="deptBudgetList.personCharge" placeholder="请选择临时仓库负责人" filterable clearable
+             @change="selectstaff">
             <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
           </el-select>
         </ws-form-item>

+ 108 - 55
src/views/contractManagement/purchaseContract.vue

@@ -74,63 +74,116 @@
 					<span style="color: #5473e8; font-weight: 600">{{
             scope.row.completedQuantity
           }}</span>
-				</template>
-			</el-table-column>
-			<el-table-column prop="status" label="状态">
-				<template slot-scope="scope">
-					<el-popover placement="left" :width="285" trigger="click" visible-arrow="false"
-						@show="history(scope.row)">
-						<template>
-							<span slot="reference">
-								<span v-if="scope.row.status == '待执行'" class="executory"></span>
-								<span v-if="scope.row.status == '执行中'" class="inExecution"></span>
-								<span v-if="scope.row.status == '已完成'" class="done"></span>{{ scope.row.status }}
-							</span>
-						</template>
-						<div>
-							<p style="margin-top: 0; padding-left: 10px">操作历史</p>
-							<div v-for="(item, index) in historyList" :key="index" class="flex">
-								<div class="vertical-text vertical-text-left">
-									{{ item.updateDate }}
-								</div>
-								<div>
-									<div class="vertical-circle"></div>
-									<div v-if="index != historyList.length - 1" class="vertical-line"></div>
-								</div>
-								<div class="vertical-text">
-									{{ item.operateUser }}<br />{{ item.dealMsg }}
-								</div>
-							</div>
-						</div>
-					</el-popover>
-					<img width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
-						src="../../../public/img/edit.png" @click="editClick(scope.row)" alt="" />
-					<!-- <i class="el-icon-edit" @click="editClick(scope.row)"></i> -->
-				</template>
-			</el-table-column>
-			<el-table-column prop="signingDate" label="签订日期"> </el-table-column>
-			<el-table-column prop="mildewGrain" label="已付款(元)">
-			</el-table-column>
-			<el-table-column prop="addressUrl" label="附件">
-				<template slot-scope="scope">
-					<img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
-						src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" />
-					<span v-if="scope.row.addressUrlArray != null">
-						{{scope.row.addressUrlArray.length == 0? "":scope.row.addressUrlArray.length}}
-					</span>
-				</template>
-			</el-table-column>
-			<el-table-column prop="address" label="操作" width="140">
-				<template slot-scope="scope">
-					<img width="16" height="16" style="vertical-align: text-top; margin: 0 6px"
-						src="../../../public/img/chakan.png" @click="handleExamine(scope.row)" v-hasPermission="
+        </template>
+      </el-table-column>
+      <el-table-column prop="status" label="状态">
+        <template slot-scope="scope">
+          <span v-if="scope.row.approveStatus">{{scope.row.approveStatus}}</span>
+          <el-popover
+           v-else
+            placement="left"
+            :width="285"
+            trigger="click"
+            visible-arrow="false"
+            @show="history(scope.row)"
+          >
+            <template>
+              <span slot="reference">
+                <span
+                  v-if="scope.row.status == '待执行'"
+                  class="executory"
+                ></span>
+                <span
+                  v-if="scope.row.status == '执行中'"
+                  class="inExecution"
+                ></span>
+                <span v-if="scope.row.status == '已完成'" class="done"></span
+                >{{ scope.row.status }}
+              </span>
+            </template>
+            <div>
+              <p style="margin-top: 0; padding-left: 10px">操作历史</p>
+              <div
+                v-for="(item, index) in historyList"
+                :key="index"
+                class="flex"
+              >
+                <div class="vertical-text vertical-text-left">
+                  {{ item.updateDate }}
+                </div>
+                <div>
+                  <div class="vertical-circle"></div>
+                  <div
+                    v-if="index != historyList.length - 1"
+                    class="vertical-line"
+                  ></div>
+                </div>
+                <div class="vertical-text">
+                  {{ item.operateUser }}<br />{{ item.dealMsg }}
+                </div>
+              </div>
+            </div>
+          </el-popover>
+          <img
+           v-if='!scope.row.approveStatus'
+            width="17"
+            height="18"
+            style="vertical-align: text-top; position: relative; top: -1px"
+            src="../../../public/img/edit.png"
+            @click="editClick(scope.row)"
+            alt=""
+          />
+          <!-- <i class="el-icon-edit" @click="editClick(scope.row)"></i> -->
+        </template>
+      </el-table-column>
+      <el-table-column prop="signingDate" label="签订日期"> </el-table-column>
+      <el-table-column prop="mildewGrain" label="已付款(元)">
+      </el-table-column>
+      <el-table-column prop="addressUrl" label="附件">
+        <template slot-scope="scope">
+          <img
+            width="18"
+            height="20"
+            style="vertical-align: text-top; position: relative; top: -1px"
+            src="../../../public/img/fujian.png"
+            @click="fujian(scope.row)"
+            alt=""
+          />
+          <span v-if="scope.row.addressUrlArray != null">
+            {{scope.row.addressUrlArray.length == 0? "":scope.row.addressUrlArray.length}}
+            </span>
+        </template>
+      </el-table-column>
+      <el-table-column prop="address" label="操作" width="200">
+        <template slot-scope="scope">
+          <img
+            width="16"
+            height="16"
+            style="vertical-align: text-top; margin: 0 6px"
+            src="../../../public/img/chakan.png"
+            @click="handleExamine(scope.row)"
+            v-hasPermission="
               `contractManagement.buyContract.buyContractInfo.view`
-            " alt="" />
-					<img width="17" height="16" style="vertical-align: text-top; margin: 0 6px"
-						src="../../../public/img/bianji.png" @click="handleEdit(scope.row)" v-hasPermission="
+            "
+            alt=""
+          />
+          <div v-if='scope.row.approveStatus!="待决策人审核"&&scope.row.approveStatus||scope.row.status!="执行中"&&scope.row.status' style='display:inline-block;'>
+          <img
+            width="17"
+            height="16"
+            style="vertical-align: text-top; margin: 0 6px"
+            src="../../../public/img/bianji.png"
+            @click="handleEdit(scope.row)"
+            v-hasPermission="
               `contractManagement.buyContract.buyContractInfo.edit`
-            " alt="" />
-					<img width="16" height="17" style="
+            "
+            alt=""
+          />
+          </div>
+          <img
+            width="16"
+            height="17"
+            style="
               vertical-align: text-top;
               position: relative;
               top: -1px;

+ 2 - 2
src/views/contractManagement/purchaseContractAdd.vue

@@ -214,7 +214,7 @@
           <ws-input v-model="deptBudgetList.finalTradingVolume" placeholder="请输入最终实际成交量" maxlength="100" size="small" />
         </ws-form-item>
         <ws-form-item v-show="deptBudgetList.deliverType == 1" label="临时仓库负责人" span="1" prop="packingMethod">
-          <el-select v-model="deptBudgetList.personCharge" placeholder="请选择临时仓库负责人" filterable
+          <el-select v-model="deptBudgetList.personCharge" placeholder="请选择临时仓库负责人" filterable clearable
              @change="selectstaff">
             <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
           </el-select>
@@ -331,7 +331,7 @@
       <ws-input v-model="deptBudgetList.remarks" type="textarea" row="3" placeholder="请输入备注信息,不超过3000字"
         maxlength="3000" />
       <ws-upload ref="upload" :comp-id="compId" :appendix-ids="deptBudgetList.addressUrl" :size-limit="size"
-        @onChange="onChange" accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
+        @onChange="onChange" accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" v-hasPermission="`contractManagement.buyContract.buyContractInfo.appl`"/>
     </ws-form>
     <div v-if="dialogVisible" class="map">
       <map-drag @marker="marker" :isShowaddress='true' v-on:addressListen='getAddress' :type="type"></map-drag>

+ 2 - 1
src/views/contractManagement/purchaseContractEdit.vue

@@ -323,7 +323,7 @@
             v-model="deptBudgetList.personCharge"
             placeholder="请选择临时仓库负责人"
             filterable
-            :filter-method="dataFilter"
+            
             @change="selectstaff"
           >
             <el-option
@@ -493,6 +493,7 @@
         :size-limit="size"
         @onChange="onChange"
         accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
+        v-hasPermission="`contractManagement.buyContract.buyContractInfo.appl`"
       />
       </base-card>
     </ws-form>

+ 28 - 0
src/views/contractManagement/purchaseContractExamine.vue

@@ -234,7 +234,27 @@
         :editable="false"
         accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
       />
+      <el-table
+        class="wenzi"
+        :data="taskhistories"
+        style="width: 100%"
+      >
+        <el-table-column prop="operatorMajorRoleName" label="审核人">
+          <template scope="scope">
+            {{scope.row.operatorMajorRoleName}}{{scope.row.operatorName}}
+            </template>
+        </el-table-column>
+        <el-table-column prop="inOutTaskNo" label="审核结果">
+          <template scope="scope">
+            <span v-if='scope.row.approved'>通过</span>
+            <span v-if='!scope.row.approved'>驳回</span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="endTime" label="审核时间"></el-table-column>
+        <el-table-column prop="auditMind" label="驳回原因"></el-table-column>
+     </el-table>
     </ws-form>
+    
     <div style="text-align: right; padding: 10px">
       <el-button
         class="bg-bottom"
@@ -253,6 +273,9 @@ import {
   examineList,
   billoperatehis,
 } from '@/model/contarct/index'
+import {
+  gettaskhistories
+} from '@/model/tasksport/index'
 export default {
   name: 'viewSpareMoney',
   watch: {
@@ -282,6 +305,7 @@ export default {
       historyList:[],
       tableData: [{ date: 1111, name: 'qqqq', address: 'errrtt' }],
       ruleDeptBudget: [],
+      taskhistories:[],
       deptBudgetList: {
         contractProcessInfo: {},
         contractGoodsInfo: {},
@@ -299,6 +323,10 @@ export default {
   },
   methods: {
     loaddata() {
+      gettaskhistories({businessKey: this.$route.query.id,workflowId: this.$route.query.workflowId}).toPromise()
+          .then((response) => {
+            this.taskhistories=response
+          })
       // 数据
       examineList({ id: this.$route.query.id })
         .toPromise()

+ 156 - 77
src/views/contractManagement/salesContract.vue

@@ -13,23 +13,53 @@
               left: -4px;
             " src="../../../public/img/header-add.png" alt="" />添加</ws-button>
 				<ws-button @click="exportlist()" v-hasPermission="
-            `contractManagement.salesContract.salesContractInfo.view`
-          ">导出</ws-button>
-			</template>
-			<template slot="right">
-				<span style="width: 142px; display: inline-block; color: #8890b1">状态:</span>
-				<ws-select v-model="searchTypeText" placeholder="" class="typeselect" @change="selecttaskType"
-					:value="searchType">
-					<ws-option v-for="item in taskTypeList" :key="item.value" :label="item.value" :value="item.value"
-						style="color: #8890b1" />
-				</ws-select>
-
-				<el-date-picker v-model="value2" type="daterange" align="right" unlink-panels range-separator="至"
-					start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions">
-				</el-date-picker>
-				<ws-input v-model="searchKeyWord" placeholder="可按照合同编号、买方名称、卖方名称进行查找" clearable maxlength="500"
-					type="input" class="findValue"></ws-input>
-				<ws-button class="find" type="primary" @click="find()"><img width="16" height="16" style="
+            `contractManagement.salesContract.salesContractInfo.view`"
+          >导出</ws-button
+        >
+      </template>
+      <template slot="right">
+        <span style="width: 142px; display: inline-block; color: #8890b1"
+          >状态:</span>
+        <ws-select
+          v-model="searchTypeText"
+          placeholder=""
+          class="typeselect"
+          @change="selecttaskType"
+          :value="searchType"
+        >
+          <ws-option
+            v-for="item in taskTypeList"
+            :key="item.value"
+            :label="item.value"
+            :value="item.value"
+            style="color: #8890b1"
+          />
+        </ws-select>
+
+        <el-date-picker
+          v-model="value2"
+          type="daterange"
+          align="right"
+          unlink-panels
+          range-separator="至"
+          start-placeholder="开始日期"
+          end-placeholder="结束日期"
+          :picker-options="pickerOptions"
+        >
+        </el-date-picker>
+        <ws-input
+          v-model="searchKeyWord"
+          placeholder="可按照合同编号、买方名称、卖方名称进行查找"
+          clearable
+          maxlength="500"
+          type="input"
+          class="findValue"
+        ></ws-input>
+        <ws-button class="find" type="primary" @click="find()"
+          ><img
+            width="16"
+            height="16"
+            style="
               vertical-align: text-top;
               position: relative;
               top: 0px;
@@ -62,61 +92,95 @@
 					<span v-if="scope.row.grade == '等外'" class="substandard">{{
             scope.row.grade
           }}</span>
-				</template>
-			</el-table-column>
-			<el-table-column prop="weight" label="重量(吨)"> </el-table-column>
-			<el-table-column prop="unitContractPrice" label="合同单价(元)">
-			</el-table-column>
-			<el-table-column prop="packingMethod" label="包装方式"> </el-table-column>
-			<el-table-column prop="buyer" label="买方"> </el-table-column>
-			<el-table-column prop="seller" label="卖方"> </el-table-column>
-			<el-table-column prop="completedQuantity" label="已完成(吨)">
-				<template slot-scope="scope">
-					<span v-if="scope.row.proportion < 90"
-						style="color: #5473e8; font-weight: 600">{{ scope.row.completedQuantity }}</span>
-					<span v-if="scope.row.proportion > 90"
-						style="color: red; font-weight: 600">{{ scope.row.completedQuantity }}</span>
-				</template>
-			</el-table-column>
-			<el-table-column prop="status" label="状态">
-				<template slot-scope="scope">
-					<el-popover placement="left" :width="285" trigger="click" visible-arrow="false"
-						@show="history(scope.row)">
-						<template>
-							<span slot="reference">
-								<span v-if="scope.row.status == '待执行'" class="executory"></span>
-								<span v-if="scope.row.status == '执行中'" class="inExecution"></span>
-								<span v-if="scope.row.status == '已完成'" class="done"></span>{{ scope.row.status }}
-							</span>
-						</template>
-						<div>
-							<p style="margin-top: 0; padding-left: 10px">操作历史</p>
-							<div v-for="(item, index) in historyList" class="flex">
-								<div class="vertical-text vertical-text-left">
-									{{ item.updateDate }}
-								</div>
-								<div>
-									<div class="vertical-circle"></div>
-									<div v-if="index != historyList.length - 1" class="vertical-line"></div>
-								</div>
-								<div class="vertical-text">
-									{{ item.operateUser }}<br />{{ item.dealMsg }}
-								</div>
-							</div>
-						</div>
-					</el-popover>
-					<img width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
-						src="../../../public/img/edit.png" @click="editClick(scope.row)" alt="" />
-				</template>
-			</el-table-column>
-			<el-table-column prop="signingDate" label="签订日期"> </el-table-column>
-			<el-table-column prop="mildewGrain" label="未回款(元)">
-			</el-table-column>
-			<el-table-column prop="addressUrl" label="附件">
-				<template slot-scope="scope">
-					<img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
-						src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" />
-					<span v-if="scope.row.addressUrlArray != null">{{
+        </template>
+      </el-table-column>
+      <el-table-column prop="weight" label="重量(吨)"> </el-table-column>
+      <el-table-column prop="unitContractPrice" label="合同单价(元)">
+      </el-table-column>
+      <el-table-column prop="packingMethod" label="包装方式"> </el-table-column>
+      <el-table-column prop="buyer" label="买方"> </el-table-column>
+      <el-table-column prop="seller" label="卖方"> </el-table-column>
+      <el-table-column prop="completedQuantity" label="已完成(吨)">
+        <template slot-scope="scope">
+          <span
+            v-if="scope.row.proportion < 90"
+            style="color: #5473e8; font-weight: 600"
+            >{{ scope.row.completedQuantity }}</span
+          >
+          <span
+            v-if="scope.row.proportion > 90"
+            style="color: red; font-weight: 600"
+            >{{ scope.row.completedQuantity }}</span
+          >
+        </template>
+      </el-table-column>
+      <el-table-column prop="status" label="状态">
+        <template slot-scope="scope">
+          <span v-if="scope.row.approveStatus">{{scope.row.approveStatus}}</span>
+          <el-popover v-else
+            placement="left"
+            :width="285"
+            trigger="click"
+            visible-arrow="false"
+            @show="history(scope.row)"
+          >
+            <template>
+              <span slot="reference">
+                <span
+                  v-if="scope.row.status == '待执行'"
+                  class="executory"
+                ></span>
+                <span
+                  v-if="scope.row.status == '执行中'"
+                  class="inExecution"
+                ></span>
+                <span v-if="scope.row.status == '已完成'" class="done"></span
+                >{{ scope.row.status }}
+              </span>
+            </template>
+            <div>
+              <p style="margin-top: 0; padding-left: 10px">操作历史</p>
+              <div v-for="(item, index) in historyList" class="flex">
+                <div class="vertical-text vertical-text-left">
+                  {{ item.updateDate }}
+                </div>
+                <div>
+                  <div class="vertical-circle"></div>
+                  <div
+                    v-if="index != historyList.length - 1"
+                    class="vertical-line"
+                  ></div>
+                </div>
+                <div class="vertical-text">
+                  {{ item.operateUser }}<br />{{ item.dealMsg }}
+                </div>
+              </div>
+            </div>
+          </el-popover>
+          <img v-if='!scope.row.approveStatus'
+            width="17"
+            height="18"
+            style="vertical-align: text-top; position: relative; top: -1px"
+            src="../../../public/img/edit.png"
+            @click="editClick(scope.row)"
+            alt=""
+          />
+        </template>
+      </el-table-column>
+      <el-table-column prop="signingDate" label="签订日期"> </el-table-column>
+      <el-table-column prop="mildewGrain" label="未回款(元)">
+      </el-table-column>
+      <el-table-column prop="addressUrl" label="附件">
+        <template slot-scope="scope">
+          <img
+            width="18"
+            height="20"
+            style="vertical-align: text-top; position: relative; top: -1px"
+            src="../../../public/img/fujian.png"
+            @click="fujian(scope.row)"
+            alt=""
+          />
+          <span v-if="scope.row.addressUrlArray != null">{{
             scope.row.addressUrlArray.length == 0 ? "":scope.row.addressUrlArray.length
           }}</span>
 					<!-- <i @click="fujian(scope.row)" class="el-icon-paperclip iconCss"></i> -->
@@ -127,12 +191,27 @@
 					<img width="16" height="16" style="vertical-align: text-top; margin: 0 6px"
 						src="../../../public/img/chakan.png" @click="handleExamine(scope.row)" v-hasPermission="
               `contractManagement.salesContract.salesContractInfo.view`
-            " alt="" />
-					<img width="17" height="16" style="vertical-align: text-top; margin: 0 6px"
-						src="../../../public/img/bianji.png" v-hasPermission="
+            "
+            alt=""
+          />
+          <div v-if='scope.row.approveStatus!="待决策人审核"&&scope.row.approveStatus||scope.row.status!="执行中"&&scope.row.status' style='display:inline-block;'>
+            <img
+            width="17"
+            height="16"
+            style="vertical-align: text-top; margin: 0 6px"
+            src="../../../public/img/bianji.png"
+            v-hasPermission="
               `contractManagement.salesContract.salesContractInfo.edit`
-            " @click="handleEdit(scope.row)" alt="" />
-					<img width="16" height="17" style="
+            "
+            @click="handleEdit(scope.row)"
+            alt=""
+          />
+          </div>
+          
+          <img
+            width="16"
+            height="17"
+            style="
               vertical-align: text-top;
               position: relative;
               top: -1px;

+ 8 - 3
src/views/contractManagement/salesContractAdd.vue

@@ -92,7 +92,7 @@
           </ws-form-item>
           <!--验收方式-->
           <ws-form-item label="验收方式" span="1" prop="acceptanceMethod">
-            <el-select v-model="deptBudgetList.acceptanceMethod" placeholder="请选择验收方式" style="width: 100%" filterable
+            <el-select v-model="deptBudgetList.acceptanceMethod" placeholder="请选择验收方式" style="width: 100%" clearable filterable
               @change="selectunitList">
               <el-option v-for="(item, index) in unitList" :key="item.constValue" :label="item.constValue"
                 :value="item.constValue">
@@ -332,8 +332,13 @@
         <!--备注信息-->
         <ws-input v-model="deptBudgetList.remarks" type="textarea" row="3" placeholder="请输入备注信息,不超过200字"
           maxlength="3000" />
-        <ws-upload ref="upload" :comp-id="compId" :appendix-ids="deptBudgetList.addressUrl" :size-limit="size"
-          @onChange="onChange" accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
+        <ws-upload ref="upload" 
+        :comp-id="compId" 
+        :appendix-ids="deptBudgetList.addressUrl" 
+        :size-limit="size"
+        @onChange="onChange" 
+        accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" 
+        v-hasPermission="`contractManagement.salesContractsalesContractInfo.appl`"/>
       </ws-form>
       <div v-if="dialogVisible" class="map">
         <map-drag @marker="marker" :isShowaddress="true" v-on:addressListen="getAddress" :type="type">

+ 3 - 2
src/views/contractManagement/salesContractEdit.vue

@@ -104,7 +104,7 @@
           </ws-form-item>
           <!--验收方式-->
           <ws-form-item label="验收方式" span="1" prop="acceptanceMethod">
-            <el-select v-model="deptBudgetList.acceptanceMethod" placeholder="请选择验收方式" style="width: 100%" filterable
+            <el-select v-model="deptBudgetList.acceptanceMethod" placeholder="请选择验收方式" style="width: 100%" clearable filterable
               @change="selectunitList">
               <el-option v-for="(item, index) in unitList" :key="item.constValue" :label="item.constValue"
                 :value="item.constValue">
@@ -341,7 +341,8 @@
         <ws-input v-model="deptBudgetList.remarks" type="textarea" row="3" placeholder="请输入备注信息,不超过200字"
           maxlength="200" />
         <ws-upload ref="upload" :comp-id="compId" :appendix-ids="deptBudgetList.addressUrl" :size-limit="size"
-          @onChange="onChange" accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
+          @onChange="onChange" accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" v-hasPermission="
+            `contractManagement.salesContractsalesContractInfo.appl`"/>
       </ws-form>
     </div>
     <div v-if="dialogVisible" class="map">

+ 28 - 1
src/views/contractManagement/salesContractExamine.vue

@@ -112,7 +112,7 @@
           </ws-form-item>
           <ws-form-item label="交货方式" span="1" prop="deliverType">
             <div class="unchanged">
-              {{ deptBudgetList.deliverType1 }}
+              {{ deptBudgetList.deliverType }}
             </div>
           </ws-form-item>
           <ws-form-item label="买方电话" span="1" prop="buyerPhone">
@@ -339,6 +339,25 @@
         accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
       />
       </ws-form>
+      <el-table
+        class="wenzi"
+        :data="taskhistories"
+        style="width: 100%"
+      >
+        <el-table-column prop="operatorMajorRoleName" label="审核人">
+          <template scope="scope">
+            {{scope.row.operatorMajorRoleName}}{{scope.row.operatorName}}
+            </template>
+        </el-table-column>
+        <el-table-column prop="inOutTaskNo" label="审核结果">
+          <template scope="scope">
+            <span v-if='scope.row.approved'>通过</span>
+            <span v-if='!scope.row.approved'>驳回</span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="endTime" label="审核时间"></el-table-column>
+        <el-table-column prop="auditMind" label="驳回原因"></el-table-column>
+     </el-table>
       <div style="text-align: right; padding: 10px">
         <el-button
           class="bg-bottom"
@@ -359,6 +378,9 @@ import {
   examineList,
   billoperatehis,
 } from '@/model/contarct/index'
+import {
+  gettaskhistories
+} from '@/model/tasksport/index'
 import { dayjs } from 'base-core-lib'
 import WsUpload from '@/components/WsUpload'
 export default {
@@ -379,6 +401,7 @@ export default {
       //弹出框
       dialogViewSpareMoney: false,
       dialogApproveFormVisible: false,
+      taskhistories:[],
       // 船舶类型
       monetaryKey: null,
       // 表格显示数据
@@ -410,6 +433,10 @@ export default {
   },
   methods: {
     loaddata() {
+      gettaskhistories({businessKey: this.$route.query.id,workflowId: this.$route.query.workflowId}).toPromise()
+          .then((response) => {
+            this.taskhistories=response
+          })
       // 数据
       examineList({ id: this.$route.query.id })
         .toPromise()

+ 63 - 0
src/views/customerFundManagement/component/router/router.js

@@ -0,0 +1,63 @@
+import Layout from '@/layout/index';
+
+const customerFundManagementRouter = {
+    path: '/customerFundManagement',
+    component: Layout,
+    redirect: { name: 'customerFundList' },
+    name: 'customerFundList',
+    alwaysShow: true, // will always show the root menu
+    meta: {
+      title: 'customerFundList',
+    //   module: 'customerManagement.customer.customerInfo',
+      icon: '-kehuguanli'
+    },
+    children: [
+        //客户资金管理列表
+      {
+        path: 'customerFundList',
+        component: () =>
+          import(/* webpackChunkName: "applDetail" */ '@/views/customerFundManagement/customerFundList'),
+        name: 'customerFundList',
+        meta: {
+          title: 'customerFundList',
+          shortcutEntrance: 'customerFundList',
+        //   module: 'customerManagement.customerFundManagement.customerInfo',
+          permissicon: [],
+          keepAlive: true
+        },
+         hidden: true
+      },
+          //客户资金管理编辑
+    {
+        path: 'customerFundEdit',
+        component: () =>
+          import(/* webpackChunkName: "applDetail" */ '@/views/customerFundManagement/customerFundEdit'),
+        name: 'customerFundEdit',
+        meta: {
+          title: 'customerFundEdit',
+          shortcutEntrance: 'customerFundManagement',
+        //   module: 'customerFundManagement.buyContract.buyContractInfo.edit',
+          permissicon: [],
+          keepAlive: true
+        },
+        hidden: true
+      },
+      //客户资金管理添加
+      {
+        path: 'customerFundAdd',
+        component: () =>
+          import(/* webpackChunkName: "applDetail" */ '@/views/customerFundManagement/customerFundAdd'),
+        name: 'customerFundAdd',
+        meta: {
+          title: 'customerFundAdd',
+          shortcutEntrance: 'customerFundManagement',
+        //   module: 'customerFundManagement.buyContract.buyContractInfo.add',
+          permissicon: [],
+          keepAlive: true
+          // module: 'procurement.sparepart.applDetail'
+        },
+        hidden: true
+      },
+  ],
+};
+export default customerFundManagementRouter;  

+ 575 - 0
src/views/customerFundManagement/customerFundAdd.vue

@@ -0,0 +1,575 @@
+<!--客户管理添加-->
+<template>
+  <div class="center">
+    <el-row>
+      <el-col :span="12">
+        <h2 class="bg-left titleup">创建客户</h2>
+      </el-col>
+      <el-col :span="12" class="bg-right">
+        <el-button class="bg-bottom" type="primary" size="small" @click="cancel"
+          ><img
+            width="6"
+            height="10"
+            style="vertical-align: bottom; margin-right: 3px"
+            src="../../../public/img/lujing.png"
+            alt=""
+          />返回
+        </el-button>
+      </el-col>
+    </el-row>
+    <div class="unload">
+      <ws-form ref="customerList" :model="customerList" label-width="120px">
+        <ws-info-table>
+          <!--合同类型-->
+          <ws-form-item label="客户类型" span="1" class="readonly">
+            <el-radio v-model="customerList.customerType" label="企业客户"
+              >企业客户</el-radio
+            >
+            <el-radio v-model="customerList.customerType" label="个人客户"
+              >个人客户</el-radio
+            >
+          </ws-form-item>
+          <ws-form-item
+            label="公司名称"
+            span="1"
+            prop="compName"
+            label-width="80px"
+            v-if="customerList.customerType == '企业客户'"
+          >
+            <ws-input
+              v-model="customerList.compName"
+              placeholder="请输入公司名称"
+              maxlength="15"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <ws-form-item
+            label="客户姓名"
+            span="1"
+            prop="customerName"
+            label-width="80px"
+            v-if="customerList.customerType == '个人客户'"
+          >
+            <ws-input
+              v-model="customerList.customerName"
+              placeholder="请输入客户姓名"
+              maxlength="15"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <ws-form-item label="联系电话" span="1" prop="customerPhone">
+            <ws-input
+              type="number"
+              @mousewheel.native.prevent
+              v-model="customerList.customerPhone"
+              placeholder="请输入联系电话"
+              maxlength="11"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <ws-form-item label="定金" span="1" prop="totalDeposit">
+            <ws-input
+              type="number"
+              @mousewheel.native.prevent
+              v-model="customerList.totalDeposit"
+              placeholder="请输入定金"
+              maxlength="11"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <ws-form-item label="预付金" span="1" prop="advancePayment">
+            <ws-input
+              type="number"
+              @mousewheel.native.prevent
+              v-model="customerList.advancePayment"
+              placeholder="请输入预付金"
+              maxlength="11"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <ws-form-item label="保证金" span="1" prop="securityDeposit">
+            <ws-input
+              type="number"
+              @mousewheel.native.prevent
+              v-model="customerList.securityDeposit"
+              placeholder="请输入保证金"
+              maxlength="11"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <div style="display: flex; width: 100%; text-align: center">
+            <div style="width: 330px; margin: 0 auto">
+              <div class="unload-img">上传银行卡正面</div>
+              <el-upload
+                class="avatar-uploader avatar-uploader3"
+                action="https://www.zthymaoyi.com/upload/admin"
+                :show-file-list="false"
+                :on-success="bankSuccess1"
+                :disabled="disabled"
+              >
+                <img v-if="imageUrl3" :src="imageUrl3" class="avatar" />
+                <i v-else class="el-icon-plus avatar-uploader-icon"></i>
+              </el-upload>
+            </div>
+            <div style="width: 330px; margin: 0 auto">
+              <div class="unload-img">上传银行卡反面</div>
+              <el-upload
+                class="avatar-uploader avatar-uploader4"
+                action="https://www.zthymaoyi.com/upload/admin"
+                :show-file-list="false"
+                :on-success="bankSuccess2"
+                :disabled="disabled"
+              >
+                <img v-if="imageUrl4" :src="imageUrl4" class="avatar" />
+                <i v-else class="el-icon-plus avatar-uploader-icon"></i>
+              </el-upload>
+            </div>
+          </div>
+          <ws-form-item label="银行卡号" span="1" prop="bankCard">
+            <ws-input
+              type="number"
+              @mousewheel.native.prevent
+              v-model="customerList.bankCard"
+              placeholder="请输入银行卡号"
+              maxlength="19"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <ws-form-item label="开户行" span="1" prop="bankDeposit">
+            <ws-input
+              v-model="customerList.bankDeposit"
+              placeholder="请输入开户行"
+              maxlength="100"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <ws-form-item label="开户支行" span="1" prop="bankDepositBranch">
+            <ws-input
+              v-if="bankInput"
+              v-model="customerList.bankDepositBranch"
+              placeholder="请输入开户支行"
+              maxlength="100"
+              size="small"
+              :disabled="disabled"
+            />
+            <ws-select
+              v-else
+              v-model="customerList.bankDepositBranch"
+              placeholder="请输入开户支行"
+              :disabled="disabled"
+            >
+              <ws-option
+                v-for="item in bankList"
+                :key="item"
+                :label="item"
+                :value="item"
+              />
+            </ws-select>
+            <el-button
+              type="primary"
+              @click="bankInputChange"
+              v-if="switchType != 2"
+              >{{ bankText }}</el-button
+            >
+          </ws-form-item>
+          <ws-form-item label="收款人姓名" span="1" prop="payeeName">
+            <ws-input
+              v-model="customerList.payeeName"
+              placeholder="请输入收款人姓名"
+              maxlength="15"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+        </ws-info-table>
+        <div class="but">
+          <el-button type="primary" @click="commit">提交</el-button>
+        </div>
+      </ws-form>
+    </div>
+  </div>
+</template>
+<script>
+import {
+  addCustomer,
+  getBank,
+} from '@/model/customerFundManagement/index'
+
+export default {
+  components: {},
+  watch: {},
+  data() {
+    return {
+      imageUrl1: '',
+      imageUrl2: '',
+      imageUrl3: '',
+      imageUrl4: '',
+      dialogImageUrl: '',
+      dialogVisible: false,
+      customerList: {
+        customerName: '',
+        customerNumberCard: '',
+        bankCard: '',
+        bankDeposit: '',
+      },
+      disabledFlag: true,
+      disabled: false,
+      identity: [],
+      bank: [],
+      trader: '新增',
+      switchType: '',
+      identityImgUp: [
+        {
+          url: '',
+        },
+      ],
+      identityImgLow: [
+        {
+          url: '',
+        },
+      ],
+      bankImgUp: [
+        {
+          url: '',
+        },
+      ],
+      bankImgLow: [
+        {
+          url: '',
+        },
+      ],
+      identityUp: 'up',
+      identityLow: 'low',
+      bankUps: 'bankUp',
+      bankLows: 'bankLow',
+      sendDisabled: false,
+      bankList: [],
+      bankInput: false,
+      bankText: '手动填写',
+    }
+  },
+  activated() {
+    this.switchType = this.$route.query.types
+    if (this.$route.query.types == null) {
+      this.switchType = 1
+      this.imageUrl1 = ''
+      this.imageUrl2 = ''
+      this.imageUrl3 = ''
+      this.imageUrl4 = ''
+      this.customerList = {}
+    }
+  },
+  methods: {
+    bankInputChange() {
+      this.bankInput = !this.bankInput
+      if (this.bankInput) {
+        this.bankText = '自动识别'
+      } else {
+        this.bankText = '手动填写'
+      }
+    },
+    cancel() {
+      this.customerList = {}
+      this.$router.push({
+        path: 'customerFundList',
+      })
+    },
+    bankSuccess1(e) {
+      this.bankUps = 'bankUp'
+      this.bank[0] = e.url
+      this.imageUrl3 = e.url
+      getBank({
+        bankImg: e.url,
+      })
+        .toPromise()
+        .then((response) => {
+          if (response.bankNameZhihang.length > 0) {
+            this.bankList = response.bankNameZhihang
+          }
+          if (response.bankNo) {
+            this.$set(this.customerList, 'bankCard', response.bankNo)
+          }
+          if (response.bankName) {
+            this.$set(this.customerList, 'bankDeposit', response.bankName)
+          }
+        })
+    },
+    bankSuccess2(e) {
+      this.bankLows = 'bankLow'
+      this.bank[1] = e.url
+      this.imageUrl4 = e.url
+      getBank({
+        bankImg: e.url,
+      })
+        .toPromise()
+        .then((response) => {
+          if (response.bankNameZhihang) {
+            this.bankList = response.bankNameZhihang
+          }
+          if (response.bankNo) {
+            this.$set(this.customerList, 'bankCard', response.bankNo)
+          }
+          if (response.bankName) {
+            this.$set(this.customerList, 'bankDeposit', response.bankName)
+          }
+        })
+    },
+    commit() {
+      if (!this.imageUrl3) {
+        this.$message({
+          message: '请上传银行卡正面',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        !this.customerList.customerName &&
+        this.customerList.customerType == '个人客户'
+      ) {
+        this.$message({
+          message: '请输入客户姓名',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        !this.customerList.compName &&
+        this.customerList.customerType == '企业客户'
+      ) {
+        this.$message({
+          message: '请输入公司名称',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.customerList.bankCard) {
+        this.$message({
+          message: '请输入输入银行卡号',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.customerList.bankDeposit) {
+        this.$message({
+          message: '请输入开户行',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.customerList.bankDepositBranch) {
+        this.$message({
+          message: '请输入开户支行',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.customerList.customerPhone) {
+        this.$message({
+          message: '请输入手机号',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.customerList.customerPhone.length != 11) {
+        this.$message({
+          message: '输入的手机号有误,请重新输入',
+          type: 'warning',
+        })
+        return
+      }
+      this.customerList.compId = sessionStorage.getItem('ws-pf_compId')
+
+      this.$confirm('确定提交客户信息?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+      })
+        .then(() => {
+          this.customerList.cardAddressUrl = this.identity.toString()
+          this.customerList.payeeAddressUrl = this.bank.toString()
+          // this.customerList.customerTypeFlag = this.customerTypeFlag
+          // this.customerList.customerType = this.customerType
+          addCustomer(this.customerList)
+            .toPromise()
+            .then((response) => {
+              this.$message.success('添加成功')
+              this.customerList = {}
+              this.$router.go(-1)
+            })
+        })
+        .catch(() => {
+          return false
+        })
+    },
+  },
+}
+</script>
+<style lang="scss" scoped>
+.avatar-uploader1 {
+  background: url('../../../public/img/identityup.png');
+}
+
+.avatar-uploader2 {
+  background: url('../../../public/img/identitylow.png');
+}
+
+.avatar-uploader3 {
+  background: url('../../../public/img/bankup.png');
+}
+
+.avatar-uploader4 {
+  background: url('../../../public/img/banklow.png');
+}
+
+/deep/.el-upload {
+  height: 200px;
+}
+
+.avatar-uploader {
+  background-size: 100% 100%;
+}
+
+.avatar-uploader .el-upload {
+  border: 1px dashed #d9d9d9;
+  border-radius: 6px;
+  cursor: pointer;
+  position: relative;
+  overflow: hidden;
+}
+
+.avatar-uploader .el-upload:hover {
+  border-color: #409eff;
+}
+
+.avatar-uploader-icon {
+  font-size: 28px;
+  color: #8c939d;
+  width: 178px;
+  height: 178px;
+  line-height: 178px;
+  text-align: center;
+}
+
+.avatar {
+  width: 330px;
+  height: 103%;
+  display: block;
+}
+
+.center {
+  background: #f6f7fc;
+}
+
+.seach {
+  display: flex;
+  align-items: center;
+
+  .find {
+    width: 32px;
+  }
+
+  .search-left {
+    display: flex;
+  }
+}
+
+.ws-info-table {
+  border: none;
+  width: 80%;
+  margin: 0 auto;
+}
+
+.ws-info-table .el-form-item {
+  width: 50%;
+  border: none;
+}
+
+/deep/.ws-info-table .el-form-item .el-form-item__label {
+  width: 30%;
+  text-align: center;
+  background: #ffffff;
+  font-size: 14px;
+  color: #8890b1;
+}
+
+/deep/.ws-info-table .el-form-item .el-form-item__content {
+  border: none;
+}
+
+.bg-left {
+  padding-left: 30px;
+}
+
+.bg-right {
+  padding-right: 10px;
+  text-align: right;
+}
+
+.bg-bottom {
+  margin: 15px 0px;
+}
+
+.titleup {
+  position: relative;
+}
+
+.titleup::before {
+  content: '';
+  display: inline-block;
+  width: 5px;
+  height: 30px;
+  background: #5473e8;
+  position: absolute;
+  left: 0;
+}
+
+.unload {
+  background: #ffffff;
+  padding-top: 20px;
+}
+
+.but {
+  text-align: center;
+  margin: 20px auto;
+}
+
+/deep/.up .el-upload--picture-card {
+  display: none;
+}
+
+/deep/.low .el-upload--picture-card {
+  display: none;
+}
+
+/deep/.bankUp .el-upload--picture-card {
+  display: none;
+}
+
+/deep/.bankLow .el-upload--picture-card {
+  display: none;
+}
+
+.unload-img {
+  margin: 20px 0;
+}
+
+.veriCode {
+  margin: 0 9px;
+}
+.jiaoYan {
+  display: flex;
+  width: 50%;
+  padding: 0 9px;
+}
+/deep/.jiaoYan .el-input__inner {
+  width: 100%;
+}
+</style>

+ 594 - 0
src/views/customerFundManagement/customerFundEdit.vue

@@ -0,0 +1,594 @@
+<!--客户管理编辑-->
+<template>
+  <div class="center">
+    <el-row>
+      <el-col :span="12">
+        <h2 class="bg-left titleup">编辑客户信息</h2>
+      </el-col>
+      <el-col :span="12" class="bg-right">
+        <el-button class="bg-bottom" type="primary" size="small" @click="cancel"
+          ><img
+            width="6"
+            height="10"
+            style="vertical-align: bottom; margin-right: 3px"
+            src="../../../public/img/lujing.png"
+            alt=""
+          />返回
+        </el-button>
+      </el-col>
+    </el-row>
+    <div class="unload">
+      <ws-form ref="customerList" :model="customerList" label-width="120px">
+        <ws-info-table>
+          <!--合同类型-->
+          <ws-form-item label="客户类型" span="1" class="readonly">
+            <el-radio v-model="customerList.customerType" label="企业客户"
+              >企业客户</el-radio
+            >
+            <el-radio v-model="customerList.customerType" label="个人客户"
+              >个人客户</el-radio
+            >
+          </ws-form-item>
+          <ws-form-item
+            label="公司名称"
+            span="1"
+            prop="compName"
+            label-width="80px"
+            v-if="customerList.customerType == '企业客户'"
+          >
+            <ws-input
+              v-model="customerList.compName"
+              placeholder="请输入公司名称"
+              maxlength="15"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <ws-form-item
+            label="客户姓名"
+            span="1"
+            prop="customerName"
+            label-width="80px"
+            v-if="customerList.customerType == '个人客户'"
+          >
+            <ws-input
+              v-model="customerList.customerName"
+              placeholder="请输入客户姓名"
+              maxlength="15"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <ws-form-item label="联系电话" span="1" prop="customerPhone">
+            <ws-input
+              type="number"
+              @mousewheel.native.prevent
+              v-model="customerList.customerPhone"
+              placeholder="请输入联系电话"
+              maxlength="11"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <ws-form-item label="定金" span="1" prop="totalDeposit">
+            <ws-input
+              type="number"
+              @mousewheel.native.prevent
+              v-model="customerList.totalDeposit"
+              placeholder="请输入定金"
+              maxlength="11"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <ws-form-item label="预付金" span="1" prop="advancePayment">
+            <ws-input
+              type="number"
+              @mousewheel.native.prevent
+              v-model="customerList.advancePayment"
+              placeholder="请输入预付金"
+              maxlength="11"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <ws-form-item label="保证金" span="1" prop="securityDeposit">
+            <ws-input
+              type="number"
+              @mousewheel.native.prevent
+              v-model="customerList.securityDeposit"
+              placeholder="请输入保证金"
+              maxlength="11"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <div style="display: flex; width: 100%; text-align: center">
+            <div style="width: 330px; margin: 0 auto">
+              <div class="unload-img">上传银行卡正面</div>
+              <el-upload
+                class="avatar-uploader avatar-uploader3"
+                action="https://www.zthymaoyi.com/upload/admin"
+                :show-file-list="false"
+                :on-success="bankSuccess1"
+                :disabled="disabled"
+              >
+                <img v-if="imageUrl3" :src="imageUrl3" class="avatar" />
+                <i v-else class="el-icon-plus avatar-uploader-icon"></i>
+              </el-upload>
+            </div>
+            <div style="width: 330px; margin: 0 auto">
+              <div class="unload-img">上传银行卡反面</div>
+              <el-upload
+                class="avatar-uploader avatar-uploader4"
+                action="https://www.zthymaoyi.com/upload/admin"
+                :show-file-list="false"
+                :on-success="bankSuccess2"
+                :disabled="disabled"
+              >
+                <img v-if="imageUrl4" :src="imageUrl4" class="avatar" />
+                <i v-else class="el-icon-plus avatar-uploader-icon"></i>
+              </el-upload>
+            </div>
+          </div>
+          <ws-form-item label="银行卡号" span="1" prop="bankCard">
+            <ws-input
+              type="number"
+              @mousewheel.native.prevent
+              v-model="customerList.bankCard"
+              placeholder="请输入银行卡号"
+              maxlength="19"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <ws-form-item label="开户行" span="1" prop="bankDeposit">
+            <ws-input
+              v-model="customerList.bankDeposit"
+              placeholder="请输入开户行"
+              maxlength="100"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+          <ws-form-item label="开户支行" span="1" prop="bankDepositBranch">
+            <ws-input
+              v-if="bankInput"
+              v-model="customerList.bankDepositBranch"
+              placeholder="请输入开户支行"
+              maxlength="100"
+              size="small"
+              :disabled="disabled"
+            />
+            <ws-select
+              v-else
+              v-model="customerList.bankDepositBranch"
+              placeholder="请输入开户支行"
+              :disabled="disabled"
+            >
+              <ws-option
+                v-for="item in bankList"
+                :key="item"
+                :label="item"
+                :value="item"
+              />
+            </ws-select>
+            <el-button
+              type="primary"
+              @click="bankInputChange"
+              v-if="switchType != 2"
+              >{{ bankText }}</el-button
+            >
+          </ws-form-item>
+          <ws-form-item label="收款人姓名" span="1" prop="payeeName">
+            <ws-input
+              v-model="customerList.payeeName"
+              placeholder="请输入收款人姓名"
+              maxlength="15"
+              size="small"
+              :disabled="disabled"
+            />
+          </ws-form-item>
+        </ws-info-table>
+        <div class="but">
+          <el-button type="primary" @click="commit">提交</el-button>
+        </div>
+      </ws-form>
+    </div>
+  </div>
+</template>
+<script>
+import {
+  editCustomerInfo,
+  lookCustomer,
+  getBank,
+} from '@/model/customerFundManagement/index'
+
+export default {
+  components: {},
+  watch: {},
+  data() {
+    return {
+      imageUrl3: '',
+      imageUrl4: '',
+      dialogImageUrl: '',
+      dialogVisible: false,
+      customerList: {
+        customerName: '',
+        customerNumberCard: '',
+        bankCard: '',
+        bankDeposit: '',
+      },
+      disabledFlag: true,
+      disabled: false,
+      identity: [],
+      bank: [],
+      trader: '新增',
+      switchType: '',
+      identityImgUp: [
+        {
+          url: '',
+        },
+      ],
+      identityImgLow: [
+        {
+          url: '',
+        },
+      ],
+      bankImgUp: [
+        {
+          url: '',
+        },
+      ],
+      bankImgLow: [
+        {
+          url: '',
+        },
+      ],
+      identityUp: 'up',
+      identityLow: 'low',
+      bankUps: 'bankUp',
+      bankLows: 'bankLow',
+      sendDisabled: false,
+      bankList: [],
+      bankInput: false,
+      bankText: '手动填写',
+    }
+  },
+  activated() {
+    this.loaddata()
+
+    this.showType = this.isShow
+    this.imageUrl3 = ''
+    this.imageUrl4 = ''
+    this.customerList = {}
+  },
+  methods: {
+    bankInputChange() {
+      this.bankInput = !this.bankInput
+      if (this.bankInput) {
+        this.bankText = '自动识别'
+      } else {
+        this.bankText = '手动填写'
+      }
+    },
+    cancel() {
+      this.customerList = {}
+      this.$router.push({
+        path: 'customerFundList',
+      })
+    },
+    bankSuccess1(e) {
+      this.bankUps = 'bankUp'
+      this.bank[0] = e.url
+      this.imageUrl3 = e.url
+      getBank({
+        bankImg: e.url,
+      })
+        .toPromise()
+        .then((response) => {
+          if (response.bankNameZhihang.length > 0) {
+            this.bankList = response.bankNameZhihang
+          }
+          if (response.bankNo) {
+            this.$set(this.customerList, 'bankCard', response.bankNo)
+          }
+          if (response.bankName) {
+            this.$set(this.customerList, 'bankDeposit', response.bankName)
+          }
+        })
+    },
+    bankSuccess2(e) {
+      this.bankLows = 'bankLow'
+      this.bank[1] = e.url
+      this.imageUrl4 = e.url
+      getBank({
+        bankImg: e.url,
+      })
+        .toPromise()
+        .then((response) => {
+          if (response.bankNameZhihang) {
+            this.bankList = response.bankNameZhihang
+          }
+          if (response.bankNo) {
+            this.$set(this.customerList, 'bankCard', response.bankNo)
+          }
+          if (response.bankName) {
+            this.$set(this.customerList, 'bankDeposit', response.bankName)
+          }
+        })
+    },
+    loaddata() {
+      lookCustomer({ id: this.$route.query.id })
+        .toPromise()
+        .then((response) => {
+          this.customerList = response
+          this.bank = this.customerList.payeeAddressUrl.split(',')
+          this.imageUrl3 = this.bank[0]
+          this.imageUrl4 = this.bank[1]
+          getBank({
+            bankImg: this.bank[0],
+          })
+            .toPromise()
+            .then((response) => {
+              if (response.bankNameZhihang.length > 0) {
+                this.bankList = response.bankNameZhihang
+              }
+              if (response.bankNo) {
+                this.$set(this.customerList, 'bankCard', response.bankNo)
+              }
+              if (response.bankName) {
+                this.$set(this.customerList, 'bankDeposit', response.bankName)
+              }
+            })
+        })
+    },
+    commit() {
+      if (!this.imageUrl3) {
+        this.$message({
+          message: '请上传银行卡正面',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        !this.customerList.customerName &&
+        this.customerList.customerType == '个人客户'
+      ) {
+        this.$message({
+          message: '请输入客户姓名',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        !this.customerList.compName &&
+        this.customerList.customerType == '企业客户'
+      ) {
+        this.$message({
+          message: '请输入公司名称',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.customerList.bankCard) {
+        this.$message({
+          message: '请输入输入银行卡号',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.customerList.bankDeposit) {
+        this.$message({
+          message: '请输入开户行',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.customerList.bankDepositBranch) {
+        this.$message({
+          message: '请输入开户支行',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.customerList.customerPhone) {
+        this.$message({
+          message: '请输入手机号',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.customerList.customerPhone.length != 11) {
+        this.$message({
+          message: '输入的手机号有误,请重新输入',
+          type: 'warning',
+        })
+        return
+      }
+      this.customerList.compId = sessionStorage.getItem('ws-pf_compId')
+
+      this.$confirm('确定修改客户信息?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+      })
+        .then(() => {
+          this.customerList.cardAddressUrl = this.identity.toString()
+          this.customerList.payeeAddressUrl = this.bank.toString()
+          editCustomerInfo(this.customerList)
+            .toPromise()
+            .then((response) => {
+              this.$message.success('编辑成功')
+              this.customerList = {}
+              this.$router.go(-1)
+            })
+        })
+        .catch(() => {
+          return false
+        })
+    },
+  },
+}
+</script>
+<style lang="scss" scoped>
+.avatar-uploader1 {
+  background: url('../../../public/img/identityup.png');
+}
+
+.avatar-uploader2 {
+  background: url('../../../public/img/identitylow.png');
+}
+
+.avatar-uploader3 {
+  background: url('../../../public/img/bankup.png');
+}
+
+.avatar-uploader4 {
+  background: url('../../../public/img/banklow.png');
+}
+
+/deep/.el-upload {
+  height: 200px;
+}
+
+.avatar-uploader {
+  background-size: 100% 100%;
+}
+
+.avatar-uploader .el-upload {
+  border: 1px dashed #d9d9d9;
+  border-radius: 6px;
+  cursor: pointer;
+  position: relative;
+  overflow: hidden;
+}
+
+.avatar-uploader .el-upload:hover {
+  border-color: #409eff;
+}
+
+.avatar-uploader-icon {
+  font-size: 28px;
+  color: #8c939d;
+  width: 178px;
+  height: 178px;
+  line-height: 178px;
+  text-align: center;
+}
+
+.avatar {
+  width: 330px;
+  height: 103%;
+  display: block;
+}
+
+.center {
+  background: #f6f7fc;
+}
+
+.seach {
+  display: flex;
+  align-items: center;
+
+  .find {
+    width: 32px;
+  }
+
+  .search-left {
+    display: flex;
+  }
+}
+
+.ws-info-table {
+  border: none;
+  width: 80%;
+  margin: 0 auto;
+}
+
+.ws-info-table .el-form-item {
+  width: 50%;
+  border: none;
+}
+
+/deep/.ws-info-table .el-form-item .el-form-item__label {
+  width: 30%;
+  text-align: center;
+  background: #ffffff;
+  font-size: 14px;
+  color: #8890b1;
+}
+
+/deep/.ws-info-table .el-form-item .el-form-item__content {
+  border: none;
+}
+
+.bg-left {
+  padding-left: 30px;
+}
+
+.bg-right {
+  padding-right: 10px;
+  text-align: right;
+}
+
+.bg-bottom {
+  margin: 15px 0px;
+}
+
+.titleup {
+  position: relative;
+}
+
+.titleup::before {
+  content: '';
+  display: inline-block;
+  width: 5px;
+  height: 30px;
+  background: #5473e8;
+  position: absolute;
+  left: 0;
+}
+
+.unload {
+  background: #ffffff;
+  padding-top: 20px;
+}
+
+.but {
+  text-align: center;
+  margin: 20px auto;
+}
+
+/deep/.up .el-upload--picture-card {
+  display: none;
+}
+
+/deep/.low .el-upload--picture-card {
+  display: none;
+}
+
+/deep/.bankUp .el-upload--picture-card {
+  display: none;
+}
+
+/deep/.bankLow .el-upload--picture-card {
+  display: none;
+}
+
+.unload-img {
+  margin: 20px 0;
+}
+
+.veriCode {
+  margin: 0 9px;
+}
+.jiaoYan {
+  display: flex;
+  width: 50%;
+  padding: 0 9px;
+}
+/deep/.jiaoYan .el-input__inner {
+  width: 100%;
+}
+</style>

+ 542 - 0
src/views/customerFundManagement/customerFundList.vue

@@ -0,0 +1,542 @@
+//客户管理
+<template>
+  <div>
+    <BaseHeaderLayout :leftSpan="8">
+      <template slot="left"> </template>
+      <template slot="left">
+        <ws-input
+          v-model="searchKeyWord"
+          placeholder="可按客户名称、电话查找"
+          clearable
+          maxlength="500"
+          type="input"
+          class="findValue"
+        ></ws-input>
+        <ws-button class="find" type="primary" @click="find()"
+          ><img
+            width="16"
+            height="16"
+            style="
+              vertical-align: text-top;
+              position: relative;
+              top: 0px;
+              left: -2px;
+            "
+            src="../../../public/img/sousuo.png"
+            alt=""
+        /></ws-button>
+
+        <!--添加客户-->
+        <ws-button type="primary" @click="customerAdd()"
+          ><img
+            width="13"
+            height="13"
+            style="
+              vertical-align: text-top;
+              position: relative;
+              top: 2px;
+              left: -4px;
+            "
+            src="../../../public/img/header-add.png"
+            alt=""
+          />创建客户</ws-button
+        >
+      </template>
+      <!-- v-hasPermission="`contractManagement.buyContract.buyContractInfo.add`" -->
+    </BaseHeaderLayout>
+    <div>
+      <el-table
+        class="wenzi"
+        :data="customerList.records"
+        style="width: 100%"
+        height="680"
+      >
+        <el-table-column prop="index" label="序号" width="80">
+          <template scope="scope">
+            <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
+            <span v-else>{{ scope.$index + 1 }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="customerType" label="客户类型" width="80"></el-table-column>
+        <el-table-column prop="compName" label="企业名称" width="200"></el-table-column>
+        <el-table-column prop="customerName" label="客户姓名" width="120"></el-table-column>
+        <el-table-column prop="customerPhone" label="电话" width="100"> </el-table-column>
+        <el-table-column prop="totalDeposit" label="定金(元)" width="110"></el-table-column>
+        <el-table-column prop="advancePayment" label="预付金(元)" width="110"></el-table-column>
+        <el-table-column prop="securityDeposit" label="保证金(元)" width="110"></el-table-column>
+        <el-table-column prop="bankCard" label="账号" width="200"> </el-table-column>
+        <el-table-column prop="bankDeposit" label="开户行" width="280">
+          <template slot-scope="scope">
+            {{ scope.row.bankDeposit }} - {{ scope.row.bankDepositBranch }}
+          </template>
+        </el-table-column>
+        <!-- <el-table-column prop="bankDepositBranch" label="开户支行" width="260">
+         <template slot-scope="scope">
+            {{ scope.row.bankDeposit }} - {{ scope.row.bankDepositBranch }}
+          </template> 
+        </el-table-column> -->
+        <el-table-column prop="payeeName" label="收款人姓名" width="150"> </el-table-column>
+        <el-table-column prop="seller" label="操作" width="150">
+          <template slot-scope="scope">
+            <el-button
+              size="medium"
+              type="text"
+              class="record"
+              @click="customerEdit(scope.row)"
+              >编辑</el-button
+            >
+            <el-button
+              size="medium"
+              type="text"
+              class="record"
+              @click="customerDel(scope.row)"
+              >删除</el-button
+            >
+          </template>
+        </el-table-column>
+      </el-table>
+      <el-pagination
+        @size-change="handleSizeChange"
+        @current-change="handleCurrentChange"
+        :current-page="currentPage"
+        :page-size="deptCircularPage.pageSize"
+        layout="total, sizes, prev, pager, next, jumper"
+        :total="deptBudgetTotal"
+      >
+      </el-pagination>
+    </div>
+  </div>
+</template>
+<script>
+import {
+  getCustomerList,
+  delCustomerInfo,
+} from '@/model/customerFundManagement/index'
+import Pagination from '@/components/Pagination'
+import WsUpload from '@/components/WsUpload'
+
+export default {
+  name: 'viewSpareMoney',
+  components: {
+    WsUpload,
+    Pagination,
+  },
+  watch: {
+    vesselId(val) {
+      this.getList()
+    },
+    isShow(val) {
+      this.showType = val
+    },
+  },
+  data() {
+    return {
+      //弹出框
+      dialogViewSpareMoney: false,
+      dialogApproveFormVisible: false,
+      // 船舶类型
+      monetaryKey: null,
+      // 表格显示数据
+      tableDate: [],
+      // 是否显示
+      showType: true,
+      // 年
+      year: '',
+      currentPage: 1,
+      pageSize: 10,
+      deptBudgetTotal: 0,
+      searchKeyWord: '',
+      contractType: 2,
+      searchType: 1,
+      // 提交类型
+      submitType: true,
+      size: 10,
+      spanArr: [],
+      id: '',
+      money: '',
+      compId: sessionStorage.getItem('ws-pf_compId'),
+      deptCircularPage: {},
+      customerList: [],
+      deptBudgetList: {},
+      pickerBeginDateBefore: {
+        disabledDate: (time) => {
+          return time.getTime() > Date.now()
+        },
+      },
+      accessoryTFs: false,
+      customerInfo: {
+        id: '',
+        compId: '',
+        flag: '',
+        money: '',
+        totalDeposit: 0,
+      },
+      totalDeposit: 0,
+    }
+  },
+  activated() {
+    this.getList()
+    this.showType = this.isShow
+  },
+  methods: {
+    //查看//传参
+    nocomplete(row) {
+      this.$router.push({
+        name: 'vehicleDispatchingview',
+        query: {
+          id: row.id,
+        },
+      })
+    },
+    dateFormat(fmt, date) {
+      let ret
+      const opt = {
+        'Y+': date.getFullYear().toString(), // 年
+        'm+': (date.getMonth() + 1).toString(), // 月
+        'd+': date.getDate().toString(), // 日
+        'H+': date.getHours().toString(), // 时
+        // "M+": date.getMinutes().toString(),         // 分
+        // "S+": date.getSeconds().toString()          // 秒
+        // 有其他格式化字符需求可以继续添加,必须转化成字符串
+      }
+      for (let k in opt) {
+        ret = new RegExp('(' + k + ')').exec(fmt)
+        if (ret) {
+          fmt = fmt.replace(
+            ret[1],
+            ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
+          )
+        }
+      }
+      return fmt
+    },
+    customerAdd() {
+      this.$router.push({
+        path: 'customerFundAdd',
+      })
+    },
+    customerEdit(row) {
+      this.$router.push({
+        name: 'customerFundEdit',
+        query: {
+          id: row.id,
+        },
+      })
+    },
+    customerDel(row) {
+      this.$confirm(`客户信息删除后不可恢复,是否确定删除?`, {
+        cancelButtonText: '取消',
+        confirmButtonText: '确定',
+        type: 'warning',
+      })
+        .then(() => {
+          delCustomerInfo({
+            id: row.id,
+          })
+            .toPromise()
+            .then((response) => {
+              this.$notify.success({
+                title: '成功',
+                message: '删除成功',
+              })
+              this.getList()
+            })
+            .catch((response) => {})
+        })
+        .catch(() => {
+          return false
+        })
+    },
+    handleClose() {
+      this.accessoryTFs = false
+    },
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`)
+      this.pageSize = val
+      this.getList()
+    },
+    handleCurrentChange(val) {
+      this.currentPage = val
+      console.log(`当前页: ${val}`)
+      this.getList()
+    },
+    changestatus(state) {
+      this.searchType = state
+      this.getList()
+    },
+    whether(row) {
+      row.identification = 'true'
+    },
+    //列表查询
+    getList() {
+      getCustomerList({
+        compId: sessionStorage.getItem('ws-pf_compId'),
+        currentPage: this.currentPage,
+        pageSize: this.pageSize,
+        searchKeyWord: this.searchKeyWord,
+        customerTypeFlag: this.customerTypeFlag,
+      })
+        .toPromise()
+        .then((response) => {
+          for (var i = 0; i < response.records.length; i++) {
+            response.records[i].identification = 'false'
+          }
+          this.customerList = response
+          this.deptCircularPage.currentPage = response.current
+          this.deptCircularPage.pageSize = response.size
+          this.deptBudgetTotal = response.total
+        })
+    },
+    find() {
+      this.currentPage = 1
+      this.getList()
+    },
+  },
+}
+</script>
+<style lang="scss" scoped>
+.connert {
+  width: 90%;
+  margin: 0 auto;
+}
+.vertical-text-left {
+  width: 62px;
+  text-align: right;
+}
+.el-button--primary {
+  background-color: #5878e8;
+  border-color: #5878e8;
+}
+.el-button--primary {
+  background-color: #5878e8;
+  color: #fff;
+}
+.el-button--default {
+  color: #8890b1;
+  border-color: #e8eaf1;
+}
+/deep/.base_header_layout .grid-content.right .find.el-button--primary {
+  width: 30px;
+  margin-left: 0;
+  border-top-left-radius: 0px;
+  border-bottom-left-radius: 0px;
+}
+/deep/.findValue .el-input__inner {
+  border-top-right-radius: 0px;
+  border-bottom-right-radius: 0px;
+}
+//操作按钮
+.record,
+.adjustment {
+  display: inline-block;
+  color: #5878e8;
+  padding: 0 4px !important;
+  position: relative;
+  font-size: 14px;
+}
+.record:after {
+  position: absolute;
+  content: '';
+  display: block;
+  top: 5px;
+  right: -2px;
+  width: 1px;
+  height: 12px;
+  background: #e9ecf7;
+}
+//状态样式
+.executory,
+.inExecution,
+.done {
+  width: 6px;
+  height: 6px;
+  display: inline-block;
+  border-radius: 50%;
+  position: relative;
+  top: -1px;
+  font-size: 14px;
+}
+.executory {
+  background: #ff9f24;
+}
+.inExecution {
+  background: #5878e8;
+}
+.done {
+  background: #50cad4;
+}
+.putstorage.el-button--default,
+.deliverystorage.el-button--default {
+  border-color: #8890b1;
+  background-color: #fff;
+  color: #8890b1;
+}
+/deep/.el-table td,
+/deep/.el-table th.is-leaf {
+  border-right: 1px solid #e9ecf7;
+  text-align: center;
+}
+/deep/.el-table tr td:first-child,
+/deep/.el-table tr th.is-leaf:first-child {
+  border-left: 1px solid #e9ecf7;
+}
+.record,
+.adjustment {
+  display: inline-block;
+  color: #5878e8;
+  padding: 0 4px !important;
+  position: relative;
+}
+.record:after {
+  position: absolute;
+  content: '';
+  display: block;
+  top: 5px;
+  right: -2px;
+  width: 1px;
+  height: 12px;
+  background: #e9ecf7;
+}
+.el-row {
+  height: 60px;
+}
+.base_header_layout .grid-content {
+  margin-top: 80px;
+}
+.el-input--small .el-input__inner {
+  margin-left: 20px;
+}
+.dialog-footer {
+  margin-top: 33px;
+}
+.el-range-editor--small.el-input__inner {
+  height: 32px;
+  margin: 0 10px;
+}
+/deep/.el-pagination {
+  text-align: center;
+  white-space: nowrap;
+  padding: 2px 5px;
+  color: #303133;
+  font-weight: 700;
+  margin-bottom: 20px;
+}
+.el-select {
+  width: 30%;
+  margin-right: 10px;
+}
+/deep/.zengjia .el-textarea__inner {
+  display: block;
+  padding: 13px 9px;
+  line-height: 0.5;
+  box-sizing: border-box;
+  width: 80%;
+  font-size: inherit;
+  color: #606266;
+  background-color: #fff;
+  background-image: none;
+  border: 1px solid #dcdfe6;
+  border-radius: 4px;
+  margin-left: 180px;
+  margin-top: 10px;
+}
+
+/deep/.xiugai .el-textarea__inner {
+  display: block;
+  padding: 13px 17px;
+  line-height: 0.5;
+  box-sizing: border-box;
+  width: 105%;
+  font-size: inherit;
+  color: #606266;
+  background-color: #fff;
+  background-image: none;
+  border: 1px solid #dcdfe6;
+  border-radius: 4px;
+  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
+  margin-left: 95px;
+}
+
+/deep/.tuihui .el-textarea__inner {
+  display: block;
+  padding: 13px 9px;
+  line-height: 0.5;
+  box-sizing: border-box;
+  width: 80%;
+  font-size: inherit;
+  color: #606266;
+  background-color: #fff;
+  background-image: none;
+  border: 1px solid #dcdfe6;
+  border-radius: 4px;
+  margin-left: 180px;
+  margin-top: 10px;
+}
+/deep/.dingjin {
+  width: 98px;
+  margin-left: 30px;
+  margin-bottom: -37px;
+  padding-top: 20px;
+}
+/deep/.el-textarea__inner {
+  display: block;
+  padding: 13px 17px;
+  line-height: 0.5;
+  box-sizing: border-box;
+  width: 90%;
+  font-size: inherit;
+  color: #606266;
+  background-color: #fff;
+  background-image: none;
+  border: 1px solid #dcdfe6;
+  border-radius: 4px;
+  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
+  margin-left: 155px;
+  margin-top: 10px;
+}
+/deep/.addprice {
+  width: 98px;
+  margin-left: 50px;
+}
+/deep/.returnprice {
+  width: 98px;
+  margin-left: 50px;
+}
+/deep/.yuan {
+  width: 10px;
+  margin-left: 150%;
+  margin-top: -32px;
+}
+/deep/.addpricejine {
+  width: 98px;
+  margin-left: 50px;
+  margin-bottom: -37px;
+  padding-top: 20px;
+}
+/deep/.returnpricejine {
+  width: 98px;
+  margin-left: 50px;
+  margin-bottom: -37px;
+  padding-top: 20px;
+}
+/deep/.typeselect .el-input__inner {
+  color: #8890b1;
+}
+/deep/.yifudingjin {
+  margin-left: 135px;
+  width: 70px;
+  margin-top: -19px;
+}
+.inputChenge {
+  width: 50%;
+  display: inline-flex;
+}
+.inputs {
+  margin: 0 auto;
+}
+/deep/.ketuidingjin {
+  margin-left: 135px;
+  width: 70px;
+  margin-top: -19px;
+}
+</style>

+ 1 - 1
src/views/financialManagement/collectionManagementList.vue

@@ -134,7 +134,7 @@
             placeholder="请选择默认库管"
             class="deal"
             filterable
-            :filter-method="dataFilter"
+            
             @change="selectstaff"
           >
             <el-option

+ 7 - 1
src/views/houseSelfCollect/inspectInfo.vue

@@ -62,7 +62,7 @@
                 disabled />
             </ws-form-item>
             <ws-form-item label="类型" span="1" prop="type">
-              <ws-select v-model="inspect.type" :disabled="disabled" @change="typeChange">
+              <ws-select v-model="inspect.type" disabled @change="typeChange">
                 <ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
               </ws-select>
             </ws-form-item>
@@ -713,6 +713,12 @@
 
       waterContentChange(type) {
         if (this.inspect.goodsName&&type!='water') {
+          if(this.inspect.goodsName.indexOf('潮粮') !=-1){
+                this.inspect.type='潮粮'
+          }
+          else{
+            this.inspect.type='干粮'
+          }
           if(!this.inspect.dryGrainPrice||this.inspect.dryGrainPrice == 0){
             getDryGrainPrice({warehouseId:this.cangid,goodsName:this.inspect.goodsName})
             .toPromise()

+ 9 - 7
src/views/houseSelfCollect/inspectionManagement.vue

@@ -261,6 +261,12 @@
 						this.warehouseList = []
 						let _wareHouse = sessionStorage.getItem('houseSelfCollect_house')
 						_wareHouse = JSON.parse(_wareHouse)
+						if (_wareHouse) {
+								this.cangid = _wareHouse.id
+								this.warehouseName = _wareHouse.value
+								this.warehouseNo = _wareHouse.No
+								this.warehouseCount = _wareHouse.count
+							} 
 						for (let i = 0; i < response.length; i++) {
 							this.warehouseList.push({
 								value: response[i].warehouseName,
@@ -268,13 +274,8 @@
 								count: response[i].count,
 								No: response[i].commonWarehouseNo
 							})
-							if (_wareHouse) {
-								this.cangid = _wareHouse.id
-								this.warehouseName = _wareHouse.warehouseName
-								this.warehouseNo = _wareHouse.commonWarehouseNo
-								this.warehouseCount = _wareHouse.count
-							} else {
-								if (this.cangid && this.cangid == response[i].id) {
+							if (!_wareHouse) {
+									if (this.cangid && this.cangid == response[i].id) {
 									this.warehouseName = response[i].warehouseName
 									this.warehouseCount = response[i].count
 									this.warehouseNo = response[i].commonWarehouseNo
@@ -305,6 +306,7 @@
 						console.log(response)
 						this.inspect = response.records
 						this.deptBudgetTotal = response.total
+						// this.$forceUpdate();
 					})
 			},
 			print(row) {

+ 24 - 3
src/views/houseSelfCollect/paymentManagement.vue

@@ -15,7 +15,7 @@
               class="label-width"
               @change="selectType($event)"
             ></el-checkbox>
-            <el-checkbox label="打印发票" name="type" class="label-width" @change="selectType($event)"></el-checkbox>
+            <!-- <el-checkbox label="打印发票" name="type" class="label-width" @change="selectType($event)"></el-checkbox> -->
           </el-checkbox-group>
         </div>
       </div>
@@ -43,6 +43,7 @@
         <ws-button :type="searchType == -1 ? 'primary' : ''" @click="screen(-1)">全部</ws-button>
         <ws-button type="primary" @click="reject" v-if="isShowAdopt">驳回</ws-button>
         <ws-button type="primary" @click="adopt" v-if="isShowAdopt">通过</ws-button>
+        <ws-button type="primary" @click="invoicingClick" v-if="isShowAdopt" v-hasPermission="`acquisitionManagement.acquisitionPay.finace`">开票</ws-button>
         <!-- <ws-button type="primary" @click="handlepass" v-if="isShowAdopt">审核</ws-button> -->
         <ws-button
           type="primary"
@@ -149,6 +150,14 @@
             @click="print(scope.row)"
             v-hasPermission="`acquisitionManagement.acquisitionPay.print`"
           >打印</el-button>
+             <el-button
+            v-if="
+              scope.row.approveStatus ||
+              (scope.row.status != '待结算' && !scope.row.approveStatus)
+            "
+            @click="print(scope.row)"
+            v-hasPermission="`acquisitionManagement.acquisitionPay.finace`"
+          >财务打印</el-button>
           <el-button
             type="danger"
             v-if="
@@ -249,7 +258,8 @@ import {
   getpaymentexamine,
   getCustomerLook,
   paymentCommit,
-  getJurisdiction
+  getJurisdiction,
+  invoicing
 } from '@/model/houseSelfCollect/index'
 import { posthandle } from '@/model/purchasingManagement/index'
 import paymentPrint from './component/paymentPrint.vue'
@@ -320,6 +330,17 @@ export default {
     // this.getList()
   },
   methods: {
+    invoicingClick(){
+      let data = JSON.stringify(this.modification)
+      console.log("开票",this.modification)
+      //开票
+        invoicing(data)
+        .toPromise()
+        .then(response => {
+          console.log(response)
+    
+        })
+    },
     selectType(val) {
       console.log(val)
       console.log(this.ruleForm.type)
@@ -919,7 +940,7 @@ table {
   right: 0;
   margin: auto;
   width: 200px;
-  height: 215px;
+  height: 200px;
   background: white;
   border-radius: 10px;
   z-index: 999;

+ 8 - 7
src/views/houseSelfCollect/weighingManagement.vue

@@ -162,9 +162,9 @@
 						this.monitorUrl1 = this.warehouseList[i].monitorUrl1
 						this.monitorUrl2 = this.warehouseList[i].monitorUrl2
 						sessionStorage.setItem('ck', e)
+						sessionStorage.setItem('houseSelfCollect_house1', JSON.stringify(this.warehouseList[i]))
 					}
 				}
-
 				this.getList()
 			},
 			weightCheck(row, num) {
@@ -207,7 +207,7 @@
 				this.getList()
 			},
 			selectWarehouse() {
-				let _wareHouse = sessionStorage.getItem('houseSelfCollect_house')
+				let _wareHouse = sessionStorage.getItem('houseSelfCollect_house1')
 				_wareHouse = JSON.parse(_wareHouse)
 				selectWarehouseSelf({
 						compId: sessionStorage.getItem('ws-pf_compId'),
@@ -222,15 +222,16 @@
 								warehouseId: response[i].id,
 								allowEdit: response[i].allowEdit,
 								monitorUrl1: response[i].monitorUrl1,
-								monitorUrl2: response[i].monitorUrl2
+								monitorUrl2: response[i].monitorUrl2,
+								id: response[i].id,
+								warehouseNo:response[i].commonWarehouseNo
 							})
 							if (_wareHouse) {
-
 								this.cangid = _wareHouse.id
-								this.warehouseName = _wareHouse.warehouseName
-								this.common.name = _wareHouse.warehouseName
+								this.warehouseName = _wareHouse.value
+								this.common.name = _wareHouse.value
 								this.warehouseId = _wareHouse.id
-								this.warehouseNo = _wareHouse.commonWarehouseNo
+								this.warehouseNo = _wareHouse.warehouseNo
 								this.monitorUrl1 = _wareHouse.monitorUrl1
 								this.allowEdit = _wareHouse.allowEdit
 								this.monitorUrl2 = _wareHouse.monitorUrl2

+ 1 - 1
src/views/outboundManagement/collectionManagement.vue

@@ -29,7 +29,7 @@
             placeholder="请选择合同"
             clearable
             filterable
-            :filter-method="dataFilter"
+            
             @change="contractchange"
             maxlength="500"
             type="input"

+ 1 - 1
src/views/purchasingManagement/procurementPlanAdd.vue

@@ -173,7 +173,7 @@
               v-model="dataList.buyerPhone"
               filterable
               class="typeselect"
-              :filter-method="dataFilter"
+              clearable
               placeholder="请输入买方电话"
             ></el-input>
             <span class="unchangeable">*</span>

+ 1 - 1
src/views/purchasingManagement/procurementPlanEdit.vue

@@ -209,7 +209,7 @@
             <el-input
               v-model="dataList.buyerPhone"
               filterable
-              :filter-method="dataFilter"
+              clearable
               placeholder="请输入买方电话"
               class="typeselect"
             ></el-input>

+ 2 - 2
src/views/purchasingManagement/procurementPlanLook.vue

@@ -76,7 +76,7 @@
           </el-form-item>
           <!--包装方式-->
           <el-form-item label="包装方式">
-            <el-input disabled v-model="dataList.packingType" filterable :filter-method="dataFilter"></el-input>
+            <el-input disabled v-model="dataList.packingType" filterable></el-input>
           </el-form-item>
           <!--装袋备注=-->
           <el-form-item label="装袋备注" v-if="dataList.packingType == '大袋' || dataList.packingType == '小袋'">
@@ -88,7 +88,7 @@
           </el-form-item>
           <!-- 买方电话 -->
           <el-form-item label="买方电话">
-            <el-input disabled v-model="dataList.buyerPhone" filterable :filter-method="dataFilter"></el-input>
+            <el-input disabled v-model="dataList.buyerPhone" filterable></el-input>
           </el-form-item>
           <div class="small-title"></div>
         </el-form>

+ 1 - 1
src/views/purchasingManagement/purchaseOrderList.vue

@@ -745,7 +745,7 @@
             placeholder="请选择合同编号"
             class="deal"
             filterable
-            :filter-method="dataFilter"
+           
           >
             <el-option
               v-for="item in options"

+ 1 - 1
src/views/salesManagement/salesPlanAdd.vue

@@ -216,7 +216,7 @@
               v-model="dataList.sellerPhone"
               filterable
               class="typeselect"
-              :filter-method="dataFilter"
+              clearable
               placeholder="请输入卖方电话"
             ></el-input>
             <span class="unchangeable">*</span>

+ 1 - 1
src/views/salesManagement/salesPlanEdit.vue

@@ -181,7 +181,7 @@
             <el-input
               v-model="dataList.sellerPhone"
               filterable
-              :filter-method="dataFilter"
+              clearable
               class="typeselect"
               placeholder="请输入卖方电话"
             ></el-input>

+ 2 - 2
src/views/salesManagement/salesPlanLook.vue

@@ -76,7 +76,7 @@
           </el-form-item>
           <!--包装方式-->
           <el-form-item label="包装方式">
-            <el-input disabled v-model="dataList.packingType" filterable :filter-method="dataFilter"></el-input>
+            <el-input disabled v-model="dataList.packingType" filterable></el-input>
           </el-form-item>
           <!--装袋备注=-->
           <el-form-item label="装袋备注" v-if="dataList.packingType == '大袋' || dataList.packingType == '小袋'">
@@ -88,7 +88,7 @@
           </el-form-item>
           <!-- 卖方电话 -->
           <el-form-item label="卖方电话">
-            <el-input disabled v-model="dataList.sellerPhone" filterable :filter-method="dataFilter"></el-input>
+            <el-input disabled v-model="dataList.sellerPhone" filterable></el-input>
           </el-form-item>
           <div class="small-title"></div>
         </el-form>

+ 1 - 1
src/views/salesManagement/salesPlanOrderList.vue

@@ -768,7 +768,7 @@
             placeholder="请选择合同编号"
             class="deal"
             filterable
-            :filter-method="dataFilter"
+           
           >
             <el-option
               v-for="item in options"

+ 5 - 1
src/views/statisticalReport/autoSettlementList.vue

@@ -65,7 +65,7 @@
             placeholder="请选择合同"
             clearable
             filterable
-            :filter-method="dataFilter"
+           
             @change="contractchange"
             maxlength="500"
             type="input"
@@ -1280,6 +1280,10 @@ export default {
           sums[index] = '--'
         }
       })
+      sums[sums.length-4]=sums[sums.length-4].toFixed(2)
+			sums[sums.length-5]=sums[sums.length-5].toFixed(2)
+      sums[sums.length-6]=sums[sums.length-6].toFixed(2)
+      sums[sums.length-7]=sums[sums.length-7].toFixed(2)
       return sums
     },
     //列表

+ 7 - 15
src/views/statisticalReport/huoyunList.vue

@@ -50,7 +50,7 @@
           > -->
         </el-col>
         <el-col
-          style="text-align: right; line-height: 60px; padding-right: 10px;display: flex;"
+          style="display: flex; justify-content:flex-end;margin-top:13px"
           :span="14"
         >
           <el-select
@@ -58,7 +58,7 @@
             placeholder="请选择合同"
             clearable
             filterable
-            :filter-method="dataFilter"
+           
             @change="contractchange"
             maxlength="500"
             type="input"
@@ -76,7 +76,6 @@
             placeholder="请选择运输任务编号"
             clearable
             filterable
-            :filter-method="dataFilter"
             @change="taskNochange"
             maxlength="500"
             type="input"
@@ -106,17 +105,10 @@
               :label="item.processNoValue "
               :value="item.processNoValue"
             />
-            <!-- <el-option
-              v-if="!item.reportStatus"
-              v-for="item in options"
-              :key="item.constKey"
-              :label="item.contractNo"
-              :value="item.contractNo"
-            /> -->
           </el-select>
         </el-col>
       </el-row>
-      <div class="freightSet">
+      <div class="freightSet" v-if="actualFreight && tranPriceIng">
         <div style="display: flex;width:200px;line-height: 30px;"> 预计运费(元):{{tranPriceIng}}元</div>
         <span style="display: flex;line-height: 30px;">实际运费(元):<el-input type="text" maxlength="70" size="small"  v-model="actualFreight" v-show="textShow"/><span v-show="!textShow">{{actualFreight}}</span>元</span>
         <i @click="actualFreightchange" class="iconfont icon-dui" v-show="textShow" style="margin-top:10px"></i>
@@ -1325,10 +1317,6 @@ export default {
   border-top-left-radius: 0px;
   border-bottom-left-radius: 0px;
 }
-/deep/.findValue .el-input__inner {
-  width: 300px;
-
-}
 .completed.el-button--default {
   border-color: #5878e8;
   background-color: #f6f7fc;
@@ -1550,4 +1538,8 @@ hr {
 /deep/.freightSet .el-input{
   width: 44%;
 }
+.findValue{
+  width: 300px;
+  margin-left: 5px;
+}
 </style>

+ 12 - 4
src/views/statisticalReport/purchaseClosingCashierList.vue

@@ -58,7 +58,7 @@
             placeholder="请选择合同"
             clearable
             filterable
-            :filter-method="dataFilter"
+           
             @change="contractchange"
             maxlength="500"
             type="input"
@@ -107,7 +107,6 @@
         <el-table-column
           class="table_td"
           prop="closePositionDate"
-          width="100"
           label="平仓日期"
         ></el-table-column>
         <el-table-column
@@ -129,7 +128,7 @@
           label="平仓价格(元/吨)"
         ></el-table-column>
         <el-table-column
-          width="100"
+          width="90"
           class="table_td"
           prop="basisPrice"
           label="基差(元/吨)"
@@ -183,11 +182,13 @@
         <el-table-column
           class="table_td"
           prop="customerName"
+          width="60"
           label="客户"
         ></el-table-column>
         <el-table-column
           class="table_td"
           prop="warehouseName"
+          width="60"
           label="库点"
         ></el-table-column>
         <el-table-column prop="status" label="状态">
@@ -572,9 +573,9 @@ export default {
           sums[index] = '合计'
         } else if (
           index === 4 ||
-          index === 10 ||
           index === 8 ||
           index === 9 ||
+          index === 10 ||
           index === 12 ||
           index === 13 ||
           index === 14
@@ -596,6 +597,13 @@ export default {
           sums[index] = '--'
         }
       })
+			sums[sums.length-5]=sums[sums.length-5].toFixed(2)
+      sums[sums.length-6]=sums[sums.length-6].toFixed(2)
+      sums[sums.length-7]=sums[sums.length-7].toFixed(2)
+			sums[sums.length-9]=sums[sums.length-9].toFixed(2)
+      sums[sums.length-10]=sums[sums.length-10].toFixed(2)
+      sums[sums.length-11]=sums[sums.length-11].toFixed(2)
+      sums[sums.length-15]=sums[sums.length-15].toFixed(2)
       return sums
     },
     //付款

+ 7 - 2
src/views/statisticalReport/purchaseReceiptStatisticsList.vue

@@ -70,7 +70,7 @@
             placeholder="请选择合同"
             clearable
             filterable
-            :filter-method="dataFilter"
+           
             @change="contractchange"
             maxlength="500"
             type="input"
@@ -1129,9 +1129,9 @@ export default {
           sums[index] = '合计'
         } else if (
           index === 15 ||
+          index === 16 ||
           index === 17 ||
           index === 18 ||
-          index === 16 ||
           index === 25
         ) {
           const values = data.map((item) => Number(item[column.property]))
@@ -1151,6 +1151,11 @@ export default {
           sums[index] = '--'
         }
       })
+      sums[sums.length-2]=sums[sums.length-2].toFixed(2)
+      sums[sums.length-9]=sums[sums.length-9].toFixed(2)
+			sums[sums.length-10]=sums[sums.length-10].toFixed(2)
+      sums[sums.length-11]=sums[sums.length-11].toFixed(2)
+			sums[sums.length-12]=sums[sums.length-12].toFixed(2)
       return sums
     },
     //成交

+ 9 - 2
src/views/statisticalReport/salesClosingCashierList.vue

@@ -57,7 +57,7 @@
             placeholder="请选择合同"
             clearable
             filterable
-            :filter-method="dataFilter"
+           
             @change="contractchange"
             maxlength="500"
             type="input"
@@ -691,9 +691,9 @@ export default {
           sums[index] = '合计'
         } else if (
           index === 4 ||
-          index === 10 ||
           index === 8 ||
           index === 9 ||
+          index === 10 ||
           index === 12 ||
           index === 13 ||
           index === 14
@@ -715,6 +715,13 @@ export default {
           sums[index] = '--'
         }
       })
+      sums[sums.length-5]=sums[sums.length-5].toFixed(2)
+      sums[sums.length-6]=sums[sums.length-6].toFixed(2)
+      sums[sums.length-7]=sums[sums.length-7].toFixed(2)
+			sums[sums.length-9]=sums[sums.length-9].toFixed(2)
+      sums[sums.length-10]=sums[sums.length-10].toFixed(2)
+      sums[sums.length-11]=sums[sums.length-11].toFixed(2)
+      sums[sums.length-15]=sums[sums.length-15].toFixed(2)
       return sums
     },
     //成交

+ 6 - 1
src/views/statisticalReport/salesDeliveryReportList.vue

@@ -64,7 +64,7 @@
             placeholder="请选择合同"
             clearable
             filterable
-            :filter-method="dataFilter"
+           
             @change="contractchange"
             maxlength="500"
             type="input"
@@ -725,6 +725,11 @@ export default {
           sums[index] = '--'
         }
       })
+      sums[sums.length-2]=sums[sums.length-2].toFixed(2)
+      sums[sums.length-7]=sums[sums.length-7].toFixed(2)
+			sums[sums.length-8]=sums[sums.length-8].toFixed(2)
+      sums[sums.length-9]=sums[sums.length-9].toFixed(2)
+			sums[sums.length-10]=sums[sums.length-10].toFixed(2)
       return sums
     },
     handlecollect() {

+ 6 - 12
src/views/statisticalReport/shippingList.vue

@@ -58,7 +58,7 @@
             placeholder="请选择合同"
             clearable
             filterable
-            :filter-method="dataFilter"
+           
             @change="contractchange"
             maxlength="500"
             type="input"
@@ -106,17 +106,10 @@
               :label="item.processNoValue "
               :value="item.processNoValue"
             />
-            <!-- <el-option
-              v-if="!item.reportStatus"
-              v-for="item in options"
-              :key="item.constKey"
-              :label="item.contractNo"
-              :value="item.contractNo"
-            /> -->
           </el-select>
         </el-col>
       </el-row>
-       <div class="freightSet">
+       <div class="freightSet" v-if="actualFreight && tranPriceIng">
         <div style="display: flex;width:200px;line-height: 30px;"> 预计运费(元):{{tranPriceIng}}元</div>
         <span style="display: flex;line-height: 30px;">实际运费(元):<el-input type="text" maxlength="70" size="small"  v-model="actualFreight" v-show="textShow"/><span v-show="!textShow">{{actualFreight}}</span>元</span>
         <i @click="actualFreightchange" class="iconfont icon-dui" v-show="textShow" style="margin-top:10px"></i>
@@ -1331,9 +1324,6 @@ export default {
   border-top-left-radius: 0px;
   border-bottom-left-radius: 0px;
 }
-/deep/.findValue .el-input__inner {
-  width: 300px;
-}
 .completed.el-button--default {
   border-color: #5878e8;
   background-color: #f6f7fc;
@@ -1558,4 +1548,8 @@ hr {
 /deep/.freightSet .el-input{
   width: 44%;
 }
+.findValue{
+  width: 300px;
+  margin-left: 5px;
+}
 </style>

+ 5 - 1
src/views/statisticalReport/stockPurchaseReceiptReportList.vue

@@ -64,7 +64,7 @@
             placeholder="请选择合同"
             clearable
             filterable
-            :filter-method="dataFilter"
+           
             @change="contractchange"
             maxlength="500"
             type="input"
@@ -953,6 +953,10 @@ export default {
           sums[index] = '--'
         }
       })
+      sums[sums.length-3]=sums[sums.length-3].toFixed(2)
+      sums[sums.length-4]=sums[sums.length-4].toFixed(2)
+			sums[sums.length-5]=sums[sums.length-5].toFixed(2)
+      sums[sums.length-6]=sums[sums.length-6].toFixed(2)
       return sums
     },
     getList() {

+ 3 - 1
src/views/statisticalReport/stockSaleOutReportList.vue

@@ -12,7 +12,7 @@
 					</ws-button>
 				</el-col>
 				<el-col style="text-align: right; line-height: 60px; padding-right: 10px" :span="8">
-					<el-select v-model="contractNo" placeholder="请选择合同" clearable filterable :filter-method="dataFilter"
+					<el-select v-model="contractNo" placeholder="请选择合同" clearable filterable
 						@change="contractchange" maxlength="500" type="input" class="findValue">
 						<el-option v-if="item.reportStatus" v-for="item in options" :key="item.constKey"
 							:label="item.contractNo + '(' + item.reportStatus + ')'" :value="item.contractNo" />
@@ -453,6 +453,8 @@
 						sums[index] = '--'
 					}
 				})
+				sums[sums.length-1]=sums[sums.length-1].toFixed(2)
+				sums[sums.length-2]=sums[sums.length-2].toFixed(2)
 				return sums
 			},
 			//定金

+ 1 - 0
src/views/system/systemFile/fileManage.vue

@@ -436,6 +436,7 @@
               <ws-select v-model="vesselId"
                          filterable
                          multiple
+                         clearable
                          @change="changeVessel">
                 <ws-option v-for="item in shipOptions"
                            :key="item.vesselId"

+ 1 - 1
src/views/system/systemFile/systemOperation.vue

@@ -270,7 +270,7 @@
           <!-- 适用船舶 -->
           <ws-form-item :label="$t('system.fileManagement.applicableShip')"
                         v-if="vesselBankFlag === 'B'">
-            <ws-select filterable
+            <ws-select filterable clearable
                        v-model="page.vesselId"
                        style="width:100%"
                        :placeholder="$t('common.selected')">

+ 5 - 0
src/views/system/systemFileManage/systemDocuments/fileManage.vue

@@ -498,6 +498,7 @@
                         span="2">
             <el-select v-model="deptId"
                        filterable
+                       clearable
                        multiple
                        @change="changeDept"
                        style="width: 100%;">
@@ -545,6 +546,7 @@
             <el-select v-model="sponsorShipId"
                        multiple
                        filterable
+                       clearable
                        collapse-tags
                        style="width: 250px;margin-top: 7px">
               <el-option v-for="item in sponsorShipOptions"
@@ -593,6 +595,7 @@
                                :value="i.roleId"></el-option>
                   </el-select> -->
                   <el-select filterable
+                             clearable
                              multiple
                              collapse-tags
                              v-model="item.reviewProcess"
@@ -620,6 +623,7 @@
             <el-select v-model="sponsorShoreId"
                        multiple
                        filterable
+                       clearable
                        collapse-tags
                        style="width: 250px;margin-top: 7px">
               <el-option v-for="item in sponsorShoreOptions"
@@ -665,6 +669,7 @@
                                :value="i.roleId"></el-option>
                   </el-select> -->
                   <el-select filterable
+                             clearable
                              multiple
                              collapse-tags
                              v-model="item.reviewShoreProcess"

+ 1 - 1
src/views/system/systemFileManage/systemOperation/circulationStatement.vue

@@ -281,7 +281,7 @@
                style="padding: 5px;">
             <span>{{ $t('system.fileManagement.applicableShip') }}</span>
           </div>
-          <ws-select filterable
+          <ws-select filterable clearable
                      v-model="page.vesselId"
                      style="width:100%;margin-bottom: 20px;"
                      :placeholder="$t('common.selected')">

+ 1 - 0
src/views/system/systemFileManage/systemOperation/documentWarning.vue

@@ -47,6 +47,7 @@ JACK_LIU * @Last Modified time: 2020-08-10 20:43:34 */
                 </ws-select> -->
               <BaseShipSelect v-model="requestData.vesselId"
                               filterable
+                              clearable
                               :placeholder="$t('common.selected')"
                               :showAll="false"
                               clearable

+ 2 - 2
src/views/taskManagement/tranManagementTransportAdd.vue

@@ -302,7 +302,7 @@
             v-model="item.sender"
             placeholder="请选择发货人"
             filterable
-            :filter-method="dataFilter"
+           
             @change=" (val) => {
                   selectstaff(val, index)
                 }"
@@ -354,7 +354,7 @@
             v-model="item.receiver"
             placeholder="请选择收货人"
             filterable
-            :filter-method="dataFilter"
+           
             @change="(val) => {
                   selectstaff1(val, index)
                 }"

+ 2 - 2
src/views/taskManagement/tranManagementTransportEdit.vue

@@ -302,7 +302,7 @@
             v-model="item.sender"
             placeholder="请选择发货人"
             filterable
-            :filter-method="dataFilter"
+           
             @change="(val) => {
                   selectstaff(val, index)
                 }"
@@ -354,7 +354,7 @@
             v-model="item.receiver"
             placeholder="请选择收货人"
             filterable
-            :filter-method="dataFilter"
+           
             @change="(val) => {
                   selectstaff1(val, index)
                 }"

+ 1 - 1
src/views/taskManagement/tranManagementWarehouseInOutTask.vue

@@ -82,7 +82,7 @@
           </template>
         </el-table-column>
         <el-table-column prop="establishDate" class="table_td" label="创建时间"></el-table-column>
-        <el-table-column prop="seller" label="操作" width="180">
+        <el-table-column prop="seller" label="操作" width="230">
           <template slot-scope="scope">
             <span class="corles" @click="nocomplete(scope.row)" v-hasPermission="
                 `warehouseManagement.warehouse.warehouseInfoTask.View`

+ 11 - 11
src/views/taskManagement/tranManagementWarehouseInOutTaskAdd.vue

@@ -109,12 +109,12 @@
 							value-format="yyyy-MM-dd" />
 					</el-form-item>
 					<!--经办人-->
-					<!-- <el-form-item label="出库经办人">
-            <el-select v-model="dataList.agent" placeholder="请选择经办人" filterable :filter-method="dataFilter"
+					<el-form-item label="发货人">
+            <el-select v-model="dataList.agent" placeholder="请选择发货人" filterable
               @change="selectstaff">
               <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
             </el-select>
-          </el-form-item> -->
+          </el-form-item>
 					<!--业务描述=-->
 					<el-form-item v-if="dataList.taskTypeKey != 3" label="业务描述" span="20">
 						<el-input v-model="dataList.businessDescribe" placeholder="请输入业务描述(运输方式),不超过150字"
@@ -209,13 +209,13 @@
 						<el-date-picker v-model="dataList1.predictDate" type="date" placeholder="请选择预计入库日期"
 							value-format="yyyy-MM-dd" />
 					</el-form-item>
-					<!--经办人-->
-					<!-- <el-form-item label="入库经办人">
-            <el-select v-model="dataList1.agent" placeholder="请选择经办人" filterable :filter-method="dataFilter1"
+					<!-- 经办人-->
+					<el-form-item label="收货人">
+            <el-select v-model="dataList1.agent" placeholder="请选择收货人" filterable :filter-method="dataFilter1"
               @change="selectstaff1">
               <el-option v-for="item in options1" :key="item.value" :label="item.staffName" :value="item.staffName" />
             </el-select>
-          </el-form-item> -->
+          </el-form-item>
 					<!--业务描述=-->
 					<el-form-item v-if="dataList.taskTypeKey != 4" label="业务描述">
 						<el-input v-model="dataList1.businessDescribe" placeholder="请输入业务描述(运输方式),不超过150字"
@@ -312,13 +312,13 @@
 						<el-date-picker v-model="dataList.predictDate" type="date" placeholder="请选择预计出库日期"
 							value-format="yyyy-MM-dd" />
 					</el-form-item>
-					<!--经办人-->
-					<!-- <el-form-item label="出库经办人">
-            <el-select v-model="dataList.agent" placeholder="请选择经办人" filterable :filter-method="dataFilter"
+					<!--发货人-->
+					<el-form-item label="发货人">
+            <el-select v-model="dataList.agent" placeholder="请选择发货人" filterable
               @change="selectstaff">
               <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
             </el-select>
-          </el-form-item> -->
+          </el-form-item>
 					<!--业务描述=-->
 					<el-form-item label="业务描述">
 						<el-input v-model="dataList.businessDescribe" placeholder="请输入业务描述(运输方式),不超过150字"

+ 2 - 3
src/views/taskManagement/tranManagementWarehouseInOutTaskAudit.vue

@@ -220,7 +220,6 @@
               v-model="dataList.agent"
               placeholder="请选择经办人"
               filterable
-              :filter-method="dataFilter"
               @change="selectstaff"
             >
               <el-option
@@ -437,7 +436,7 @@
               v-model="dataList1.agent"
               placeholder="请选择经办人"
               filterable
-              :filter-method="dataFilter"
+             
               @change="selectstaff1"
             >
               <el-option
@@ -645,7 +644,7 @@
               v-model="dataList.agent"
               placeholder="请选择经办人"
               filterable
-              :filter-method="dataFilter"
+             
               @change="selectstaff"
             >
               <el-option

+ 3 - 3
src/views/taskManagement/tranManagementWarehouseInOutTaskEdit.vue

@@ -217,7 +217,7 @@
               v-model="dataList.agent"
               placeholder="请选择经办人"
               filterable
-              :filter-method="dataFilter"
+             
               @change="selectstaff"
             >
               <el-option
@@ -420,7 +420,7 @@
               v-model="dataList1.agent"
               placeholder="请选择经办人"
               filterable
-              :filter-method="dataFilter"
+             
               @change="selectstaff1"
             >
               <el-option
@@ -619,7 +619,7 @@
               v-model="dataList.agent"
               placeholder="请选择经办人"
               filterable
-              :filter-method="dataFilter"
+             
               @change="selectstaff"
             >
               <el-option

+ 7 - 8
src/views/tranManagement/component/routers/route.js

@@ -8,7 +8,7 @@ const tranManagementRouter = {
   alwaysShow: true, // will always show the root menu
   meta: {
     title: 'tranManagement',
-    module: 'transportationTask.transportation',
+    module: 'tranManager',
     icon: '-yunshu2'
   },
   children: [
@@ -22,7 +22,7 @@ const tranManagementRouter = {
       meta: {
         title: 'tranManagementTransporTationFire',
         shortcutEntrance: 'transportationTask',
-        module: 'transportationTask.transportation.fireDispatching',
+        module: 'tranManager.fireDispatching',
         permissicon: [],
         keepAlive: true
       },
@@ -36,7 +36,7 @@ const tranManagementRouter = {
       meta: {
         title: 'tranManagementTransporTrainNo',
         shortcutEntrance: 'tranManagement',
-        module: 'transportationTask.transportation.fireDispatching.car',
+        module: 'tranManager.fireDispatching.car',
         permissicon: [],
         keepAlive: true
       },
@@ -51,7 +51,7 @@ const tranManagementRouter = {
       meta: {
         title: 'tranManagementTransporTrainDetails',
         shortcutEntrance: 'transportationTask',
-        module: 'transportationTask.transportation.fireDispatching.view',
+        module: 'tranManager.fireDispatching.view',
         permissicon: [],
         keepAlive: true
       },
@@ -66,7 +66,7 @@ const tranManagementRouter = {
       meta: {
         title: 'tranManagementShippingArrangemen',
         shortcutEntrance: 'tranManagement',
-        module: 'transportationTask.transportation.shippingDispatching.car',
+        module: 'tranManager.shippingDispatching.car',
         permissicon: [],
         keepAlive: true
       },
@@ -82,12 +82,11 @@ const tranManagementRouter = {
       meta: {
         title: 'tranManagementShippingLook',
         shortcutEntrance: 'tranManagement',
-        module: 'transportationTask.transportation.shippingDispatching.view',
+        module: 'tranManager.shippingDispatching.view',
         permissicon: [],
         keepAlive: true
       },
       hidden: true
-
     },
     //添加司机
     {
@@ -128,7 +127,7 @@ const tranManagementRouter = {
       meta: {
         title: 'tranManagementShipping',
         shortcutEntrance: 'tranManagement',
-        module: 'transportationTask.transportation.shippingDispatching',
+        module: 'tranManager.shippingDispatching',
         permissicon: [],
         keepAlive: true
       },

+ 1 - 0
src/views/tranManagement/tranManagementDriverAdd.vue

@@ -170,6 +170,7 @@
                 class="typeselect"
                 @change="selectcarLength"
                 filterable
+                clearable
                 allow-create
                 default-first-option
               >

+ 74 - 45
src/views/tranManagement/tranManagementFireFeedback.vue

@@ -119,7 +119,6 @@
                 </el-upload>
                 <span v-if="item.imgCount > 0">{{item.imgCount}}</span>
                 <span v-if="item.imgCount == 0">未上传</span>
-              <!-- <el-button class="bg-bottom-preview" type="primary" size="small" @click="preview(item)"  v-if="item.imgCount != null ">预览</el-button> -->
               <el-button v-if="item.imgCount>0" class="bg-bottom-preview" type="primary" size="small" :data-img="item.loadPoundImg" @click="$imgPreview">预览</el-button>
               </template>
             </ws-form-item>
@@ -135,14 +134,15 @@
 
             <!-- 提交 -->
             <span class="servicein" v-show="item.status == '已装车' || item.status == '已送达'">已装车</span>
-            <span style="text-align: right; padding: 10px" class="center" v-if="
+            <span style="text-align: right;" class="noservicein" v-if="
                 item.status == '' ||
                 item.status == null ||
                 item.status == '未装车'
               ">
-              <div>
+              <!-- <div>
                 <el-button class="bg-bottom" type="primary" size="small" @click="submit(index)">提交</el-button>
-              </div>
+              </div> -->
+              未装车
             </span>
             <!-- <div
               v-show="
@@ -182,6 +182,7 @@
     </ws-form>
     <!-- 完货 -->
     <div style="text-align: right; padding: 10px" class="wanhuo">
+       <el-button class="bg-bottom" type="primary" size="small" @click="submit(index)">提交</el-button>
       <el-button class="bg-bottom" type="primary" size="small" @click="finished(deptBudgetList)">完货</el-button>
     </div>
   </div>
@@ -500,32 +501,41 @@
       validateFunc() {
         this.$refs.deptBudgetList.validate(valid => {
           if (valid) {
+            console.log(this.freightspace,"数组")
+            
             // this.deptBudgetList.totalStorage = this.totalStorage
-            this.tranCarInfoList = this.freightspace
-            this.tranCarInfoList.driver = this.deptBudgetList.driver
-            this.tranCarInfoList.driverPhone = this.deptBudgetList.driverPhone
-            this.tranCarInfoList.tranCarNo = this.deptBudgetList.tranCarNo
-            this.tranCarInfoList.carNo = this.deptBudgetList.carNo
-            this.tranCarInfoList[0].sendDateStart = this.deptBudgetList.sendDateStart
-            this.tranCarInfoList.loadNetWeight = this.deptBudgetList.loadNetWeight
-            this.tranCarInfoList.tranType = this.tranType
-            this.tranCarInfoList.loadPoundImg = this.deptBudgetList.loadPoundImg
+            // this.tranCarInfoList = this.freightspace
+            // this.tranCarInfoList.driver = this.deptBudgetList.driver
+            // this.tranCarInfoList.driverPhone = this.deptBudgetList.driverPhone
+            // this.tranCarInfoList.tranCarNo = this.deptBudgetList.tranCarNo
+            // this.tranCarInfoList.carNo = this.deptBudgetList.carNo
+            // this.tranCarInfoList[0].sendDateStart = this.deptBudgetList.sendDateStart
+            // this.tranCarInfoList.loadNetWeight = this.deptBudgetList.loadNetWeight
+            // this.tranCarInfoList.tranType = this.tranType
+            // this.tranCarInfoList.loadPoundImg = this.deptBudgetList.loadPoundImg
             // this.tranCarInfoList.boxNo = this.arr.toString()
-            for (var i = 0; i < this.tranCarInfoList.length; i++) {
-              this.tranCarInfoList[i].id = this.freightspace[i].id
-              if (this.tranCarInfoList[i].temporaryDriverFlag != 0) {
-                this.tranCarInfoList[i].temporaryDriverFlag = 1
-                this.tranCarInfoList[i].tranType = this.tranType
-              }
-            }
-            var tranProcessInfo = {}
-            tranProcessInfo.id = this.deptBudgetList.id
-            tranProcessInfo.infoId = this.deptBudgetList.infoId
-            tranProcessInfo.processNo = this.deptBudgetList.processNo
-            tranProcessInfo.tranPrice = this.deptBudgetList.tranPrice
-            tranProcessInfo.tranCarInfoList = this.tranCarInfoList
+            // for (var i = 0; i < this.tranCarInfoList.length; i++) {
+            //   this.tranCarInfoList[i].id = this.freightspace[i].id
+            //   if (this.tranCarInfoList[i].temporaryDriverFlag != 0) {
+            //     this.tranCarInfoList[i].temporaryDriverFlag = 1
+            //     this.tranCarInfoList[i].tranType = this.tranType
+            //   }
+            // }
+            // var tranProcessInfo = {}
+            // tranProcessInfo.id = this.deptBudgetList.id
+            // tranProcessInfo.infoId = this.deptBudgetList.infoId
+            // tranProcessInfo.processNo = this.deptBudgetList.processNo
+            // tranProcessInfo.tranPrice = this.deptBudgetList.tranPrice
+            // tranProcessInfo.tranCarInfoList = this.tranCarInfoList
             // dispatchCat({tranCarInfo:{tranCarInfoList:[this.tranCarInfoList],id:this.deptBudgetList.id}
-            feedback(tranProcessInfo)
+            let tranCar = {}
+            tranCar.infoId = this.deptBudgetList.infoId
+             tranCar.id = this.deptBudgetList.id
+            tranCar.infoId = this.deptBudgetList.infoId
+            tranCar.processNo = this.deptBudgetList.processNo
+            tranCar.tranPrice = this.deptBudgetList.tranPrice
+            tranCar.tranCarInfoList = this.freightspace
+            feedback(tranCar)
               .toPromise()
               .then(response => {
                 this.$message.success('提交成功')
@@ -543,7 +553,7 @@
         })
       },
       submit(index) {
-        // for (var i = 0; i < this.freightspace.length; i++) {
+        for (var i = 0; i < this.freightspace.length; i++) {
         // if (!this.freightspace[i].driver) {
         //   this.$message({
         //     message: '司机姓名不能为空!',
@@ -565,7 +575,7 @@
         //   })
         //   return
         // }
-        if (!this.freightspace[index].loadNetWeight) {
+        if (!this.freightspace[i].loadNetWeight) {
           this.$message({
             message: '装车净重不能为空!',
             type: 'warning'
@@ -573,8 +583,8 @@
           return
         }
         if (
-          this.freightspace[index].loadNetWeight < 0 ||
-          this.freightspace[index].loadNetWeight > 10000
+          this.freightspace[i].loadNetWeight < 0 ||
+          this.freightspace[i].loadNetWeight > 10000
         ) {
           this.$message({
             message: '装车净重输入错误!',
@@ -582,13 +592,38 @@
           })
           return
         }
-        if (!this.freightspace[index].loadingDate) {
+         if (!this.freightspace[i].loadingDate) {
           this.$message({
             message: '装车日期不能为空!',
             type: 'warning'
           })
           return
         }
+        }
+        // if (!this.freightspace[index].loadNetWeight) {
+        //   this.$message({
+        //     message: '装车净重不能为空!',
+        //     type: 'warning'
+        //   })
+        //   return
+        // }
+        // if (
+        //   this.freightspace[index].loadNetWeight < 0 ||
+        //   this.freightspace[index].loadNetWeight > 10000
+        // ) {
+        //   this.$message({
+        //     message: '装车净重输入错误!',
+        //     type: 'warning'
+        //   })
+        //   return
+        // }
+        // if (!this.freightspace[index].loadingDate) {
+        //   this.$message({
+        //     message: '装车日期不能为空!',
+        //     type: 'warning'
+        //   })
+        //   return
+        // }
 
         // }
         if (sessionStorage.getItem('sh-msg')) {
@@ -852,11 +887,11 @@
     display: inline-block;
   }
 
-  .center {
-    width: 900px;
-    margin: -70px auto;
-    margin-right: 92px;
-  }
+  // .center {
+  //   width: 900px;
+  //   margin: -70px auto;
+  //   margin-right: 92px;
+  // }
 
   .wanhuo {
     width: 900px;
@@ -1158,18 +1193,12 @@
   }
 
   .noservicein {
-    background: #c4cada;
     color: #ffffff;
-    display: inline-block;
-    border-radius: 4px;
+    // display: inline-block;
     border: 1px solid #d8dce6;
     padding: 2px;
     font-size: 12px;
-    background: #e5f1f7;
-    color: #50cad4;
-    height: 23px;
-    margin-top: 11px;
-    margin-left: 53px;
+    background: #C4CADA;
   }
 
   .servicedin {

+ 3 - 2
src/views/tranManagement/tranManagementFireFeedbackLook.vue

@@ -145,10 +145,10 @@
                     top: -1px;
                   "
                   src="../../../public/img/fujian.png"
-                  @click="fujian(index)"
+                  :data-img="item.loadPoundImg"
+                  @click="$imgPreview"
                   alt=""
                 />
-
                 <span
                   v-if="
                     deptBudgetList.tranCarInfoList[index].loadPoundImgArr
@@ -165,6 +165,7 @@
                   "
                   >无</span
                 >
+                <!-- <el-button v-if="item.loadPoundImg != null" class="bg-bottom-preview" type="primary" size="small" :data-img="item.loadPoundImg" @click="$imgPreview">预览</el-button> -->
               </template>
             </ws-form-item>
             <!--装车日期-->

+ 53 - 45
src/views/tranManagement/tranManagementFireReceivingFeedback.vue

@@ -197,8 +197,9 @@
                     alt=""
                   />
                 </el-upload>
-                <span v-if="item.unloadPoundImg != null">1</span>
-                <span v-if="item.unloadPoundImg == null">未上传</span>
+                <span v-if="item.imgCount > 0">{{item.imgCount}}</span>
+                <span v-if="item.imgCount == 0">未上传</span>
+                <el-button v-if="item.imgCount>0" class="bg-bottom-preview" type="primary" size="small" :data-img="item.unloadPoundImg" @click="$imgPreview">预览</el-button>
               </template>
             </ws-form-item>
             <!--卸车日期-->
@@ -253,19 +254,7 @@
                 >
             
             </span> -->
-            <el-button
-              style="text-align: right; padding: 10px; margin: 4px 0 0 20px"
-              type="primary"
-              @click="submit(deptBudgetList)"
-              v-if="
-                item.status == '' ||
-                item.status == null ||
-                item.status == '未送达' ||
-                item.status == '已装车'
-              "
-            >
-              提交
-            </el-button>
+           
             <!-- <div
               v-show="
                 item.temporaryDriverFlag == 0 && item.signStatus == '未签合同'
@@ -317,6 +306,13 @@
     </ws-form>
     <!-- 完货 -->
     <div style="text-align: right; padding: 10px" class="wanhuo">
+       <el-button
+              style="text-align: right; padding: 10px; margin: 4px 0 0 20px"
+              type="primary"
+              @click="submit(deptBudgetList)"
+            >
+              提交
+            </el-button>
       <el-button
         class="bg-bottom"
         type="primary"
@@ -400,10 +396,10 @@ export default {
         {
           boxNo: '',
           unloadNetWeight: '',
-          unloadPoundImg: null,
+          unloadPoundImg: '',
           unloadingDate: '',
+          imgCount: 0
         },
-        // {loadPoundImg:{}},
       ],
       name: '',
       staffList: [],
@@ -542,20 +538,20 @@ export default {
               ) {
                 _this.freightspace[k] = _this.excelFreightspace[i]
                 if (
-                  _this.excelFreightspace[i].loadPoundImg.split(',').length > 0
+                  _this.excelFreightspace[i].unloadPoundImg.split(',').length > 0
                 ) {
                   _this.freightspace[k].imgCount =
-                    _this.excelFreightspace[i].loadPoundImg.split(',').length
+                    _this.excelFreightspace[i].unloadPoundImg.split(',').length
                 }
                 _ispushData = false
               }
             }
             if (_ispushData) {
               if (
-                _this.excelFreightspace[i].loadPoundImg.split(',').length > 0
+                _this.excelFreightspace[i].unloadPoundImg.split(',').length > 0
               ) {
                 _this.excelFreightspace[i].imgCount =
-                  _this.excelFreightspace[i].loadPoundImg.split(',').length
+                  _this.excelFreightspace[i].unloadPoundImg.split(',').length
               }
               _this.freightspace.push(_this.excelFreightspace[i])
 
@@ -607,6 +603,7 @@ export default {
             if (valid) {
               var tranProcessInfo = {}
               tranProcessInfo.id = this.deptBudgetList.id
+              tranProcessInfo.weight = this.total
               stateRec(tranProcessInfo)
                 .toPromise()
                 .then((response) => {
@@ -669,34 +666,34 @@ export default {
           this.$refs.deptBudgetList.validate((valid) => {
             if (valid) {
               // this.deptBudgetList.totalStorage = this.totalStorage
-              this.tranCarInfoList = this.freightspace
-              this.tranCarInfoList.driver = this.deptBudgetList.driver
-              this.tranCarInfoList.unloadingDate =
-                this.deptBudgetList.unloadingDate
-              this.tranCarInfoList[0].sendDateStart =
-                this.deptBudgetList.sendDateStart
-              this.tranCarInfoList.driverPhone = this.deptBudgetList.driverPhone
-              this.tranCarInfoList.tranCarNo = this.deptBudgetList.tranCarNo
-              this.tranCarInfoList.carNo = this.deptBudgetList.carNo
-              this.tranCarInfoList.unloadNetWeight =
-                this.deptBudgetList.unloadNetWeight
-              this.tranCarInfoList.tranType = this.tranType
-              this.tranCarInfoList.unloadPoundImg =
-                this.deptBudgetList.unloadPoundImg
-              // this.tranCarInfoList.boxNo = this.arr.toString()
-              for (var i = 0; i < this.tranCarInfoList.length; i++) {
-                this.tranCarInfoList[i].id = this.freightspace[i].id
-                if (this.tranCarInfoList[i].temporaryDriverFlag != 0) {
-                  this.tranCarInfoList[i].temporaryDriverFlag = 1
-                  this.tranCarInfoList[i].tranType = this.tranType
-                }
-              }
+              // this.tranCarInfoList = this.freightspace
+              // this.tranCarInfoList.driver = this.deptBudgetList.driver
+              // this.tranCarInfoList.unloadingDate =
+              //   this.deptBudgetList.unloadingDate
+              // this.tranCarInfoList[0].sendDateStart =
+              //   this.deptBudgetList.sendDateStart
+              // this.tranCarInfoList.driverPhone = this.deptBudgetList.driverPhone
+              // this.tranCarInfoList.tranCarNo = this.deptBudgetList.tranCarNo
+              // this.tranCarInfoList.carNo = this.deptBudgetList.carNo
+              // this.tranCarInfoList.unloadNetWeight =
+              //   this.deptBudgetList.unloadNetWeight
+              // this.tranCarInfoList.tranType = this.tranType
+              // this.tranCarInfoList.unloadPoundImg =
+              //   this.deptBudgetList.unloadPoundImg
+              // // this.tranCarInfoList.boxNo = this.arr.toString()
+              // for (var i = 0; i < this.tranCarInfoList.length; i++) {
+              //   this.tranCarInfoList[i].id = this.freightspace[i].id
+              //   if (this.tranCarInfoList[i].temporaryDriverFlag != 0) {
+              //     this.tranCarInfoList[i].temporaryDriverFlag = 1
+              //     this.tranCarInfoList[i].tranType = this.tranType
+              //   }
+              // }
               var tranProcessInfo = {}
               tranProcessInfo.id = this.deptBudgetList.id
               tranProcessInfo.infoId = this.deptBudgetList.infoId
               tranProcessInfo.processNo = this.deptBudgetList.processNo
               tranProcessInfo.tranPrice = this.deptBudgetList.tranPrice
-              tranProcessInfo.tranCarInfoList = this.tranCarInfoList
+              tranProcessInfo.tranCarInfoList = this.freightspace
               // dispatchCat({tranCarInfo:{tranCarInfoList:[this.tranCarInfoList],id:this.deptBudgetList.id}
               feedback(tranProcessInfo)
                 .toPromise()
@@ -744,11 +741,22 @@ export default {
             if (!this.freightspace[i].loadNetWeight) {
               this.freightspace[i].loadNetWeight = 0
             }
+            if (this.freightspace[i].unloadPoundImg) {
+                this.freightspace[i].imgCount = this.freightspace[i].unloadPoundImg.split(',').length
+              } else {
+                this.freightspace[i].unloadPoundImg = ''
+                this.freightspace[i].imgCount = 0
+              }
           }
         })
     },
     uploadSuccessHandle1(e, index) {
-      this.freightspace[index].unloadPoundImg = e.url
+      this.index = index
+        let that = this;
+        that.$forceUpdate();
+        that.freightspace[that.index].imgCount++
+        console.log(that.freightspace[that.index].imgCount)
+        that.freightspace[that.index].unloadPoundImg += e.url + ','
     },
   },
 }

+ 3 - 1
src/views/tranManagement/tranManagementFireReceivingFeedbackLook.vue

@@ -154,7 +154,8 @@
                     top: -1px;
                   "
                   src="../../../public/img/fujian.png"
-                  @click="fujian(index)"
+                  :data-img="item.unloadPoundImg"
+                  @click="$imgPreview"
                   alt=""
                 />
 
@@ -264,6 +265,7 @@
 import { regionData } from 'element-china-area-data'
 import WsUpload from '@/components/WsUpload'
 import mapDrag from '@/components/mapdrag/mapdrag'
+import { seeCat} from '@/model/transport/index'
 export default {
   name: 'viewSpareMoney',
   components: {

+ 7 - 2
src/views/tranManagement/tranManagementReceivingloading.vue

@@ -294,6 +294,9 @@
                     "
                     >未上传</span
                   >
+                  <el-button v-if="deptBudgetList.tranCarInfoList[index].unloadPoundImg !=null"  
+                  class="bg-bottom-preview" type="primary" size="small" :data-img="deptBudgetList.tranCarInfoList[index].unloadPoundImg" @click="$imgPreview">
+                  <span style="margin-left: -7px;">预览</span></el-button>
                 </template>
               </ws-form-item>
               <!--箱号-->
@@ -538,11 +541,9 @@ export default {
           // _this.freightspace.concat(arr)
           let _ispushData = true
           console.log(arr, _this.deptBudgetList.tranCarInfoList)
-          // debugger
           for (let i = 0; i < _this.excelFreightspace.length; i++) {
             _ispushData = true
             for (let k = 0; k < _this.deptBudgetList.tranCarInfoList.length; k++) {
-              debugger
               if (
                 _this.excelFreightspace[i].driverPhone ==
                 _this.deptBudgetList.tranCarInfoList[k].driverPhone
@@ -662,6 +663,7 @@ export default {
             if (valid) {
               var tranProcessInfo = {}
               tranProcessInfo.id = this.deptBudgetList.id
+              tranProcessInfo.weight = this.total
               stateRec(tranProcessInfo)
                 .toPromise()
                 .then((response) => {
@@ -1000,4 +1002,7 @@ export default {
   // width: 120px;
   // line-height: 40px;
 }
+.bg-bottom-preview{
+    margin: 0 8px;
+  }
 </style>

+ 2 - 1
src/views/tranManagement/tranManagementReceivingloadingLook.vue

@@ -155,7 +155,8 @@
                     top: -1px;
                   "
                   src="../../../public/img/fujian.png"
-                  @click="fujian(index)"
+                  @click="$imgPreview"
+                  :data-img="deptBudgetList.tranCarInfoList[index].unloadPoundImg"
                   alt=""
                 />
                 <span

+ 6 - 2
src/views/tranManagement/tranManagementShipping.vue

@@ -148,8 +148,12 @@
         </el-table-column>
         <el-table-column prop="seller" label="操作" width="200">
           <template slot-scope="scope">
-            <div class="record" @click="handleLook(scope.row)">查看</div>
-            <div class="adjustment" @click="shipping(scope.row)">船次</div>
+            <div v-hasPermission="
+                'tranManager.shippingDispatching.view'
+              " class="record" @click="handleLook(scope.row)">查看</div>
+            <div v-hasPermission="
+                'tranManager.shippingDispatching.car'
+              " class="adjustment" @click="shipping(scope.row)">船次</div>
           </template>
         </el-table-column>
       </el-table>

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

@@ -112,7 +112,7 @@
              <el-button
               v-if="deptBudgetList.priceStatus=='审核中'"
               type="primary"
-              v-hasPermission="`transportationTask.transportation.transportationInfo.ship`" 
+              v-hasPermission="`tranManager.transportationInfo.ship`" 
               size="small"
               @click="examine()"
               >审核中</el-button
@@ -139,7 +139,7 @@
                   v-model="item.driver"
                   placeholder="请选择姓名"
                   filterable
-                  :filter-method="dataFilter"
+                  clearable
                   @change="selectstaff"
                   size="small"
                 >
@@ -155,7 +155,7 @@
                   v-model="item.driver"
                   placeholder="请选择姓名"
                   filterable
-                  :filter-method="dataFilter"
+                  clearable
                   @change="selectstaff"
                   size="small"
                 >

+ 1293 - 1075
src/views/tranManagement/tranManagementShippingFeedback.vue

@@ -6,30 +6,58 @@
         <h2 class="bg-left title">船运装船反馈</h2>
       </el-col>
       <el-col :span="12" class="bg-right">
-        <el-button class="bg-bottom" type="primary" size="small" @click="returnsales()">
-          <img width="6" height="10" style="vertical-align: bottom; margin-right: 3px"
-            src="../../../public/img/lujing.png" alt />返回
+        <el-button
+          class="bg-bottom"
+          type="primary"
+          size="small"
+          @click="returnsales()"
+        >
+          <img
+            width="6"
+            height="10"
+            style="vertical-align: bottom; margin-right: 3px"
+            src="../../../public/img/lujing.png"
+            alt
+          />返回
         </el-button>
       </el-col>
     </el-row>
-    <ws-form class="position" ref="deptBudgetList" :rules="rules" :model="deptBudgetList">
+    <ws-form
+      class="position"
+      ref="deptBudgetList"
+      :rules="rules"
+      :model="deptBudgetList"
+    >
       <div class="small-title" style="font-size: 16px">任务详情</div>
       <ws-info-table>
         <!--任务编号-->
-        <ws-form-item label="任务编号" span="1" prop="processNo">{{ deptBudgetList.processNo }}</ws-form-item>
+        <ws-form-item label="任务编号" span="1" prop="processNo">{{
+          deptBudgetList.processNo
+        }}</ws-form-item>
         <!--货名-->
-        <ws-form-item label="货名" span="1" prop="goodsName">{{ deptBudgetList.goodsName }}</ws-form-item>
+        <ws-form-item label="货名" span="1" prop="goodsName">{{
+          deptBudgetList.goodsName
+        }}</ws-form-item>
         <!--重量(吨)-->
-        <ws-form-item label="重量(吨)" span="1" prop="weight">{{ deptBudgetList.weight }}</ws-form-item>
+        <ws-form-item label="重量(吨)" span="1" prop="weight">{{
+          deptBudgetList.weight
+        }}</ws-form-item>
         <!--发货地址-->
         <ws-form-item label="发货地址" span="1" prop="sendDetailedAddress">
           {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
           }}{{ deptBudgetList.sendArea }}
         </ws-form-item>
         <!--发货人-->
-        <ws-form-item label="发货人" span="1" prop="sender" class="readonly">{{ deptBudgetList.sender }}</ws-form-item>
+        <ws-form-item label="发货人" span="1" prop="sender" class="readonly">{{
+          deptBudgetList.sender
+        }}</ws-form-item>
         <!--发货人电话-->
-        <ws-form-item label="发货人电话" span="1" prop="senderPhone" class="readonly">{{ deptBudgetList.senderPhone }}
+        <ws-form-item
+          label="发货人电话"
+          span="1"
+          prop="senderPhone"
+          class="readonly"
+          >{{ deptBudgetList.senderPhone }}
         </ws-form-item>
         <!--收货地址-->
         <ws-form-item label="收货地址" span="1" prop="receiveDetailedAddress">
@@ -37,153 +65,317 @@
           }}{{ deptBudgetList.receiveArea }}
         </ws-form-item>
         <!--收货人-->
-        <ws-form-item label="收货人" span="1" prop="receiver">{{ deptBudgetList.receiver }}</ws-form-item>
+        <ws-form-item label="收货人" span="1" prop="receiver">{{
+          deptBudgetList.receiver
+        }}</ws-form-item>
         <!--收货人电话-->
-        <ws-form-item label="收货人电话" span="1" prop="receiverPhone">{{ deptBudgetList.receiverPhone }}</ws-form-item>
+        <ws-form-item label="收货人电话" span="1" prop="receiverPhone">{{
+          deptBudgetList.receiverPhone
+        }}</ws-form-item>
         <!--发货日期-->
-        <ws-form-item label="发货日期" span="1" prop="deliveryDateStart">{{ deptBudgetList.deliveryDateStart }}
+        <ws-form-item label="发货日期" span="1" prop="deliveryDateStart"
+          >{{ deptBudgetList.deliveryDateStart }}
         </ws-form-item>
         <!--最晚到货日期-->
-        <ws-form-item label="最晚到货日期" span="1" prop="deliveryDateEnd">{{ deptBudgetList.deliveryDateEnd }}</ws-form-item>
+        <ws-form-item label="最晚到货日期" span="1" prop="deliveryDateEnd">{{
+          deptBudgetList.deliveryDateEnd
+        }}</ws-form-item>
         <!--合同编号-->
-        <ws-form-item label="合同编号" span="1" prop="contractNo">{{ deptBudgetList.contractNo }}</ws-form-item>
+        <ws-form-item label="合同编号" span="1" prop="contractNo">{{
+          deptBudgetList.contractNo
+        }}</ws-form-item>
         <!-- 运输方式 -->
-        <ws-form-item label="运输方式" span="1" prop="tranType">{{ deptBudgetList.tranType }}</ws-form-item>
+        <ws-form-item label="运输方式" span="1" prop="tranType">{{
+          deptBudgetList.tranType
+        }}</ws-form-item>
       </ws-info-table>
       <div class="small-title" style="font-size: 16px">联络员及航次</div>
       <ws-info-table>
         <!-- 姓名 -->
-        <ws-form-item label="姓名" span="1" prop="driver">{{ deptBudgetList.driver }}</ws-form-item>
+        <ws-form-item label="姓名" span="1" prop="driver">{{
+          deptBudgetList.driver
+        }}</ws-form-item>
         <!-- 电话 -->
-        <ws-form-item label="电话" span="1" prop="driverPhone">{{ deptBudgetList.driverPhone }}</ws-form-item>
+        <ws-form-item label="电话" span="1" prop="driverPhone">{{
+          deptBudgetList.driverPhone
+        }}</ws-form-item>
         <!--发船日期-->
         <ws-form-item label="发船日期" span="1" prop="sendDateStart">
-          <ws-date-picker v-model="deptBudgetList.sendDateStart" type="date" placeholder="请选择发船日期"
-            value-format="yyyy-MM-dd" />
+          <ws-date-picker
+            v-model="deptBudgetList.sendDateStart"
+            type="date"
+            placeholder="请选择发船日期"
+            value-format="yyyy-MM-dd"
+          />
         </ws-form-item>
         <!-- 预计到港日期 -->
-        <ws-form-item label="预计到港日期" span="1" prop="receiveDateEnd">{{ deptBudgetList.receiveDateEnd }}</ws-form-item>
+        <ws-form-item label="预计到港日期" span="1" prop="receiveDateEnd">{{
+          deptBudgetList.receiveDateEnd
+        }}</ws-form-item>
         <!-- 船名 -->
-        <ws-form-item label="船名" span="1" prop="shipName">{{ deptBudgetList.shipName }}</ws-form-item>
+        <ws-form-item label="船名" span="1" prop="shipName">{{
+          deptBudgetList.shipName
+        }}</ws-form-item>
         <!-- 航次 -->
-        <ws-form-item label="航次" span="1" prop="shipNo">{{ deptBudgetList.shipNo }}</ws-form-item>
+        <ws-form-item label="航次" span="1" prop="shipNo">{{
+          deptBudgetList.shipNo
+        }}</ws-form-item>
         <!-- 类型 -->
-        <ws-form-item label="类型" span="1" prop="shipType">{{ deptBudgetList.shipType }}</ws-form-item>
+        <ws-form-item label="类型" span="1" prop="shipType">{{
+          deptBudgetList.shipType
+        }}</ws-form-item>
         <!-- 数量 -->
-        <ws-form-item label="数量" span="1" prop="boxNumber" v-if="deptBudgetList.shipType == '集装箱'">
-          {{ deptBudgetList.boxNumber }}</ws-form-item>
+        <ws-form-item
+          label="数量"
+          span="1"
+          prop="boxNumber"
+          v-if="deptBudgetList.shipType == '集装箱'"
+        >
+          {{ deptBudgetList.boxNumber }}</ws-form-item
+        >
       </ws-info-table>
-      <div class="small-title" style="font-size: 16px; width: 50%; float: left">装船详情</div>
+      <div class="small-title" style="font-size: 16px; width: 50%; float: left">
+        装船详情
+      </div>
       <!-- 导入 -->
-      <div style="font-size: 16px; width: 50%; float: left; text-align: right;display:flex;justify-content:end;">
-
+      <div
+        style="
+          font-size: 16px;
+          width: 50%;
+          float: left;
+          text-align: right;
+          display: flex;
+          justify-content: end;
+        "
+      >
         <el-link
           href="https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/%E5%8F%8D%E9%A6%88%E6%A8%A1%E6%9D%BF/%E8%88%B9%E8%BF%90%E8%A3%85%E8%BD%A6%E5%8F%8D%E9%A6%88%E6%A8%A1%E6%9D%BF.xlsx"
-          style="margin-left: 8px;">
+          style="margin-left: 8px"
+        >
           <el-button type="primary">模板下载</el-button>
         </el-link>
-        <el-upload style="margin-left: 8px;" class="upload-demo inline-block margin-right-10" action
-          :on-change="handleChange" :show-file-list="false"
+        <el-upload
+          style="margin-left: 8px"
+          class="upload-demo inline-block margin-right-10"
+          action
+          :on-change="handleChange"
+          :show-file-list="false"
           accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
-          :auto-upload="false">
+          :auto-upload="false"
+        >
           <el-button type="primary">导入</el-button>
         </el-upload>
       </div>
-      <div class="liaison" v-if="this.deptBudgetList.tranCarInfoList.length>0">
-        <div style="width: 100%" class="flex position" v-for="(item, index) in freightspace" :key="index">
+      <div class="liaison" v-if="deptBudgetList.tranCarInfoList.length > 0">
+        <div
+          style="width: 100%"
+          class="flex position"
+          v-for="(item, index) in freightspace"
+          :key="index"
+        >
           <ws-info-table>
             <div class="catNos" v-if="item.shipType == '集装箱'">
               集装箱-{{ index + 1 }}
-              <span class="noservice" v-show="item.status == '未装车'">未装船</span>
-              <span class="service" v-show="item.status == '已装车'">已装船</span>
+              <span class="noservice" v-show="item.status == '未装车'"
+                >未装船</span
+              >
+              <span class="service" v-show="item.status == '已装车'"
+                >已装船</span
+              >
               <span class="serviced" v-show="item.status == '已送达'">
-                {{
-                item.status
-                }}
+                {{ item.status }}
               </span>
             </div>
             <div class="catNos" v-if="item.shipType == '散船'">
               仓位号-{{ index + 1 }}
-              <span class="noservice" v-show="item.status == '未装车'">未装船</span>
-              <span class="service" v-show="item.status == '已装车'">已装船</span>
+              <span class="noservice" v-show="item.status == '未装车'"
+                >未装船</span
+              >
+              <span class="service" v-show="item.status == '已装车'"
+                >已装船</span
+              >
               <span class="serviced" v-show="item.status == '已送达'">
-                {{
-                item.status
-                }}
+                {{ item.status }}
               </span>
             </div>
             <!--箱号-->
-            <el-form-item label="箱号" prop="caseNo" v-if="item.shipType == '集装箱'">
-              <el-input v-if="item.status == '已装车' || item.status == '已送达'" :disabled="readonly" v-model="item.caseNo"
-                placeholder="请输入箱号"></el-input>
-              <el-input v-else v-model="item.caseNo" placeholder="请输入箱号"></el-input>
+            <el-form-item
+              label="箱号"
+              prop="caseNo"
+              v-if="item.shipType == '集装箱'"
+            >
+              <el-input
+                v-if="item.status == '已装车' || item.status == '已送达'"
+                :disabled="readonly"
+                v-model="item.caseNo"
+                placeholder="请输入箱号"
+              ></el-input>
+              <el-input
+                v-else
+                v-model="item.caseNo"
+                placeholder="请输入箱号"
+              ></el-input>
             </el-form-item>
             <!--封号-->
-            <el-form-item label="封号" prop="titleNo" v-if="item.shipType == '集装箱'">
-              <el-input v-if="item.status == '已装车' || item.status == '已送达'" :disabled="readonly" v-model="item.titleNo"
-                placeholder="请输入封号"></el-input>
-              <el-input v-else v-model="item.titleNo" placeholder="请输入封号"></el-input>
+            <el-form-item
+              label="封号"
+              prop="titleNo"
+              v-if="item.shipType == '集装箱'"
+            >
+              <el-input
+                v-if="item.status == '已装车' || item.status == '已送达'"
+                :disabled="readonly"
+                v-model="item.titleNo"
+                placeholder="请输入封号"
+              ></el-input>
+              <el-input
+                v-else
+                v-model="item.titleNo"
+                placeholder="请输入封号"
+              ></el-input>
             </el-form-item>
             <!-- 仓位号 -->
-            <ws-form-item span="1" prop="binNumber" v-if="item.shipType == '散船'">{{ item.binNumber }}</ws-form-item>
+            <ws-form-item
+              span="1"
+              prop="binNumber"
+              v-if="item.shipType == '散船'"
+              >{{ item.binNumber }}</ws-form-item
+            >
             <!-- 计划重量 -->
-            <ws-form-item label="计划重量(吨)" span="1" prop="positionWeight" v-if="item.shipType == '散船'">
-              {{ item.positionWeight }}</ws-form-item>
+            <ws-form-item
+              label="计划重量(吨)"
+              span="1"
+              prop="positionWeight"
+              v-if="item.shipType == '散船'"
+            >
+              {{ item.positionWeight }}</ws-form-item
+            >
             <!--装船净重-->
             <ws-form-item label="装船净重:" span="1" prop="loadNetWeight">
-              <ws-input v-if="item.status == '已装车' || item.status == '已送达'" :disabled="readonly"
-                v-model="item.loadNetWeight" placeholder="请输入装船净重" maxlength="20" size="small" />
-              <ws-input v-else v-model="item.loadNetWeight" placeholder="请输入装船净重" maxlength="20" size="small" />
+              <ws-input
+                v-if="item.status == '已装车' || item.status == '已送达'"
+                :disabled="readonly"
+                v-model="item.loadNetWeight"
+                placeholder="请输入装船净重"
+                maxlength="20"
+                size="small"
+              />
+              <ws-input
+                v-else
+                v-model="item.loadNetWeight"
+                placeholder="请输入装船净重"
+                maxlength="20"
+                size="small"
+              />
             </ws-form-item>
             <!--装船日期-->
-            <el-form-item label="装船日期:" span="1" prop="loadingDate" label-width="100px">
-              <ws-date-picker v-if="item.status == '已装车' || item.status == '已送达'" :disabled="readonly"
-                v-model="item.loadingDate" type="date" style="width: 150px" placeholder="请选择日期"
-                value-format="yyyy-MM-dd" />
-              <ws-date-picker v-else v-model="item.loadingDate" type="date" style="width: 150px" placeholder="请选择日期"
-                value-format="yyyy-MM-dd" />
+            <el-form-item
+              label="装船日期:"
+              span="1"
+              prop="loadingDate"
+              label-width="100px"
+            >
+              <ws-date-picker
+                v-if="item.status == '已装车' || item.status == '已送达'"
+                :disabled="readonly"
+                v-model="item.loadingDate"
+                type="date"
+                style="width: 150px"
+                placeholder="请选择日期"
+                value-format="yyyy-MM-dd"
+              />
+              <ws-date-picker
+                v-else
+                v-model="item.loadingDate"
+                type="date"
+                style="width: 150px"
+                placeholder="请选择日期"
+                value-format="yyyy-MM-dd"
+              />
             </el-form-item>
-            <div style=" padding: 10px" class="center1">
-              <el-button v-show="item.status == '未装车'" class="bg-bottom" type="primary" size="small"
-                @click="submit(deptBudgetList)">提交</el-button>
+            <div v-show="item.signStatus == '未签合同'" class="signStatus">
+              {{ item.signStatus }}
+            </div>
+            <div v-show="item.signStatus == '已签合同'" class="signStatus1">
+              {{ item.signStatus }}
             </div>
-            <div v-show=" item.signStatus == '未签合同'" class="signStatus">{{ item.signStatus }}</div>
-            <div v-show=" item.signStatus == '已签合同'" class="signStatus1">{{ item.signStatus }}</div>
           </ws-info-table>
         </div>
       </div>
-      <div v-if="this.deptBudgetList.tranCarInfoList.length>0" class="yd-bottom">
-
-        <ws-form-item label="运单:" span="1" prop="loadPoundImg" class="yd-bottom-left"
-          v-if="freightspace[0].status == '已装车'">
+      <div v-if="deptBudgetList.tranCarInfoList.length > 0" class="yd-bottom">
+        <ws-form-item
+          label="运单:"
+          span="1"
+          prop="loadPoundImg"
+          class="yd-bottom-left"
+          v-if="freightspace[0].status == '已装车'"
+        >
           <!-- slot-scope="scope" -->
           <template>
-            <el-upload action="https://www.zthymaoyi.com/upload/admin" :show-file-list="false"
-              :on-success=" (res) => { uploadSuccessHandle1(res)}" class="avatar-uploader"
-              accept=".jpg, .jpeg, .png, .gif" multiple>
-              <img width="18" height="20" style="vertical-align: text-top; position: relative"
-                src="../../../public/img/fujian.png" alt />
+            <el-upload
+              action="https://www.zthymaoyi.com/upload/admin"
+              :show-file-list="false"
+              :on-success="
+                (res) => {
+                  uploadSuccessHandle1(res)
+                }
+              "
+              class="avatar-uploader"
+              accept=".jpg, .jpeg, .png, .gif"
+              multiple
+            >
+              <img
+                width="18"
+                height="20"
+                style="vertical-align: text-top; position: relative"
+                src="../../../public/img/fujian.png"
+                alt
+              />
             </el-upload>
             <div class="tupian">
               <span
-                v-if="deptBudgetList.tranCarInfoList.length>0&&deptBudgetList.tranCarInfoList[0].loadPoundImg != null ">{{pictureTotal}}</span>
+                v-if="
+                  deptBudgetList.tranCarInfoList.length > 0 &&
+                  deptBudgetList.tranCarInfoList[0].loadPoundImg != null
+                "
+                >{{ pictureTotal }}</span
+              >
               <span
-                v-if="deptBudgetList.tranCarInfoList.length>0&&deptBudgetList.tranCarInfoList[0].loadPoundImg == null ">未上传</span>
+                v-if="
+                  deptBudgetList.tranCarInfoList.length > 0 &&
+                  deptBudgetList.tranCarInfoList[0].loadPoundImg == null
+                "
+                >未上传</span
+              >
             </div>
+            <el-button v-if="deptBudgetList.tranCarInfoList.length>0&&deptBudgetList.tranCarInfoList[0].loadPoundImg != null" 
+               class="bg-bottom-preview" type="primary" size="small" :data-img="deptBudgetList.tranCarInfoList[0].loadPoundImg" @click="$imgPreview">预览</el-button>
           </template>
         </ws-form-item>
 
-        <div style="text-align: right; color: #8890b1; font-size: 16px;width:100%;">
+        <div
+          style="
+            text-align: right;
+            color: #8890b1;
+            font-size: 16px;
+            width: 100%;
+          "
+        >
           合计(吨):{{ total }}/{{ deptBudgetList.weight }}
           <!--阶段状态-->
-          <span class="noservice" v-show="deptBudgetList.feedbackStatus == '执行中'">未完货</span>
-          <span class="service"
-            v-show="deptBudgetList.feedbackStatus == '已完货'">{{ deptBudgetList.feedbackStatus }}</span>
+          <span
+            class="noservice"
+            v-show="deptBudgetList.feedbackStatus == '执行中'"
+            >未完货</span
+          >
+          <span
+            class="service"
+            v-show="deptBudgetList.feedbackStatus == '已完货'"
+            >{{ deptBudgetList.feedbackStatus }}</span
+          >
         </div>
       </div>
-      <div v-if="this.deptBudgetList.tranCarInfoList.length==0">
-        暂无船次
-      </div>
+      <div v-if="this.deptBudgetList.tranCarInfoList.length == 0">暂无船次</div>
       <!--运单-->
       <!-- <div
           style="width: 100%"
@@ -196,1080 +388,1106 @@
     </ws-form>
     <!-- 完货 -->
     <div style="text-align: right; padding: 10px" class="center">
-      <el-button class="bg-bottom" type="primary" size="small" @click="finished(deptBudgetList)">完货</el-button>
+      <el-button
+        class="bg-bottom"
+        type="primary"
+        size="small"
+        @click="submit(deptBudgetList)"
+        >提交</el-button
+      >
+      <el-button
+        class="bg-bottom"
+        type="primary"
+        size="small"
+        @click="finished(deptBudgetList)"
+        >完货</el-button
+      >
     </div>
   </div>
 </template>
 <script>
-  import {
-    regionData
-  } from 'element-china-area-data'
-  import Pagination from '@/components/Pagination'
-  import {
-    seeCat,
-    packList,
-    feedback,
-    state,
-    importApplFileUrl
-  } from '@/model/transport/index'
-  import {
-    getstaff
-  } from '@/model/warehouse/index'
-  import WsUpload from '@/components/WsUpload'
-  import mapDrag from '@/components/mapdrag/mapdrag'
-  export default {
-    name: 'viewSpareMoney',
-    components: {
-      WsUpload,
-      mapDrag
+import { regionData } from 'element-china-area-data'
+import Pagination from '@/components/Pagination'
+import {
+  seeCat,
+  packList,
+  feedback,
+  state,
+  importApplFileUrl,
+} from '@/model/transport/index'
+import { getstaff } from '@/model/warehouse/index'
+import WsUpload from '@/components/WsUpload'
+import mapDrag from '@/components/mapdrag/mapdrag'
+export default {
+  name: 'viewSpareMoney',
+  components: {
+    WsUpload,
+    mapDrag,
+  },
+  watch: {
+    vesselId(val) {
+      this.getVesselData()
     },
-    watch: {
-      vesselId(val) {
-        this.getVesselData()
-      },
-      isShow(val) {
-        this.showType = val
-      }
+    isShow(val) {
+      this.showType = val
     },
-    data() {
-      return {
-        excelFreightspace: [],
-        pictureTotal: 0,
-        deptBudgetList: {
-          totalStorage: 0,
-          sendDateStart: ''
-        },
-        tranCarInfoList: {
-          loadPoundImg: ''
-        },
-        options_: regionData,
-        heightData: '600px',
-        zoom: 7,
-        selectedOptions: [],
-        center: [116.244694, 39.517344],
-        window: '',
-        radio: 1,
-        personCharge: [],
-        district: null,
-        driverList: [],
-        readonly: true,
-        listDate: {
-          country: '中国',
-          level: 'country',
-          city: ''
-        },
-        citylist: [],
-        compId: sessionStorage.getItem('ws-pf_compId'),
-        rules: {
-          warehouseName: [{
-              required: true,
-              message: '请输入仓库名称',
-              trigger: 'blur'
-            },
-            {
-              min: 2,
-              max: 20,
-              message: '仓库名长度不符合要求,请输入2-20字符之内',
-              trigger: 'blur'
-            }
-          ]
-        },
-        tranType: 1,
-        size: 10,
-        value1: '',
-        unitList: [],
-        fileTemp: '',
-        freightspace: [{
-            caseNo: '',
-            titleNo: '',
-            binNumber: '',
-            positionWeight: '',
-            loadNetWeight: '',
-            loadingDate: ''
-          }
-          // {loadPoundImg:{}},
+  },
+  data() {
+    return {
+      excelFreightspace: [],
+      pictureTotal: 0,
+      deptBudgetList: {
+        totalStorage: 0,
+        sendDateStart: '',
+        tranCarInfoList: [],
+      },
+      tranCarInfoList: {
+        loadPoundImg: '',
+      },
+      options_: regionData,
+      heightData: '600px',
+      zoom: 7,
+      selectedOptions: [],
+      center: [116.244694, 39.517344],
+      window: '',
+      radio: 1,
+      personCharge: [],
+      district: null,
+      driverList: [],
+      readonly: true,
+      listDate: {
+        country: '中国',
+        level: 'country',
+        city: '',
+      },
+      citylist: [],
+      compId: sessionStorage.getItem('ws-pf_compId'),
+      rules: {
+        warehouseName: [
+          {
+            required: true,
+            message: '请输入仓库名称',
+            trigger: 'blur',
+          },
+          {
+            min: 2,
+            max: 20,
+            message: '仓库名长度不符合要求,请输入2-20字符之内',
+            trigger: 'blur',
+          },
         ],
-        name: '',
-        staffList: [],
-        options: [],
-        carModel: [],
-        tranCarInfoList: {
-          loadPoundImg: ''
+      },
+      tranType: 1,
+      size: 10,
+      value1: '',
+      unitList: [],
+      fileTemp: '',
+      freightspace: [
+        {
+          caseNo: '',
+          titleNo: '',
+          binNumber: '',
+          positionWeight: '',
+          loadNetWeight: '',
+          loadingDate: '',
         },
-        //上传
-        accessoryTFs: false,
-        fileList: [],
-        appendixIdsAdd: '',
+        // {loadPoundImg:{}},
+      ],
+      name: '',
+      staffList: [],
+      options: [],
+      carModel: [],
+      tranCarInfoList: {
+        loadPoundImg: '',
+      },
+      //上传
+      accessoryTFs: false,
+      fileList: [],
+      appendixIdsAdd: '',
+    }
+  },
+  activated() {
+    this.deptBudgetList.id = this.$route.query.id
+    this.getList()
+  },
+  computed: {
+    totalStorage: function () {
+      var maxStorage = 0
+      for (var i = 0; i < this.freightspace.length; i++) {
+        maxStorage += Number(this.freightspace[i].maxStorage)
       }
+      return maxStorage
     },
-    activated() {
-      this.deptBudgetList.id = this.$route.query.id
-      this.getList()
-    },
-    computed: {
-      totalStorage: function() {
+    total: function () {
+      if (this.deptBudgetList.tranCarInfoList != null) {
         var maxStorage = 0
-        for (var i = 0; i < this.freightspace.length; i++) {
-          maxStorage += Number(this.freightspace[i].maxStorage)
+        for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
+          maxStorage += Number(
+            this.deptBudgetList.tranCarInfoList[i].loadNetWeight
+          )
         }
         return maxStorage
-      },
-      total: function() {
-        if (this.deptBudgetList.tranCarInfoList != null) {
-          var maxStorage = 0
-          for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
-            maxStorage += Number(
-              this.deptBudgetList.tranCarInfoList[i].loadNetWeight
-            )
-          }
-          return maxStorage
-        } else {
-          return 0
-        }
+      } else {
+        return 0
       }
     },
-    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.personChargeKey = this.staffList[i].staffId
+  },
+  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
           }
-        }
-      },
-      marker: function(item) {
-        this.deptBudgetList.warehousePositioning =
-          item.lnglat.lat + ',' + item.lnglat.lng
-      },
-      selectedAddress(e) {
-        this.deptBudgetList.warehousePositioning =
-          e.center.lat + ',' + e.center.lng
-      },
-      confirmPositioncity() {
-        this.listDate.level = 'city'
-        this.listDate.country = this.name
-      },
-      // 关闭 dialog时 处理文件url 初始化upload组件
-      handleClose() {
-        this.dialogViewSpareMoney = false
-      },
-      //下拉司机姓名改变事件
-      selectdriver() {},
-      handleChange(value) {
-        this.selectedOptions = value
-      },
-      returnsales() {
-        this.deptBudgetList = {}
-        this.freightspace = {}
-        this.selectedOptions = ''
-        this.deptBudgetList.tranCarInfoList = []
-        this.$router.push({
-          path: 'tranManagementTransporHairRespond'
         })
-      },
-      // 上传附件
-      uploadSuccess(data, files, url) {
-        console.log(data, files, url)
-      },
-      handleClose() {
-        this.accessoryTFs = false
-      },
-      handleChange(file, fileList) {
-        this.fileTemp = file.raw
-        let fileName = file.raw.name
-        let fileType = fileName.substring(fileName.lastIndexOf('.') + 1)
-        // 判断上传文件格式
-        if (this.fileTemp) {
-          if (fileType == 'xlsx' || fileType == 'xls') {
-            this.importf(this.fileTemp)
-          } else {
-            this.$message({
-              type: 'warning',
-              message: '附件格式错误,请删除后重新上传!'
-            })
-          }
+      } 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.personChargeKey = this.staffList[i].staffId
+        }
+      }
+    },
+    marker: function (item) {
+      this.deptBudgetList.warehousePositioning =
+        item.lnglat.lat + ',' + item.lnglat.lng
+    },
+    selectedAddress(e) {
+      this.deptBudgetList.warehousePositioning =
+        e.center.lat + ',' + e.center.lng
+    },
+    confirmPositioncity() {
+      this.listDate.level = 'city'
+      this.listDate.country = this.name
+    },
+    // 关闭 dialog时 处理文件url 初始化upload组件
+    handleClose() {
+      this.dialogViewSpareMoney = false
+    },
+    //下拉司机姓名改变事件
+    selectdriver() {},
+    handleChange(value) {
+      this.selectedOptions = value
+    },
+    returnsales() {
+      this.deptBudgetList = {}
+      this.freightspace = {}
+      this.selectedOptions = ''
+      this.deptBudgetList.tranCarInfoList = []
+      this.$router.push({
+        path: 'tranManagementTransporHairRespond',
+      })
+    },
+    // 上传附件
+    uploadSuccess(data, files, url) {
+      console.log(data, files, url)
+    },
+    handleClose() {
+      this.accessoryTFs = false
+    },
+    handleChange(file, fileList) {
+      this.fileTemp = file.raw
+      let fileName = file.raw.name
+      let fileType = fileName.substring(fileName.lastIndexOf('.') + 1)
+      // 判断上传文件格式
+      if (this.fileTemp) {
+        if (fileType == 'xlsx' || fileType == 'xls') {
+          this.importf(this.fileTemp)
         } else {
           this.$message({
             type: 'warning',
-            message: '请上传附件!'
+            message: '附件格式错误,删除后重新上传!',
           })
         }
-      },
-      importf(obj) {
-        this.excelFreightspace = []
-        this.dialogVisible = true
-        let _this = this
-        let inputDOM = this.$refs.inputer // 通过DOM取文件数据
-        this.file = event.currentTarget.files[0]
+      } else {
+        this.$message({
+          type: 'warning',
+          message: '请上传附件!',
+        })
+      }
+    },
+    importf(obj) {
+      this.excelFreightspace = []
+      this.dialogVisible = true
+      let _this = this
+      let inputDOM = this.$refs.inputer // 通过DOM取文件数据
+      this.file = event.currentTarget.files[0]
+      var rABS = false //是否将文件读取为二进制字符串
+      var f = this.file
+      var reader = new FileReader()
+      //if (!FileReader.prototype.readAsBinaryString) {
+      FileReader.prototype.readAsBinaryString = function (f) {
+        var binary = ''
         var rABS = false //是否将文件读取为二进制字符串
-        var f = this.file
+        var pt = this
+        var wb //读取完成的数据
+        var outdata
         var reader = new FileReader()
-        //if (!FileReader.prototype.readAsBinaryString) {
-        FileReader.prototype.readAsBinaryString = function(f) {
-          var binary = ''
-          var rABS = false //是否将文件读取为二进制字符串
-          var pt = this
-          var wb //读取完成的数据
-          var outdata
-          var reader = new FileReader()
-          reader.onload = function(e) {
-            var bytes = new Uint8Array(reader.result)
-            var length = bytes.byteLength
-            for (var i = 0; i < length; i++) {
-              binary += String.fromCharCode(bytes[i])
-            }
-            var XLSX = require('xlsx')
-            if (rABS) {
-              wb = XLSX.read(btoa(fixdata(binary)), {
-                //手动转化
-                type: 'base64'
-              })
-            } else {
-              wb = XLSX.read(binary, {
-                type: 'binary'
-              })
-            }
-            // outdata就是你想要的东西 excel导入的数据
-            outdata = XLSX.utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]])
-            // excel 数据再处理
-            let arr = []
-            outdata.map(v => {
-              // let jsonString = JSON.stringify(v).replace(/\*/g, '').replace(/\s/ig,'');
-              let jsonString = JSON.stringify(v)
-                .replace(/\//g, '')
-                .replace(/\s/gi, '')
-              console.log(jsonString)
-              v = JSON.parse(jsonString)
-              let obj = {}
-              //xxx代表列名
-              obj.caseNo = v.箱号
-              obj.titleNo = v.封号
-              obj.binNumber = v.仓位号
-              obj.positionWeight = v.散船重量
-              obj.loadNetWeight = v.装船净重
-              obj.loadingDate = v.装船日期
-              obj.status = v.状态
-              obj.shipType = v.类型
-              console.log(obj)
-              _this.excelFreightspace.push(obj)
+        reader.onload = function (e) {
+          var bytes = new Uint8Array(reader.result)
+          var length = bytes.byteLength
+          for (var i = 0; i < length; i++) {
+            binary += String.fromCharCode(bytes[i])
+          }
+          var XLSX = require('xlsx')
+          if (rABS) {
+            wb = XLSX.read(btoa(fixdata(binary)), {
+              //手动转化
+              type: 'base64',
             })
-            let _ispushData = true
-            console.log(arr, _this.freightspace)
-            for (let i = 0; i < _this.excelFreightspace.length; i++) {
-              _ispushData = true
-              for (let k = 0; k < _this.freightspace.length; k++) {
-                if (_this.excelFreightspace[i].binNumber == _this.freightspace[k].binNumber) {
-                  _this.freightspace[k] = _this.excelFreightspace[i]
-                  _ispushData = false
-                }
+          } else {
+            wb = XLSX.read(binary, {
+              type: 'binary',
+            })
+          }
+          // outdata就是你想要的东西 excel导入的数据
+          outdata = XLSX.utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]])
+          // excel 数据再处理
+          let arr = []
+          outdata.map((v) => {
+            // let jsonString = JSON.stringify(v).replace(/\*/g, '').replace(/\s/ig,'');
+            let jsonString = JSON.stringify(v)
+              .replace(/\//g, '')
+              .replace(/\s/gi, '')
+            console.log(jsonString)
+            v = JSON.parse(jsonString)
+            let obj = {}
+            //xxx代表列名
+            obj.caseNo = v.箱号
+            obj.titleNo = v.封号
+            obj.binNumber = v.仓位号
+            obj.positionWeight = v.散船重量
+            obj.loadNetWeight = v.装船净重
+            obj.loadingDate = v.装船日期
+            obj.status = v.状态
+            obj.shipType = v.类型
+            console.log(obj)
+            _this.excelFreightspace.push(obj)
+          })
+          let _ispushData = true
+          console.log(arr, _this.freightspace)
+          for (let i = 0; i < _this.excelFreightspace.length; i++) {
+            _ispushData = true
+            for (let k = 0; k < _this.freightspace.length; k++) {
+              if (
+                _this.excelFreightspace[i].binNumber ==
+                _this.freightspace[k].binNumber
+              ) {
+                _this.freightspace[k] = _this.excelFreightspace[i]
+                _ispushData = false
               }
-              if (_ispushData) {
-                _this.freightspace.push(_this.excelFreightspace[i])
+            }
+            if (_ispushData) {
+              _this.freightspace.push(_this.excelFreightspace[i])
 
-                _ispushData = true
-              }
+              _ispushData = true
             }
-            _this.$forceUpdate();
           }
-          reader.readAsArrayBuffer(f)
-        }
-        if (rABS) {
-          reader.readAsArrayBuffer(f)
-        } else {
-          reader.readAsBinaryString(f)
-        }
-        console.log(reader)
-      },
-      uploadSectionFile(param) {
-        var fileName = param.file.name.split('.')
-        var fileSuffix = fileName[fileName.length - 1]
-        if (
-          !(
-            fileSuffix.toLowerCase() == 'xlsx' ||
-            fileSuffix.toLowerCase() == 'xls'
-          )
-        ) {
-          EventBus.$emit('error', this.$t('upload.message08'))
-          loading.close()
-          return
+          _this.$forceUpdate()
         }
+        reader.readAsArrayBuffer(f)
+      }
+      if (rABS) {
+        reader.readAsArrayBuffer(f)
+      } else {
+        reader.readAsBinaryString(f)
+      }
+      console.log(reader)
+    },
+    uploadSectionFile(param) {
+      var fileName = param.file.name.split('.')
+      var fileSuffix = fileName[fileName.length - 1]
+      if (
+        !(
+          fileSuffix.toLowerCase() == 'xlsx' ||
+          fileSuffix.toLowerCase() == 'xls'
+        )
+      ) {
+        EventBus.$emit('error', this.$t('upload.message08'))
+        loading.close()
+        return
+      }
 
-        var data = new FormData()
-        data.append('file', param.file)
-        data.append('compId', sessionStorage.getItem('ws-pf_compId'))
-        data.append('userId', sessionStorage.getItem('ws-pf_userId'))
+      var data = new FormData()
+      data.append('file', param.file)
+      data.append('compId', sessionStorage.getItem('ws-pf_compId'))
+      data.append('userId', sessionStorage.getItem('ws-pf_userId'))
 
-        importApplFileUrl(data)
-          .toPromise()
-          .then(success => {
-            console.log(success)
-          })
-      },
+      importApplFileUrl(data)
+        .toPromise()
+        .then((success) => {
+          console.log(success)
+        })
+    },
 
-      //完货
-      finished() {
-        this.$confirm(`完货操作后,装船信息不可修改,是否确定完货?`, {
-            confirmButtonText: '确定',
-            cancelButtonText: '取消',
-            type: 'warning'
-          })
-          .then(() => {
-            this.$refs.deptBudgetList.validate(valid => {
-              if (valid) {
-                var tranProcessInfo = {}
-                tranProcessInfo.id = this.deptBudgetList.id
-                state(tranProcessInfo)
-                  .toPromise()
-                  .then(response => {
-                    this.$message.success('完货成功')
-                    this.deptBudgetList = {}
-                    this.freightspace = {}
-                    this.selectedOptions = ''
-                    this.$router.push({
-                      path: 'tranManagementTransporHairRespond'
-                    })
+    //完货
+    finished() {
+      this.$confirm(`完货操作后,装船信息不可修改,是否确定完货?`, {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+      })
+        .then(() => {
+          this.$refs.deptBudgetList.validate((valid) => {
+            if (valid) {
+              var tranProcessInfo = {}
+              tranProcessInfo.id = this.deptBudgetList.id
+              state(tranProcessInfo)
+                .toPromise()
+                .then((response) => {
+                  this.$message.success('完货成功')
+                  this.deptBudgetList = {}
+                  this.freightspace = {}
+                  this.selectedOptions = ''
+                  this.$router.push({
+                    path: 'tranManagementTransporHairRespond',
                   })
-              } else {
-                return false
-              }
-            })
+                })
+            } else {
+              return false
+            }
           })
-          .catch(() => {
-            return false
+        })
+        .catch(() => {
+          return false
+        })
+    },
+    submit() {
+      for (let i = 0; i < this.freightspace.length; i++) {
+        if (this.freightspace.shipType == '集装箱') {
+          if (!this.freightspace[i].caseNo) {
+            this.$message({
+              message: '箱号不能为空!',
+              type: 'warning',
+            })
+            return
+          }
+          if (
+            this.freightspace[i].caseNo.length > 15 ||
+            this.freightspace[i].caseNo.length < 1
+          ) {
+            this.$message({
+              message: '箱号输入错误!',
+              type: 'warning',
+            })
+            return
+          }
+             if (!this.freightspace[i].titleNo) {
+          this.$message({
+            message: '封号不能为空!',
+            type: 'warning',
           })
-      },
-      submit() {
-        // if (!this.freightspace[i].sendDateStart) {
-        //   this.$message({
-        //     message: '发船日期不能为空!',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (!this.freightspace[i].caseNo) {
-        //   this.$message({
-        //     message: '箱号不能为空!',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (
-        //   this.freightspace[i].caseNo.length > 15 ||
-        //   this.freightspace[i].caseNo.length < 1
-        // ) {
-        //   this.$message({
-        //     message: '箱号输入错误!',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (!this.freightspace[i].titleNo) {
-        //   this.$message({
-        //     message: '封号不能为空!',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (
-        //   this.freightspace[i].titleNo.length > 15 ||
-        //   this.freightspace[i].titleNo.length < 1
-        // ) {
-        //   this.$message({
-        //     message: '封号输入错误!',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (!this.freightspace[i].loadNetWeight) {
-        //   this.$message({
-        //     message: '装船净重不能为空!',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (
-        //   (this.freightspace[i].loadNetWeight &&
-        //     String(this.freightspace[i].loadNetWeight).indexOf('.') != -1 &&
-        //     String(this.freightspace[i].loadNetWeight).length -
-        //       (String(this.freightspace[i].loadNetWeight).indexOf('.') + 1) >
-        //       2) ||
-        //   this.freightspace[i].loadNetWeight > 10000 ||
-        //   this.freightspace[i].loadNetWeight < 0
-        // ) {
-        //   this.$message({
-        //     message: '装船净重输入错误',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (!this.freightspace[i].loadingDate) {
-        //   this.$message({
-        //     message: '装船日期不能为空!',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        this.$confirm(`提交成功后装船信息不可修改,是否确定提交?`, {
-            confirmButtonText: '确定',
-            cancelButtonText: '取消',
-            type: 'warning'
+          return
+        }
+        if (
+          this.freightspace[i].titleNo.length > 15 ||
+          this.freightspace[i].titleNo.length < 1
+        ) {
+          this.$message({
+            message: '封号输入错误!',
+            type: 'warning',
           })
-          .then(() => {
-            this.$refs.deptBudgetList.validate(valid => {
-              if (valid) {
-                this.tranCarInfoList = this.freightspace
-                this.tranCarInfoList[0].sendDateStart = this.deptBudgetList.sendDateStart
-                for (var i = 0; i < this.tranCarInfoList.length; i++) {
-                  this.tranCarInfoList[i].id = this.freightspace[i].id
-                }
-                var tranProcessInfo = {}
-                tranProcessInfo.id = this.deptBudgetList.id
-                tranProcessInfo.infoId = this.deptBudgetList.infoId
-                tranProcessInfo.processNo = this.deptBudgetList.processNo
-                tranProcessInfo.tranCarInfoList = this.tranCarInfoList
-                feedback(tranProcessInfo)
-                  .toPromise()
-                  .then(response => {
-                    this.$message.success('提交成功')
-                    this.deptBudgetList = {}
-                    this.freightspace = {}
-                    this.selectedOptions = ''
-                    this.$router.push({
-                      path: 'tranManagementTransporHairRespond'
-                    })
-                  })
-              } else {
-                // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
-                return false
-              }
+          return
+        }
+        } else if (this.freightspace.shipType == '散船') {
+          if (!this.freightspace[i].binNumber) {
+            this.$message({
+              message: '仓位号不能为空!',
+              type: 'warning',
             })
+            return
+          }
+        }
+
+     
+        if (!this.freightspace[i].loadNetWeight) {
+          this.$message({
+            message: '装船净重不能为空!',
+            type: 'warning',
           })
-          .catch(() => {
-            return false
+          return
+        }
+        if (
+          (this.freightspace[i].loadNetWeight &&
+            String(this.freightspace[i].loadNetWeight).indexOf('.') != -1 &&
+            String(this.freightspace[i].loadNetWeight).length -
+              (String(this.freightspace[i].loadNetWeight).indexOf('.') + 1) >
+              2) ||
+          this.freightspace[i].loadNetWeight > 10000 ||
+          this.freightspace[i].loadNetWeight < 0
+        ) {
+          this.$message({
+            message: '装船净重输入错误',
+            type: 'warning',
           })
-      },
-      resetForm(deptBudgetList) {
-        this.$refs[deptBudgetList].resetFields()
-      },
-      getList() {
-        seeCat({
-            id: this.deptBudgetList.id
+          return
+        }
+        if (!this.freightspace[i].loadingDate) {
+          this.$message({
+            message: '装船日期不能为空!',
+            type: 'warning',
           })
-          .toPromise()
-          .then(response => {
-            this.deptBudgetList = response
-            if (response.tranCarInfoList.length > 0) {
-              this.deptBudgetList.driver = response.tranCarInfoList[0].driver
-              this.deptBudgetList.driverPhone =
-                response.tranCarInfoList[0].driverPhone
-              this.$set(
-                this.deptBudgetList,
-                'sendDateStart',
-                response.tranCarInfoList[0].sendDateStart
-              )
-              this.deptBudgetList.receiveDateEnd =
-                response.tranCarInfoList[0].receiveDateEnd
-              this.deptBudgetList.shipName = response.tranCarInfoList[0].shipName
-              this.deptBudgetList.shipNo = response.tranCarInfoList[0].shipNo
-              this.deptBudgetList.shipType = response.tranCarInfoList[0].shipType
-              this.deptBudgetList.boxNumber = response.tranCarInfoList[0].boxNumber
-              //上传附件计数
-              if (this.deptBudgetList.tranCarInfoList[0].loadPoundImg) {
-                this.pictureTotal = this.deptBudgetList.tranCarInfoList[0].loadPoundImg.split(",").length
+          return
+        }
+      }
+      this.$confirm(`提交成功后装船信息不可修改,是否确定提交?`, {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+      })
+        .then(() => {
+          this.$refs.deptBudgetList.validate((valid) => {
+            if (valid) {
+              this.tranCarInfoList = this.freightspace
+              this.tranCarInfoList[0].sendDateStart =
+                this.deptBudgetList.sendDateStart
+              for (var i = 0; i < this.tranCarInfoList.length; i++) {
+                this.tranCarInfoList[i].id = this.freightspace[i].id
               }
-              this.freightspace = response.tranCarInfoList
+              var tranProcessInfo = {}
+              tranProcessInfo.id = this.deptBudgetList.id
+              tranProcessInfo.infoId = this.deptBudgetList.infoId
+              tranProcessInfo.processNo = this.deptBudgetList.processNo
+              tranProcessInfo.tranCarInfoList = this.tranCarInfoList
+              feedback(tranProcessInfo)
+                .toPromise()
+                .then((response) => {
+                  this.$message.success('提交成功')
+                  this.deptBudgetList = {}
+                  this.freightspace = {}
+                  this.selectedOptions = ''
+                  this.$router.push({
+                    path: 'tranManagementTransporHairRespond',
+                  })
+                })
+            } else {
+              // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+              return false
+            }
+          })
+        })
+        .catch(() => {
+          return false
+        })
+    },
+    resetForm(deptBudgetList) {
+      this.$refs[deptBudgetList].resetFields()
+    },
+    getList() {
+      seeCat({
+        id: this.deptBudgetList.id,
+      })
+        .toPromise()
+        .then((response) => {
+          this.deptBudgetList = response
+          if (response.tranCarInfoList.length > 0) {
+            this.deptBudgetList.driver = response.tranCarInfoList[0].driver
+            this.deptBudgetList.driverPhone =
+              response.tranCarInfoList[0].driverPhone
+            this.$set(
+              this.deptBudgetList,
+              'sendDateStart',
+              response.tranCarInfoList[0].sendDateStart
+            )
+            this.deptBudgetList.receiveDateEnd =
+              response.tranCarInfoList[0].receiveDateEnd
+            this.deptBudgetList.shipName = response.tranCarInfoList[0].shipName
+            this.deptBudgetList.shipNo = response.tranCarInfoList[0].shipNo
+            this.deptBudgetList.shipType = response.tranCarInfoList[0].shipType
+            this.deptBudgetList.boxNumber = response.tranCarInfoList[0].boxNumber
+            //上传附件计数
+            if (this.deptBudgetList.tranCarInfoList[0].loadPoundImg) {
+              this.pictureTotal =
+                this.deptBudgetList.tranCarInfoList[0].loadPoundImg.split(
+                  ','
+                ).length
             }
+            this.freightspace = response.tranCarInfoList
+          }
 
-            for (var i = 0; i < this.freightspace.length; i++) {
-              if (!this.freightspace[i].loadNetWeight) {
-                this.freightspace[i].loadNetWeight = 0
-              }
+          for (var i = 0; i < this.freightspace.length; i++) {
+            if (!this.freightspace[i].loadNetWeight) {
+              this.freightspace[i].loadNetWeight = 0
             }
-          })
-        //司机姓名下拉
-        getstaff({
-            compId: sessionStorage.getItem('ws-pf_compId')
-          })
-          .toPromise()
-          .then(response => {
-            this.options = response
-            this.staffList = response
-          }),
-          //车型
-          packList({
-            constId: 'TRAN5'
-          })
+          }
+        })
+      //司机姓名下拉
+      getstaff({
+        compId: sessionStorage.getItem('ws-pf_compId'),
+      })
+        .toPromise()
+        .then((response) => {
+          this.options = response
+          this.staffList = response
+        }),
+        //车型
+        packList({
+          constId: 'TRAN5',
+        })
           .toPromise()
-          .then(response => {
+          .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) {
-            this.deptBudgetList.gradeKey = this.ChapterTwoList[i].constKey
-          }
-        }
-      },
-      selectunitList(e) {
-        for (var i = 0; i < this.unitList.length; i++) {
-          if (this.unitList[i].constValue == e) {
-            this.deptBudgetList.acceptanceMethodKey = this.unitList[i].constKey
-          }
+    },
+    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) {
+          this.deptBudgetList.gradeKey = this.ChapterTwoList[i].constKey
         }
-      },
-      selectgrade(e) {
-        for (var i = 0; i < this.gradeList.length; i++) {
-          if (this.gradeList[i].constValue == e) {
-            this.deptBudgetList.gradeKey = this.gradeList[i].constKey
-          }
+      }
+    },
+    selectunitList(e) {
+      for (var i = 0; i < this.unitList.length; i++) {
+        if (this.unitList[i].constValue == e) {
+          this.deptBudgetList.acceptanceMethodKey = this.unitList[i].constKey
         }
-      },
-      selectgoodsName(e) {
-        for (var i = 0; i < this.goodnameList.length; i++) {
-          if (this.goodnameList[i].constValue == e) {
-            this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
-          }
+      }
+    },
+    selectgrade(e) {
+      for (var i = 0; i < this.gradeList.length; i++) {
+        if (this.gradeList[i].constValue == e) {
+          this.deptBudgetList.gradeKey = this.gradeList[i].constKey
         }
-      },
-      selectpackingMethod(e) {
-        for (var i = 0; i < this.packtypeList.length; i++) {
-          if (this.packtypeList[i].constValue == e) {
-            this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
-          }
+      }
+    },
+    selectgoodsName(e) {
+      for (var i = 0; i < this.goodnameList.length; i++) {
+        if (this.goodnameList[i].constValue == e) {
+          this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
         }
-      },
-      uploadSuccessHandle1(e) {
-        this.pictureTotal++;
-        if (this.deptBudgetList.tranCarInfoList[0].loadPoundImg) {
-          this.deptBudgetList.tranCarInfoList[0].loadPoundImg += ',' + e.url
-        } else {
-          this.deptBudgetList.tranCarInfoList[0].loadPoundImg = e.url
+      }
+    },
+    selectpackingMethod(e) {
+      for (var i = 0; i < this.packtypeList.length; i++) {
+        if (this.packtypeList[i].constValue == e) {
+          this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
         }
-
-        console.log(this.deptBudgetList.tranCarInfoList, "duixiang1")
-        feedback(this.deptBudgetList)
-          .toPromise()
-          .then(response => {})
       }
-    }
-  }
+    },
+    uploadSuccessHandle1(e) {
+      this.pictureTotal++
+      if (this.deptBudgetList.tranCarInfoList[0].loadPoundImg) {
+        this.deptBudgetList.tranCarInfoList[0].loadPoundImg += ',' + e.url
+      } else {
+        this.deptBudgetList.tranCarInfoList[0].loadPoundImg = e.url
+      }
+
+      console.log(this.deptBudgetList.tranCarInfoList, 'duixiang1')
+      feedback(this.deptBudgetList)
+        .toPromise()
+        .then((response) => {})
+    },
+  },
+}
 </script>
 
 <style lang="scss" scoped>
-  /deep/.totalStorage .el-input__inner {
-    color: #afb5cb;
-    background: #f5f7fa;
-  }
-
-  .small-title {
-    position: relative;
-    padding: 10px;
-    font-weight: 600;
-  }
-
-  .small-title::before {
-    position: absolute;
-    content: '';
-    display: block;
-    background: #5473e8;
-    width: 4px;
-    height: 14px;
-    left: 0px;
-    top: 13px;
-  }
-
-  .position {
-    position: relative;
-  }
-
-  .del {
-    position: absolute;
-    right: -38px;
-    top: 14px;
-    cursor: pointer;
-    right: 0;
-    display: inline-block;
-    font-size: 26px;
-    width: 26px;
-    height: 10px;
-    line-height: 0px;
-  }
-
-  .amap-page-container {
-    width: 300px;
-    height: 300px;
-  }
-
-  .el-form {
-    padding: 0 10%;
-  }
-
-  /deep/.ws-info-table .el-form-item {
-    border-right: 1px solid transparent;
-    border-bottom: 1px solid transparent;
-  }
-
-  .readonly {
-    position: relative;
-  }
-
-  .readonly:after {
-    content: '*';
-    color: #ff2727;
-    position: absolute;
-    right: 8px;
-    z-index: 10;
-    top: 21%;
-    font-size: 20px;
-  }
-
-  .title {
-    position: relative;
-  }
-
-  .title::before {
-    content: '';
-    display: inline-block;
-    width: 5px;
-    height: 30px;
-    background: #5473e8;
-    position: absolute;
-    left: 0;
-  }
-
-  .el-button--primary {
-    background-color: #5878e8;
-    border-color: #5878e8;
-  }
-
-  .el-col {
-    background: #f6f7fc;
-  }
-
-  /deep/.ws-info-table .el-form-item .el-form-item__content {
-    padding: 0 25px;
-    border-left: 1px solid transparent;
-    background: #fff;
-    display: flex;
-  }
-
-  /deep/.ws-info-table .el-form-item .el-form-item__label {
-    width: 100px;
-    text-align: center;
-    background: #fff;
-    // border: 1px solid #cdd2dc;
-  }
-
-  .button-container {
+/deep/.totalStorage .el-input__inner {
+  color: #afb5cb;
+  background: #f5f7fa;
+}
+
+.small-title {
+  position: relative;
+  padding: 10px;
+  font-weight: 600;
+}
+
+.small-title::before {
+  position: absolute;
+  content: '';
+  display: block;
+  background: #5473e8;
+  width: 4px;
+  height: 14px;
+  left: 0px;
+  top: 13px;
+}
+
+.position {
+  position: relative;
+}
+
+.del {
+  position: absolute;
+  right: -38px;
+  top: 14px;
+  cursor: pointer;
+  right: 0;
+  display: inline-block;
+  font-size: 26px;
+  width: 26px;
+  height: 10px;
+  line-height: 0px;
+}
+
+.amap-page-container {
+  width: 300px;
+  height: 300px;
+}
+
+.el-form {
+  padding: 0 10%;
+}
+
+/deep/.ws-info-table .el-form-item {
+  border-right: 1px solid transparent;
+  border-bottom: 1px solid transparent;
+}
+
+.readonly {
+  position: relative;
+}
+
+.readonly:after {
+  content: '*';
+  color: #ff2727;
+  position: absolute;
+  right: 8px;
+  z-index: 10;
+  top: 21%;
+  font-size: 20px;
+}
+
+.title {
+  position: relative;
+}
+
+.title::before {
+  content: '';
+  display: inline-block;
+  width: 5px;
+  height: 30px;
+  background: #5473e8;
+  position: absolute;
+  left: 0;
+}
+
+.el-button--primary {
+  background-color: #5878e8;
+  border-color: #5878e8;
+}
+
+.el-col {
+  background: #f6f7fc;
+}
+
+/deep/.ws-info-table .el-form-item .el-form-item__content {
+  padding: 0 25px;
+  border-left: 1px solid transparent;
+  background: #fff;
+  display: flex;
+}
+
+/deep/.ws-info-table .el-form-item .el-form-item__label {
+  width: 100px;
+  text-align: center;
+  background: #fff;
+  // border: 1px solid #cdd2dc;
+}
+
+.button-container {
+  display: flex;
+  flex-wrap: nowrap;
+  justify-content: space-between;
+  align-items: center;
+  background-color: #fff;
+  width: 100%;
+  height: 50px;
+  padding: 0 10px;
+
+  & > div {
+    margin-left: 10px;
     display: flex;
     flex-wrap: nowrap;
-    justify-content: space-between;
-    align-items: center;
-    background-color: #fff;
-    width: 100%;
-    height: 50px;
-    padding: 0 10px;
-
-    &>div {
-      margin-left: 10px;
-      display: flex;
-      flex-wrap: nowrap;
-      flex-direction: row;
-
-      &>span {
-        line-height: 50px;
-      }
-    }
-
-    /deep/.auditFlow-box {
-      position: unset;
-      margin-left: 10px;
+    flex-direction: row;
 
-      &/deep/.auditFlow-icon {
-        width: auto;
-        padding-right: 30px;
-      }
-
-      &/deep/.auditFlow-main {
-        position: absolute;
-      }
+    & > span {
+      line-height: 50px;
     }
   }
 
-  .box-app {
-    display: inline-block;
-    float: left;
-    margin-left: 30px;
-    line-height: 50px;
-  }
-
-  /deep/.el-dialog {
-    .el-form-item {
-      margin-bottom: 0 !important;
+  /deep/.auditFlow-box {
+    position: unset;
+    margin-left: 10px;
 
-      .el-input--medium {
-        textarea {
-          min-height: 100px !important;
-        }
-      }
+    &/deep/.auditFlow-icon {
+      width: auto;
+      padding-right: 30px;
     }
-  }
 
-  .collapse-bottom {
-    margin-bottom: 20px;
-  }
-
-  .input-main .textarea .el-textarea__inner {
-    width: 100%;
-    z-index: 1;
-  }
-
-  .bg-left {
-    padding-left: 30px;
-  }
-
-  .bg-right {
-    padding-right: 10px;
-    text-align: right;
-  }
-
-  .bg-bottom {
-    margin: 15px 0px;
-  }
-
-  .wenzi {
-    width: 900px;
-    margin: 0 auto;
-  }
-
-  .wenzi h3 {
-    display: inline-block;
-    left: 10px;
+    &/deep/.auditFlow-main {
+      position: absolute;
+    }
   }
+}
 
-  .wenzi p {
-    display: inline-block;
-  }
+.box-app {
+  display: inline-block;
+  float: left;
+  margin-left: 30px;
+  line-height: 50px;
+}
 
-  .center {
-    width: 900px;
-    margin: 0 auto;
-  }
+/deep/.el-dialog {
+  .el-form-item {
+    margin-bottom: 0 !important;
 
-  .center1 {
-    width: 100px;
-    margin: 0 auto;
-    margin-top: -2%;
+    .el-input--medium {
+      textarea {
+        min-height: 100px !important;
+      }
+    }
   }
-
-  .el-form-item {
-    width: 50%;
+}
+
+.collapse-bottom {
+  margin-bottom: 20px;
+}
+
+.input-main .textarea .el-textarea__inner {
+  width: 100%;
+  z-index: 1;
+}
+
+.bg-left {
+  padding-left: 30px;
+}
+
+.bg-right {
+  padding-right: 10px;
+  text-align: right;
+}
+
+.bg-bottom {
+  margin: 15px 0px;
+}
+
+.wenzi {
+  width: 900px;
+  margin: 0 auto;
+}
+
+.wenzi h3 {
+  display: inline-block;
+  left: 10px;
+}
+
+.wenzi p {
+  display: inline-block;
+}
+
+.center {
+  width: 900px;
+  margin: 0 auto;
+}
+
+.center1 {
+  width: 100px;
+  margin: 0 auto;
+  margin-top: -2%;
+}
+
+.el-form-item {
+  width: 50%;
+}
+
+.el-form-item__label {
+  text-align: center;
+}
+
+.ce {
+  width: 900px;
+  margin: 0 auto;
+}
+
+/*.crt-main .textarea /deep/ .el-form-item__label {*/
+/*  height: 82px;*/
+/*}*/
+// 控制select为只读的时候显示样式
+
+.hide-sel {
+  .el-input__inner {
+    border: 0px;
   }
 
-  .el-form-item__label {
-    text-align: center;
+  .el-icon-arrow-up {
+    display: none;
   }
 
-  .ce {
-    width: 900px;
-    margin: 0 auto;
+  .el-textarea__inner {
+    background-color: #fff !important;
+    border: 0;
   }
 
-  /*.crt-main .textarea /deep/ .el-form-item__label {*/
-  /*  height: 82px;*/
-  /*}*/
-  // 控制select为只读的时候显示样式
-
-  .hide-sel {
-    .el-input__inner {
-      border: 0px;
-    }
-
-    .el-icon-arrow-up {
+  .el-date-editor {
+    i {
       display: none;
     }
-
-    .el-textarea__inner {
-      background-color: #fff !important;
-      border: 0;
-    }
-
-    .el-date-editor {
-      i {
-        display: none;
-      }
-    }
-
-    // .is-disabled {
-    //   .el-input__inner:hover {
-    //     background-color: #fff !important;
-    //     border: 0;
-    //   }
-    //   color: #606266;
-    //   .el-input__inner {
-    //     background-color: #fff !important;
-    //     border: 0;
-    //     color: #606266;
-    //   }
-    //   .el-textarea__inner {
-    //     background-color: #fff !important;
-    //     border: 0;
-    //     color: #606266;
-    //   }
-    // }
-  }
-
-  // 控制select为只读的时候显示样式
-  /deep/.ws-class-table-col {
-    height: auto;
-    padding: 0px 2px;
-
-    /deep/.el-input__inner {
-      padding: 0px 2px;
-    }
   }
 
-  // /deep/.is-disabled {
-  //   .el-input__prefix,
-  //   .el-input__suffix {
-  //     display: none;
+  // .is-disabled {
+  //   .el-input__inner:hover {
+  //     background-color: #fff !important;
+  //     border: 0;
   //   }
+  //   color: #606266;
   //   .el-input__inner {
-  //     background-color: #fff;
-  //     border-color: #fff !important;
-  //     color: #000 !important;
-  //     font-size: 14px;
-  //     cursor: text;
-  //     padding: 0 !important;
+  //     background-color: #fff !important;
+  //     border: 0;
+  //     color: #606266;
+  //   }
+  //   .el-textarea__inner {
+  //     background-color: #fff !important;
+  //     border: 0;
+  //     color: #606266;
   //   }
   // }
-  .winseaview-view {
-    padding: 0 0 20px;
-  }
-
-  .container {
-    overflow: scroll;
-    height: 93vh;
-  }
-
-  .ws-info-table .el-form-item {
-    width: 33.3333%;
-  }
+}
 
-  .readonly:after {
-    display: none;
-  }
-
-  .el-textarea__inner {
-    display: none;
-  }
-
-  .el-form {
-    margin-top: 50px;
-  }
-
-  .readonly {
-    width: 16%;
-  }
-
-  //去边框
-  /deep/.el-form-item {
-    border-right: 0px;
-    border-bottom: 0px;
-  }
-
-  /deep/.ws-info-table {
-    border-left: 0px;
-    border-top: 0px;
-  }
-
-  .ws-info-table .el-form-item .el-form-item__content {
-    border: none;
-  }
-
-  /deep/.ws-info-table .el-form-item {
-    border: none;
-    height: 50px;
-  }
-
-  /deep/.ws-info-table .el-form-item .el-form-item__content {
-    background: #f5f7fa;
-    border-radius: 4px;
-    border: 1px solid #d8dce6;
-    font-family: PingFangSC-Regular, PingFang SC;
-    margin-bottom: 5px;
-    background-color: #fff;
-    font-size: 14px;
-    font-weight: 400;
-    color: #8890b1;
-    line-height: 16px;
-  }
-
-  /deep/.ws-info-table .el-form-item .el-form-item__label {
-    background-color: #fff;
-    font-size: 13px;
-    font-family: PingFangSC-Regular, PingFang SC;
-    font-weight: 400;
-    color: #8890b1;
-    line-height: 16px;
-  }
-
-  /deep/.ws-info-table .el-form-item .el-form-item__content {
-    background: #f5f7fa;
-    border-radius: 4px;
-    border: 1px solid #d8dce6;
-  }
-
-  /deep/.flex .ws-info-table .el-form-item .el-form-item__content {
-    border: 0px;
-  }
+// 控制select为只读的时候显示样式
+/deep/.ws-class-table-col {
+  height: auto;
+  padding: 0px 2px;
 
-  //联络员及车次
-  /deep/.liaison .ws-info-table .el-form-item {
-    width: 19%;
-  }
-
-  /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
-    width: 37%;
-    background: #f6f7fc;
-  }
-
-  /deep/.liaison .ws-info-table {
-    width: 100%;
-    background: #f6f7fc;
-    border-radius: 4px;
-    border: 1px solid #d8dce6;
-    margin-top: 20px;
-  }
-
-  .catNos {
-    width: 100%;
-    height: 30px;
-    margin-top: 10px;
-    margin-left: 20px;
-    font-size: 14px;
-  }
-
-  .catNosCor {
-    color: #5473e8;
-  }
-
-  .add {
-    width: 130px;
-    height: 34px;
-    background: #f6f7fb;
-    border-radius: 17px;
-    color: #5473e8;
-    font-size: 14px;
-    border: none;
-  }
-
-  .add img {
-    display: inline-block;
-    margin-top: 3px;
-    margin-left: -30px;
-  }
-
-  .add .spans {
-    display: table-caption;
-    width: 56px;
-    height: 20px;
-    line-height: 18px;
-  }
-
-  .signStatus {
-    height: 25px;
-    border-radius: 3px;
-    border: 1px solid #5473e8;
-    padding: 0 3px;
-    color: #ffffff;
-    background: #c4cada;
-    line-height: 24px;
-    margin-left: 18px;
-  }
-
-  .signStatus1 {
-    height: 25px;
-    background: #e6ebff;
-    border-radius: 3px;
-    border: 1px solid #5473e8;
-    padding: 0 3px;
-    margin-left: 18px;
-    color: #5473e8;
-    line-height: 24px;
-  }
-
-  .line {
-    height: 26px;
-    margin-top: 6px;
-    left: 2px;
-  }
-
-  /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
-    padding: 0px;
-  }
-
-  .noservice {
-    background: #c4cada;
-    color: #ffffff;
-    padding: 5px 7px;
-    border-radius: 4px;
-  }
-
-  .service {
-    background: #e5f1f7;
-    color: #50cad4;
-  }
-
-  .tupian {
-    // margin-left: 14%;
-    // margin-top: -7%;
-  }
-
-  /deep/.el-input--suffix .el-input__inner {
-    padding-right: 0px;
-  }
-
-  .liaison {
-    margin-bottom: 20px;
-  }
-
-  .yd-bottom {
-    display: flex;
-    justify-content: space-between;
-  }
-
-  .yd-bottom-left {
-    display: flex;
-  }
-
-  .avatar-uploader {
-    margin-right: 10px;
-  }
-
-  /deep/.yd-bottom-left .el-form-item__content {
-    display: flex;
+  /deep/.el-input__inner {
+    padding: 0px 2px;
   }
+}
+
+// /deep/.is-disabled {
+//   .el-input__prefix,
+//   .el-input__suffix {
+//     display: none;
+//   }
+//   .el-input__inner {
+//     background-color: #fff;
+//     border-color: #fff !important;
+//     color: #000 !important;
+//     font-size: 14px;
+//     cursor: text;
+//     padding: 0 !important;
+//   }
+// }
+.winseaview-view {
+  padding: 0 0 20px;
+}
+
+.container {
+  overflow: scroll;
+  height: 93vh;
+}
+
+.ws-info-table .el-form-item {
+  width: 33.3333%;
+}
+
+.readonly:after {
+  display: none;
+}
+
+.el-textarea__inner {
+  display: none;
+}
+
+.el-form {
+  margin-top: 50px;
+}
+
+.readonly {
+  width: 16%;
+}
+
+//去边框
+/deep/.el-form-item {
+  border-right: 0px;
+  border-bottom: 0px;
+}
+
+/deep/.ws-info-table {
+  border-left: 0px;
+  border-top: 0px;
+}
+
+.ws-info-table .el-form-item .el-form-item__content {
+  border: none;
+}
+
+/deep/.ws-info-table .el-form-item {
+  border: none;
+  height: 50px;
+}
+
+/deep/.ws-info-table .el-form-item .el-form-item__content {
+  background: #f5f7fa;
+  border-radius: 4px;
+  border: 1px solid #d8dce6;
+  font-family: PingFangSC-Regular, PingFang SC;
+  margin-bottom: 5px;
+  background-color: #fff;
+  font-size: 14px;
+  font-weight: 400;
+  color: #8890b1;
+  line-height: 16px;
+}
+
+/deep/.ws-info-table .el-form-item .el-form-item__label {
+  background-color: #fff;
+  font-size: 13px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  font-weight: 400;
+  color: #8890b1;
+  line-height: 16px;
+}
+
+/deep/.ws-info-table .el-form-item .el-form-item__content {
+  background: #f5f7fa;
+  border-radius: 4px;
+  border: 1px solid #d8dce6;
+}
+
+/deep/.flex .ws-info-table .el-form-item .el-form-item__content {
+  border: 0px;
+}
+
+//联络员及车次
+/deep/.liaison .ws-info-table .el-form-item {
+  width: 19%;
+}
+
+/deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
+  width: 37%;
+  background: #f6f7fc;
+}
+
+/deep/.liaison .ws-info-table {
+  width: 100%;
+  background: #f6f7fc;
+  border-radius: 4px;
+  border: 1px solid #d8dce6;
+  margin-top: 20px;
+}
+
+.catNos {
+  width: 100%;
+  height: 30px;
+  margin-top: 10px;
+  margin-left: 20px;
+  font-size: 14px;
+}
+
+.catNosCor {
+  color: #5473e8;
+}
+
+.add {
+  width: 130px;
+  height: 34px;
+  background: #f6f7fb;
+  border-radius: 17px;
+  color: #5473e8;
+  font-size: 14px;
+  border: none;
+}
+
+.add img {
+  display: inline-block;
+  margin-top: 3px;
+  margin-left: -30px;
+}
+
+.add .spans {
+  display: table-caption;
+  width: 56px;
+  height: 20px;
+  line-height: 18px;
+}
+
+.signStatus {
+  height: 25px;
+  border-radius: 3px;
+  border: 1px solid #5473e8;
+  padding: 0 3px;
+  color: #ffffff;
+  background: #c4cada;
+  line-height: 24px;
+  margin-left: 18px;
+}
+
+.signStatus1 {
+  height: 25px;
+  background: #e6ebff;
+  border-radius: 3px;
+  border: 1px solid #5473e8;
+  padding: 0 3px;
+  margin-left: 18px;
+  color: #5473e8;
+  line-height: 24px;
+}
+
+.line {
+  height: 26px;
+  margin-top: 6px;
+  left: 2px;
+}
+
+/deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
+  padding: 0px;
+}
+
+.noservice {
+  background: #c4cada;
+  color: #ffffff;
+  padding: 5px 7px;
+  border-radius: 4px;
+}
+
+.service {
+  background: #e5f1f7;
+  color: #50cad4;
+}
+
+.tupian {
+  // margin-left: 14%;
+  // margin-top: -7%;
+}
+
+/deep/.el-input--suffix .el-input__inner {
+  padding-right: 0px;
+}
+
+.liaison {
+  margin-bottom: 20px;
+}
+
+.yd-bottom {
+  display: flex;
+  justify-content: space-between;
+}
+
+.yd-bottom-left {
+  display: flex;
+}
+
+.avatar-uploader {
+  margin-right: 10px;
+}
+
+/deep/.yd-bottom-left .el-form-item__content {
+  display: flex;
+}
 </style>

+ 3 - 1
src/views/tranManagement/tranManagementShippingFeedbackLook.vue

@@ -135,7 +135,9 @@
                     vertical-align: text-top;
                     position: relative;
                     top: -1px;
-                  " src="../../../public/img/fujian.png" @click="fujian()" alt />
+                  " src="../../../public/img/fujian.png" 
+                  :data-img="deptBudgetList.tranCarInfoList[0].loadPoundImg"
+                  @click="$imgPreview" alt />
           <span v-if="deptBudgetList.tranCarInfoList.length>0&&deptBudgetList.tranCarInfoList[0].loadPoundImgArr.length > 0">
             {{ deptBudgetList.tranCarInfoList[0].loadPoundImgArr.length}}
           </span>

+ 6 - 16
src/views/tranManagement/tranManagementTransporFeedback.vue

@@ -107,8 +107,8 @@
             <!--司机-->
 
             <ws-form-item label="姓名:" span="1" prop="driver" v-show="item.temporaryDriverFlag != 0">
-              <el-select v-show="item.temporaryDriverFlag != 0" v-model="item.driver" placeholder="请选择司机" filterable
-                :filter-method="dataFilter" @change="selectstaff">
+              <el-select v-show="item.temporaryDriverFlag != 0" v-model="item.driver" placeholder="请选择司机" clearable filterable
+                @change="selectstaff">
                 <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
               </el-select>
             </ws-form-item>
@@ -154,12 +154,9 @@
                 <span v-if="
                     item.loadPoundImg == null
                   ">未上传</span>
+                  <el-button v-if="item.loadPoundImg != null" class="bg-bottom-preview" type="primary" size="small" :data-img="item.loadPoundImg" @click="$imgPreview">预览</el-button>
               </template>
             </ws-form-item>
-            <!--预览-->
-            <div>
-              <el-button class="bg-bottom" type="primary" size="small" @click="preview(item)"  v-if="item.loadPoundImg != null ">预览</el-button>
-            </div>
             <!--箱号-->
             <ws-form-item label="箱号:" span="1" prop="caseNo">
               <span>{{ item.caseNo }}</span>
@@ -197,11 +194,6 @@
       <el-button class="bg-bottom" type="primary" size="small" @click="submit(deptBudgetList)">提交</el-button>
       <el-button class="bg-bottom" type="primary" size="small" @click="finished (deptBudgetList)">完货</el-button>
     </div>
-    <WinseaContentModal v-model="accessoryTFs" :title="$t('system.noticeCircular.information')"
-			@on-cancel="handleClose">
-			<ws-upload ref="upload" :comp-id="compId" :appendix-ids="appendixIdss" :editable="false"
-				accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
-		</WinseaContentModal>
   </div>
 </template>
 <script>
@@ -345,11 +337,6 @@
       }
     },
     methods: {
-      preview(item) {
-				this.accessoryTFs = true
-				this.appendixIdss = item.loadPoundImg
-			},
-
       uploadHandle(response, file, fileList) {
         this.localFile = file.raw // 或者 this.localFile=file.raw
         let Base64 = require('js-base64').Base64
@@ -1251,4 +1238,7 @@
   /deep/.liaison .ws-info-table .el-form-item .el-form-item__content {
     padding: 0px;
   }
+  .bg-bottom-preview{
+    margin: 0 8px;
+  }
 </style>

+ 3 - 1
src/views/tranManagement/tranManagementTransporFeedbackLook.vue

@@ -150,7 +150,8 @@
                     top: -1px;
                   "
                   src="../../../public/img/fujian.png"
-                  @click="fujian(index)"
+                  :data-img="item.loadPoundImg"
+                  @click="$imgPreview"
                   alt=""
                 />
 
@@ -169,6 +170,7 @@
                       .length == 0
                   "
                   >无</span>
+                  <!-- <el-button v-if="item.loadPoundImg != null" class="bg-bottom-preview" type="primary" size="small" :data-img="item.loadPoundImg" @click="$imgPreview">预览</el-button> -->
               </template>
             </ws-form-item>
              <!--箱号-->

+ 2 - 2
src/views/tranManagement/tranManagementTransporTationFire.vue

@@ -152,7 +152,7 @@
               class="record"
               @click="trainSee(scope.row)"
               v-hasPermission="
-                'transportationTask.transportation.fireDispatching.view'
+                'tranManager.fireDispatching.view'
               "
             >
               查看
@@ -161,7 +161,7 @@
               class="adjustment"
               @click="trainNumber(scope.row)"
               v-hasPermission="
-                'transportationTask.transportation.fireDispatching.car'
+                'tranManager.fireDispatching.car'
               "
             >
               车次

+ 12 - 30
src/views/tranManagement/tranManagementTransporTrainNo.vue

@@ -28,30 +28,25 @@
       :model="deptBudgetList"
     >
       <div class="small-title" style="font-size: 16px">任务详情</div>
-      <ws-info-table>
-        <!--任务编号-->
+       <ws-info-table>
+
         <ws-form-item label="任务编号" span="1" prop="processNo">
           {{ deptBudgetList.processNo }}
         </ws-form-item>
-        <!--货名-->
-        <ws-form-item label="货名" span="1" prop="goodsName">
+         <ws-form-item label="货名" span="1" prop="goodsName">
           {{ deptBudgetList.goodsName }}
         </ws-form-item>
-        <!--重量(吨)-->
         <ws-form-item label="重量(吨)" span="1" prop="weight">
           {{ deptBudgetList.weight }}
         </ws-form-item>
-        <!--发货地址-->
         <ws-form-item label="发货地址" span="1" prop="sendDetailedAddress">
           {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
           }}{{ deptBudgetList.sendArea
           }}{{ deptBudgetList.sendDetailedAddress }}
         </ws-form-item>
-        <!--发货人-->
         <ws-form-item label="发货人" span="1" prop="sender" class="readonly">
           {{ deptBudgetList.sender }}
         </ws-form-item>
-        <!--发货人电话-->
         <ws-form-item
           label="发货人电话"
           span="1"
@@ -60,36 +55,28 @@
         >
           {{ deptBudgetList.senderPhone }}
         </ws-form-item>
-        <!--收货地址-->
         <ws-form-item label="收货地址" span="1" prop="receiveDetailedAddress">
           {{ deptBudgetList.receivePrivate }}{{ deptBudgetList.receiveCity
-          }}{{ deptBudgetList.receiveArea
-          }}{{ deptBudgetList.receiveDetailedAddress }}
-        </ws-form-item>
-        <!--收货人-->
-        <ws-form-item label="收货人" span="1" prop="receiver">
+          }}{{ deptBudgetList.receiveArea}}{{deptBudgetList.receiveDetailedAddress}}
+       </ws-form-item>
+         <ws-form-item label="收货人" span="1" prop="receiver">
           {{ deptBudgetList.receiver }}
         </ws-form-item>
-        <!--收货人电话-->
         <ws-form-item label="收货人电话" span="1" prop="receiverPhone">
           {{ deptBudgetList.receiverPhone }}
         </ws-form-item>
-        <!--发货日期-->
         <ws-form-item label="发货日期" span="1" prop="deliveryDateStart">
           {{ deptBudgetList.deliveryDateStart }}
         </ws-form-item>
-        <!--最晚到货日期-->
         <ws-form-item label="最晚到货日期" span="1" prop="deliveryDateEnd">
           {{ deptBudgetList.deliveryDateEnd }}
         </ws-form-item>
-        <!--合同编号-->
         <ws-form-item label="合同编号" span="1" prop="contractNo">
           {{ deptBudgetList.contractNo }}
         </ws-form-item>
       </ws-info-table>
       <div class="small-title" style="font-size: 16px">联络员及车皮信息</div>
       <div class="myTest">
-              <!--当前运输总价-->
             <ws-form-item label="当前运输总价(元/吨):" span="1" prop="tranPrice">
                 <ws-input
                   v-model="deptBudgetList.tranPrice"
@@ -99,7 +86,6 @@
                   style="width:70px"
                 />
             </ws-form-item>
-            <!--审核中的运输总价-->
             <ws-form-item label="审核中的运输总价(元/吨):" span="1" prop="tranPriceIng">
               <ws-input
                   v-if="deptBudgetList.priceStatus=='审核中'"
@@ -118,10 +104,11 @@
                 />
             </ws-form-item>
             <ws-form-item>
+
              <el-button
               v-if="deptBudgetList.priceStatus=='审核中'"
               type="primary"
-              v-hasPermission="`transportationTask.transportation.transportationInfo.trian`" 
+              v-hasPermission="`tranManager.transportationInfo.trian`" 
               size="small"
               @click="examine()"
               >审核中</el-button
@@ -141,13 +128,12 @@
         :key="index"
       >
         <ws-info-table>
-          <!--姓名-->
           <ws-form-item label="姓名" span="1" prop="driver" v-show="index==0">
             <el-select
               v-model="item.driver"
               placeholder="请选择姓名"
               filterable
-              :filter-method="dataFilter"
+              clearable
               @change="selectstaff"
             >
               <el-option
@@ -158,7 +144,6 @@
               />
             </el-select>
           </ws-form-item>
-          <!--电话-->
           <ws-form-item label="电话" span="1" prop="driverPhone"  v-show="index==0">
             <ws-input
               v-model="item.driverPhone"
@@ -169,7 +154,6 @@
               size="small"
             />
           </ws-form-item>
-          <!--发车日期-->
           <ws-form-item label="发车日期" span="1" prop="sendDateStart"  v-show="index==0">
             <ws-date-picker
               v-model="item.sendDateStart"
@@ -178,7 +162,6 @@
               value-format="yyyy-MM-dd"
             />
           </ws-form-item>
-          <!--到站日期-->
           <ws-form-item label="预计到站日期" span="1" prop="receiveDateEnd"  v-show="index==0">
             <ws-date-picker
               v-model="item.receiveDateEnd"
@@ -187,7 +170,6 @@
               value-format="yyyy-MM-dd"
             />
           </ws-form-item>
-          <!--车型-->
           <ws-form-item label="车型" span="1" prop="carModel"  v-show="index==0">
             <el-select
               v-model="item.carModel"
@@ -210,9 +192,7 @@
               size="small"
             />
           </ws-form-item>
-          <!--   -->
         </ws-info-table>
-        <!-- class="del" -->
         <span
           v-if="
             item.status == '未装车' || item.status == '' || item.status == null
@@ -555,7 +535,7 @@ export default {
         .toPromise()
         .then((response) => {
           this.deptBudgetList = response
-          if (response.tranCarInfoList.length == 0)
+          if (response.tranCarInfoList.length == 0){
             this.deptBudgetList.tranCarInfoList = [
               {
                 driver: '',
@@ -567,6 +547,8 @@ export default {
                 tranType: '2',
               },
             ]
+          }
+            
         })
       //司机姓名下拉
       getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })

+ 93 - 77
src/views/tranManagement/tranManagementUnShippingFeedback.vue

@@ -268,16 +268,6 @@
                 value-format="yyyy-MM-dd"
               />
             </el-form-item>
-            <div style="text-align: right; padding: 10px" class="center1">
-              <el-button
-                v-show="item.status == '已装车'"
-                class="bg-bottom"
-                type="primary"
-                size="small"
-                @click="submit(deptBudgetList)"
-                >提交</el-button
-              >
-            </div>
             <div v-show="item.signStatus == '未签合同'" class="signStatus">
               {{ item.signStatus }}
             </div>
@@ -303,7 +293,7 @@
         >
       </div>
       <!--运单-->
-      <ws-form-item label="运单:" span="1" prop="loadPoundImg">
+      <ws-form-item label="运单:" span="1" prop="unloadPoundImg">
         <!-- slot-scope="scope" -->
         <template>
           <el-upload
@@ -327,24 +317,33 @@
           <div class="tupian">
             <span
               v-if="
-                deptBudgetList.tranCarInfoList[0] &&
-                deptBudgetList.tranCarInfoList[0].loadPoundImg != null
+                deptBudgetList.tranCarInfoList.length > 0 &&
+                  deptBudgetList.tranCarInfoList[0].unloadPoundImg != null
               "
-              >1</span
+              >{{ pictureTotal }}</span
             >
             <span
               v-if="
-                deptBudgetList.tranCarInfoList[0] &&
-                deptBudgetList.tranCarInfoList[0].loadPoundImg == null
+                deptBudgetList.tranCarInfoList.length > 0 &&
+                  deptBudgetList.tranCarInfoList[0].unloadPoundImg == null
               "
               >未上传</span
             >
+            <el-button v-if="deptBudgetList.tranCarInfoList.length>0&&deptBudgetList.tranCarInfoList[0].unloadPoundImg != null" 
+               class="bg-bottom-preview" type="primary" size="small" :data-img="deptBudgetList.tranCarInfoList[0].unloadPoundImg" @click="$imgPreview">预览</el-button>
           </div>
         </template>
       </ws-form-item>
     </ws-form>
     <!-- 完货 -->
     <div style="text-align: right; padding: 10px" class="center">
+      <el-button
+                class="bg-bottom"
+                type="primary"
+                size="small"
+                @click="submit(deptBudgetList)"
+                >提交</el-button
+              >
       <el-button
         class="bg-bottom"
         type="primary"
@@ -377,6 +376,7 @@ export default {
   },
   data() {
     return {
+      pictureTotal: 0,
       deptBudgetList: {
         totalStorage: 0,
       },
@@ -434,16 +434,15 @@ export default {
           driverPhone: '',
           carNo: '',
           loadNetWeight: '',
-          loadPoundImg: '',
+          unloadPoundImg: '',
         },
-        // {loadPoundImg:{}},
       ],
       name: '',
       staffList: [],
       options: [],
       carModel: [],
       tranCarInfoList: {
-        loadPoundImg: '',
+        unloadPoundImg: '',
       },
       excelFreightspace:[],
       //上传
@@ -670,6 +669,7 @@ export default {
             if (valid) {
               var tranProcessInfo = {}
               tranProcessInfo.id = this.deptBudgetList.id
+              tranProcessInfo.weight = this.total
               stateRec(tranProcessInfo)
                 .toPromise()
                 .then((response) => {
@@ -691,42 +691,41 @@ export default {
         })
     },
     submit() {
-      // if (!this.freightspace[i].receiveDateEnd) {
-      //   this.$message({
-      //     message: '到港日期不能为空!',
-      //     type: 'warning',
-      //   })
-      //   return
-      // }
-      // if (!this.freightspace[i].unloadNetWeight) {
-      //   this.$message({
-      //     message: '卸船净重不能为空!',
-      //     type: 'warning',
-      //   })
-      //   return
-      // }
-      // if (
-      //   (this.freightspace[i].unloadNetWeight &&
-      //     String(this.freightspace[i].unloadNetWeight).indexOf('.') != -1 &&
-      //     String(this.freightspace[i].unloadNetWeight).length -
-      //       (String(this.freightspace[i].unloadNetWeight).indexOf('.') + 1) >
-      //       2) ||
-      //   this.freightspace[i].unloadNetWeight > 10000 ||
-      //   this.freightspace[i].unloadNetWeight < 0
-      // ) {
-      //   this.$message({
-      //     message: '卸船净重输入错误',
-      //     type: 'warning',
-      //   })
-      //   return
-      // }
-      // if (!this.freightspace[i].unloadingDate) {
-      //   this.$message({
-      //     message: '卸船日期不能为空!',
-      //     type: 'warning',
-      //   })
-      //   return
-      // }
+      for(let i = 0 ; i < this.freightspace.length ; i++){
+        if(this.freightspace[i].shipType == '集装箱'){
+            if (!this.freightspace[i].unloadNetWeight) {
+        this.$message({
+          message: '卸船净重不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        (this.freightspace[i].unloadNetWeight &&
+          String(this.freightspace[i].unloadNetWeight).indexOf('.') != -1 &&
+          String(this.freightspace[i].unloadNetWeight).length -
+            (String(this.freightspace[i].unloadNetWeight).indexOf('.') + 1) >
+            2) ||
+        this.freightspace[i].unloadNetWeight > 10000 ||
+        this.freightspace[i].unloadNetWeight < 0
+      ) {
+        this.$message({
+          message: '卸船净重输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.freightspace[i].unloadingDate) {
+        this.$message({
+          message: '卸船日期不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+
+        }
+      }
+      
       this.$confirm(`提交成功后装船信息不可修改,是否确定提交?`, {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
@@ -736,29 +735,28 @@ export default {
           this.$refs.deptBudgetList.validate((valid) => {
             if (valid) {
               // this.deptBudgetList.totalStorage = this.totalStorage
-              this.tranCarInfoList = this.freightspace
-              this.tranCarInfoList.driver = this.deptBudgetList.driver
-              this.tranCarInfoList.driverPhone = this.deptBudgetList.driverPhone
-              this.tranCarInfoList[0].sendDateStart =
-                this.deptBudgetList.sendDateStart
-              this.tranCarInfoList.receiveDateEnd =
-                this.deptBudgetList.receiveDateEnd
-              this.tranCarInfoList.shipName = this.deptBudgetList.shipName
-              this.tranCarInfoList.shipNo = this.shipNo
-              this.tranCarInfoList.shipType = this.deptBudgetList.shipType
-              this.tranCarInfoList.boxNumber = this.deptBudgetList.boxNumber
-              this.tranCarInfoList.unloadingDate =
-                this.deptBudgetList.unloadingDate
-              // this.tranCarInfoList.boxNo = this.arr.toString()
-              for (var i = 0; i < this.tranCarInfoList.length; i++) {
-                this.tranCarInfoList[i].id = this.freightspace[i].id
-              }
+              // this.tranCarInfoList = this.freightspace
+              // this.tranCarInfoList.driver = this.deptBudgetList.driver
+              // this.tranCarInfoList.driverPhone = this.deptBudgetList.driverPhone
+              // this.tranCarInfoList[0].sendDateStart =
+              //   this.deptBudgetList.sendDateStart
+              // this.tranCarInfoList.receiveDateEnd =
+              //   this.deptBudgetList.receiveDateEnd
+              // this.tranCarInfoList.shipName = this.deptBudgetList.shipName
+              // this.tranCarInfoList.shipNo = this.shipNo
+              // this.tranCarInfoList.shipType = this.deptBudgetList.shipType
+              // this.tranCarInfoList.boxNumber = this.deptBudgetList.boxNumber
+              // this.tranCarInfoList.unloadingDate =
+              //   this.deptBudgetList.unloadingDate
+              // // this.tranCarInfoList.boxNo = this.arr.toString()
+              // for (var i = 0; i < this.tranCarInfoList.length; i++) {
+              //   this.tranCarInfoList[i].id = this.freightspace[i].id
+              // }
               var tranProcessInfo = {}
               tranProcessInfo.id = this.deptBudgetList.id
               tranProcessInfo.infoId = this.deptBudgetList.infoId
               tranProcessInfo.processNo = this.deptBudgetList.processNo
-              tranProcessInfo.tranCarInfoList = this.tranCarInfoList
-              // dispatchCat({tranCarInfo:{tranCarInfoList:[this.tranCarInfoList],id:this.deptBudgetList.id}
+              tranProcessInfo.tranCarInfoList = this.freightspace
               feedback(tranProcessInfo)
                 .toPromise()
                 .then((response) => {
@@ -788,7 +786,8 @@ export default {
         .toPromise()
         .then((response) => {
           this.deptBudgetList = response
-          this.deptBudgetList.driver = response.tranCarInfoList[0].driver
+          if(response.tranCarInfoList.length > 0){
+            this.deptBudgetList.driver = response.tranCarInfoList[0].driver
           this.deptBudgetList.driverPhone =
             response.tranCarInfoList[0].driverPhone
           this.$set(
@@ -802,8 +801,17 @@ export default {
           this.deptBudgetList.shipNo = response.tranCarInfoList[0].shipNo
           this.deptBudgetList.shipType = response.tranCarInfoList[0].shipType
           this.deptBudgetList.boxNumber = response.tranCarInfoList[0].boxNumber
-          //  this.deptBudgetList.tranCarInfoList = response.tranCarInfoList
+          //上传附件计数
+            if (this.deptBudgetList.tranCarInfoList[0].unloadPoundImg) {
+              this.pictureTotal =
+                this.deptBudgetList.tranCarInfoList[0].unloadPoundImg.split(
+                  ','
+                ).length
+            }
+
           this.freightspace = response.tranCarInfoList
+          }
+          
           for (var i = 0; i < this.freightspace.length; i++) {
             if (!this.freightspace[i].loadNetWeight) {
               this.freightspace[i].loadNetWeight = 0
@@ -862,7 +870,15 @@ export default {
       }
     },
     uploadSuccessHandle1(e, index) {
-      this.deptBudgetList.tranCarInfoList[0].loadPoundImg = e.url
+      this.pictureTotal++
+      if (this.deptBudgetList.tranCarInfoList[0].unloadPoundImg) {
+        this.deptBudgetList.tranCarInfoList[0].unloadPoundImg += ',' + e.url
+      } else {
+        this.deptBudgetList.tranCarInfoList[0].unloadPoundImg = e.url
+      }
+      feedback(this.deptBudgetList)
+        .toPromise()
+        .then((response) => {})
     },
   },
 }

+ 13 - 12
src/views/tranManagement/tranManagementUnShippingFeedbackLook.vue

@@ -211,7 +211,7 @@
         }}</span>
       </div>
       <!--运单-->
-            <ws-form-item label="运单:" span="1" prop="loadPoundImg">
+            <ws-form-item label="运单:" span="1" prop="unloadPoundImg"> 
               <template>
                 <img
                   width="18"
@@ -222,21 +222,22 @@
                     top: -1px;
                   "
                   src="../../../public/img/fujian.png"
-                  @click="fujian()"
+                  :data-img="deptBudgetList.tranCarInfoList[0].unloadPoundImg"
+                  @click="$imgPreview"
                   alt=""
                 />
                 <span
                   v-if="deptBudgetList.tranCarInfoList[0]&&
-                    deptBudgetList.tranCarInfoList[0].loadPoundImgArr
+                    deptBudgetList.tranCarInfoList[0].unloadPoundImgArr
                       .length > 0
                   "
                   >{{
-                    deptBudgetList.tranCarInfoList[0].loadPoundImgArr.length
+                    deptBudgetList.tranCarInfoList[0].unloadPoundImgArr.length
                   }}</span
                 >
                  <span
                   v-if="deptBudgetList.tranCarInfoList[0]&&
-                    deptBudgetList.tranCarInfoList[0].loadPoundImgArr
+                    deptBudgetList.tranCarInfoList[0].unloadPoundImgArr
                       .length == 0
                   "
                   >无</span>
@@ -457,12 +458,12 @@ export default {
               this.freightspace[i].loadNetWeight = 0
             }
             if (this.deptBudgetList.tranCarInfoList[i]&&this.deptBudgetList.tranCarInfoList[i].loadPoundImg != null) {
-              this.deptBudgetList.tranCarInfoList[i].loadPoundImgArr =
-              this.deptBudgetList.tranCarInfoList[i].loadPoundImg.split(',')
+              this.deptBudgetList.tranCarInfoList[i].unloadPoundImgArr =
+              this.deptBudgetList.tranCarInfoList[i].unloadPoundImg.split(',')
               this.fileList[i] =
-              this.deptBudgetList.tranCarInfoList[i].loadPoundImg.split(',')
+              this.deptBudgetList.tranCarInfoList[i].unloadPoundImg.split(',')
             } else {
-              this.deptBudgetList.tranCarInfoList[i].loadPoundImgArr = []
+              this.deptBudgetList.tranCarInfoList[i].unloadPoundImgArr = []
             }
           }
         })
@@ -505,8 +506,8 @@ export default {
     //上传
     fujian(e) {
       if (
-        this.deptBudgetList.tranCarInfoList[0].loadPoundImg === null ||
-        this.deptBudgetList.tranCarInfoList[0].loadPoundImg === ''
+        this.deptBudgetList.tranCarInfoList[0].unloadPoundImg === null ||
+        this.deptBudgetList.tranCarInfoList[0].unloadPoundImg === ''
       ) {
         this.$message({
           message: '暂无附件!',
@@ -517,7 +518,7 @@ export default {
         this.accessoryTFs = true
       }
       this.appendixIdss =
-        this.deptBudgetList.tranCarInfoList[0].loadPoundImgArr
+        this.deptBudgetList.tranCarInfoList[0].unloadPoundImgArr
     },
   },
 }

+ 6 - 2
src/views/tranManagement/tranManagementVehicle.vue

@@ -148,8 +148,12 @@
         <el-table-column prop="createDate" label="接单时间"> </el-table-column>
         <el-table-column prop="seller" label="操作" width="200">
           <template slot-scope="scope">
-            <div class="record" @click="nocomplete(scope.row)">查看</div>
-            <div class="adjustment" @click="warehousing(scope.row)">派车</div>
+            <div v-hasPermission="
+                'transportationTask.transportation.vehicleDispatching.view'
+              " class="record" @click="nocomplete(scope.row)">查看</div>
+            <div v-hasPermission="
+                'transportationTask.transportation.vehicleDispatching.car'
+              " class="adjustment" @click="warehousing(scope.row)">派车</div>
           </template>
         </el-table-column>
       </el-table>

+ 16 - 37
src/views/tranManagement/tranManagementVehicleDispatching.vue

@@ -26,15 +26,12 @@
         <div class="basicInformation">
           <div class="small-title" style="font-size: 16px">任务详情</div>
           <ws-info-table>
-            <!-- 任务编号 -->
-            <ws-form-item label="任务编号" span="1" prop="processNo">
+          <ws-form-item label="任务编号" span="1" prop="processNo">
               {{ deptBudgetList.processNo }}
             </ws-form-item>
-            <!-- 货名 -->
             <ws-form-item label="货名" span="1">
               {{ deptBudgetList.goodsName }}
             </ws-form-item>
-            <!--重量(吨)-->
             <ws-form-item
               label="重量(吨)"
               span="1"
@@ -43,38 +40,28 @@
             >
               {{ deptBudgetList.weight }}
             </ws-form-item>
-
-            <!--发货地址-->
             <ws-form-item label="发货地址" span="1" prop="netWeight">
               {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
               }}{{ deptBudgetList.sendArea
               }}{{ deptBudgetList.sendDetailedAddress }}
             </ws-form-item>
-            <!--发货人-->
             <ws-form-item label="发货人" span="1" prop="agent">
               {{ deptBudgetList.sender }}
             </ws-form-item>
-
-            <!--发货人电话-->
             <ws-form-item label="发货人电话" span="1" prop="agent">
               {{ deptBudgetList.senderPhone }}
             </ws-form-item>
-            <!--收货地址-->
             <ws-form-item label="收货地址" span="1" prop="netWeight">
               {{ deptBudgetList.receivePrivate }}{{ deptBudgetList.receiveCity
               }}{{ deptBudgetList.receiveArea
               }}{{ deptBudgetList.receiveDetailedAddress }}
             </ws-form-item>
-            <!--收货人-->
-            <ws-form-item label="收货人" span="1" prop="receiver">
+             <ws-form-item label="收货人" span="1" prop="receiver">
               {{ deptBudgetList.receiver }}
             </ws-form-item>
-
-            <!--收货人电话-->
             <ws-form-item label="收货人电话" span="1" prop="receiverPhone">
               {{ deptBudgetList.receiverPhone }}
             </ws-form-item>
-            <!--发货日期-->
             <ws-form-item
               label="发货日期"
               span="1"
@@ -83,7 +70,6 @@
             >
               {{ deptBudgetList.deliveryDateStart }}
             </ws-form-item>
-            <!--最晚发货日期-->
             <ws-form-item
               label="最晚发货日期"
               span="1"
@@ -92,7 +78,6 @@
             >
               {{ deptBudgetList.deliveryDateEnd }}
             </ws-form-item>
-            <!--合同编号-->
             <ws-form-item label="合同编号" span="1" prop="contractNo">
               {{ deptBudgetList.contractNo }}
             </ws-form-item>
@@ -100,7 +85,6 @@
 
           <div class="small-title" style="font-size: 16px">派车</div>
           <div class="myTest">
-              <!--当前运输单价-->
             <ws-form-item label="当前运输单价(元/吨):" span="1" prop="tranPrice">
                 <ws-input
                   v-model="deptBudgetList.tranPrice"
@@ -110,7 +94,6 @@
                   style="width:70px"
                 />
             </ws-form-item>
-            <!--审核中的运输单价-->
             <ws-form-item label="审核中的运输单价(元/吨):" span="1" prop="tranPriceIng">
               <ws-input
                   v-if="deptBudgetList.priceStatus=='审核中'"
@@ -128,23 +111,26 @@
                   style="width:70px"
                 />
             </ws-form-item>
-             
             <ws-form-item>
-             <el-button
-              v-if="deptBudgetList.priceStatus=='审核中'"
+              <div v-if="deptBudgetList.priceStatus=='审核中'">
+                <el-button
               type="primary"
-            v-hasPermission="`transportationTask.transportation.transportationInfo.exe`"
+              v-hasPermission="`tranManager.transportationInfo.exe`"
               size="small"
               @click="examine()"
               >审核中</el-button
             >
-             <el-button
-              v-else
+              </div>
+             <div v-else>
+                <el-button
+              
               type="primary"
               size="small"
               @click="priceSubmit()"
               >提交</el-button
             >
+             </div>
+            
             </ws-form-item>
           </div>
           <div
@@ -165,7 +151,6 @@
                   item.status
                 }}</span>
               </div>
-              <!--司机-->
               <ws-form-item
                 label="姓名:"
                 span="1"
@@ -198,7 +183,6 @@
                   >{{ item.driver }}</span
                 >
               </ws-form-item>
-              <!--司机电话-->
               <ws-form-item
                 label="司机电话:"
                 span="1"
@@ -231,7 +215,6 @@
                   >{{ item.driverPhone }}</span
                 >
               </ws-form-item>
-              <!--车牌号-->
               <ws-form-item label="车牌号:" span="1" prop="carNo" class="siji">
                 <ws-input
                   :disabled="readonly"
@@ -241,7 +224,6 @@
                   size="small"
                 />
               </ws-form-item>
-             <!--派车编号-->
               <ws-form-item
                 label="派车编号:"
                 span="1"
@@ -256,7 +238,6 @@
                   size="small"
                 />
               </ws-form-item>
-              <!--箱号-->
               <ws-form-item
                 label="箱号:"
                 span="1"
@@ -278,7 +259,6 @@
                   size="small"
                 />
               </ws-form-item>
-              <!--封号-->
               <ws-form-item
                 label="封号:"
                 span="1"
@@ -301,7 +281,6 @@
                   size="small"
                 />
               </ws-form-item>
-              <!--车型-->
               <ws-form-item
                 label="车型:"
                 span="1"
@@ -316,7 +295,6 @@
                   size="small"
                 />
               </ws-form-item>
-              <!--车长-->
               <ws-form-item
                 label="车长:"
                 span="1"
@@ -331,7 +309,6 @@
                   size="small"
                 />
               </ws-form-item>
-              <!--载重吨-->
               <ws-form-item
                 label="载重(吨):"
                 span="1"
@@ -346,7 +323,6 @@
                   size="small"
                 />
               </ws-form-item>
-               <!--运输单价-->
               <ws-form-item
                 label="运输单价(元/吨):"
                 span="1"
@@ -372,7 +348,7 @@
               alt=""
               >×</span
             >
-          </div>
+          </div> 
           <div style="text-align: right; color: #8890b1; font-size: 16px">
            共{{ total }}/{{ deptBudgetList.weight }}
           </div>
@@ -597,7 +573,7 @@ export default {
         }).then(({ value }) => {
               var tranProcessInfo = {}
               tranProcessInfo.reviewer = sessionStorage.getItem('ws-pf_roleName') +
-               sessionStorage.getItem('ws-pf_staffName')
+        sessionStorage.getItem('ws-pf_staffName')
               tranProcessInfo.id = this.deptBudgetList.id
               tranProcessInfo.flag = "2"
               tranProcessInfo.tranPriceIng = value
@@ -621,6 +597,7 @@ export default {
         type: 'warning',
       })
         .then(() => {
+          // debugger
               var tranProcessInfo = {}
               tranProcessInfo.id = this.deptBudgetList.id
               tranProcessInfo.flag = "1"
@@ -674,6 +651,8 @@ export default {
               if (valid) {
                 var tranCarInfo = {}
                 tranCarInfo.id = this.deptBudgetList.id
+                tranCarInfo.processNo=this.deptBudgetList.processNo
+                tranCarInfo.tranPrice=this.deptBudgetList.tranPrice
                 tranCarInfo.infoId = this.deptBudgetList.infoId
                 tranCarInfo.tranCarInfoList = this.deptBudgetList.tranCarInfoList
                 dispatchCat(tranCarInfo)

+ 1 - 1
src/views/warehouse/tranManagementWarehouseInOutTask.vue

@@ -141,7 +141,7 @@
                   v-model="scope.row.publisher"
               placeholder="请选择经办人"
               filterable
-              :filter-method="dataFilter"
+              clearable
               @change="(event)=>{selectstaff(event, scope.row)}"
             >
               <el-option

+ 2 - 1
src/views/warehouse/warehouseManagementDelivery.vue

@@ -167,7 +167,7 @@
               v-model="deptBudgetList.agent"
               placeholder="请选择经办人"
               filterable
-              :filter-method="dataFilter"
+              clearable
               @change="selectstaff"
             >
               <el-option
@@ -221,6 +221,7 @@
             <el-select
               v-if="carstatus"
               filterable
+              clearable
               :filter-method="dataFilter2"
               v-model="deptBudgetList.carNo"
               placeholder="请选择车牌号"

+ 1 - 1
src/views/warehouse/warehouseManagementEdit.vue

@@ -51,7 +51,7 @@
               v-model="deptBudgetList.personCharge"
               placeholder="请选择负责人"
               filterable
-              :filter-method="dataFilter"
+              clearable
               @change="selectstaff"
             >
               <el-option

+ 26 - 1
src/views/warehouse/warehouseManagementGross.vue

@@ -40,10 +40,29 @@
           <span v-show="this.$route.query.warehouseType == 2">(临)</span>
         </h2>
         <ws-info-table>
+                  <!--任务编号-->
+          <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
+            <el-select
+              filterable
+              clearable
+              v-model="deptBudgetList.inOutTaskNo"
+              placeholder="请选择任务编号"
+              class="typeselect"
+              @change="contractNoChange"
+            >
+              <el-option
+                v-for="item in deptBudgetList1"
+                :key="item.inOutTaskNo"
+                :label="item.inOutTaskNo"
+                :value="item.inOutTaskNo"
+              />
+            </el-select>
+          </ws-form-item>
           <!--合同编号-->
           <ws-form-item label="合同编号" span="1" prop="contractNo">
             <el-select
               filterable
+              clearable
               :filter-method="dataFilter1"
               v-model="deptBudgetList.contractNo"
               placeholder="请选择合同编号或移库任务编号"
@@ -247,7 +266,6 @@
               placeholder="请选择经办人"
               filterable
               clearable
-              :filter-method="dataFilter"
               @change="selectstaff"
             >
               <el-option
@@ -546,6 +564,7 @@ import {
   addstorageputList,
   xialaNo,
   getstaff,
+  getReceiptTaskNo
 } from '@/model/warehouse/index'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
@@ -567,6 +586,7 @@ export default {
   },
   data() {
     return {
+      deptBudgetList1:[],
       qualityInspectorList:[],
       isGetCost:false,
       isSelectType:true,
@@ -672,6 +692,11 @@ export default {
          
        }
       }
+      getReceiptTaskNo().toPromise()
+            .then((response) => {
+                console.log(response)
+                this.deptBudgetList1 = response
+            })
     // if (this.deptBudgetList.warehouseType == 1) {
     //   // this.deptBudgetList.inOutType = '采购入库'
     //   this.deptBudgetList.inOutTypeKey = '1'

+ 26 - 3
src/views/warehouse/warehouseManagementNoWeightIn.vue

@@ -33,6 +33,24 @@
         </h2>
         <div class="small-title">基本信息</div>
         <ws-info-table>
+                      <!--任务编号-->
+          <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
+            <el-select
+              filterable
+              clearable
+              v-model="dataList.inOutTaskNo"
+              placeholder="请选择任务编号"
+              class="typeselect"
+              @change="contractNoChange"
+            >
+              <el-option
+                v-for="item in deptBudgetList2"
+                :key="item.inOutTaskNo"
+                :label="item.inOutTaskNo"
+                :value="item.inOutTaskNo"
+              />
+            </el-select>
+          </ws-form-item>
           <ws-form-item label="合同编号" span="1" prop="contractNo">
             <el-select
             filterable
@@ -184,7 +202,6 @@
               v-model="dataList.agent"
               placeholder="请选择经办人"
               filterable
-              :filter-method="dataFilter"
               @change="selectstaff"
             >
               <el-option
@@ -350,7 +367,6 @@
               placeholder="请选择质检员"
               filterable
               clearable
-               :filter-method="dataFilter"
               @change="qualityInspectorChange"
             >
               <el-option
@@ -445,7 +461,8 @@ import {
   addstorageputList,
   xialaNo,
   getstaff,
-  getPrintInfo
+  getPrintInfo,
+  getReceiptTaskNo
 } from '@/model/warehouse/index'
 import { downloadFile } from '@/utils/batchDown'
 import Pagination from '@/components/Pagination'
@@ -480,6 +497,7 @@ export default {
   },
   data() {
     return {
+       deptBudgetList2:[],
       isSelectType:true,
       isGetCost:false,
       qualityInspectorList:[],
@@ -629,6 +647,11 @@ export default {
       this.isGetCost = true
       this.cost = this.dataList.cost 
     }
+    getReceiptTaskNo().toPromise()
+        .then((response) => {
+            console.log(response)
+            this.deptBudgetList2 = response
+        })
 
   },
   methods: {

+ 28 - 3
src/views/warehouse/warehouseManagementNoWeightOut.vue

@@ -34,6 +34,24 @@
         </h2>
         <div class="small-title">基本信息</div>
         <ws-info-table>
+                    <!--任务编号-->
+          <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
+            <el-select
+              filterable
+              clearable
+              v-model="dataList.inOutTaskNo"
+              placeholder="请选择任务编号"
+              class="typeselect"
+              @change="contractNoChange"
+            >
+              <el-option
+                v-for="item in deptBudgetList2"
+                :key="item.inOutTaskNo"
+                :label="item.inOutTaskNo"
+                :value="item.inOutTaskNo"
+              />
+            </el-select>
+          </ws-form-item>
          <ws-form-item label="合同编号" span="1" prop="contractNo">
             <ws-select
               v-model="dataList.contractNo"
@@ -163,7 +181,7 @@
               v-model="dataList.agent"
               placeholder="请选择经办人"
               filterable
-              :filter-method="dataFilter"
+              clearable
               @change="selectstaff"
             >
               <el-option
@@ -217,6 +235,7 @@
              <el-select
               v-if="carstatus"
               filterable
+              clearable
               :filter-method="dataFilter2"
               v-model="deptBudgetList.carNo"
               placeholder="请选择车牌号"
@@ -266,7 +285,6 @@
               placeholder="请选择质检员"
               filterable
               clearable
-               :filter-method="dataFilter"
             >
               <el-option
                 v-for="item in qualityInspectorList"
@@ -360,7 +378,8 @@ import {
   addstorageputList,
   xialaNo,
   getstaff,
-  getPrintInfo
+  getPrintInfo,
+  getReceiptTaskNo
 } from '@/model/warehouse/index'
 import { downloadFile } from '@/utils/batchDown'
 import Pagination from '@/components/Pagination'
@@ -392,6 +411,7 @@ export default {
   },
   data() {
     return {
+      deptBudgetList2:[],
       //弹出框
       dialogViewSpareMoney: false,
       dialogApproveFormVisible: false,
@@ -522,6 +542,11 @@ export default {
     this.dataList.statusFlag = this.$route.statusFlag
     this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
     console.log(this.dataList)
+    getReceiptTaskNo().toPromise()
+      .then((response) => {
+          console.log(response)
+          this.deptBudgetList2 = response
+      })
   },
   methods: {
     async closePort() {

+ 2 - 1
src/views/warehouse/warehouseManagementPerfectDelivery.vue

@@ -160,7 +160,7 @@
               v-model="dataList.agent"
               placeholder="请选择经办人"
               filterable
-              :filter-method="dataFilter"
+              clearable
               @change="selectstaff"
             >
               <el-option
@@ -214,6 +214,7 @@
              <el-select
               v-if="carstatus"
               filterable
+              clearable
               :filter-method="dataFilter2"
               v-model="deptBudgetList.carNo"
               placeholder="请选择车牌号"

+ 1 - 2
src/views/warehouse/warehouseManagementPerfectput.vue

@@ -181,7 +181,7 @@
               v-model="dataList.agent"
               placeholder="请选择经办人"
               filterable
-              :filter-method="dataFilter"
+              clearable
               @change="selectstaff"
             >
               <el-option
@@ -347,7 +347,6 @@
               placeholder="请选择质检员"
               filterable
               clearable
-               :filter-method="dataFilter"
               @change="qualityInspectorChange"
             >
               <el-option

+ 1 - 1
src/views/warehouse/warehouseManagementPut.vue

@@ -241,7 +241,6 @@
               placeholder="请选择经办人"
               filterable
               clearable
-              :filter-method="dataFilter"
               @change="selectstaff"
             >
               <el-option
@@ -296,6 +295,7 @@
             <el-select
               v-if="carstatus"
               filterable
+              clearable
               :filter-method="dataFilter2"
               v-model="deptBudgetList.carNo"
               placeholder="请选择车牌号"

+ 1 - 1
src/views/warehouse/warehouseManagementPutOutLook.vue

@@ -130,7 +130,7 @@
               disabled
               v-model="dataList.agent"
               filterable
-              :filter-method="dataFilter"
+              clearable
             >
               <el-option
                 v-for="item in options"

+ 27 - 2
src/views/warehouse/warehouseManagementTare.vue

@@ -35,6 +35,24 @@
         </h2>
         <div class="small-title">基本信息</div>
         <ws-info-table>
+                  <!--任务编号-->
+          <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
+            <el-select
+              filterable
+              clearable
+              v-model="deptBudgetList.inOutTaskNo"
+              placeholder="请选择任务编号"
+              class="typeselect"
+              @change="contractNoChange"
+            >
+              <el-option
+                v-for="item in deptBudgetList1"
+                :key="item.inOutTaskNo"
+                :label="item.inOutTaskNo"
+                :value="item.inOutTaskNo"
+              />
+            </el-select>
+          </ws-form-item>
           <ws-form-item label="合同编号" span="1" prop="contractNo">
             <ws-select
               v-model="deptBudgetList.contractNo"
@@ -171,7 +189,7 @@
               v-model="deptBudgetList.agent"
               placeholder="请选择经办人"
               filterable
-              :filter-method="dataFilter"
+              clearable
               @change="selectstaff"
             >
               <el-option
@@ -225,6 +243,7 @@
             <el-select
               v-if="carstatus"
               filterable
+              clearable
               :filter-method="dataFilter2"
               v-model="deptBudgetList.carNo"
               placeholder="请选择车牌号"
@@ -373,6 +392,7 @@ import {
   xialaNo,
   getstaff,
   goodsnameXiala,
+  getReceiptTaskNo
 } from '@/model/warehouse/index'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
@@ -391,6 +411,7 @@ export default {
   },
   data() {
     return {
+      deptBudgetList1:[],
       isSelectType:true,
        carstatus: false,
        qualityInspectorList:[],
@@ -479,7 +500,11 @@ export default {
     this.deptBudgetList.warehouseType = this.$route.query.warehouseType
     this.deptBudgetList.warehouseId = this.$route.query.warehouseId
     this.getList()
-  
+       getReceiptTaskNo().toPromise()
+            .then((response) => {
+                console.log(response)
+                this.deptBudgetList1 = response
+            })
   },
   methods: {
     async closePort() {

+ 1 - 1
vue.config.js

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