浏览代码

Merge branch 'master' of http://git.zthymaoyi.com/gdc/yiliangyiyun-pc

achao 2 年之前
父节点
当前提交
fc9551c894
共有 32 个文件被更改,包括 491 次插入238 次删除
  1. 3 1
      src/api/V2/statisticalReport/index.js
  2. 5 1
      src/api/V2/transport/index.js
  3. 5 2
      src/model/statisticalReport/index.js
  4. 8 2
      src/model/transport/index.js
  5. 0 1
      src/views/houseSelfCollect/component/paymentPrint.vue
  6. 73 69
      src/views/houseSelfCollect/inspectionManagementNew.vue
  7. 3 0
      src/views/houseSelfCollect/inspectionManagementrecord.vue
  8. 1 0
      src/views/houseSelfCollect/settlement.vue
  9. 1 1
      src/views/outboundManagement/weighingManagementNew.vue
  10. 1 1
      src/views/personnelManagement/cardReplacementManagement.vue
  11. 1 1
      src/views/personnelManagement/leaveList.vue
  12. 6 3
      src/views/profitable/expenseallot.vue
  13. 7 3
      src/views/profitable/expenseallotaduit.vue
  14. 12 1
      src/views/profitable/expensemanagementdetails.vue
  15. 38 11
      src/views/profitable/expensemanagentedit.vue
  16. 12 9
      src/views/profitable/expensemanagentlook.vue
  17. 3 3
      src/views/purchasingManagement/procurementPlanAdd.vue
  18. 13 13
      src/views/purchasingManagement/procurementPlanEdit.vue
  19. 3 3
      src/views/salesManagement/salesPlanAdd.vue
  20. 14 14
      src/views/salesManagement/salesPlanEdit.vue
  21. 49 25
      src/views/statisticalReport/autoSettlementList.vue
  22. 8 8
      src/views/taskManagement/inOutWarehouseTaskEdit.vue
  23. 2 1
      src/views/taskManagement/tranManagementTransportAdd.vue
  24. 5 5
      src/views/taskManagement/tranManagementWarehouseInOutTaskAdd.vue
  25. 1 1
      src/views/taskManagement/tranManagementWarehouseInOutTaskAudit.vue
  26. 24 24
      src/views/taskManagement/tranManagementWarehouseInOutTaskEdit.vue
  27. 1 1
      src/views/tranManagement/tranManagementReceivingFeedback.vue
  28. 10 2
      src/views/tranManagement/tranManagementReceivingloading.vue
  29. 10 2
      src/views/tranManagement/tranManagementTransporFeedback.vue
  30. 1 1
      src/views/tranManagement/tranManagementTransporHairRespond.vue
  31. 72 3
      src/views/tranManagement/tranManagementVehicleDispatching.vue
  32. 99 26
      src/views/warehousenew/warehousingOrder.vue

+ 3 - 1
src/api/V2/statisticalReport/index.js

@@ -102,4 +102,6 @@ export const API_GET_YUNSHUXIALA = '/tranTaskInfo/selectTranTask'
 // 火运,船运运输编号下拉
 // 火运,船运运输编号下拉
 export const API_GET_YUNSHUNUMBER = '/tranTaskInfo/selectTask'
 export const API_GET_YUNSHUNUMBER = '/tranTaskInfo/selectTask'
 // 火运,船运实际价格
 // 火运,船运实际价格
-export const API_POST_YUNSHUSETPRICE = '/tranProcessInfo/api/setUpTranPrice'
+export const API_POST_YUNSHUSETPRICE = '/tranProcessInfo/api/setUpTranPrice'
+//汽运请款
+export const API_POST_SUBMITLOGISTICS = '/tranSettlementReport/api/submitLogistics'

+ 5 - 1
src/api/V2/transport/index.js

@@ -60,4 +60,8 @@ export const API_POST_AUTOMOBILE_TRANPRICE_CAR  = '/tranProcessInfo/api/setUpTra
 // 删除运输车辆
 // 删除运输车辆
 export const API_POST_DEL_HAULAGE_STAGE= '/tranCarInfo/api/deleteTranCar'
 export const API_POST_DEL_HAULAGE_STAGE= '/tranCarInfo/api/deleteTranCar'
 // 导入
 // 导入
-export const API_GET_IMPORT= '/importController/readDocument'
+export const API_GET_IMPORT= '/importController/readDocument'
+// 车牌号列表
+export const API_GET_CARNUMBER= '/driverCarInfo/selectAllCarNumber'
+// 通过车牌号查找司机
+export const API_GET_DRIVERINFO='/driverViewInfo/selectDriverViewList'

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

@@ -48,7 +48,8 @@ import {
     API_GET_YUNSHUNUMBER,
     API_GET_YUNSHUNUMBER,
     API_POST_YUNSHUSETPRICE,
     API_POST_YUNSHUSETPRICE,
     API_POST_EDIT_SETTLEMENTWEIGHT,
     API_POST_EDIT_SETTLEMENTWEIGHT,
-    API_POST_INVOICELIST
+    API_POST_INVOICELIST,
+    API_POST_SUBMITLOGISTICS
 } from '@/api/V2/statisticalReport'
 } from '@/api/V2/statisticalReport'
 //期货采购入库报表
 //期货采购入库报表
 export const getpurchreceipt = appRx.get(API_GET_PURCHRECEIPT, errorCatcher, errorHandle, filter)
 export const getpurchreceipt = appRx.get(API_GET_PURCHRECEIPT, errorCatcher, errorHandle, filter)
@@ -156,4 +157,6 @@ export const getYunShuXiaLa = appRx.get(API_GET_YUNSHUXIALA, errorCatcher, error
 // 火运,船运运输编号下拉
 // 火运,船运运输编号下拉
 export const getYunShuNumber= appRx.get(API_GET_YUNSHUNUMBER, errorCatcher, errorHandle, filter)
 export const getYunShuNumber= appRx.get(API_GET_YUNSHUNUMBER, errorCatcher, errorHandle, filter)
 // 火运,船运实际价格
 // 火运,船运实际价格
-export const SetYunShuPrice = appRx.post(API_POST_YUNSHUSETPRICE, errorCatcher, errorHandle, filter)
+export const SetYunShuPrice = appRx.post(API_POST_YUNSHUSETPRICE, errorCatcher, errorHandle, filter)
+// 汽运请款
+export const submitlogistics = appRx.post(API_POST_SUBMITLOGISTICS, errorCatcher, errorHandle, filter)

+ 8 - 2
src/model/transport/index.js

@@ -33,7 +33,9 @@ import {
     API_GET_IMPORT,
     API_GET_IMPORT,
     API_GET_TRANPROCESSINFO,
     API_GET_TRANPROCESSINFO,
     API_POST_TRANPROCESSINFO,
     API_POST_TRANPROCESSINFO,
-    API_POST_AUTOMOBILE_TRANPRICE_CAR
+    API_POST_AUTOMOBILE_TRANPRICE_CAR,
+    API_GET_CARNUMBER,
+    API_GET_DRIVERINFO
 } from '@/api/V2/transport'
 } from '@/api/V2/transport'
 // 司机列表
 // 司机列表
 export const selectDriver = appRx.get(API_GET_TRAN_DRIVERINFO, errorCatcher, errorHandle, filter)
 export const selectDriver = appRx.get(API_GET_TRAN_DRIVERINFO, errorCatcher, errorHandle, filter)
@@ -96,4 +98,8 @@ export const setUpTranPriceCar = appRx.post(API_POST_AUTOMOBILE_TRANPRICE_CAR, e
 //删除车辆
 //删除车辆
 export const delhaulagestage = appRx.post(API_POST_DEL_HAULAGE_STAGE, errorCatcher, errorHandle, filter)
 export const delhaulagestage = appRx.post(API_POST_DEL_HAULAGE_STAGE, errorCatcher, errorHandle, filter)
 // 导入
 // 导入
-export const importApplFileUrl = appRx.get(API_GET_IMPORT, errorCatcher, errorHandle, filter)
+export const importApplFileUrl = appRx.get(API_GET_IMPORT, errorCatcher, errorHandle, filter)
+// 车牌号
+export const getcarNumber = appRx.get(API_GET_CARNUMBER, errorCatcher, errorHandle, filter)
+// 根据车牌号查找司机
+export const getdriverinfo = appRx.get(API_GET_DRIVERINFO, errorCatcher, errorHandle, filter)

+ 0 - 1
src/views/houseSelfCollect/component/paymentPrint.vue

@@ -196,7 +196,6 @@
       },
       },
       printBig() {
       printBig() {
         
         
-          localStorage.setItem('print_pay_data',JSON.stringify(this.printData))
          window.open('../../../../../static/payprint.html?type=2&dataList=' +JSON.stringify(this.printData))
          window.open('../../../../../static/payprint.html?type=2&dataList=' +JSON.stringify(this.printData))
       },
       },
     },
     },

+ 73 - 69
src/views/houseSelfCollect/inspectionManagementNew.vue

@@ -236,8 +236,7 @@
                   <ws-input v-model="deptBudgetList.agent" placeholder="自动获取,不可编辑" maxlength="100" disabled
                   <ws-input v-model="deptBudgetList.agent" placeholder="自动获取,不可编辑" maxlength="100" disabled
                     size="small" />
                     size="small" />
                 </ws-form-item>
                 </ws-form-item>
-
-                <ws-form-item v-if='statusTypetext == "初检" && serviceManagementType == 1' label="运费(元/吨)" span="1"
+                <!-- <ws-form-item v-if='statusTypetext == "初检" && serviceManagementType == 1' label="运费(元/吨)" span="1"
                   prop="freight">
                   prop="freight">
                   <ws-input v-model="deptBudgetList.freight" placeholder="请输入运费" size="small" type="number"
                   <ws-input v-model="deptBudgetList.freight" placeholder="请输入运费" size="small" type="number"
                     @mousewheel.native.prevent />
                     @mousewheel.native.prevent />
@@ -246,7 +245,7 @@
                       position: relative;
                       position: relative;
                       top: -1px;
                       top: -1px;
                     " src="../../../public/img/edit.png" @click="editClick(2)" alt="" />
                     " src="../../../public/img/edit.png" @click="editClick(2)" alt="" />
-                </ws-form-item>
+                </ws-form-item> -->
                 <ws-form-item v-if='serviceManagementType == 1' label="入库类型" span="1">
                 <ws-form-item v-if='serviceManagementType == 1' label="入库类型" span="1">
                   <ws-select v-model="deptBudgetList.inOutType" placeholder class="typeselect"
                   <ws-select v-model="deptBudgetList.inOutType" placeholder class="typeselect"
                     @change="selectstorageType" :disabled="isSelectType">
                     @change="selectstorageType" :disabled="isSelectType">
@@ -279,7 +278,7 @@
                     v-if="options2.length == 0 && serviceManagementType == 1 || serviceManagementType == 3 && carNumberList.length == 0"
                     v-if="options2.length == 0 && serviceManagementType == 1 || serviceManagementType == 3 && carNumberList.length == 0"
                     v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7" size="small" />
                     v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7" size="small" />
                   <el-select :disabled="disabled2" v-if="carstatus && options2.length > 0 && serviceManagementType != 3"
                   <el-select :disabled="disabled2" v-if="carstatus && options2.length > 0 && serviceManagementType != 3"
-                    filterable clearable v-model="deptBudgetList.carNo" placeholder="请选择车牌号" class="typeselect"
+                    filterable clearable v-model="deptBudgetList.carNo1" placeholder="请选择车牌号" class="typeselect"
                     @change="carChange($event, 0)">
                     @change="carChange($event, 0)">
                     <el-option v-for="(item, index) in options2" :key="index"
                     <el-option v-for="(item, index) in options2" :key="index"
                       :label="item.carNo + '(' + item.tranCarNo + ')'" :value="index" />
                       :label="item.carNo + '(' + item.tranCarNo + ')'" :value="index" />
@@ -939,28 +938,31 @@ export default {
         }
         }
         // debugger
         // debugger
         //客户
         //客户
-        getcustomer({
-          warehouseId: this.cangid,
-          goodsName: this.deptBudgetList.goodsName
-        })
-          .toPromise()
-          .then((response) => {
-            this.customerList1 = response
-            this.customerList = []
-            let customer = response
-            for (let i = 0; i < response.length; i++) {
-              if (response[i].supplier) {
-                customer = response[i].customerName + '(' + response[i].customerPhone + ')' + '-' + response[i]
-                  .supplier
-              } else {
-                customer = response[i].customerName + '(' + response[i].customerPhone + ')'
-              }
-              this.customerList.push({
-                valueKey: i,
-                value: customer,
-              })
-            }
+        if(this.serviceManagementType==3){
+          getcustomer({
+            warehouseId: this.cangid,
+            goodsName: this.deptBudgetList.goodsName
           })
           })
+            .toPromise()
+            .then((response) => {
+              this.customerList1 = response
+              this.customerList = []
+              let customer = response
+              for (let i = 0; i < response.length; i++) {
+                if (response[i].supplier) {
+                  customer = response[i].customerName + '(' + response[i].customerPhone + ')' + '-' + response[i]
+                    .supplier
+                } else {
+                  customer = response[i].customerName + '(' + response[i].customerPhone + ')'
+                }
+                this.customerList.push({
+                  valueKey: i,
+                  value: customer,
+                })
+              }
+            })
+        }
+        
         for (var i = 0; i < this.purchasePriceList.length; i++) {
         for (var i = 0; i < this.purchasePriceList.length; i++) {
           if (this.purchasePriceList[i].goodsName == this.deptBudgetList.goodsName) {
           if (this.purchasePriceList[i].goodsName == this.deptBudgetList.goodsName) {
             this.$set(this.deptBudgetList, 'buckleWeightRatio', this.purchasePriceList[i].deductWeight)
             this.$set(this.deptBudgetList, 'buckleWeightRatio', this.purchasePriceList[i].deductWeight)
@@ -1514,27 +1516,27 @@ export default {
           })
           })
           return
           return
         }
         }
-        if (!String(this.deptBudgetList.freight)) {
-          this.$message({
-            message: '运费不能为空',
-            type: 'warning',
-          })
-          return
-        }
-        if (
-          this.deptBudgetList.freight < 0 ||
-          this.deptBudgetList.freight > 100000 ||
-          (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
-            String(this.deptBudgetList.freight).length -
-            (String(this.deptBudgetList.freight).indexOf('.') + 1) >
-            2)
-        ) {
-          this.$message({
-            message: '运费输入错误',
-            type: 'warning',
-          })
-          return
-        }
+        // if (!String(this.deptBudgetList.freight)) {
+        //   this.$message({
+        //     message: '运费不能为空',
+        //     type: 'warning',
+        //   })
+        //   return
+        // }
+        // if (
+        //   this.deptBudgetList.freight < 0 ||
+        //   this.deptBudgetList.freight > 100000 ||
+        //   (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
+        //     String(this.deptBudgetList.freight).length -
+        //     (String(this.deptBudgetList.freight).indexOf('.') + 1) >
+        //     2)
+        // ) {
+        //   this.$message({
+        //     message: '运费输入错误',
+        //     type: 'warning',
+        //   })
+        //   return
+        // }
         if (!this.deptBudgetList.inOutDate) {
         if (!this.deptBudgetList.inOutDate) {
           this.$message({
           this.$message({
             message: '入库日期不能为空!',
             message: '入库日期不能为空!',
@@ -1992,7 +1994,7 @@ export default {
       if (this.reader) {
       if (this.reader) {
         this.reader.cancel()
         this.reader.cancel()
       }
       }
-      if(this.qyJurisdiction&&this.serviceManagementType==1&&this.statusTypetext=='初检'){
+      if(this.qyJurisdiction&&this.serviceManagementType==1&&this.statusTypetext=='初检'&&!this.zjJurisdiction&&!this.fjJurisdiction&&!this.qrJurisdiction){
         this.$message({
         this.$message({
             message: '钎样员只能进行收购入库添加',
             message: '钎样员只能进行收购入库添加',
             type: 'warning',
             type: 'warning',
@@ -2054,27 +2056,27 @@ export default {
             })
             })
             return
             return
           }
           }
-          if (!String(this.deptBudgetList.freight)) {
-            this.$message({
-              message: '运费不能为空',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.freight < 0 ||
-            this.deptBudgetList.freight > 100000 ||
-            (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
-              String(this.deptBudgetList.freight).length -
-              (String(this.deptBudgetList.freight).indexOf('.') + 1) >
-              2)
-          ) {
-            this.$message({
-              message: '运费输入错误',
-              type: 'warning',
-            })
-            return
-          }
+          // if (!String(this.deptBudgetList.freight)) {
+          //   this.$message({
+          //     message: '运费不能为空',
+          //     type: 'warning',
+          //   })
+          //   return
+          // }
+          // if (
+          //   this.deptBudgetList.freight < 0 ||
+          //   this.deptBudgetList.freight > 100000 ||
+          //   (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
+          //     String(this.deptBudgetList.freight).length -
+          //     (String(this.deptBudgetList.freight).indexOf('.') + 1) >
+          //     2)
+          // ) {
+          //   this.$message({
+          //     message: '运费输入错误',
+          //     type: 'warning',
+          //   })
+          //   return
+          // }
           if (!this.deptBudgetList.inOutDate) {
           if (!this.deptBudgetList.inOutDate) {
             this.$message({
             this.$message({
               message: '入库日期不能为空!',
               message: '入库日期不能为空!',
@@ -2724,7 +2726,7 @@ export default {
                 }
                 }
                 // console.log(delete this.deptBudgetList.status)
                 // console.log(delete this.deptBudgetList.status)
               if (this.statusTypetext == '初检') {
               if (this.statusTypetext == '初检') {
-                if(this.zjJurisdiction){
+                if(this.zjJurisdiction&&this.serviceManagementType==3){
                   this.deptBudgetList.outType=this.outType
                   this.deptBudgetList.outType=this.outType
                 }
                 }
                 
                 
@@ -2906,10 +2908,12 @@ export default {
                   })
                   })
               } else if (this.statusTypetext == '复检') {
               } else if (this.statusTypetext == '复检') {
                 this.deptBudgetList.flag = 1
                 this.deptBudgetList.flag = 1
+                this.$delete(this.deptBudgetList,'statusFlag')
                 getinspectEdit(this.deptBudgetList)
                 getinspectEdit(this.deptBudgetList)
                   .toPromise()
                   .toPromise()
                   .then((response) => {
                   .then((response) => {
                     this.deptBudgetList.id=kid
                     this.deptBudgetList.id=kid
+                    this.deptBudgetList.statusFlag = 1
                     addstorageputList(this.deptBudgetList)
                     addstorageputList(this.deptBudgetList)
                       .toPromise()
                       .toPromise()
                       .then((response) => {
                       .then((response) => {

+ 3 - 0
src/views/houseSelfCollect/inspectionManagementrecord.vue

@@ -57,6 +57,9 @@
           <span class="water-line">|</span>
           <span class="water-line">|</span>
           <span class="water-right">{{scope.row.reWaterContent ? scope.row.reWaterContent : '未复检' }}</span>
           <span class="water-right">{{scope.row.reWaterContent ? scope.row.reWaterContent : '未复检' }}</span>
         </template>
         </template>
+      </el-table-column>
+      <el-table-column prop="reMemo" label="复检备注" width="120">
+       
       </el-table-column>
       </el-table-column>
       <el-table-column prop="type" label="类型"></el-table-column>
       <el-table-column prop="type" label="类型"></el-table-column>
       <el-table-column :key='Math.random()' v-if='serviceManagementType==1' prop="cost" label="成本(元/吨)"></el-table-column>
       <el-table-column :key='Math.random()' v-if='serviceManagementType==1' prop="cost" label="成本(元/吨)"></el-table-column>

+ 1 - 0
src/views/houseSelfCollect/settlement.vue

@@ -385,6 +385,7 @@
         window.open('../../../../../static/payprint.html?type=1&dataList=' + JSON.stringify(this.printData))
         window.open('../../../../../static/payprint.html?type=1&dataList=' + JSON.stringify(this.printData))
       },
       },
       printBig() {
       printBig() {
+        localStorage.setItem('print_pay_data',JSON.stringify(this.printData))
         window.open('../../../../../static/payprint.html?type=2&dataList=' + JSON.stringify(this.printData))
         window.open('../../../../../static/payprint.html?type=2&dataList=' + JSON.stringify(this.printData))
       },
       },
       getList() {
       getList() {

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

@@ -2135,7 +2135,7 @@
             } else if (this.outContractNo[i].inOutType == '移库出库') {
             } else if (this.outContractNo[i].inOutType == '移库出库') {
               for (let q = 0; q < this.warehouseList1.length; q++) {
               for (let q = 0; q < this.warehouseList1.length; q++) {
                 if (this.warehouseList1[q].warehouseName == this.warehouseName) {
                 if (this.warehouseList1[q].warehouseName == this.warehouseName) {
-                  if(this.warehouseList1[q].warehouseType==2&&this.warehouseList1[q].createType==1&&this.outContractNo[i].priceType=='定价销售'){
+                  if(this.warehouseList1[q].warehouseType==2&&this.warehouseList1[q].createType==1&&this.outContractNo[i].priceType=='定价采购'){
                     // console.log(this.outContractNo[i].contractPrice,11111111111)
                     // console.log(this.outContractNo[i].contractPrice,11111111111)
                     this.priceedit=true
                     this.priceedit=true
                     this.weighingList.contractPrice=this.outContractNo[i].contractPrice
                     this.weighingList.contractPrice=this.outContractNo[i].contractPrice

+ 1 - 1
src/views/personnelManagement/cardReplacementManagement.vue

@@ -90,7 +90,7 @@
         form:{},
         form:{},
         dialogVisible2:false,
         dialogVisible2:false,
         deptCircularPage: {},
         deptCircularPage: {},
-        searchType:'1',
+        searchType:'2',
         searchKeyWord:'',
         searchKeyWord:'',
         strokeType:'1',
         strokeType:'1',
         title:'附件',
         title:'附件',

+ 1 - 1
src/views/personnelManagement/leaveList.vue

@@ -103,7 +103,7 @@
         outerVisibleAdd: false,
         outerVisibleAdd: false,
         outerVisibleReturn: false,
         outerVisibleReturn: false,
         contractType: 2,
         contractType: 2,
-        searchType: '',
+        searchType: '1',
         // 提交类型
         // 提交类型
         submitType: true,
         submitType: true,
         size: 10,
         size: 10,

+ 6 - 3
src/views/profitable/expenseallot.vue

@@ -78,7 +78,7 @@
           <el-table-column v-if='deptBudgetList.expensesPurpose==1||deptBudgetList.expensesPurpose==2' prop="date" label="日期">
           <el-table-column v-if='deptBudgetList.expensesPurpose==1||deptBudgetList.expensesPurpose==2' prop="date" label="日期">
             <template slot-scope="scope">
             <template slot-scope="scope">
                <ws-select v-model="scope.row.receiptDocDate" placeholder="选择日期" @change="((value)=>{selecttime(value, scope.row,scope.$index)})">
                <ws-select v-model="scope.row.receiptDocDate" placeholder="选择日期" @change="((value)=>{selecttime(value, scope.row,scope.$index)})">
-                <ws-option v-for="item in datelist[scope.$index]" :key="item.time" :label="item.time" :value="item.time"
+                <ws-option v-for="item in datelist[scope.$index]" :key="item.time" :label="item.time+item.goodsSource" :value="item.time"
                   style="color: #8890b1" />
                   style="color: #8890b1" />
               </ws-select>
               </ws-select>
             </template>
             </template>
@@ -89,6 +89,8 @@
               value-format="yyyy-MM-dd"   ></el-date-picker>
               value-format="yyyy-MM-dd"   ></el-date-picker>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
+          <el-table-column v-if='deptBudgetList.expensesPurpose==2' prop="goodsSource" label="货源">
+            </el-table-column>
           <el-table-column v-if='deptBudgetList.expensesPurpose==3' prop="date" label="货源">
           <el-table-column v-if='deptBudgetList.expensesPurpose==3' prop="date" label="货源">
               <template slot-scope="scope">
               <template slot-scope="scope">
                 <!-- {{scope.row.goodsourcelist}} -->
                 <!-- {{scope.row.goodsourcelist}} -->
@@ -211,7 +213,7 @@
           .then(response => {
           .then(response => {
             for (let i = 0; i < response.length; i++) {
             for (let i = 0; i < response.length; i++) {
               response[i].issuingDate=response[i].issuingTime.split(' ')[0]
               response[i].issuingDate=response[i].issuingTime.split(' ')[0]
-              arr.push({time:response[i].issuingDate,id:response[i].id,weight:response[i].inWarehouseWeight})
+              arr.push({time:response[i].issuingDate,id:response[i].id,weight:response[i].inWarehouseWeight,goodsSource:response[i].goodsSource})
             }
             }
             this.$set(this.datelist,index,JSON.parse(JSON.stringify(arr)))
             this.$set(this.datelist,index,JSON.parse(JSON.stringify(arr)))
           })
           })
@@ -270,6 +272,7 @@
           if(this.datelist[index][i].time==e){
           if(this.datelist[index][i].time==e){
             item.orderId=this.datelist[index][i].id
             item.orderId=this.datelist[index][i].id
             item.inWarehouseWeight=this.datelist[index][i].weight
             item.inWarehouseWeight=this.datelist[index][i].weight
+            item.goodsSource=this.datelist[index][i].goodsSource
           }
           }
         }
         }
         if(this.moneys=='按重量自动分配'){
         if(this.moneys=='按重量自动分配'){
@@ -327,7 +330,7 @@
             }
             }
           }
           }
         this.deptBudgetList.expenseAllocationInfoList=this.feeDetailsDistributions
         this.deptBudgetList.expenseAllocationInfoList=this.feeDetailsDistributions
-         if(this.deptBudgetList.expensesPurpose==1){
+         if(this.deptBudgetList.expensesPurpose==1||this.deptBudgetList.expensesPurpose==2){
         var data=[]
         var data=[]
           for (let i = 0; i < this.feeDetailsDistributions.length; i++) {
           for (let i = 0; i < this.feeDetailsDistributions.length; i++) {
             if(data.length==0){
             if(data.length==0){

+ 7 - 3
src/views/profitable/expenseallotaduit.vue

@@ -15,6 +15,8 @@
           <el-form-item  label-width='100px' label="用途" span="1" prop="purpose" class="readonly">
           <el-form-item  label-width='100px' label="用途" span="1" prop="purpose" class="readonly">
             <ws-select disabled v-model="deptBudgetList.expensesPurpose" placeholder="" class="typeselect" >
             <ws-select disabled v-model="deptBudgetList.expensesPurpose" placeholder="" class="typeselect" >
               <ws-option label="合同费用" value="1"
               <ws-option label="合同费用" value="1"
+                style="color: #8890b1" />
+                <ws-option label="运费" value="2"
                 style="color: #8890b1" />
                 style="color: #8890b1" />
                 <ws-option label="库点费用" value="3"
                 <ws-option label="库点费用" value="3"
                 style="color: #8890b1" />
                 style="color: #8890b1" />
@@ -57,12 +59,12 @@
           </div>
           </div>
         </el-form-item>
         </el-form-item>
         </el-form>
         </el-form>
-        <div v-if='deptBudgetList.expensesPurpose==1&&deptBudgetList.costType==3||deptBudgetList.expensesPurpose==3' style='width:90%;margin:10px auto;'>
+        <div v-if='deptBudgetList.expensesPurpose==1&&deptBudgetList.costType==3||deptBudgetList.expensesPurpose==3||deptBudgetList.expensesPurpose==2' style='width:90%;margin:10px auto;'>
           <div style='margin-bottom:20px;display:flex;justify-content: space-between;'>
           <div style='margin-bottom:20px;display:flex;justify-content: space-between;'>
             <div>费用分配</div><span>合计分配:{{amount}}元</span>  </div>
             <div>费用分配</div><span>合计分配:{{amount}}元</span>  </div>
           <!-- <div> -->
           <!-- <div> -->
           <el-table :data="feeDetailsDistributions">
           <el-table :data="feeDetailsDistributions">
-            <el-table-column v-if='deptBudgetList.purpose=="合同费用"' prop="date" label="仓库名称" min-width="110">
+            <el-table-column v-if='deptBudgetList.purpose=="合同费用"||deptBudgetList.expensesPurpose==2' prop="date" label="仓库名称" min-width="110">
               <template slot-scope="scope">
               <template slot-scope="scope">
                 <ws-select disabled v-model="scope.row.warehouseName" placeholder="选择仓库" >
                 <ws-select disabled v-model="scope.row.warehouseName" placeholder="选择仓库" >
                   <ws-option v-for="item in warehouseList" :key="item.warehouseName" :label="item.warehouseName" :value="item.warehouseName"
                   <ws-option v-for="item in warehouseList" :key="item.warehouseName" :label="item.warehouseName" :value="item.warehouseName"
@@ -70,7 +72,7 @@
                 </ws-select>
                 </ws-select>
               </template>
               </template>
             </el-table-column>
             </el-table-column>
-            <el-table-column v-if='deptBudgetList.expensesPurpose==1' prop="date" label="日期">
+            <el-table-column v-if='deptBudgetList.expensesPurpose==1||deptBudgetList.expensesPurpose==2' prop="date" label="日期">
               <template slot-scope="scope">
               <template slot-scope="scope">
                 <ws-select disabled v-model="scope.row.receiptDocDate" placeholder="选择日期" >
                 <ws-select disabled v-model="scope.row.receiptDocDate" placeholder="选择日期" >
                   <ws-option v-for="item in datelist" :key="item.time" :label="item.time" :value="item.time"
                   <ws-option v-for="item in datelist" :key="item.time" :label="item.time" :value="item.time"
@@ -84,6 +86,8 @@
                 value-format="yyyy-MM-dd"   ></el-date-picker>
                 value-format="yyyy-MM-dd"   ></el-date-picker>
               </template>
               </template>
             </el-table-column>
             </el-table-column>
+            <el-table-column v-if='deptBudgetList.expensesPurpose==2' prop="goodsSource" label="货源">
+            </el-table-column>
             <el-table-column v-if='deptBudgetList.expensesPurpose==3' prop="date" label="货源">
             <el-table-column v-if='deptBudgetList.expensesPurpose==3' prop="date" label="货源">
                 <template slot-scope="scope">
                 <template slot-scope="scope">
                   <ws-select disabled v-model="scope.row.goodsSource" placeholder="选择货源">
                   <ws-select disabled v-model="scope.row.goodsSource" placeholder="选择货源">

+ 12 - 1
src/views/profitable/expensemanagementdetails.vue

@@ -30,6 +30,11 @@
           <el-button style="margin-left:10px" @click="typeChange('')" :type="searchType == ''?'primary':''">全部</el-button>
           <el-button style="margin-left:10px" @click="typeChange('')" :type="searchType == ''?'primary':''">全部</el-button>
           <el-button @click="typeChange(1)" :type="searchType == 1?'primary':''">收入</el-button>
           <el-button @click="typeChange(1)" :type="searchType == 1?'primary':''">收入</el-button>
           <el-button @click="typeChange(2)" :type="searchType == 2?'primary':''">支出</el-button>
           <el-button @click="typeChange(2)" :type="searchType == 2?'primary':''">支出</el-button>
+          <el-button style="margin-left:30px !important;" @click="costChange('')" :type="expensesPurpose == ''?'primary':''">全部费用</el-button>
+          <el-button @click="costChange(3)" :type="expensesPurpose == 3?'primary':''">库点费用</el-button>
+          <el-button @click="costChange(1)" :type="expensesPurpose == 1?'primary':''">合同费用</el-button>
+          <el-button @click="costChange(5)" :type="expensesPurpose == 5?'primary':''">经营性费用</el-button>
+          <el-button @click="costChange(2)" :type="expensesPurpose == 2?'primary':''">运费</el-button>
         </el-col>
         </el-col>
         <el-col style='text-align:right;' :span="6">
         <el-col style='text-align:right;' :span="6">
           <el-badge v-if="approveStatus" is-dot class="item">
           <el-badge v-if="approveStatus" is-dot class="item">
@@ -193,6 +198,7 @@
         currentPage: 1,
         currentPage: 1,
         pageSize: 10,
         pageSize: 10,
         size:9,
         size:9,
+        expensesPurpose:'',
         recordList:[],
         recordList:[],
         compId:localStorage.getItem('ws-pf_compId'),
         compId:localStorage.getItem('ws-pf_compId'),
         dialogVisible1:false,
         dialogVisible1:false,
@@ -348,6 +354,10 @@
         this.searchType = num
         this.searchType = num
         this.getList()
         this.getList()
       },
       },
+      costChange(num){
+        this.expensesPurpose = num
+        this.getList()
+      },
       edit(row){
       edit(row){
         this.$router.push({name:'cashoutedit',query:{id:row.id}})
         this.$router.push({name:'cashoutedit',query:{id:row.id}})
       },
       },
@@ -471,7 +481,8 @@
             searchKeyWord:this.searchKeyWord,
             searchKeyWord:this.searchKeyWord,
             currentPage: this.currentPage,
             currentPage: this.currentPage,
             pageSize:this.pageSize ,
             pageSize:this.pageSize ,
-            searchType:this.searchType
+            searchType:this.searchType,
+            expensesPurpose:this.expensesPurpose
           })
           })
           .toPromise()
           .toPromise()
           .then(response => {
           .then(response => {

+ 38 - 11
src/views/profitable/expensemanagentedit.vue

@@ -18,6 +18,8 @@
          <el-form-item  label-width='100px' label="用途" span="1" prop="purpose" class="readonly">
          <el-form-item  label-width='100px' label="用途" span="1" prop="purpose" class="readonly">
             <ws-select disabled v-model="deptBudgetList.expensesPurpose" placeholder="" class="typeselect" >
             <ws-select disabled v-model="deptBudgetList.expensesPurpose" placeholder="" class="typeselect" >
               <ws-option label="合同费用" value="1"
               <ws-option label="合同费用" value="1"
+                style="color: #8890b1" />
+                <ws-option label="运费" value="2"
                 style="color: #8890b1" />
                 style="color: #8890b1" />
                 <ws-option label="库点费用" value="3"
                 <ws-option label="库点费用" value="3"
                 style="color: #8890b1" />
                 style="color: #8890b1" />
@@ -65,8 +67,8 @@
        />
        />
         </el-form-item>
         </el-form-item>
         </el-form>
         </el-form>
-        <div v-if='deptBudgetList.purpose=="合同费用"&&deptBudgetList.type=="非粮款"||deptBudgetList.purpose=="库点费用"' class='expensetitle'>费用分配</div>
-        <div v-if='deptBudgetList.purpose=="合同费用"&&deptBudgetList.type=="非粮款"||deptBudgetList.purpose=="库点费用"' style='margin:0  auto 10px;width:90%;'>
+        <div v-if='deptBudgetList.purpose=="合同费用"&&deptBudgetList.type=="非粮款"||deptBudgetList.purpose=="库点费用"||deptBudgetList.expensesPurpose==2' class='expensetitle'>费用分配</div>
+        <div v-if='deptBudgetList.purpose=="合同费用"&&deptBudgetList.type=="非粮款"||deptBudgetList.purpose=="库点费用"||deptBudgetList.expensesPurpose==2' style='margin:0  auto 10px;width:90%;'>
             <ws-select v-model="mode" placeholder="费用分配方式" @change="modeselect">
             <ws-select v-model="mode" placeholder="费用分配方式" @change="modeselect">
           <ws-option v-for="item in modeList" :key="item.value" :label="item.value" :value="item.value"
           <ws-option v-for="item in modeList" :key="item.value" :label="item.value" :value="item.value"
             style="color: #8890b1" />
             style="color: #8890b1" />
@@ -92,8 +94,8 @@
         </ws-select>
         </ws-select>
         <span v-if='mode!="暂不分配"'>合计分配:{{amount}}元</span>  
         <span v-if='mode!="暂不分配"'>合计分配:{{amount}}元</span>  
         </div>
         </div>
-        <el-table ref="tableref" v-if='deptBudgetList.purpose=="合同费用"&&deptBudgetList.type=="非粮款"&&mode!="暂不分配"||deptBudgetList.purpose=="库点费用"&&mode!="暂不分配"' :data="feeDetailsDistributions" style="width: 90%;margin:0 auto;">
-          <el-table-column v-if='deptBudgetList.purpose=="合同费用"' prop="date" label="仓库名称" min-width="110">
+        <el-table ref="tableref" v-if='deptBudgetList.purpose=="合同费用"&&deptBudgetList.type=="非粮款"&&mode!="暂不分配"||deptBudgetList.purpose=="库点费用"&&mode!="暂不分配"||deptBudgetList.expensesPurpose==2&&mode!="暂不分配"' :data="feeDetailsDistributions" style="width: 90%;margin:0 auto;">
+          <el-table-column v-if='deptBudgetList.purpose=="合同费用"||deptBudgetList.expensesPurpose==2' prop="date" label="仓库名称" min-width="110">
             <template slot-scope="scope">
             <template slot-scope="scope">
               <el-select v-model="scope.row.warehouseName" placeholder="选择仓库" @change="((value)=>{selectware(value, scope.$index)})">
               <el-select v-model="scope.row.warehouseName" placeholder="选择仓库" @change="((value)=>{selectware(value, scope.$index)})">
                 <el-option v-for="item in warehouseList" :key="item.warehouseName" :label="item.warehouseName" :value="item.warehouseName"
                 <el-option v-for="item in warehouseList" :key="item.warehouseName" :label="item.warehouseName" :value="item.warehouseName"
@@ -101,10 +103,10 @@
               </el-select>
               </el-select>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
-          <el-table-column v-if='deptBudgetList.purpose=="合同费用"' prop="date" label="日期">
+          <el-table-column v-if='deptBudgetList.purpose=="合同费用"||deptBudgetList.expensesPurpose==2' prop="date" label="日期">
             <template slot-scope="scope">
             <template slot-scope="scope">
                <ws-select v-model="scope.row.receiptDocDate" placeholder="选择日期" @change="((value)=>{selecttime(value, scope.row,scope.$index)})">
                <ws-select v-model="scope.row.receiptDocDate" placeholder="选择日期" @change="((value)=>{selecttime(value, scope.row,scope.$index)})">
-                <ws-option v-for="item in datelist[scope.$index]" :key="item.time" :label="item.time" :value="item.time"
+                <ws-option v-for="item in datelist[scope.$index]" :key="item.time" :label="item.time+'/'+item.goodsSource" :value="item.time"
                   style="color: #8890b1" />
                   style="color: #8890b1" />
               </ws-select>
               </ws-select>
             </template>
             </template>
@@ -115,6 +117,8 @@
               value-format="yyyy-MM-dd"   ></el-date-picker>
               value-format="yyyy-MM-dd"   ></el-date-picker>
             </template>
             </template>
           </el-table-column>
           </el-table-column>
+          <el-table-column v-if='deptBudgetList.expensesPurpose==2' prop="goodsSource" label="货源">
+            </el-table-column>
           <el-table-column v-if='deptBudgetList.purpose=="库点费用"' prop="date" label="货源">
           <el-table-column v-if='deptBudgetList.purpose=="库点费用"' prop="date" label="货源">
               <template slot-scope="scope">
               <template slot-scope="scope">
                 <!-- {{scope.row.goodsourcelist}} -->
                 <!-- {{scope.row.goodsourcelist}} -->
@@ -241,7 +245,7 @@ weight: 4000}]],
           .then(response => {
           .then(response => {
             for (let i = 0; i < response.length; i++) {
             for (let i = 0; i < response.length; i++) {
               response[i].issuingDate=response[i].issuingTime.split(' ')[0]
               response[i].issuingDate=response[i].issuingTime.split(' ')[0]
-              arr.push({time:response[i].issuingDate,id:response[i].id,weight:response[i].inWarehouseWeight})
+              arr.push({time:response[i].issuingDate,id:response[i].id,weight:response[i].inWarehouseWeight,goodsSource:response[i].goodsSource})
             }
             }
             this.$set(this.datelist,index,JSON.parse(JSON.stringify(arr)))
             this.$set(this.datelist,index,JSON.parse(JSON.stringify(arr)))
           })
           })
@@ -391,7 +395,7 @@ weight: 4000}]],
             this.deptBudgetList.expenseAllocationInfoList=[]
             this.deptBudgetList.expenseAllocationInfoList=[]
           }
           }
         }
         }
-         if(this.deptBudgetList.expensesPurpose==1){
+         if(this.deptBudgetList.expensesPurpose==1||this.deptBudgetList.expensesPurpose==2){
         var data=[]
         var data=[]
           for (let i = 0; i < this.feeDetailsDistributions.length; i++) {
           for (let i = 0; i < this.feeDetailsDistributions.length; i++) {
             if(data.length==0){
             if(data.length==0){
@@ -521,9 +525,32 @@ weight: 4000}]],
           if(row.id==0){
           if(row.id==0){
             this.feeDetailsDistributions.splice(row.index,1)
             this.feeDetailsDistributions.splice(row.index,1)
           }else{
           }else{
+            this.feeDetailsDistributions.splice(row.index,1)
+            var data=localStorage.getItem('expensebh')
+            var data1=[]
+            for (let i = 0; i < data.length; i++) {
+              if(data[i].id==row.id){
+                var data1=data.splice(row.i,1)
+              }
+            }
+            if(data1.length>0){
+              localStorage.setItem('expensebh',data1)
+            }else{
+              localStorage.removeItem('expensebh')
+            }
+            
             deloneallocationinfo({id:row.id}).toPromise().then((response) => {
             deloneallocationinfo({id:row.id}).toPromise().then((response) => {
             })
             })
+            
+            
+            
           }
           }
+        }else{
+          this.$message({
+                message: '费用分配必须保留一个!',
+                type: 'warning',
+          })
+          return
         }
         }
         var weight=0
         var weight=0
         var money=0
         var money=0
@@ -578,7 +605,7 @@ weight: 4000}]],
             this.paymentScreenshot=srcs
             this.paymentScreenshot=srcs
           }
           }
           if(localStorage.getItem('expensebh')){
           if(localStorage.getItem('expensebh')){
-            if(this.deptBudgetList.expensesPurpose==3||this.deptBudgetList.expensesPurpose==1){
+            if(this.deptBudgetList.expensesPurpose==3||this.deptBudgetList.expensesPurpose==1||this.deptBudgetList.expensesPurpose==2){
               this.getgoodsourcelist()
               this.getgoodsourcelist()
             }
             }
           //   console.log(this.feeDetailsDistributions)
           //   console.log(this.feeDetailsDistributions)
@@ -599,12 +626,12 @@ weight: 4000}]],
                     id:data[q].id,weight:data[q].inWarehouseWeight,goodsName:data[q].goodsName,goodsNameKey:data[q].goodsNameKey})
                     id:data[q].id,weight:data[q].inWarehouseWeight,goodsName:data[q].goodsName,goodsNameKey:data[q].goodsNameKey})
                 }
                 }
                 this.$set(this.goodsourcelist,i,JSON.parse(JSON.stringify(arr)))
                 this.$set(this.goodsourcelist,i,JSON.parse(JSON.stringify(arr)))
-              }else if(this.deptBudgetList.expensesPurpose==1){
+              }else if(this.deptBudgetList.expensesPurpose==1||this.deptBudgetList.expensesPurpose==2){
                 const data  = await getwarehousingorder({contractNo:this.deptBudgetList.contractNo,warehouseName:this.feeDetailsDistributions[i].warehouseName}).toPromise()
                 const data  = await getwarehousingorder({contractNo:this.deptBudgetList.contractNo,warehouseName:this.feeDetailsDistributions[i].warehouseName}).toPromise()
                 this.datelist[i]=[]
                 this.datelist[i]=[]
                 for (let q = 0; q < data.length; q++) {
                 for (let q = 0; q < data.length; q++) {
                   data[i].issuingDate=data[i].issuingTime.split(' ')[0]
                   data[i].issuingDate=data[i].issuingTime.split(' ')[0]
-                  arr.push({time:data[i].issuingDate,id:data[i].id,weight:data[i].inWarehouseWeight})
+                  arr.push({time:data[i].issuingDate,id:data[i].id,weight:data[i].inWarehouseWeight,goodsSource:data[i].goodsSource})
                 }
                 }
                 this.$set(this.datelist,i,JSON.parse(JSON.stringify(arr)))
                 this.$set(this.datelist,i,JSON.parse(JSON.stringify(arr)))
               }
               }

+ 12 - 9
src/views/profitable/expensemanagentlook.vue

@@ -18,6 +18,7 @@
             <div style='margin:0 0px 10px;font-weight:bold'>基本信息</div>
             <div style='margin:0 0px 10px;font-weight:bold'>基本信息</div>
           <el-form-item label-width='100px' label="用途" span="1" prop="expensesPurpose">
           <el-form-item label-width='100px' label="用途" span="1" prop="expensesPurpose">
               <span v-if='deptBudgetList.expensesPurpose==1'>合同费用</span>
               <span v-if='deptBudgetList.expensesPurpose==1'>合同费用</span>
+              <span v-if='deptBudgetList.expensesPurpose==2'>运费</span>
               <span v-if='deptBudgetList.expensesPurpose==3'>库点费用</span>
               <span v-if='deptBudgetList.expensesPurpose==3'>库点费用</span>
               <span v-if='deptBudgetList.expensesPurpose==5'>经营性费用</span>
               <span v-if='deptBudgetList.expensesPurpose==5'>经营性费用</span>
           </el-form-item>
           </el-form-item>
@@ -75,7 +76,7 @@
           <div style='margin-bottom:20px;'>费用分配</div>
           <div style='margin-bottom:20px;'>费用分配</div>
           <!-- <div> -->
           <!-- <div> -->
           <el-table :data="deptBudgetList.expenseAllocationInfoList">
           <el-table :data="deptBudgetList.expenseAllocationInfoList">
-            <el-table-column v-if='deptBudgetList.purpose=="合同费用"' prop="date" label="仓库名称" min-width="110">
+            <el-table-column v-if='deptBudgetList.purpose=="合同费用"||deptBudgetList.expensesPurpose==2' prop="date" label="仓库名称" min-width="110">
               <template slot-scope="scope">
               <template slot-scope="scope">
                 <ws-select disabled v-model="scope.row.warehouseName" placeholder="选择仓库" @change="((value)=>{selectware(value, scope.row)})">
                 <ws-select disabled v-model="scope.row.warehouseName" placeholder="选择仓库" @change="((value)=>{selectware(value, scope.row)})">
                   <ws-option v-for="item in warehouseList" :key="item.warehouseName" :label="item.warehouseName" :value="item.warehouseName"
                   <ws-option v-for="item in warehouseList" :key="item.warehouseName" :label="item.warehouseName" :value="item.warehouseName"
@@ -83,7 +84,7 @@
                 </ws-select>
                 </ws-select>
               </template>
               </template>
             </el-table-column>
             </el-table-column>
-            <el-table-column v-if='deptBudgetList.expensesPurpose==1' prop="date" label="日期">
+            <el-table-column v-if='deptBudgetList.expensesPurpose==1||deptBudgetList.expensesPurpose==2' prop="date" label="日期">
               <template slot-scope="scope">
               <template slot-scope="scope">
                 <ws-select disabled v-model="scope.row.receiptDocDate" placeholder="选择日期" @change="((value)=>{selecttime(value, scope.row)})">
                 <ws-select disabled v-model="scope.row.receiptDocDate" placeholder="选择日期" @change="((value)=>{selecttime(value, scope.row)})">
                   <ws-option v-for="item in datelist" :key="item.time" :label="item.time" :value="item.time"
                   <ws-option v-for="item in datelist" :key="item.time" :label="item.time" :value="item.time"
@@ -97,6 +98,8 @@
                 value-format="yyyy-MM-dd"   ></el-date-picker>
                 value-format="yyyy-MM-dd"   ></el-date-picker>
               </template>
               </template>
             </el-table-column>
             </el-table-column>
+            <el-table-column v-if='deptBudgetList.expensesPurpose==2' prop="goodsSource" label="货源">
+            </el-table-column>
             <el-table-column v-if='deptBudgetList.expensesPurpose==3' prop="date" label="货源">
             <el-table-column v-if='deptBudgetList.expensesPurpose==3' prop="date" label="货源">
                 <template slot-scope="scope">
                 <template slot-scope="scope">
                   <ws-select disabled v-model="scope.row.orderId" placeholder="选择货源" @change="((value)=>{selectgoodsSource(value, scope.row)})">
                   <ws-select disabled v-model="scope.row.orderId" placeholder="选择货源" @change="((value)=>{selectgoodsSource(value, scope.row)})">
@@ -170,13 +173,13 @@
         .toPromise()
         .toPromise()
         .then((response) => {
         .then((response) => {
           this.deptBudgetList=response
           this.deptBudgetList=response
-          // this.srcList=[]
-          // var arr=response.addressUrl.split(',')
-          // for (let i = 0; i < arr.length; i++) {
-          //   if(arr[i]!=''){
-          //     this.srcList.push(arr[i])
-          //   }
-          // }
+          this.srcList=[]
+          var arr=response.addressUrl.split(',')
+          for (let i = 0; i < arr.length; i++) {
+            if(arr[i]!=''){
+              this.srcList.push(arr[i])
+            }
+          }
           if(this.deptBudgetList.expensesPurpose==1){
           if(this.deptBudgetList.expensesPurpose==1){
               getpayeeinfo({compId:localStorage.getItem('ws-pf_compId'),contractNo:response.contractNo}).toPromise()
               getpayeeinfo({compId:localStorage.getItem('ws-pf_compId'),contractNo:response.contractNo}).toPromise()
               .then((response1) => {
               .then((response1) => {

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

@@ -19,7 +19,7 @@
         </div>
         </div>
         <el-form ref="dataList" :model="dataList" label-width="140px">
         <el-form ref="dataList" :model="dataList" label-width="140px">
           <ws-form-item label="标题" span="1" prop="title">
           <ws-form-item label="标题" span="1" prop="title">
-            <el-input v-model="dataList.title" maxlength="16" class="typeselect" placeholder="标题须包含企业简称,不超过16个字" />
+            <el-input v-model="dataList.title" maxlength="20" class="typeselect" placeholder="标题须包含企业简称,不超过20个字" />
             <span class="unchangeable">*</span>
             <span class="unchangeable">*</span>
           </ws-form-item>
           </ws-form-item>
           <ws-form-item label="货名" span="1" prop="goodsName">
           <ws-form-item label="货名" span="1" prop="goodsName">
@@ -534,7 +534,7 @@
           })
           })
           return
           return
         }
         }
-        if (this.dataList.title.length > 16) {
+        if (this.dataList.title.length > 20) {
           this.$message({
           this.$message({
             message: '标题输入错误!',
             message: '标题输入错误!',
             type: 'warning'
             type: 'warning'
@@ -1084,7 +1084,7 @@
 
 
   .container {
   .container {
     overflow: scroll;
     overflow: scroll;
-    height: 93vh;
+    height: 89vh;
   }
   }
 
 
   /deep/.basicInformation .el-form-item .el-form-item__content {
   /deep/.basicInformation .el-form-item .el-form-item__content {

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

@@ -21,7 +21,7 @@
         <el-form ref="dataList" :model="dataList" label-width="140px">
         <el-form ref="dataList" :model="dataList" label-width="140px">
           <!-- 标题 -->
           <!-- 标题 -->
           <ws-form-item label="标题" span="1" prop="title">
           <ws-form-item label="标题" span="1" prop="title">
-            <el-input v-model="dataList.title" maxlength="16" class="typeselect" placeholder="标题须包含企业简称,不超过16个字" />
+            <el-input v-model="dataList.title" maxlength="20" class="typeselect" placeholder="标题须包含企业简称,不超过20个字" />
           </ws-form-item>
           </ws-form-item>
           <!-- 货名 -->
           <!-- 货名 -->
           <ws-form-item label="货名" span="1" prop="goodsName">
           <ws-form-item label="货名" span="1" prop="goodsName">
@@ -424,16 +424,16 @@
         this.dataList.outputPrivate = CodeToText[value[0]]
         this.dataList.outputPrivate = CodeToText[value[0]]
         // this.dataList.outputCity = CodeToText[value[1]]
         // this.dataList.outputCity = CodeToText[value[1]]
       },
       },
-      submit() {
-        if (this.outputYear) {
-          this.startDate = this.dateFormat('YYYY-mm-dd', this.outputYear[0])
-          this.endDate = this.dateFormat('YYYY-mm-dd', this.outputYear[1])
-        } else {
-          this.startDate = ''
-          this.endDate = ''
-        }
-        // this.getList()
-      },
+      // submit() {
+      //   if (this.outputYear) {
+      //     this.startDate = this.dateFormat('YYYY-mm-dd', this.outputYear[0])
+      //     this.endDate = this.dateFormat('YYYY-mm-dd', this.outputYear[1])
+      //   } else {
+      //     this.startDate = ''
+      //     this.endDate = ''
+      //   }
+      //   // this.getList()
+      // },
       //关闭
       //关闭
       close() {
       close() {
         this.$router.push({
         this.$router.push({
@@ -517,7 +517,7 @@
           })
           })
           return
           return
         }
         }
-        if (this.dataList.title.length > 16) {
+        if (this.dataList.title.length > 20) {
           this.$message({
           this.$message({
             message: '标题输入错误!',
             message: '标题输入错误!',
             type: 'warning'
             type: 'warning'
@@ -1070,7 +1070,7 @@
 
 
   .container {
   .container {
     overflow: scroll;
     overflow: scroll;
-    height: 93vh;
+    height: 89vh;
   }
   }
 
 
   /deep/.basicInformation .el-form-item .el-form-item__content {
   /deep/.basicInformation .el-form-item .el-form-item__content {

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

@@ -21,7 +21,7 @@
         <el-form ref="dataList" :model="dataList" label-width="140px">
         <el-form ref="dataList" :model="dataList" label-width="140px">
           <!-- 标题 -->
           <!-- 标题 -->
           <el-form-item label="标题" span="1" prop="title">
           <el-form-item label="标题" span="1" prop="title">
-            <el-input v-model="dataList.title" maxlength="16" class="typeselect" placeholder="标题须包含企业简称,不超过16个字" />
+            <el-input v-model="dataList.title" maxlength="20" class="typeselect" placeholder="标题须包含企业简称,不超过20个字" />
             <span class="unchangeable">*</span>
             <span class="unchangeable">*</span>
           </el-form-item>
           </el-form-item>
           <!-- 货名 -->
           <!-- 货名 -->
@@ -536,7 +536,7 @@
           })
           })
           return
           return
         }
         }
-        if (this.dataList.title.length > 16) {
+        if (this.dataList.title.length > 20) {
           this.$message({
           this.$message({
             message: '标题输入错误!',
             message: '标题输入错误!',
             type: 'warning',
             type: 'warning',
@@ -1123,7 +1123,7 @@
 
 
   .container {
   .container {
     overflow: scroll;
     overflow: scroll;
-    height: 93vh;
+    height: 89vh;
   }
   }
 
 
   /deep/.basicInformation .el-form-item .el-form-item__content {
   /deep/.basicInformation .el-form-item .el-form-item__content {

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

@@ -21,7 +21,7 @@
         <el-form ref="dataList" :model="dataList" label-width="140px">
         <el-form ref="dataList" :model="dataList" label-width="140px">
           <!-- 标题 -->
           <!-- 标题 -->
           <ws-form-item label="标题" span="1" prop="title">
           <ws-form-item label="标题" span="1" prop="title">
-            <el-input v-model="dataList.title" maxlength="16" class="typeselect" placeholder="标题须包含企业简称,不超过16个字" />
+            <el-input v-model="dataList.title" maxlength="20" class="typeselect" placeholder="标题须包含企业简称,不超过20个字" />
           </ws-form-item>
           </ws-form-item>
           <!-- 货名 -->
           <!-- 货名 -->
           <ws-form-item label="货名" span="1" prop="goodsName">
           <ws-form-item label="货名" span="1" prop="goodsName">
@@ -32,7 +32,7 @@
           </ws-form-item>
           </ws-form-item>
           <!-- 计划销售量(吨) -->
           <!-- 计划销售量(吨) -->
           <ws-form-item label="计划销售量(吨)" span="1" prop="plannedSaleVolume">
           <ws-form-item label="计划销售量(吨)" span="1" prop="plannedSaleVolume">
-            <el-input v-model="dataList.plannedSaleVolume" class="typeselect" placeholder="请输入计划采购量" />
+            <el-input v-model="dataList.plannedSaleVolume" class="typeselect" placeholder="请输入计划销售量" />
           </ws-form-item>
           </ws-form-item>
           <!-- 最小成交量 -->
           <!-- 最小成交量 -->
           <ws-form-item label="最小成交量(吨)" span="1" prop="minimumVolume">
           <ws-form-item label="最小成交量(吨)" span="1" prop="minimumVolume">
@@ -426,16 +426,16 @@
         this.dataList.outputPrivate = CodeToText[value[0]]
         this.dataList.outputPrivate = CodeToText[value[0]]
         // this.dataList.outputCity = CodeToText[value[1]]
         // this.dataList.outputCity = CodeToText[value[1]]
       },
       },
-      submit() {
-        if (this.outputYear) {
-          this.startDate = this.dateFormat('YYYY-mm-dd', this.outputYear[0])
-          this.endDate = this.dateFormat('YYYY-mm-dd', this.outputYear[1])
-        } else {
-          this.startDate = ''
-          this.endDate = ''
-        }
-        // this.getList()
-      },
+      // submit() {
+      //   if (this.outputYear) {
+      //     this.startDate = this.dateFormat('YYYY-mm-dd', this.outputYear[0])
+      //     this.endDate = this.dateFormat('YYYY-mm-dd', this.outputYear[1])
+      //   } else {
+      //     this.startDate = ''
+      //     this.endDate = ''
+      //   }
+      //   // this.getList()
+      // },
       //关闭
       //关闭
       close() {
       close() {
         this.$router.push({
         this.$router.push({
@@ -517,7 +517,7 @@
           })
           })
           return
           return
         }
         }
-        if (this.dataList.title.length > 16) {
+        if (this.dataList.title.length > 20) {
           this.$message({
           this.$message({
             message: '标题输入错误!',
             message: '标题输入错误!',
             type: 'warning',
             type: 'warning',
@@ -1096,7 +1096,7 @@
 
 
   .container {
   .container {
     overflow: scroll;
     overflow: scroll;
-    height: 93vh;
+    height: 89vh;
   }
   }
 
 
   /deep/.basicInformation .el-form-item .el-form-item__content {
   /deep/.basicInformation .el-form-item .el-form-item__content {

+ 49 - 25
src/views/statisticalReport/autoSettlementList.vue

@@ -8,10 +8,10 @@
           <ws-button :type="searchType == 2 ? 'primary' : ''" @click="handlestatus(2)">待结算</ws-button>
           <ws-button :type="searchType == 2 ? 'primary' : ''" @click="handlestatus(2)">待结算</ws-button>
           <ws-button :type="searchType == 3 ? 'primary' : ''" @click="handlestatus(3)">已结算</ws-button>
           <ws-button :type="searchType == 3 ? 'primary' : ''" @click="handlestatus(3)">已结算</ws-button>
           <ws-button :type="searchType == '' ? 'primary' : ''" @click="handlestatus('')">全部</ws-button>
           <ws-button :type="searchType == '' ? 'primary' : ''" @click="handlestatus('')">全部</ws-button>
-          <ws-button type="primary" v-hasPermission="`report.transportationReport.view`" @click="handlepass()">通过
-          </ws-button>
-          <ws-button type="primary" v-hasPermission="`report.transportationReport.view`" @click="handlereject()">驳回
+          <ws-button type="primary" v-hasPermission="`report.transportationReport.view`" @click="handlepass()">请款
           </ws-button>
           </ws-button>
+          <!-- <ws-button type="primary" v-hasPermission="`report.transportationReport.view`" @click="handlereject()">驳回
+          </ws-button> -->
           <ws-button type="primary" v-hasPermission="`report.transportationReport.payment`" @click="handlepayment">付款
           <ws-button type="primary" v-hasPermission="`report.transportationReport.payment`" @click="handlepayment">付款
           </ws-button>
           </ws-button>
           <ws-button type="primary" v-hasPermission="`report.transportationReport.draw`" @click="handleninvoice">开发票
           <ws-button type="primary" v-hasPermission="`report.transportationReport.draw`" @click="handleninvoice">开发票
@@ -44,8 +44,7 @@
       <el-row>
       <el-row>
         <div style="color:red">注:审核时,同一运输阶段勾选任意复选框,当前运输阶段下所有条目都通过审核!</div>
         <div style="color:red">注:审核时,同一运输阶段勾选任意复选框,当前运输阶段下所有条目都通过审核!</div>
       </el-row>
       </el-row>
-      <el-table class="wenzi" :data="warehouseList.records" style="width: 100%; margin-top: 20px" ref="warehouseList"
-        border :summary-method="getSummaries" show-summary @row-click="handleRowClick"
+      <el-table class="wenzi" :data="warehouseList.records" style="width: 100%; margin-top: 20px" ref="warehouseList" :summary-method="getSummaries" show-summary @row-click="handleRowClick"
         @selection-change="handleSelectionChange">
         @selection-change="handleSelectionChange">
         <el-table-column :selectable="selectInit" type="selection" width="55"></el-table-column>
         <el-table-column :selectable="selectInit" type="selection" width="55"></el-table-column>
         <el-table-column type="index" label="序号" width="50"></el-table-column>
         <el-table-column type="index" label="序号" width="50"></el-table-column>
@@ -104,14 +103,14 @@
             <!--改结算重量-->
             <!--改结算重量-->
             <i @click="changesettlementWeight(scope.row)" v-if="
             <i @click="changesettlementWeight(scope.row)" v-if="
               (scope.row.settlementWeightchange &&
               (scope.row.settlementWeightchange &&
-                scope.row.approveStatus == '待物流部审核') ||
+                scope.row.status == '待请款') ||
               (scope.row.settlementWeightchange &&
               (scope.row.settlementWeightchange &&
                 scope.row.status == '已驳回')
                 scope.row.status == '已驳回')
             " class="iconfont icon-dui"></i>
             " class="iconfont icon-dui"></i>
             <img v-if="
             <img v-if="
               (!scope.row.settlementWeightchange &&
               (!scope.row.settlementWeightchange &&
                 scope.row.settlementWeight &&
                 scope.row.settlementWeight &&
-                scope.row.approveStatus == '待物流部审核') ||
+                scope.row.status == '待请款') ||
               (!scope.row.settlementWeightchange &&
               (!scope.row.settlementWeightchange &&
                 scope.row.settlementWeight &&
                 scope.row.settlementWeight &&
                 scope.row.status == '已驳回')
                 scope.row.status == '已驳回')
@@ -126,16 +125,14 @@
             <!--改扣款-->
             <!--改扣款-->
             <i @click="changedeductionAmount(scope.row)" v-if="
             <i @click="changedeductionAmount(scope.row)" v-if="
               (scope.row.deductionAmountchange &&
               (scope.row.deductionAmountchange &&
-                scope.row.approveStatus == '待物流部审核') ||
+                scope.row.status == '待请款') ||
               (scope.row.deductionAmountchange &&
               (scope.row.deductionAmountchange &&
                 scope.row.status == '已驳回')
                 scope.row.status == '已驳回')
             " class="iconfont icon-dui"></i>
             " class="iconfont icon-dui"></i>
             <img v-if="
             <img v-if="
               (!scope.row.deductionAmountchange &&
               (!scope.row.deductionAmountchange &&
-                scope.row.deductionAmount &&
-                scope.row.approveStatus == '待物流部审核') ||
+                scope.row.status == '待请款') ||
               (!scope.row.deductionAmountchange &&
               (!scope.row.deductionAmountchange &&
-                scope.row.deductionAmount &&
                 scope.row.status == '已驳回')
                 scope.row.status == '已驳回')
             " width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
             " width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
               src="../../../public/img/edit.png" @click="editdeductionAmount(scope.row)" alt="" />
               src="../../../public/img/edit.png" @click="editdeductionAmount(scope.row)" alt="" />
@@ -164,7 +161,14 @@
           </template>
           </template>
         </el-table-column>
         </el-table-column>
         <el-table-column width="150" class="table_td" label="付款日期" prop="paymentDate"></el-table-column>
         <el-table-column width="150" class="table_td" label="付款日期" prop="paymentDate"></el-table-column>
-        <el-table-column class="table_td" label="账户" prop="">
+        <el-table-column width="150" class="table_td" label="司机/车队" prop="name">
+          <template
+            slot-scope="scope">
+            {{ scope.row.name }}
+            <span v-if="scope.row.fleetFlag==1">(队)</span>
+          </template>
+        </el-table-column>
+        <!-- <el-table-column class="table_td" label="账户" prop="">
           <template slot-scope="scope">
           <template slot-scope="scope">
             <div style="
             <div style="
                 display: inline-block;
                 display: inline-block;
@@ -176,7 +180,7 @@
               查看
               查看
             </div>
             </div>
           </template>
           </template>
-        </el-table-column>
+        </el-table-column> -->
         <el-table-column label="状态" prop="status" width="100px">
         <el-table-column label="状态" prop="status" width="100px">
           <template slot-scope="scope">
           <template slot-scope="scope">
             <span v-if="scope.row.approveStatus != null">{{
             <span v-if="scope.row.approveStatus != null">{{
@@ -310,7 +314,7 @@
     <!--付款截图 -->
     <!--付款截图 -->
     <WinseaContentModal v-model="paymentImg" title="付款截图信息" @on-cancel="handleClose2">
     <WinseaContentModal v-model="paymentImg" title="付款截图信息" @on-cancel="handleClose2">
       <p>查看付款截图</p>
       <p>查看付款截图</p>
-      <ws-upload :editable='false' ref="upload" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx" :comp-id="compId" :appendix-ids="deptBudgetList.addressUrl" :size-limit="size"
+      <ws-upload :editable='false' ref="upload" accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .xls, .xlsx" :comp-id="compId" :appendix-ids="paymentScreenshot1" :size-limit="size"
        />
        />
       <!-- <div v-for="item in paymentScreenshot1">
       <!-- <div v-for="item in paymentScreenshot1">
         <img style="width: 100px; height: 100px" :src="item" alt="" />
         <img style="width: 100px; height: 100px" :src="item" alt="" />
@@ -326,6 +330,7 @@ import {
   autocontract,
   autocontract,
   autopaymoney,
   autopaymoney,
   openinvoicelist,
   openinvoicelist,
+  submitlogistics
   // postaudit,
   // postaudit,
   //   getselectctcontractno,
   //   getselectctcontractno,
 } from '@/model/statisticalReport/index'
 } from '@/model/statisticalReport/index'
@@ -404,7 +409,7 @@ export default {
       deptBudgetTotal: 0,
       deptBudgetTotal: 0,
       currentPage: 1,
       currentPage: 1,
       pageSize: 10,
       pageSize: 10,
-      searchType: '1',
+      searchType: '',
       manualFlag: '',
       manualFlag: '',
       searchKeyWord: '',
       searchKeyWord: '',
       startAddress:'',
       startAddress:'',
@@ -482,6 +487,9 @@ export default {
     this.showType = this.isShow
     this.showType = this.isShow
   },
   },
   methods: {
   methods: {
+    warehouseNameChange(){
+      this.getList()
+    },
     onChange() {
     onChange() {
         this.$refs.upload
         this.$refs.upload
           .handleSaveBill()
           .handleSaveBill()
@@ -864,7 +872,7 @@ export default {
           (String(this.deductionAmount).indexOf('.') + 1) >
           (String(this.deductionAmount).indexOf('.') + 1) >
           2) ||
           2) ||
         (this.deductionAmount && this.deductionAmount > 100000) ||
         (this.deductionAmount && this.deductionAmount > 100000) ||
-        (this.deductionAmount && this.deductionAmount < 1)
+        (this.deductionAmount && this.deductionAmount < 0)
       ) {
       ) {
         this.$message({
         this.$message({
           message: '扣款金额输入错误',
           message: '扣款金额输入错误',
@@ -921,7 +929,7 @@ export default {
       } else {
       } else {
         this.paymentImg = true
         this.paymentImg = true
       }
       }
-      this.paymentScreenshot1 = row.paymentScreenshot.split('$')
+      this.paymentScreenshot1 = row.paymentScreenshot
     },
     },
     //审核
     //审核
     audit(item, index, status, status2, reason) {
     audit(item, index, status, status2, reason) {
@@ -1002,19 +1010,35 @@ export default {
       if (this.modification.length == 0) {
       if (this.modification.length == 0) {
         this.$message.warning('请选择要通过的条目')
         this.$message.warning('请选择要通过的条目')
       } else {
       } else {
-        this.$confirm(`是否确定通过?`, {
+        for (let i = 0; i < this.modification.length; i++) {
+          if(this.modification[i].status=='待请款'&&this.modification[i].approveStatus||this.modification[i].status!='待请款'){
+            this.$message.warning('请选择待请款的条目')
+            return
+          }
+          if(!this.modification[i].unloadingWeight){
+            this.$message.warning('请选择已卸车的车辆')
+            return
+          }
+        }
+        
+        this.$confirm(`是否确定请款?`, {
           cancelButtonText: '取消',
           cancelButtonText: '取消',
           confirmButtonText: '确定',
           confirmButtonText: '确定',
           type: 'warning',
           type: 'warning',
         }).then(() => {
         }).then(() => {
+          submitlogistics({tranSettlementReportList:this.modification}).toPromise()
+        .then((response) => {
+          this.$message.success('请款成功')
+          this.getList()
+        })
           //批次通过  选中列表中 数据一个batchId, 选中列表去重
           //批次通过  选中列表中 数据一个batchId, 选中列表去重
-          var obj = {};
-          that.modification = that.modification.reduce(function (item, next) {
-            obj[next.batchId] ? '' : obj[next.batchId] = true && item.push(next);
-            return item;
-          }, []);
-          console.log('去重后提交数据', that.modification);
-          that.audit(this.modification[0], 0, true, 2)
+          // var obj = {};
+          // that.modification = that.modification.reduce(function (item, next) {
+          //   obj[next.batchId] ? '' : obj[next.batchId] = true && item.push(next);
+          //   return item;
+          // }, []);
+          // console.log('去重后提交数据', that.modification);
+          // that.audit(this.modification[0], 0, true, 2)
         })
         })
       }
       }
     },
     },

+ 8 - 8
src/views/taskManagement/inOutWarehouseTaskEdit.vue

@@ -120,8 +120,8 @@
 					<!-- <el-form-item label="预估运费(元/吨)" span="1">
 					<!-- <el-form-item label="预估运费(元/吨)" span="1">
               {{dataList.estimatedFreight}}
               {{dataList.estimatedFreight}}
 					</el-form-item> -->
 					</el-form-item> -->
-          <!--发货人-->
-          <el-form-item label="发货人">
+          <!--发货负责人-->
+          <el-form-item label="发货负责人">
             {{dataList.agent}}
             {{dataList.agent}}
             <el-option
             <el-option
               v-for="item in options"
               v-for="item in options"
@@ -236,8 +236,8 @@
 					<!-- <el-form-item label="预估运费(元/吨)" span="1" >
 					<!-- <el-form-item label="预估运费(元/吨)" span="1" >
               {{dataList1.estimatedFreight}}
               {{dataList1.estimatedFreight}}
           </el-form-item> -->
           </el-form-item> -->
-          <!--收货人-->
-          <el-form-item label="收货人">
+          <!--收货负责人-->
+          <el-form-item label="收货负责人">
             <el-option
             <el-option
               v-for="item in options"
               v-for="item in options"
               :key="item.value"
               :key="item.value"
@@ -345,8 +345,8 @@
 					<!-- <el-form-item label="预估运费(元/吨)" span="1" >
 					<!-- <el-form-item label="预估运费(元/吨)" span="1" >
           {{dataList.estimatedFreight}}
           {{dataList.estimatedFreight}}
 					</el-form-item> -->
 					</el-form-item> -->
-          <!--发货人-->
-          <el-form-item label="发货人">
+          <!--发货负责人-->
+          <el-form-item label="发货负责人">
             {{dataList.agent}}
             {{dataList.agent}}
             <el-option
             <el-option
               v-for="item in options"
               v-for="item in options"
@@ -689,7 +689,7 @@ export default {
             }
             }
           }
           }
           if(this.dataList.sourceRelationInfoList){
           if(this.dataList.sourceRelationInfoList){
-            if(this.dataList.taskTypeKey==2&&this.dataList.inOutType=="退库"||this.dataList.taskTypeKey==4){
+            if(this.dataList.taskTypeKey==2&&this.dataList.inOutType=='退库'||this.dataList.taskTypeKey==4){
                   this.goods=this.dataList1.sourceId
                   this.goods=this.dataList1.sourceId
                 }else 
                 }else 
               for (let i = 0; i < this.dataList.sourceRelationInfoList.length; i++) {
               for (let i = 0; i < this.dataList.sourceRelationInfoList.length; i++) {
@@ -705,7 +705,7 @@ export default {
 					.then(response1 => {
 					.then(response1 => {
              for (let i = 0; i < response1.length; i++) {
              for (let i = 0; i < response1.length; i++) {
                 if (response1[i].contractNo == this.dataList.contractNo) {
                 if (response1[i].contractNo == this.dataList.contractNo) {
-                    if(response1[i].priceType == "随行就市"){
+                    if(response1[i].priceType == '随行就市'){
                       this.Pricetype = false
                       this.Pricetype = false
                     }else{
                     }else{
                       this.Pricetype = true
                       this.Pricetype = true

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

@@ -567,6 +567,7 @@ export default {
         if (this.contractNoList[i].contractNo == val) {
         if (this.contractNoList[i].contractNo == val) {
             this.deptBudgetList.goodsName = this.contractNoList[i].goodsName
             this.deptBudgetList.goodsName = this.contractNoList[i].goodsName
             this.deptBudgetList.weight= this.contractNoList[i].weight
             this.deptBudgetList.weight= this.contractNoList[i].weight
+            this.deptBudgetList.tranProcessInfoList[0].weight= this.contractNoList[i].weight
             console.log(this.contractNoList[i])
             console.log(this.contractNoList[i])
             if(this.contractNoList[i].inOutType){
             if(this.contractNoList[i].inOutType){
               this.deptBudgetList.sendWarehouse = this.contractNoList[i].sendWarehouse
               this.deptBudgetList.sendWarehouse = this.contractNoList[i].sendWarehouse
@@ -689,7 +690,7 @@ export default {
     loaddata() {
     loaddata() {
       this.deptBudgetList.taskNo = 'YS' + this.getdate() + this.MathRand()
       this.deptBudgetList.taskNo = 'YS' + this.getdate() + this.MathRand()
       this.deptBudgetList.tranProcessInfoList[0].processNo =
       this.deptBudgetList.tranProcessInfoList[0].processNo =
-        this.deptBudgetList.taskNo + '-1'
+        this.deptBudgetList.taskNo 
       // 货名
       // 货名
       packList({ constId: 'CON2' })
       packList({ constId: 'CON2' })
         .toPromise()
         .toPromise()

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

@@ -208,7 +208,7 @@
 					</el-form-item>
 					</el-form-item>
 					<!--重量(吨)-->
 					<!--重量(吨)-->
 					<el-form-item label="重量(吨)">
 					<el-form-item label="重量(吨)">
-						<el-input :disabled='dataList1.inOutType=="收购入库"' @input="weightchange" v-model="dataList1.weight" placeholder="请输入重量(吨)"
+						<el-input :disabled='dataList1.inOutType=="收购入库"||dataList1.inOutType=="移库入库"' @input="weightchange" v-model="dataList1.weight" placeholder="请输入重量(吨)"
 							maxlength="120" size="small" class="huom" />
 							maxlength="120" size="small" class="huom" />
 					</el-form-item>
 					</el-form-item>
 					<!-- 品级 -->
 					<!-- 品级 -->
@@ -248,8 +248,8 @@
 							maxlength="20" size="small" type="number" />
 							maxlength="20" size="small" type="number" />
 					</el-form-item> -->
 					</el-form-item> -->
 					<!-- 经办人-->
 					<!-- 经办人-->
-					<el-form-item label="收货人">
-            <el-select v-model="dataList1.agent" placeholder="请选择收货人" filterable clearable :filter-method="dataFilter1"
+					<el-form-item label="收货负责人">
+            <el-select v-model="dataList1.agent" placeholder="请选择收货负责人" filterable clearable :filter-method="dataFilter1"
               @change="selectstaff1">
               @change="selectstaff1">
               <el-option v-for="item in options1" :key="item.value" :label="item.staffName" :value="item.staffName" />
               <el-option v-for="item in options1" :key="item.value" :label="item.staffName" :value="item.staffName" />
             </el-select>
             </el-select>
@@ -354,8 +354,8 @@
 							maxlength="20" size="small" type="number" />
 							maxlength="20" size="small" type="number" />
 					</el-form-item> -->
 					</el-form-item> -->
 					<!--发货人-->
 					<!--发货人-->
-					<el-form-item label="发货人">
-            <el-select v-model="dataList.agent" placeholder="请选择发货人" filterable clearable
+					<el-form-item label="发货负责人">
+            <el-select v-model="dataList.agent" placeholder="请选择发货负责人" filterable clearable
               @change="selectstaff">
               @change="selectstaff">
               <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
               <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
             </el-select>
             </el-select>

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

@@ -240,7 +240,7 @@
           </el-form-item>
           </el-form-item>
           <!--重量(吨)-->
           <!--重量(吨)-->
           <el-form-item label="重量(吨)">
           <el-form-item label="重量(吨)">
-            <el-input @input="weightchange" v-model="dataList1.weight" placeholder="请输入重量(吨)" maxlength="120"
+            <el-input :disabled='dataList1.inOutType=="收购入库"||dataList1.inOutType=="移库入库"' @input="weightchange" v-model="dataList1.weight" placeholder="请输入重量(吨)" maxlength="120"
               size="small" class="huom" />
               size="small" class="huom" />
           </el-form-item>
           </el-form-item>
           <!-- 品级 -->
           <!-- 品级 -->

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

@@ -261,11 +261,11 @@
 						<el-input  v-model="dataList.estimatedFreight" placeholder="请输入预估运费"
 						<el-input  v-model="dataList.estimatedFreight" placeholder="请输入预估运费"
 							maxlength="20" size="small"  />
 							maxlength="20" size="small"  />
 					</el-form-item> -->
 					</el-form-item> -->
-          <!--发货人-->
-          <el-form-item label="发货人">
+          <!--发货负责人-->
+          <el-form-item label="发货负责人">
             <el-select
             <el-select
               v-model="dataList.agent"
               v-model="dataList.agent"
-              placeholder="请选择发货人"
+              placeholder="请选择发货负责人"
               filterable
               filterable
               disabled
               disabled
               @change="selectstaff"
               @change="selectstaff"
@@ -519,10 +519,10 @@
 							maxlength="20" size="small"  />
 							maxlength="20" size="small"  />
 					</el-form-item> -->
 					</el-form-item> -->
           <!-- 经办人-->
           <!-- 经办人-->
-          <el-form-item label="收货人">
+          <el-form-item label="收货负责人">
             <el-select
             <el-select
               v-model="dataList1.agent"
               v-model="dataList1.agent"
-              placeholder="请选择收货人"
+              placeholder="请选择收货负责人"
               filterable
               filterable
               disabled
               disabled
               @change="selectstaff1"
               @change="selectstaff1"
@@ -729,11 +729,11 @@
 						<el-input v-model="dataList.estimatedFreight" placeholder="请输入预估运费"
 						<el-input v-model="dataList.estimatedFreight" placeholder="请输入预估运费"
 							maxlength="20" size="small"  />
 							maxlength="20" size="small"  />
 					</el-form-item> -->
 					</el-form-item> -->
-          <!--发货人-->
-          <el-form-item label="出库发货人">
+          <!--发货负责人-->
+          <el-form-item label="出库发货负责人">
             <el-select
             <el-select
               v-model="dataList.agent"
               v-model="dataList.agent"
-              placeholder="请选择发货人"
+              placeholder="请选择发货负责人"
               filterable
               filterable
               disabled
               disabled
               @change="selectstaff"
               @change="selectstaff"
@@ -884,16 +884,16 @@ export default {
     this.dataList.weight = 0
     this.dataList.weight = 0
     this.dataList1.weight = 0
     this.dataList1.weight = 0
     this.getList()
     this.getList()
-    if(localStorage.getItem("taskTypeKey")){
-				this.dataList.taskTypeKey=localStorage.getItem("taskTypeKey")
-        this.dataList1.taskTypeKey=localStorage.getItem("taskTypeKey")
+    if(localStorage.getItem('taskTypeKey')){
+				this.dataList.taskTypeKey=localStorage.getItem('taskTypeKey')
+        this.dataList1.taskTypeKey=localStorage.getItem('taskTypeKey')
 				if(this.dataList.taskTypeKey==1||this.dataList.taskTypeKey==3){
 				if(this.dataList.taskTypeKey==1||this.dataList.taskTypeKey==3){
-					this.dataList.warehouseName=localStorage.getItem("warehouse")
-					this.dataList.contractNo=localStorage.getItem("contractNo")
+					this.dataList.warehouseName=localStorage.getItem('warehouse')
+					this.dataList.contractNo=localStorage.getItem('contractNo')
 				}
 				}
 				else if(this.dataList.taskTypeKey==2||this.dataList.taskTypeKey==4){
 				else if(this.dataList.taskTypeKey==2||this.dataList.taskTypeKey==4){
-					this.dataList1.warehouseName=localStorage.getItem("warehouse")
-					this.dataList1.contractNo=localStorage.getItem("contractNo")
+					this.dataList1.warehouseName=localStorage.getItem('warehouse')
+					this.dataList1.contractNo=localStorage.getItem('contractNo')
 				}
 				}
 		}
 		}
     var num = 0
     var num = 0
@@ -912,9 +912,9 @@ export default {
     supplygoods() {
     supplygoods() {
       if (this.dataList.taskTypeKey == 1 || this.dataList.taskTypeKey == 3) {
       if (this.dataList.taskTypeKey == 1 || this.dataList.taskTypeKey == 3) {
         if (this.dataList.warehouseName) {
         if (this.dataList.warehouseName) {
-          localStorage.setItem("warehouse",this.dataList.warehouseName);
-					localStorage.setItem("contractNo",this.dataList.contractNo);
-          localStorage.setItem("taskTypeKey",this.dataList.taskTypeKey);
+          localStorage.setItem('warehouse',this.dataList.warehouseName);
+					localStorage.setItem('contractNo',this.dataList.contractNo);
+          localStorage.setItem('taskTypeKey',this.dataList.taskTypeKey);
           this.$router.push({
           this.$router.push({
             name: 'supplyofgoodsedit',
             name: 'supplyofgoodsedit',
             query: {
             query: {
@@ -932,9 +932,9 @@ export default {
         this.dataList1.taskTypeKey == 4
         this.dataList1.taskTypeKey == 4
       ) {
       ) {
         if (this.dataList1.moveTaskNo || this.dataList1.contractNo) {
         if (this.dataList1.moveTaskNo || this.dataList1.contractNo) {
-          localStorage.setItem("warehouse",this.dataList1.warehouseName);
-					localStorage.setItem("contractNo",this.dataList1.contractNo);
-          localStorage.setItem("taskTypeKey",this.dataList1.taskTypeKey);
+          localStorage.setItem('warehouse',this.dataList1.warehouseName);
+					localStorage.setItem('contractNo',this.dataList1.contractNo);
+          localStorage.setItem('taskTypeKey',this.dataList1.taskTypeKey);
           this.$router.push({
           this.$router.push({
             name: 'outsupplyofgoodsedit',
             name: 'outsupplyofgoodsedit',
             query: {
             query: {
@@ -1123,9 +1123,9 @@ export default {
     },
     },
     //提交按钮
     //提交按钮
     submit() {
     submit() {
-      localStorage.removeItem("warehouse")
-			localStorage.removeItem("contractNo");
-      localStorage.removeItem("taskTypeKey");
+      localStorage.removeItem('warehouse')
+			localStorage.removeItem('contractNo');
+      localStorage.removeItem('taskTypeKey');
       this.dataList.inOutFlag = 1
       this.dataList.inOutFlag = 1
       this.dataList1.inOutFlag = 2
       this.dataList1.inOutFlag = 2
       var supplygoods = JSON.parse(localStorage.getItem('supplygoods'))
       var supplygoods = JSON.parse(localStorage.getItem('supplygoods'))

+ 1 - 1
src/views/tranManagement/tranManagementReceivingFeedback.vue

@@ -102,7 +102,7 @@
         <template slot-scope="scope">
         <template slot-scope="scope">
           <template v-if="scope.row.receivingStatus != '已完货'">
           <template v-if="scope.row.receivingStatus != '已完货'">
             <div class="record" @click="trainSee(scope.row)">查看</div>
             <div class="record" @click="trainSee(scope.row)">查看</div>
-            <div class="adjustment" @click="feedback(scope.row)">反馈</div>
+            <div v-if="scope.row.tranType!='移库'" class="adjustment" @click="feedback(scope.row)">反馈</div>
           </template>
           </template>
           <template v-else>
           <template v-else>
             <div class="record1" @click="trainSee(scope.row)">查看</div>
             <div class="record1" @click="trainSee(scope.row)">查看</div>

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

@@ -300,13 +300,21 @@
                 </template>
                 </template>
               </ws-form-item>
               </ws-form-item>
               <!--箱号-->
               <!--箱号-->
-              <ws-form-item label="箱号:" span="1" prop="caseNo">
+              <ws-form-item label="箱号-1:" span="1" prop="caseNo">
                 <span>{{ item.caseNo }}</span>
                 <span>{{ item.caseNo }}</span>
               </ws-form-item>
               </ws-form-item>
               <!--封号-->
               <!--封号-->
-              <ws-form-item label="封号:" span="1" prop="titleNo">
+              <ws-form-item label="封号-1:" span="1" prop="titleNo">
                 <span>{{ item.titleNo }}</span>
                 <span>{{ item.titleNo }}</span>
               </ws-form-item>
               </ws-form-item>
+              <!--箱号-->
+              <ws-form-item label="箱号-2:" span="1" prop="caseNoOther">
+                <span>{{ item.caseNoOther }}</span>
+              </ws-form-item>
+              <!--封号-->
+              <ws-form-item label="封号-2:" span="1" prop="titleNoOther">
+                <span>{{ item.titleNoOther }}</span>
+              </ws-form-item>
               <!--单价 -->
               <!--单价 -->
               <ws-form-item label="单价(元/吨):" span="1" v-if="deptBudgetList.priceType!=null&&deptBudgetList.priceType=='随行就市'" prop="contractPrice">
               <ws-form-item label="单价(元/吨):" span="1" v-if="deptBudgetList.priceType!=null&&deptBudgetList.priceType=='随行就市'" prop="contractPrice">
                 <ws-input
                 <ws-input

+ 10 - 2
src/views/tranManagement/tranManagementTransporFeedback.vue

@@ -158,13 +158,21 @@
               </template>
               </template>
             </ws-form-item>
             </ws-form-item>
             <!--箱号-->
             <!--箱号-->
-            <ws-form-item label="箱号:" span="1" prop="caseNo">
+            <ws-form-item label="箱号-1:" span="1" prop="caseNo">
               <span>{{ item.caseNo }}</span>
               <span>{{ item.caseNo }}</span>
             </ws-form-item>
             </ws-form-item>
             <!--封号-->
             <!--封号-->
-            <ws-form-item label="封号:" span="1" prop="titleNo">
+            <ws-form-item label="封号-1:" span="1" prop="titleNo">
               <span>{{ item.titleNo }}</span>
               <span>{{ item.titleNo }}</span>
             </ws-form-item>
             </ws-form-item>
+            <!--箱号-->
+            <ws-form-item label="箱号-2:" span="1" prop="caseNoOther">
+                <span>{{ item.caseNoOther }}</span>
+              </ws-form-item>
+              <!--封号-->
+              <ws-form-item label="封号-2:" span="1" prop="titleNoOther">
+                <span>{{ item.titleNoOther }}</span>
+              </ws-form-item>
             <div v-show="item.temporaryDriverFlag == 0 && item.signStatus == '未签合同'" class="signStatus">
             <div v-show="item.temporaryDriverFlag == 0 && item.signStatus == '未签合同'" class="signStatus">
               {{ item.signStatus }}</div>
               {{ item.signStatus }}</div>
             <div v-show="item.temporaryDriverFlag == 0 && item.signStatus == '已签合同'" class="signStatus1">
             <div v-show="item.temporaryDriverFlag == 0 && item.signStatus == '已签合同'" class="signStatus1">

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

@@ -101,7 +101,7 @@
         <template slot-scope="scope">
         <template slot-scope="scope">
           <template v-if="scope.row.feedbackStatus != '已完货'">
           <template v-if="scope.row.feedbackStatus != '已完货'">
             <div class="record" @click="trainSee(scope.row)">查看</div>
             <div class="record" @click="trainSee(scope.row)">查看</div>
-            <div class="adjustment" @click="feedback(scope.row)">反馈</div>
+            <div v-if="scope.row.tranType!='移库'&&scope.row.tranType!='销售出库'" class="adjustment" @click="feedback(scope.row)">反馈</div>
           </template>
           </template>
           <template v-else>
           <template v-else>
             <div class="record1" @click="trainSee(scope.row)">查看</div>
             <div class="record1" @click="trainSee(scope.row)">查看</div>

+ 72 - 3
src/views/tranManagement/tranManagementVehicleDispatching.vue

@@ -177,8 +177,16 @@
               </el-col>
               </el-col>
               <el-col :span="8">
               <el-col :span="8">
                 <el-form-item label="车牌号:" span="1" prop="carNo" label-width="125px">
                 <el-form-item label="车牌号:" span="1" prop="carNo" label-width="125px">
-                  
-                  <el-input :disabled="readonly" v-model="item.carNo" placeholder="" maxlength="120" size="small" />
+                  <el-select :disabled="item.id" v-model="item.carNo" placeholder="请选择车牌号"
+                    filterable clearable @clear="clear" class="row-item" @change="
+                               (val) => {
+                                 carNochange(val, item.tranCarIndex)
+                               }
+                             ">
+                    <el-option v-for="(items, index) in carNoList" :key="index" :label="items.carNumber"
+                      :value="items.carNumber" />
+                  </el-select>
+                  <!-- <el-input :disabled="readonly" v-model="item.carNo" placeholder="" maxlength="120" size="small" /> -->
                 </el-form-item>
                 </el-form-item>
               </el-col>
               </el-col>
               <el-col :span="8">
               <el-col :span="8">
@@ -282,7 +290,9 @@
     dispatchCat,
     dispatchCat,
     delhaulagestage,
     delhaulagestage,
     setUpTranPrice,
     setUpTranPrice,
-    setUpTranPriceCar
+    setUpTranPriceCar,
+    getcarNumber,
+    getdriverinfo
   } from '@/model/transport/index'
   } from '@/model/transport/index'
   // import { dayjs, fmoney, EventBus } from 'base-core-lib'
   // import { dayjs, fmoney, EventBus } from 'base-core-lib'
   import {
   import {
@@ -317,9 +327,11 @@
         startDate: null,
         startDate: null,
         endDate: null,
         endDate: null,
         carList: [],
         carList: [],
+        carNoList:[],
         // 提交类型
         // 提交类型
         readonly: true,
         readonly: true,
         tranPriceApprove: {},
         tranPriceApprove: {},
+        carList1:[],
         size: 10,
         size: 10,
         compId: localStorage.getItem('ws-pf_compId'),
         compId: localStorage.getItem('ws-pf_compId'),
         date: {
         date: {
@@ -649,6 +661,8 @@
       },
       },
       //审核
       //审核
       examine(status) {
       examine(status) {
+        
+        
         this.$prompt('运输单价审核', {
         this.$prompt('运输单价审核', {
           cancelButtonText: '取消',
           cancelButtonText: '取消',
           confirmButtonText: '确定',
           confirmButtonText: '确定',
@@ -687,6 +701,21 @@
         });
         });
       },
       },
       priceSubmit(status) {
       priceSubmit(status) {
+        console.log(status,this.deptBudgetList.tranPriceIng,this.deptBudgetList.tranPriceIngCar)
+        if(status==1&&!this.deptBudgetList.tranPriceIng){
+          this.$message({
+            message: '请输入运输单价元/吨!',
+            type: 'warning',
+          })
+          return
+        }
+        if(status==2&&!this.deptBudgetList.tranPriceIngCar){
+          this.$message({
+            message: '请输入运输单价元/车!',
+            type: 'warning',
+          })
+          return
+        }
         this.$confirm(`运输单价将发送给决策人审核,确定提交?`, {
         this.$confirm(`运输单价将发送给决策人审核,确定提交?`, {
             cancelButtonText: '取消',
             cancelButtonText: '取消',
             confirmButtonText: '确定',
             confirmButtonText: '确定',
@@ -850,6 +879,14 @@
           .toPromise()
           .toPromise()
           .then((response) => {
           .then((response) => {
             this.carList = response
             this.carList = response
+            this.carList1 = response
+          })
+          getcarNumber({
+            compId: this.compId
+          })
+          .toPromise()
+          .then((response) => {
+            this.carNoList = response
           })
           })
       },
       },
       carchange(val, index) {
       carchange(val, index) {
@@ -884,6 +921,38 @@
           }
           }
         }
         }
       },
       },
+      clear(){
+        this.carList=this.carList1
+      },
+      carNochange(val,index){
+        for (var i = 0; i < this.carNoList.length; i++) {
+          if (this.carNoList[i].carNumber == val) {
+            console.log(this.carNoList[i])
+            if (this.carNoList[i].carLoad != null) {
+                  this.deptBudgetList.tranCarInfoList[index].loadWeight =
+                  this.carNoList[i].carLoad
+                } else {
+                  this.deptBudgetList.tranCarInfoList[index].loadWeight = 0
+                }
+                this.deptBudgetList.tranCarInfoList[index].carModel =
+                this.carNoList[i].carModel
+                this.deptBudgetList.tranCarInfoList[index].carLength =
+                this.carNoList[i].carLength
+                this.deptBudgetList.tranCarInfoList[index].carLengthKey =
+                this.carNoList[i].carLengthKey
+                this.deptBudgetList.tranCarInfoList[index].carModelKey =
+                this.carNoList[i].carModelKey
+            getdriverinfo({
+              carNumber: this.carNoList[i].carNumber
+              })
+              .toPromise()
+              .then((response) => {
+                this.carList=response
+                
+              })
+          }
+        }
+      },
       phonechange(val, index) {
       phonechange(val, index) {
         for (var i = 0; i < this.carList.length; i++) {
         for (var i = 0; i < this.carList.length; i++) {
           if (this.carList[i].driverPhone == val) {
           if (this.carList[i].driverPhone == val) {

+ 99 - 26
src/views/warehousenew/warehousingOrder.vue

@@ -130,18 +130,18 @@
           </template>
           </template>
         </el-table-column>
         </el-table-column>
         <el-table-column prop="avgCost"  width="90" class="table_td" label="平均成本"></el-table-column>
         <el-table-column prop="avgCost"  width="90" class="table_td" label="平均成本"></el-table-column>
-        <el-table-column prop="requestFunds"  width="130" class="table_td tablerequestFunds" label="请款">
+        <el-table-column prop="requestFunds"  width="150" class="table_td tablerequestFunds" label="请款">
           <template scope="scope">
           <template scope="scope">
             <span v-if="!scope.row.select">{{ scope.row.requestFunds }}</span>
             <span v-if="!scope.row.select">{{ scope.row.requestFunds }}</span>
-            <el-input v-else v-model='scope.row.requestFunds'></el-input>
+            <el-input  @focus="qingkuan(scope.row,item.id)" v-else v-model='scope.row.requestFunds'></el-input>
           </template>
           </template>
         </el-table-column>
         </el-table-column>
-         <el-table-column prop="remark"  width="80" class="table_td" label="请款备注">
+         <el-table-column prop="remark"  width="150" class="table_td" label="请款备注">
           <template scope="scope">
           <template scope="scope">
             <div v-if="!scope.row.select" @click.stop="lookRemark(scope.row)">
             <div v-if="!scope.row.select" @click.stop="lookRemark(scope.row)">
               <span class="text_css">查看</span>
               <span class="text_css">查看</span>
             </div>
             </div>
-            <el-input v-else v-model='scope.row.remark'></el-input>
+            <el-input @focus="inputremark(scope.row,item.id)" v-else v-model='scope.row.remark'></el-input>
           </template>
           </template>
         </el-table-column>
         </el-table-column>
         <el-table-column prop="approveStatus" label="请款状态" width="90">
         <el-table-column prop="approveStatus" label="请款状态" width="90">
@@ -166,10 +166,12 @@
               <el-input disabled v-model="form.name"></el-input>
               <el-input disabled v-model="form.name"></el-input>
             </el-form-item>
             </el-form-item>
             <el-form-item label="附件">
             <el-form-item label="附件">
-              <el-upload ref='uploadfiles' :file-list='dataList' :action="global.uploadPath" list-type="picture-card"
+              <!-- <el-upload ref='uploadfiles' :file-list='dataList' :action="global.uploadPath" list-type="picture-card"
             :on-success="handlefujian" :on-remove="handleRemove" class="photo2"  accept="image/jpg,image/jpeg,image/png">
             :on-success="handlefujian" :on-remove="handleRemove" class="photo2"  accept="image/jpg,image/jpeg,image/png">
               <i class="el-icon-plus"></i>
               <i class="el-icon-plus"></i>
-              </el-upload>
+              </el-upload> -->
+              <ws-upload ref="upload" :size-limit="size" @onChange="onChange" :comp-id="compId" 
+        accept=".jpg, .jpeg, .png, .pdf, .doc, .docx, .zip, .rar" />
             </el-form-item>
             </el-form-item>
             </el-form> 
             </el-form> 
           </div>
           </div>
@@ -371,6 +373,28 @@
           <el-button type="primary" @click="fieldrationssubmit">提交</el-button>
           <el-button type="primary" @click="fieldrationssubmit">提交</el-button>
         </span>
         </span>
       </el-dialog>
       </el-dialog>
+      <el-dialog
+      :title="'输入'+titletype"
+      :visible.sync="dialogVisiblecontent"
+      width="30%"
+      :before-close="handleClose5">
+      <div> 
+        <el-input
+        type="textarea"
+        :rows="5"
+        maxlength="500"
+        placeholder="请输入内容"
+        v-model="textarea">
+      </el-input>
+      <div style="text-align:center;margin-top:10px;">
+<ws-button type="primary" @click="handlequeren()" v-hasPermission="
+                `warehouseManagement.warehouse.warehouseInfoTask.add`
+              ">确认
+            </ws-button>
+      </div>
+        
+      </div>
+    </el-dialog>
       <!-- <el-dialog
       <!-- <el-dialog
       title="提示"
       title="提示"
       :visible.sync="dialogVisible"
       :visible.sync="dialogVisible"
@@ -400,13 +424,18 @@
         </span>
         </span>
     </el-dialog>
     </el-dialog>
     <el-dialog width='50%' :visible.sync="accessoryTFs" title="附件" top="20vh">
     <el-dialog width='50%' :visible.sync="accessoryTFs" title="附件" top="20vh">
-      <div v-for="(item,index) in appendixIdss" :key="'fujian'+index" >
+      <div v-if="appendixIdss.length>0&&appendixIdss[0].indexOf('http')!=-1">
+<div v-for="(item,index) in appendixIdss" :key="'fujian'+index" >
        <el-image 
        <el-image 
         style="width: 100px; height: 100px"
         style="width: 100px; height: 100px"
         :src="item" 
         :src="item" 
         :preview-src-list="appendixIdss">
         :preview-src-list="appendixIdss">
       </el-image>
       </el-image>
       </div>
       </div>
+      </div>
+      
+      <ws-upload v-if="appendixIdss.length>0&&appendixIdss[0].indexOf('http')==-1" ref="upload" :comp-id="compId" :appendix-ids="appendixIdss" :editable="false"
+        accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
     </el-dialog>
     </el-dialog>
     <el-dialog width='30%' :visible.sync="dialogVisible1" title="费用" top="20vh">
     <el-dialog width='30%' :visible.sync="dialogVisible1" title="费用" top="20vh">
       <div v-for="(item,index) in costlist" :key="index" class="audit">
       <div v-for="(item,index) in costlist" :key="index" class="audit">
@@ -482,6 +511,8 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
         dataList:[],
         dataList:[],
         payeeinfo:{},
         payeeinfo:{},
         options:[],
         options:[],
+        textarea:'',
+        dialogVisiblecontent:false,
         // 船舶类型
         // 船舶类型
         monetaryKey: null,
         monetaryKey: null,
         form:{
         form:{
@@ -574,7 +605,7 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
         id:'',
         id:'',
         customerInfo:{},
         customerInfo:{},
         appendixIdss:[],
         appendixIdss:[],
-        paymentScreenshot:[],
+        paymentScreenshot:'',
         endDate:'',
         endDate:'',
         startDate:'',
         startDate:'',
         warehouseName: '',
         warehouseName: '',
@@ -592,12 +623,13 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
             return time.getTime() > Date.now()
             return time.getTime() > Date.now()
           },
           },
         },
         },
+        currectfocusdata:{},
         customershow:false,
         customershow:false,
         interestratevalue:'',
         interestratevalue:'',
         accessoryTFs: false,
         accessoryTFs: false,
         remarkList: false,
         remarkList: false,
         dialogTitle:'',
         dialogTitle:'',
-
+        titletype:'',
         remark:''
         remark:''
       }
       }
     },
     },
@@ -611,6 +643,34 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
       this.showType = this.isShow
       this.showType = this.isShow
     },
     },
     methods: {
     methods: {
+      handleClose5(){
+        this.dialogVisiblecontent=false
+      },
+      qingkuan(item){
+        this.titletype='请款金额'
+        this.currectfocusdata=item
+        this.textarea=this.currectfocusdata.requestFunds
+        this.dialogVisiblecontent=true
+      },
+      inputremark(item){
+        this.titletype='备注内容'
+        this.currectfocusdata=item
+        this.textarea=this.currectfocusdata.remark
+        this.dialogVisiblecontent=true
+      },
+      handlequeren(){
+        if(this.titletype=='请款金额'){
+          this.dialogVisiblecontent=false
+          this.currectfocusdata.requestFunds=this.textarea
+          console.log(this.currectfocusdata,textarea)
+          this.$forceUpdate()
+        }else{
+          this.dialogVisiblecontent=false
+          this.currectfocusdata.remark=this.textarea
+          this.$forceUpdate()
+        }
+        
+      },
       interestratesubmit(){
       interestratesubmit(){
         setenabledinfo({id:this.interestratevalue.id,value:this.interestratevalue.value}).toPromise()
         setenabledinfo({id:this.interestratevalue.id,value:this.interestratevalue.value}).toPromise()
               .then((response) => {
               .then((response) => {
@@ -654,16 +714,20 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
       fujian(row) {
       fujian(row) {
         this.id = row.id
         this.id = row.id
         this.accessoryTFs = true
         this.accessoryTFs = true
-        if(row.addressUrl.split(',')){
-          var arr=row.addressUrl.split(',')
-          this.dataList=[]
-          for(var i=0;i<arr.length;i++){
-            this.dataList.push({url:arr[i]})
+        console.log(row.addressUrl.indexOf('http'))
+        if(row.addressUrl.indexOf('http')!=-1){
+          if(row.addressUrl.split(',')){
+            var arr=row.addressUrl.split(',')
+            this.dataList=[]
+            for(var i=0;i<arr.length;i++){
+              this.dataList.push({url:arr[i]})
+            }
+            this.appendixIdss=arr
+            this.paymentScreenshot=arr
           }
           }
-          this.appendixIdss=arr
-          this.paymentScreenshot=arr
+        }else{
+          this.appendixIdss=row.addressUrl
         }
         }
-        
         console.log(this.appendixIdss)
         console.log(this.appendixIdss)
       },
       },
       lookRemark(row) {
       lookRemark(row) {
@@ -1031,10 +1095,16 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
           return false
           return false
         }
         }
       },
       },
-      handlefujian(file) {
-        // console.log(file)
-        this.paymentScreenshot.push(file.data.url)
-        // this.dialogVisible = true
+      onChange() {
+        this.$refs.upload
+          .handleSaveBill()
+          .then(async response => {
+            this.paymentScreenshot = response
+          })
+          .catch(res => {
+            EventBus.$emit('error', (JSON.parse(res) || {}).message)
+            this.$refs.upload.clearFiles()
+          })
       },
       },
       handleRemove(file) {
       handleRemove(file) {
         // console.log(file)
         // console.log(file)
@@ -1102,7 +1172,9 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
         var that=this
         var that=this
         console.log(this.multipleSelection1,this.multipleSelection1[this.currectdata.id])
         console.log(this.multipleSelection1,this.multipleSelection1[this.currectdata.id])
         var arr2=this.multipleSelection1[this.currectdata.id]
         var arr2=this.multipleSelection1[this.currectdata.id]
-          if(this.paymentScreenshot.length==0){
+        console.log(this.paymentScreenshot)
+        var len=this.paymentScreenshot?this.paymentScreenshot.split(','):[]
+          if(len.length==0){
             this.$message({
             this.$message({
               message: '请上传付款截图',
               message: '请上传付款截图',
               type: 'warning'
               type: 'warning'
@@ -1111,14 +1183,15 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
           }
           }
           for (let i = 0; i < arr2.length; i++) {
           for (let i = 0; i < arr2.length; i++) {
             if(arr2[i].addressUrlArray){
             if(arr2[i].addressUrlArray){
-              arr2[i].addressUrlArray=arr2[i].addressUrlArray.concat(this.paymentScreenshot)
+              arr2[i].addressUrlArray=arr2[i].addressUrlArray.concat(len)
             }
             }
             else{
             else{
-              arr2[i].addressUrlArray=this.paymentScreenshot
+              arr2[i].addressUrlArray=len
             }
             }
             arr2[i].addressUrl=arr2[i].addressUrlArray.toString()
             arr2[i].addressUrl=arr2[i].addressUrlArray.toString()
             
             
           }
           }
+          console.log(arr2)
           paymoney({flag:0,warehousingOrderList:arr2}).toPromise()
           paymoney({flag:0,warehousingOrderList:arr2}).toPromise()
           .then((response) => {
           .then((response) => {
             this.$message({
             this.$message({
@@ -1126,8 +1199,8 @@ import { findLastIndexOfIterate } from 'xe-utils/methods'
               type: 'success'
               type: 'success'
             });
             });
             this.aduitshow=false
             this.aduitshow=false
-            this.paymentScreenshot=[]
-            this.$refs.uploadfiles.clearFiles()
+            this.paymentScreenshot=''
+            this.$refs.upload.clearFiles()
             this.getList()
             this.getList()
           }).catch(() => {
           }).catch(() => {
            this.$message({
            this.$message({