ソースを参照

前端 pc 更新sdy

zhongtianhaoyuan 3 年 前
コミット
f987c01167

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

@@ -93,4 +93,9 @@ export const API_POST_DISORREMARKS = '/stockSaleReceiptReport/api/disAndRemark'
 export const API_POST_SALEEDITSETTLEMENTWEIGHT = '/stockSaleReceiptReport/api/editSettlementWeight'
 //现货销售出库合同下拉
 export const API_GET_STOCK_SALE_CONTRACTNO = '/stockSaleReceiptReport/selectContractNoList'
-
+// 火运,船运合同编号下拉
+export const API_GET_YUNSHUXIALA = '/tranTaskInfo/selectTranTask'
+// 火运,船运运输编号下拉
+export const API_GET_YUNSHUNUMBER = '/tranTaskInfo/selectTask'
+// 火运,船运实际价格
+export const API_POST_YUNSHUSETPRICE = '/tranProcessInfo/api/setUpTranPrice'

+ 10 - 1
src/model/statisticalReport/index.js

@@ -43,7 +43,10 @@ import {
     API_POST_STOCKSALECOLLECTMONEY,
     API_POST_DISORREMARKS,
     API_POST_SALEEDITSETTLEMENTWEIGHT,
-    API_GET_STOCK_SALE_CONTRACTNO
+    API_GET_STOCK_SALE_CONTRACTNO,
+    API_GET_YUNSHUXIALA,
+    API_GET_YUNSHUNUMBER,
+    API_POST_YUNSHUSETPRICE
 } from '@/api/V2/statisticalReport'
 //期货采购入库报表
 export const getpurchreceipt = appRx.get(API_GET_PURCHRECEIPT, errorCatcher, errorHandle, filter)
@@ -142,3 +145,9 @@ export const saleEditSettlementWeight = appRx.post(API_POST_SALEEDITSETTLEMENTWE
 //现货销售出库合同下拉
 export const getStockSaleContractNoList = appRx.get(API_GET_STOCK_SALE_CONTRACTNO, errorCatcher, errorHandle, filter)
 
+// 火运,船运合同编号下拉
+export const getYunShuXiaLa = appRx.get(API_GET_YUNSHUXIALA, 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)

+ 157 - 29
src/views/statisticalReport/huoyunList.vue

@@ -3,7 +3,7 @@
   <div class="container">
     <el-scrollbar style="height: 100%">
       <el-row>
-        <el-col style="padding-left: 15px" :span="16">
+        <el-col style="padding-left: 15px" :span="10">
           <ws-button
             :type="searchType == 1 ? 'primary' : ''"
             @click="handlestatus(1)"
@@ -50,8 +50,8 @@
           > -->
         </el-col>
         <el-col
-          style="text-align: right; line-height: 60px; padding-right: 10px"
-          :span="8"
+          style="text-align: right; line-height: 60px; padding-right: 10px;display: flex;"
+          :span="14"
         >
           <el-select
             v-model="contractNo"
@@ -65,22 +65,71 @@
             class="findValue"
           >
             <el-option
-              v-if="item.reportStatus"
               v-for="item in options"
               :key="item.constKey"
-              :label="item.contractNo + '(' + item.reportStatus + ')'"
+              :label="item.contractNo"
               :value="item.contractNo"
             />
+          </el-select>
+          <el-select
+            v-model="taskNo"
+            placeholder="请选择运输任务编号"
+            clearable
+            filterable
+            :filter-method="dataFilter"
+            @change="taskNochange"
+            maxlength="500"
+            type="input"
+            class="findValue"
+          >
             <el-option
+              v-for="item in taskNoList"
+              :key="item.taskNoKey"
+              :label="item.taskNoValue "
+              :value="item.taskNoValue"
+            />
+          </el-select>
+          <el-select
+            v-model="processNo"
+            placeholder="请选择运输阶段编号"
+            clearable
+            filterable
+            :filter-method="processNo"
+            @change="processNochange"
+            maxlength="500"
+            type="input"
+            class="findValue"
+          >
+            <el-option
+              v-for="item in processNoList"
+              :key="item.processNoKey"
+              :label="item.processNoValue "
+              :value="item.processNoValue"
+            />
+            <!-- <el-option
               v-if="!item.reportStatus"
               v-for="item in options"
               :key="item.constKey"
               :label="item.contractNo"
               :value="item.contractNo"
-            />
+            /> -->
           </el-select>
         </el-col>
       </el-row>
+      <div class="freightSet">
+        <div style="display: flex;width:200px;line-height: 30px;"> 预计运费(元):{{tranPriceIng}}元</div>
+        <span style="display: flex;line-height: 30px;">实际运费(元):<el-input type="text" maxlength="70" size="small"  v-model="actualFreight" v-show="textShow"/><span v-show="!textShow">{{actualFreight}}</span>元</span>
+        <i @click="actualFreightchange" class="iconfont icon-dui" v-show="textShow" style="margin-top:10px"></i>
+        <img
+              width="17"
+              height="18"
+              style="vertical-align: text-top; position: relative; top: 6px"
+              src="../../../public/img/edit.png"
+              @click="textShow = true"
+              alt=""
+               v-show="!textShow"
+            />
+      </div>
 
       <el-table
         class="wenzi"
@@ -337,6 +386,9 @@ import {
   autocontract,
   autopaymoney,
   openinvoicelist,
+  getYunShuXiaLa,
+  getYunShuNumber,
+  SetYunShuPrice
   // postaudit,
   //   getselectctcontractno,
 } from '@/model/statisticalReport/index'
@@ -345,6 +397,7 @@ import { downloadFile } from '@/utils/batchDown'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
 import { EventBus } from 'base-core-lib'
+import { flatten } from 'lodash'
 export default {
   name: 'viewSpareMoney',
   components: {
@@ -421,6 +474,14 @@ export default {
       enter: {
         closePositionList: [],
       },
+       taskNoList:[],
+        processNoList:[],
+        taskNo:"",
+         processNo:"",
+         textShow:false,
+         actualFreight:"",
+         processNoId:"",
+      tranPriceIng:"",
 
       // 提交类型
       submitType: true,
@@ -463,14 +524,6 @@ export default {
       paymentScreenshotUrls: [],
       carryovercontractnolist: [],
       historyList: [],
-      account: [
-        {
-          value: '个人账户',
-        },
-        {
-          value: '企业账户',
-        },
-      ],
       pickerBeginDateBefore: {
         disabledDate: (time) => {
           return time.getTime() > Date.now()
@@ -768,6 +821,24 @@ export default {
         })
       }
     },
+    actualFreightchange(){
+      // this.actualFreight
+      this.$confirm(`是否提交实际总价?`, {
+          cancelButtonText: '取消',
+          confirmButtonText: '确定',
+          type: 'warning',
+        }).then(() => {
+          SetYunShuPrice({
+        actualFreight:this.actualFreight,
+        id:this.processNoId,
+        flag :3
+      })
+        .toPromise()
+        .then((response) => {
+         this.textShow = false
+        })
+        })
+    },
     //修改结算重量
     changesettlementWeight(item) {
       if (!this.settlementWeight) {
@@ -865,9 +936,8 @@ export default {
           this.$message.warning('修改扣款失败')
         })
     },
-    editdeductionAmount(item) {
-      this.deductionAmount = item.deductionAmount
-      item.deductionAmountchange = true
+    editdeductionAmount() {
+      this.textShow = false
     },
     //装车磅单
     lookloadingImg(row) {
@@ -971,12 +1041,59 @@ export default {
     handleSelectionChange(val) {
       this.modification = val
     },
+
     handlestatus(status) {
       this.searchType = status
       this.getList()
     },
     contractchange(e) {
       this.contractNo = e
+      this.taskNoList = []
+       this.taskNo = ""
+      this.processNoList= []
+      this.processNo = ""
+       getYunShuNumber({
+       contractNo:this.contractNo,
+       flag:2
+      })
+        .toPromise()
+        .then((response) => {
+          for(let i = 0 ; i < response.length ; i++){
+            this.taskNoList.push({
+              taskNoKey : i,
+              taskNoValue : response[i].taskNo,
+              processNo: response[i].tranProcessInfoList
+          }) 
+          }
+        })
+    },
+    taskNochange(e){
+      this.taskNo = e
+      this.processNoList= []
+      this.processNo = ""
+      for(let i = 0 ; i < this.taskNoList.length ; i++ ){
+        if(e == this.taskNoList[i].taskNoValue){
+          for(let j = 0 ; j < this.taskNoList.length ; j++){
+            this.processNoList.push({
+             processNoKey:i,
+             processNoValue:this.taskNoList[i].processNo[j].processNo,
+             actualFreight : this.taskNoList[i].processNo[j].actualFreight,
+             id:this.taskNoList[i].processNo[j].id,
+             tranPriceIng:this.taskNoList[i].processNo[j].tranPriceIng
+           })
+          }
+        }
+      }
+    },
+    processNochange(e){
+      this.processNo = e
+      for(let i = 0 ; i < this.processNoList.length ; i++){
+        if(this.processNoList[i].processNoValue == e){
+          this.actualFreight = this.processNoList[i].actualFreight
+          this.processNoId =this.processNoList[i].id
+          this.tranPriceIng = this.processNoList[i].tranPriceIng
+        }
+      }
       this.getList()
     },
     updated() {
@@ -1026,6 +1143,8 @@ export default {
         searchType: this.searchType,
         contractNo: this.contractNo,
         manualFlag: this.manualFlag,
+        taskNo:this.taskNo,
+         processNo:this.processNo
       })
         .toPromise()
         .then((response) => {
@@ -1045,15 +1164,18 @@ export default {
           this.deptBudgetTotal = response.total
           this.warehouseList = response
         })
-      autocontract({
-        compId: sessionStorage.getItem('ws-pf_compId'),
-        currentPage: this.currentPage,
-        pageSize: this.pageSize,
-        // roleFlag: this.roleFlag,
+            this.contractNoList=[]
+      getYunShuXiaLa({
+        flag:2,
       })
         .toPromise()
         .then((response) => {
-          this.contractNoList = response
+          for(let i = 0 ; i < response.length ; i++){
+            this.contractNoList.push({
+              constKey : i,
+              contractNo : response[i]
+          }) 
+          }
           this.contractNoList.unshift({ contractNo: '全部合同' })
           this.options = this.contractNoList
         })
@@ -1204,9 +1326,8 @@ export default {
   border-bottom-left-radius: 0px;
 }
 /deep/.findValue .el-input__inner {
-  border-top-right-radius: 0px;
-  border-bottom-right-radius: 0px;
-  width: 385px;
+  width: 300px;
+
 }
 .completed.el-button--default {
   border-color: #5878e8;
@@ -1377,8 +1498,6 @@ export default {
 }
 .el-input--small {
   font-size: 13px;
-  width: 390px;
-  margin-left: 74%;
 }
 /deep/.el-table .el-table__header .cell,
 .el-table .el-table__body .cell {
@@ -1412,7 +1531,6 @@ hr {
   margin-left: 9%;
 }
 .el-date-editor.el-input,
-.el-date-editor.el-input__inner,
 .el-input-number--small {
   width: 123% !important;
 }
@@ -1422,4 +1540,14 @@ hr {
   text-align: center;
   height: 40px;
 }
+/deep/.freightSet .el-input__inner{
+ width: 100px;
+}
+.freightSet{
+  display: flex;
+  width:500px;
+}
+/deep/.freightSet .el-input{
+  width: 44%;
+}
 </style>

+ 158 - 23
src/views/statisticalReport/shippingList.vue

@@ -3,7 +3,7 @@
   <div class="container">
     <el-scrollbar style="height: 100%">
       <el-row>
-        <el-col style="padding-left: 15px" :span="16">
+        <el-col style="padding-left: 15px" :span="10">
           <ws-button
             :type="searchType == 1 ? 'primary' : ''"
             @click="handlestatus(1)"
@@ -51,9 +51,9 @@
         </el-col>
         <el-col
           style="text-align: right; line-height: 60px; padding-right: 10px"
-          :span="8"
+          :span="14"
         >
-          <el-select
+         <el-select
             v-model="contractNo"
             placeholder="请选择合同"
             clearable
@@ -65,22 +65,71 @@
             class="findValue"
           >
             <el-option
-              v-if="item.reportStatus"
               v-for="item in options"
               :key="item.constKey"
-              :label="item.contractNo + '(' + item.reportStatus + ')'"
+              :label="item.contractNo"
               :value="item.contractNo"
             />
+          </el-select>
+          <el-select
+            v-model="taskNo"
+            placeholder="请选择运输任务编号"
+            clearable
+            filterable
+            
+            @change="taskNochange"
+            maxlength="500"
+            type="input"
+            class="findValue"
+          >
             <el-option
+              v-for="item in taskNoList"
+              :key="item.taskNoKey"
+              :label="item.taskNoValue "
+              :value="item.taskNoValue"
+            />
+          </el-select>
+          <el-select
+            v-model="processNo"
+            placeholder="请选择运输阶段编号"
+            clearable
+            filterable
+           
+            @change="processNochange"
+            maxlength="500"
+            type="input"
+            class="findValue"
+          >
+            <el-option
+              v-for="item in processNoList"
+              :key="item.processNoKey"
+              :label="item.processNoValue "
+              :value="item.processNoValue"
+            />
+            <!-- <el-option
               v-if="!item.reportStatus"
               v-for="item in options"
               :key="item.constKey"
               :label="item.contractNo"
               :value="item.contractNo"
-            />
+            /> -->
           </el-select>
         </el-col>
       </el-row>
+       <div class="freightSet">
+        <div style="display: flex;width:200px;line-height: 30px;"> 预计运费(元):{{tranPriceIng}}元</div>
+        <span style="display: flex;line-height: 30px;">实际运费(元):<el-input type="text" maxlength="70" size="small"  v-model="actualFreight" v-show="textShow"/><span v-show="!textShow">{{actualFreight}}</span>元</span>
+        <i @click="actualFreightchange" class="iconfont icon-dui" v-show="textShow" style="margin-top:10px"></i>
+        <img
+              width="17"
+              height="18"
+              style="vertical-align: text-top; position: relative; top: 6px"
+              src="../../../public/img/edit.png"
+              @click="textShow = true"
+              alt=""
+               v-show="!textShow"
+            />
+      </div>
 
       <el-table
         class="wenzi"
@@ -343,8 +392,9 @@ import {
   autocontract,
   autopaymoney,
   openinvoicelist,
-  // postaudit,
-  //   getselectctcontractno,
+  getYunShuXiaLa,
+  getYunShuNumber,
+  SetYunShuPrice
 } from '@/model/statisticalReport/index'
 import { posthandle } from '@/model/purchasingManagement/index'
 import { downloadFile } from '@/utils/batchDown'
@@ -427,6 +477,14 @@ export default {
       enter: {
         closePositionList: [],
       },
+       taskNoList:[],
+        processNoList:[],
+        taskNo:"",
+         processNo:"",
+         textShow:false,
+         actualFreight:"",
+         processNoId:"",
+      tranPriceIng:"",
 
       // 提交类型
       submitType: true,
@@ -978,9 +1036,73 @@ export default {
       this.searchType = status
       this.getList()
     },
-    contractchange(e) {
+  contractchange(e) {
       this.contractNo = e
+      this.taskNoList = []
+       this.taskNo = ""
+      this.processNoList= []
+      this.processNo = ""
+       getYunShuNumber({
+       contractNo:this.contractNo,
+       flag:1
+      })
+        .toPromise()
+        .then((response) => {
+          for(let i = 0 ; i < response.length ; i++){
+            this.taskNoList.push({
+              taskNoKey : i,
+              taskNoValue : response[i].taskNo,
+              processNo: response[i].tranProcessInfoList
+          }) 
+          }
+        })
+    },
+    taskNochange(e){
+      this.taskNo = e
+      this.processNoList= []
+      this.processNo = ""
+      for(let i = 0 ; i < this.taskNoList.length ; i++ ){
+        if(e == this.taskNoList[i].taskNoValue){
+          for(let j = 0 ; j < this.taskNoList.length ; j++){
+            this.processNoList.push({
+             processNoKey:i,
+             processNoValue:this.taskNoList[i].processNo[j].processNo,
+             actualFreight : this.taskNoList[i].processNo[j].actualFreight,
+             id:this.taskNoList[i].processNo[j].id,
+             tranPriceIng:this.taskNoList[i].processNo[j].tranPriceIng
+           })
+          }
+        }
+      }
+    },
+    processNochange(e){
+      this.processNo = e
+      for(let i = 0 ; i < this.processNoList.length ; i++){
+        if(this.processNoList[i].processNoValue == e){
+          this.actualFreight = this.processNoList[i].actualFreight
+          this.processNoId =this.processNoList[i].id
+          this.tranPriceIng = this.processNoList[i].tranPriceIng
+        }
+      }
       this.getList()
+    },
+     actualFreightchange(){
+      // this.actualFreight
+      this.$confirm(`是否提交实际总价?`, {
+          cancelButtonText: '取消',
+          confirmButtonText: '确定',
+          type: 'warning',
+        }).then(() => {
+          SetYunShuPrice({
+        actualFreight:this.actualFreight,
+        id:this.processNoId,
+        flag :3
+      })
+        .toPromise()
+        .then((response) => {
+         this.textShow = false
+        })
+        })
     },
     updated() {
       this.$nextTick(() => {
@@ -1029,6 +1151,8 @@ export default {
         searchType: this.searchType,
         contractNo: this.contractNo,
         manualFlag: this.manualFlag,
+        taskNo:this.taskNo,
+         processNo:this.processNo
       })
         .toPromise()
         .then((response) => {
@@ -1046,15 +1170,18 @@ export default {
           this.deptBudgetTotal = response.total
           this.warehouseList = response
         })
-      autocontract({
-        compId: sessionStorage.getItem('ws-pf_compId'),
-        currentPage: this.currentPage,
-        pageSize: this.pageSize,
-        // roleFlag: this.roleFlag,
+           this.contractNoList=[]
+      getYunShuXiaLa({
+        flag:1,
       })
         .toPromise()
         .then((response) => {
-          this.contractNoList = response
+          for(let i = 0 ; i < response.length ; i++){
+            this.contractNoList.push({
+              constKey : i,
+              contractNo : response[i]
+          }) 
+          }
           this.contractNoList.unshift({ contractNo: '全部合同' })
           this.options = this.contractNoList
         })
@@ -1205,9 +1332,7 @@ export default {
   border-bottom-left-radius: 0px;
 }
 /deep/.findValue .el-input__inner {
-  border-top-right-radius: 0px;
-  border-bottom-right-radius: 0px;
-  width: 385px;
+  width: 300px;
 }
 .completed.el-button--default {
   border-color: #5878e8;
@@ -1376,11 +1501,11 @@ export default {
 .look .el-form-item {
   border-bottom: 1px solid #ccc;
 }
-.el-input--small {
-  font-size: 13px;
-  width: 390px;
-  margin-left: 74%;
-}
+// .el-input--small {
+//   font-size: 13px;
+//   width: 390px;
+//   margin-left: 74%;
+// }
 /deep/.el-table .el-table__header .cell,
 .el-table .el-table__body .cell {
   text-align: center;
@@ -1423,4 +1548,14 @@ hr {
   text-align: center;
   height: 40px;
 }
+/deep/.freightSet .el-input__inner{
+ width: 100px;
+}
+.freightSet{
+  display: flex;
+  width:500px;
+}
+/deep/.freightSet .el-input{
+  width: 44%;
+}
 </style>

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

@@ -505,7 +505,8 @@ export default {
                             //xxx代表列名
                             obj.boxNo = v.车厢号
                             obj.loadNetWeight = v.装车净重
-                            obj.loadingDate = toString(v.装车日期)
+                            obj.unloadNetWeight = v.卸车净重
+                            obj.unloadingDate = toString(v.卸车日期)
                             obj.status= v.状态
                             obj.unloadPoundImg = v.磅单
                             console.log(obj)

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

@@ -415,13 +415,13 @@ export default {
                             v = JSON.parse(jsonString);
                             let obj = {}
                             //xxx代表列名
-                            obj.temporaryDriverFlag = v.临时司机标识
                             obj.caseNo= v.箱号
+                            obj.loadNetWeight= v.装车
                             obj.titleNo= v.封号
                             obj.driverPhone = v.司机电话
                             obj.driver=v.司机姓名
-                            obj.loadNetWeight = v.车净重
-                            obj.loadingDate = toString(v.车日期)
+                            obj.loadNetWeight = v.车净重
+                            obj.loadingDate = toString(v.车日期)
                             obj.status= v.状态
                             obj.carNo = v.车牌号
                             obj.unloadPoundImg = v.磅单

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

@@ -127,7 +127,7 @@
               >审核中</el-button
             >
              <el-button
-              v-else
+             
               type="primary"
               size="small"
               @click="priceSubmit()"

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

@@ -525,6 +525,7 @@ export default {
                             obj.binNumber = v.仓位号
                             obj.positionWeight=v.散船重量
                             obj.loadNetWeight = v.装船净重
+                            obj.unloadNetWeight = v.卸船净重
                             obj.loadingDate = toString(v.装船日期)
                             obj.status= v.状态
                             obj.shipType = v.类型