Преглед на файлове

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

zhongtianhaoyuan преди 3 години
родител
ревизия
31d13d8b40
променени са 27 файла, в които са добавени 2485 реда и са изтрити 1201 реда
  1. 2 2
      .env.production
  2. 11 1
      src/api/V2/warehouse/index.js
  3. 4 0
      src/lang/zh.js
  4. 16 1
      src/model/warehouse/index.js
  5. 1 0
      src/views/contractManagement/futuresPurchaseContract.vue
  6. 1 0
      src/views/contractManagement/purchaseContract.vue
  7. 14 2
      src/views/houseSelfCollect/weighingManagement.vue
  8. 25 15
      src/views/houseSelfCollect/weightCheck.vue
  9. 3 3
      src/views/outboundManagement/collectionManagement.vue
  10. 6 6
      src/views/outboundManagement/component/route.js
  11. 1 1
      src/views/outboundManagement/qualityInspection.vue
  12. 2 2
      src/views/outboundManagement/qualityInspectionManagement.vue
  13. 2 0
      src/views/outboundManagement/weighing.vue
  14. 4 4
      src/views/outboundManagement/weighingManagement.vue
  15. 2 2
      src/views/statisticalReport/component/routers/route.js
  16. 8 5
      src/views/statisticalReport/stockPurchaseReceiptReportList.vue
  17. 13 12
      src/views/statisticalReport/stockSaleOutReportList.vue
  18. 2 0
      src/views/taskManagement/tranManagementTransportAdd.vue
  19. 1 0
      src/views/tranManagement/tranManagementVehicleDispatching.vue
  20. 30 0
      src/views/warehouse/component/router/index.js
  21. 134 184
      src/views/warehouse/costmanagement.vue
  22. 1 1
      src/views/warehouse/warehouseManagementEdit.vue
  23. 1 0
      src/views/warehouse/warehouseManagementPut.vue
  24. 927 960
      src/views/warehouse/warehouseManagementRecord.vue
  25. 721 0
      src/views/warehouse/warehouselocation.vue
  26. 552 0
      src/views/warehouse/weightedsubsidiary.vue
  27. 1 0
      vue.config.js

+ 2 - 2
.env.production

@@ -4,8 +4,8 @@
 
 NODE_ENV = 'production'
 # base api
-#VUE_APP_BASE_API = 'https://api2.eliangeyun.com'
-VUE_APP_BASE_API = 'https://apitest.eliangeyun.com'
+VUE_APP_BASE_API = 'https://api2.eliangeyun.com'
+#VUE_APP_BASE_API = 'https://apitest.eliangeyun.com'
 
 # 微服务相关接口配置
 ## 任务消息

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

@@ -50,13 +50,23 @@ export const API_GET_STAFF = '/staff/query/getStaffListByCompIdAndWarehouseId'
 export const API_GET_WAREHOUSE_RECORDSS = '/warehouseInOutInfo/selectInfoTemporary'
 
 //临时出库货名下拉
-export const API_GET_GOODSNAME_XIALA = '/warehouseInOutInfo/selectTemporaryGoodsNameList'
+export const API_GET_GOODSNAME_XIALA = '/warehouseInOutInfo/selectTemporaryGoodsNameList '
 //临时仓库待完成
 export const API_GET_WAREHOUSE_LIST = '/warehouseInOutInfo/selectWarehouseInOutInfoTemporary'
 //任务列表
 export const API_GET_WAREHOUSE_TASKLIST = '/inOutWarehouseTask/selectInOutWarehouseTask'
 // 成本管理
 export const API_GET_COSTMANAGEMENT = '/costManagementInfo/selectCostManagementInfo'
+// 修改成本
+export const API_POST_EDITCOST = '/costManagementInfo/api/editCostManagementInfo'
+// 库点费用
+export const API_GET_INVENTORYCOSTINFO = '/inventoryCostInfo/selectInventoryCostInfo'
+// 添加库点费用
+export const API_POST_ADD_INVENTORYCOSTINFO = '/inventoryCostInfo/api/addInventoryCostInfo'
+// 编辑库点费用
+export const API_POST_EDIT_INVENTORYCOSTINFO = '/inventoryCostInfo/api/editInventoryCostInfo'
+// 加权明细
+export const API_GET_WEIGHTEDDETAILS = '/weightedDetails/selectInventoryCostInfo'
 
 
 

+ 4 - 0
src/lang/zh.js

@@ -502,6 +502,8 @@ export default {
 
     //仓库管理
     warehouseManagementList: '仓库管理',
+    warehouselocation:'成本管理  /  库点费用',
+    weightedsubsidiary:'加权明细',
     costmanagement:'成本管理',
     warehouseManagementAdd: '仓库管理添加',
     warehouseManagementEdit: '仓库管理编辑',
@@ -4803,6 +4805,8 @@ export default {
   //仓库管理
   warehouseManagement: {
     warehouseManagementList: '仓库管理',
+    warehouselocation:'成本管理  /  库点费用',
+    weightedsubsidiary:'加权明细',
     costmanagement:'成本管理',
     warehouseManagementAdd: '仓库管理添加',
     warehouseManagementEdit: '仓库管理编辑',

+ 16 - 1
src/model/warehouse/index.js

@@ -27,7 +27,12 @@ import {
     API_GET_GOODSNAME_XIALA,
     API_GET_WAREHOUSE_LIST,
     API_GET_WAREHOUSE_TASKLIST,
-    API_GET_COSTMANAGEMENT
+    API_GET_COSTMANAGEMENT,
+    API_POST_EDITCOST,
+    API_GET_INVENTORYCOSTINFO,
+    API_POST_ADD_INVENTORYCOSTINFO,
+    API_POST_EDIT_INVENTORYCOSTINFO,
+    API_GET_WEIGHTEDDETAILS
 } from '@/api/V2/warehouse'
 // import { app } from 'electron'
 // 列表
@@ -85,6 +90,16 @@ export const xialaNo = appRx.get(API_GET_WAREHOUSE_NO, errorCatcher, errorHandle
 export const taskList = appRx.get(API_GET_WAREHOUSE_TASKLIST,errorCatcher, errorHandle, filter)
 // 成本管理
 export const getcost = appRx.get(API_GET_COSTMANAGEMENT,errorCatcher, errorHandle, filter)
+// 修改成本
+export const editcost = appRx.post(API_POST_EDITCOST,errorCatcher, errorHandle, filter)
+// 库点费用列表
+export const getinventory = appRx.get(API_GET_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter)
+// 添加库点费用
+export const addinventory = appRx.post(API_POST_ADD_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter)
+// 编辑库点费用
+export const editinventory = appRx.post(API_POST_EDIT_INVENTORYCOSTINFO,errorCatcher, errorHandle, filter)
+// 编辑库点费用
+export const weighteddetails = appRx.get(API_GET_WEIGHTEDDETAILS,errorCatcher, errorHandle, filter)
 
 
 

+ 1 - 0
src/views/contractManagement/futuresPurchaseContract.vue

@@ -517,6 +517,7 @@ export default {
         )
       }
       this.appendixIdss = row.addressUrl
+      console.log(this.appendixIdss)
       this.accessoryTFs = true
     },
     handleExamine(row) {

+ 1 - 0
src/views/contractManagement/purchaseContract.vue

@@ -537,6 +537,7 @@ export default {
         this.accessoryTFs = true
       }
       this.appendixIdss = row.addressUrl
+      console.log(this.appendixIdss)
     },
     handleExamine(row) {
       console.log(row)

+ 14 - 2
src/views/houseSelfCollect/weighingManagement.vue

@@ -159,6 +159,8 @@ export default {
       warehouseList: [],
       warehouseId: '',
       cangid: '',
+      monitorUrl1: '',
+      monitorUrl2: '',
       isShowPrint:false,//打印弹出
       dialogData:{
         qualityInspectionManagement:{},
@@ -201,7 +203,9 @@ export default {
           this.purchasePriceList = this.warehouseList[i].warehouseList
           this.allowEdit = this.warehouseList[i].allowEdit
           this.WAREHOUSE[2].payname = this.warehouseList[i].value
-          this.common.name  =  this.warehouseList[0].value
+          this.common.name  =  this.warehouseList[i].value
+          this.monitorUrl1 =  this.warehouseList[i].monitorUrl1
+          this.monitorUrl2 =  this.warehouseList[i].monitorUrl2
           sessionStorage.setItem('ck',e)
         }
       }
@@ -225,6 +229,8 @@ export default {
           netWeight: row.netWeight,
           relationId: row.relationId,
           warehouseId: this.warehouseId,
+          monitorUrl1: this.monitorUrl1,
+          monitorUrl2: this.monitorUrl2,
           purchasePriceList: this.purchasePriceList,
           allowEdit:this.allowEdit
         },
@@ -255,7 +261,9 @@ export default {
               value: response[i].warehouseName,
               warehouseId: response[i].id,
               warehouseList:response[i].purchasePriceList,
-              allowEdit:response[i].allowEdit
+              allowEdit:response[i].allowEdit,
+              monitorUrl1:response[i].monitorUrl1,
+              monitorUrl2:response[i].monitorUrl2
             })
             if (this.cangid&&this.cangid == response[i].id) {
               this.warehouseName = response[i].warehouseName
@@ -263,6 +271,8 @@ export default {
               this.common.name = response[i].warehouseName
               this.warehouseId =  response[i].id
               this.warehouseNo =  response[i].commonWarehouseNo
+              this.monitorUrl1 =  response[i].monitorUrl1
+              this.monitorUrl2 =  response[i].monitorUrl2
               this.purchasePriceList =  response[i].purchasePriceList
             }
           }
@@ -273,6 +283,8 @@ export default {
             this.purchasePriceList =  this.warehouseList[0].purchasePriceList
             this.WAREHOUSE[1].payname = this.warehouseList[0].value
             this.common.name  =  this.warehouseList[0].value
+            this.monitorUrl1 =  this.warehouseList[0].monitorUrl1
+            this.monitorUrl2 =  this.warehouseList[0].monitorUrl2
           }
            sessionStorage.setItem('ck',this.common.name)
          this.getList()

+ 25 - 15
src/views/houseSelfCollect/weightCheck.vue

@@ -20,19 +20,27 @@
         </div>
         <h2 class="bg-left titleup">实时监控</h2>
         <div class="bottom">
-          <div class="video1">
-            <!-- <img src="../../../public/img/quesheng@2x.png" alt="" class="img1" v-if="!video1Src">
-            <div v-if="!video1Src">监控视频未连接</div>
-            <video v-if="video1Src" controls="controls" :src="video1Src"  autoplay="autoplay" class="video-content"
-              mediatype="video"></video> -->
-              <iframe src="http://live.eliangeyun.com/play.html?serial=34020000001110000001&code=34020000001310000001&aspect=fullscreen" width="440" height="360" allowfullscreen allow="autoplay; fullscreen; microphone;"></iframe>
+          <div v-if="!monitorUrl1" class="video1">
+            <img src="../../../public/img/quesheng@2x.png" alt="" class="img1" >
+            <div >监控视频未连接</div>
+              
           </div>
-          <div class="vide2">
-            <!-- <img src="../../../public/img/quesheng@2x.png" alt="" class="img2" v-if="!video2Src">
-            <div v-if="!video2Src">监控视频未连接</div>
-            <video src="" v-if="video2Src" class="video-content"></video> -->
-            <iframe src="http://live.eliangeyun.com/play.html?serial=34020000001110000001&code=34020000001310000002&aspect=fullscreen" width="440" height="360" allowfullscreen allow="autoplay; fullscreen; microphone;"></iframe>
-          
+          <div v-else class="video1">
+           <iframe :src="monitorUrl1" width="440" height="360" allowfullscreen ="true"
+           webkitallowfullscreen="true"
+           mozallowfullscreen="true"
+           allow="autoplay; fullscreen; microphone;"></iframe>
+          </div>
+          <div v-if="!monitorUrl2" class="video1">
+            <img src="../../../public/img/quesheng@2x.png" alt="" class="img1" >
+            <div >监控视频未连接</div>
+              
+          </div>
+          <div v-else class="video2">
+           <iframe :src="monitorUrl2" width="440" height="360" allowfullscreen="true"
+           webkitallowfullscreen="true"
+           mozallowfullscreen="true"
+            allow="autoplay; fullscreen; microphone;"></iframe>
           </div>
         </div>
       </div>
@@ -168,8 +176,6 @@
         pList: [],
         mList: [],
         index: 0,
-        video1Src: 'http://live.eliangeyun.com/play.html?serial=34020000001110000001&code=34020000001310000001',
-        video2Src: 'http://live.eliangeyun.com/play.html?serial=34020000001110000001&code=34020000001310000002',
         currentPage: 1,
         pageSize: 10,
         carList: [],
@@ -195,7 +201,9 @@
         isShowPrint: false,
         tableData: {},
         reader: null,
-        param: 9600
+        param: 9600,
+        monitorUrl1: '',
+        monitorUrl2: '',
       }
     },
     activated() {
@@ -210,6 +218,8 @@
       this.weighingList.goodsName = this.$route.query.goodsName
       this.weighingList.id = this.$route.query.id
       this.relationId = this.$route.query.relationId
+      this.monitorUrl1 = this.$route.query.monitorUrl1
+      this.monitorUrl2 = this.$route.query.monitorUrl2
       this.warehouseId = this.$route.query.warehouseId
       if (!this.$route.query.grossWeight) {
         this.$route.query.grossWeight = 0

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

@@ -15,8 +15,8 @@
             :type="searchType == '' ? 'primary' : ''"
             @click="handlestatus('')"
         >全部</ws-button>
-        <ws-button type="primary" @click="adopt">备注</ws-button>
-        <ws-button type="primary" @click="collect">收款</ws-button>
+        <ws-button type="primary" @click="adopt" v-hasPermission=" `outbound.collectionOut.view`">备注</ws-button>
+        <ws-button type="primary" @click="collect" v-hasPermission=" `outbound.collectionOut.new`">收款</ws-button>
       </template>
       <template slot="right">
         <el-col
@@ -170,7 +170,7 @@
         label="操作"
         width="200"
       ><template scope="scope">
-        <el-button @click="collectment(2,scope.row)">查看</el-button>
+        <el-button @click="collectment(2,scope.row)" v-hasPermission="`outbound.collectionOut.weight`">查看</el-button>
         </template>
       </el-table-column>
     </el-table>

+ 6 - 6
src/views/outboundManagement/component/route.js

@@ -21,7 +21,7 @@ const outboundManagementRouter = {
             meta: {
                 title:'weighingManagement',
                 shortcutEntrance:'outboundManagement',
-                module:'procurement.procurementOrder.delete',
+                module:'outbound.acquisitionWeightOut.view',
                 permissicon: [],
                 keepAlive: true
             }
@@ -35,7 +35,7 @@ const outboundManagementRouter = {
             meta: {
               title: 'weighing',
               shortcutEntrance: 'weighing',
-              module: 'procurement.procurementOrder.delete',
+              module: 'outbound.acquisitionWeightOut.view',
               permissicon: [],
               keepAlive: true
             },
@@ -50,7 +50,7 @@ const outboundManagementRouter = {
             meta: {
                 title:'qualityInspectionManagement',
                 shortcutEntrance:'outboundManagement',
-                module:'procurement.procurementOrder.delete',
+                module:'outbound.acquisitionQualityOut.view',
                 permissicon: [],
                 keepAlive: true
             }
@@ -65,7 +65,7 @@ const outboundManagementRouter = {
               title: 'qualityInspection',
               shortcutEntrance: 'qualityInspection',
               
-              module: 'procurement.procurementOrder.delete',
+              module: 'outbound.acquisitionQualityOut.edit',
               permissicon: [],
               keepAlive: true
             },
@@ -81,7 +81,7 @@ const outboundManagementRouter = {
             meta: {
                 title:'collectionManagement',
                 shortcutEntrance:'outboundManagement',
-                module:'procurement.procurementOrder.delete',
+                module:'outbound.collectionOut.weight',
                 permissicon: [],
                 keepAlive: true
             }
@@ -95,7 +95,7 @@ const outboundManagementRouter = {
             meta: {
               title: 'collectionment',
               shortcutEntrance: 'collectionment',
-              module: 'procurement.procurementOrder.delete',
+              module: 'outbound.collectionOut.weight',
               permissicon: [],
               keepAlive: true
             },

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

@@ -115,7 +115,7 @@
                 :disabled="disabled"
               />
             </ws-form-item>
-            <ws-form-item label="容重(克/升)>=" span="1" prop="bulkDensity">
+            <ws-form-item label="容重(克/升)" span="1" prop="bulkDensity">
               <ws-input
                 v-model="inspect.bulkDensity"
                 placeholder="请输入容重"

+ 2 - 2
src/views/outboundManagement/qualityInspectionManagement.vue

@@ -65,8 +65,8 @@
       <el-table-column prop="status" label="状态"></el-table-column>
       <el-table-column width="300" label="操作">
         <template slot-scope="scope">
-          <span v-if="scope.row.status == '已质检'"><el-button @click="qualityInspection(scope.row, 2)">查看</el-button></span>
-          <span v-if="scope.row.status == '已称毛重' || scope.row.status == '' || scope.row.status == null"><el-button @click="qualityInspection(scope.row, 1)">质检</el-button></span>
+          <span v-if="scope.row.status == '已质检'" v-hasPermission=" `outbound.acquisitionQualityOut.view`"><el-button @click="qualityInspection(scope.row, 2)">查看</el-button></span>
+          <span v-if="scope.row.status == '已称毛重' || scope.row.status == '' || scope.row.status == null" v-hasPermission=" `outbound.acquisitionQualityOut.edit`"><el-button @click="qualityInspection(scope.row, 1)">质检</el-button></span>
         </template>
       </el-table-column>
     </el-table>

+ 2 - 0
src/views/outboundManagement/weighing.vue

@@ -57,6 +57,8 @@
 								disabled /> -->
 								<ws-input @input="calculation" v-model="weighingList.tare" placeholder="未获取到皮重" 
 								maxlength="100" size="small" :disabled="disabled2"/>
+								<!-- <ws-input @input="calculation" v-model="weighingList.tare" placeholder="未获取到皮重" 
+								maxlength="100" size="small"/> -->
 						</ws-form-item>
 						<el-button type="primary" v-if="this.types == 2 || this.types == null" @click="openPort">重新获取</el-button>
 						<!-- <div class="formItem"> -->

+ 4 - 4
src/views/outboundManagement/weighingManagement.vue

@@ -3,7 +3,7 @@
 	<div>
 		<BaseHeaderLayout :leftSpan="12">
 			<template slot="left">
-				<ws-button type="primary" @click="weighing(3)">添加</ws-button>
+				<ws-button type="primary" @click="weighing(3)" v-hasPermission=" `outbound.acquisitionWeightOut.new`">添加</ws-button>
 			</template>
 			<!-- <template slot="left"> </template> -->
 			<template slot="right">
@@ -58,9 +58,9 @@
 			<el-table-column prop="status" label="状态"></el-table-column>
 			<el-table-column width="300" prop="contractNo1" label="操作">
 				<template slot-scope="scope">
-					<el-button @click="weighing(scope.row, 1)" v-if="scope.row.status != '已质检'">毛重</el-button>
-					<el-button @click="weighing(scope.row, 2)" v-if="scope.row.status == '已称皮重'">皮重</el-button>
-					<el-button @click="del(scope.row)" v-if="scope.row.status == '已称皮重'">删除</el-button>
+					<el-button @click="weighing(scope.row, 1)" v-if="scope.row.status != '已质检'" v-hasPermission="`outbound.acquisitionWeightOut.mao`">毛重</el-button>
+					<el-button @click="weighing(scope.row, 2)" v-if="scope.row.status == '已称皮重'" v-hasPermission="`outbound.acquisitionWeightOut.weight`"> 皮重</el-button>
+					<el-button @click="del(scope.row)" v-if="scope.row.status == '已称皮重'" v-hasPermission="`outbound.acquisitionWeightOut.view`">删除</el-button>
 				</template>
 			</el-table-column>
 		</el-table>

+ 2 - 2
src/views/statisticalReport/component/routers/route.js

@@ -96,7 +96,7 @@ const statisticalReportRouter = {
       meta: {
         title: 'stockPurchaseReceiptReportList',
         shortcutEntrance: 'statisticalReport',
-        module: 'report.saleOutReport',
+        module: 'report.goodsProcurementInReport',
         permissicon: [],
         keepAlive: true
         // module: 'procurement.sparepart.applDetail'
@@ -111,7 +111,7 @@ const statisticalReportRouter = {
       meta: {
         title: 'stockSaleOutReportList',
         shortcutEntrance: 'statisticalReport',
-        module: 'report.saleOutReport',
+        module: 'report.goodsSaleOutReport',
         permissicon: [],
         keepAlive: true
         // module: 'procurement.sparepart.applDetail'

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

@@ -26,31 +26,31 @@
           >
           <ws-button
             type="primary"
-            v-hasPermission="`report.procurementInReport.view`"
+            v-hasPermission="`report.goodsProcurementInReport.view`"
             @click="handleAudit()"
             >通过</ws-button
           >
           <ws-button
             type="primary"
-            v-hasPermission="`report.procurementInReport.view`"
+            v-hasPermission="`report.goodsProcurementInReport.view`"
             @click="handlereject()"
             >驳回</ws-button
           >
           <ws-button
             type="primary"
-            v-hasPermission="`report.procurementInReport.payment`"
+            v-hasPermission="`report.goodsProcurementInReport.payment`"
             @click="handlepayment"
             >付款</ws-button
           >
           <ws-button
             type="primary"
-            v-hasPermission="`report.procurementInReport.edit`"
+            v-hasPermission="`report.goodsProcurementInReport.edit`"
             @click="addRemarks()"
             >备注</ws-button
           >
           <ws-button
             type="primary"
-            v-hasPermission="`report.procurementInReport.carry`"
+            v-hasPermission="`report.goodsProcurementInReport.carry`"
             @click="dis()"
             >定金</ws-button
           >
@@ -358,8 +358,11 @@
         </div>
       </el-form>
       <div slot="footer" class="dialog-footer">
+        <span v-if="roleFlag == 1 ">
         <el-button @click="dialogFormVisible11 = false">取 消</el-button>
         <el-button type="primary" @click="remarksSubmit()">保存</el-button>
+        </span>
+        <span v-else><el-button @click="dialogFormVisible11 = false">关 闭</el-button></span>
       </div>
     </el-dialog>
     <!--定金-->

+ 13 - 12
src/views/statisticalReport/stockSaleOutReportList.vue

@@ -4,11 +4,11 @@
 		<el-scrollbar style="height: 100%">
 			<el-row>
 				<el-col style="padding-left: 15px" :span="16">
-					<ws-button type="primary" v-hasPermission="`report.saleOutReport.view`" @click="adopt()">备注
+					<ws-button type="primary" v-hasPermission="`report.goodsSaleOutReport.view`" @click="adopt()">备注
 					</ws-button>
-					<ws-button type="primary" v-hasPermission="`report.saleOutReport.view`" @click="depositbutton()">定金
+					<ws-button type="primary" v-hasPermission="`report.goodsSaleOutReport.view`" @click="depositbutton()">定金
 					</ws-button>
-					<ws-button type="primary" v-hasPermission="`report.saleOutReport.payment`" @click="handlecollect()">收款
+					<ws-button type="primary" v-hasPermission="`report.goodsSaleOutReport.payment`" @click="handlecollect()">收款
 					</ws-button>
 				</el-col>
 				<el-col style="text-align: right; line-height: 60px; padding-right: 10px" :span="8">
@@ -606,16 +606,17 @@
 							this.uncollectedAmount += response.records[i].amountNotReceivable
 							this.outboundVolume += response.records[i].settlementWeight
 							// this.addressUrlArray1.push(response.records[i].collectionScreenshot.split('$'))
-							num = response.records[i].collectionScreenshot.split('$')
-							for (let j = 0; j < num.length; j++) {
-								if (num[j] != '') {
-									if (this.addressUrlArray1.indexOf(num[j]) == -1) {
-										this.addressUrlArray1.push(num[j])
-									}
+							if(response.records[i].collectionScreenshot!=null){
+							    num = response.records[i].collectionScreenshot.split('$')
+								for (let j = 0; j < num.length; j++) {
+									if (num[j] != '') {
+										if (this.addressUrlArray1.indexOf(num[j]) == -1) {
+											this.addressUrlArray1.push(num[j])
+										}
 
+									}
 								}
 							}
-
 						}
 						this.deptBudgetTotal = response.total
 						this.saleList = response
@@ -963,8 +964,8 @@
 	}
 
 	.inputChenge {
-		width: 120%;
+		width: 150%;
 		display: inline-flex;
-		margin-left: -69%;
+		margin-left: -80%;
 	}
 </style>

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

@@ -1016,6 +1016,7 @@ export default {
               if (valid) {
                 this.deptBudgetList.compId =
                   sessionStorage.getItem('ws-pf_compId')
+                  console.log()
                 this.deptBudgetList.tranType = this.checkList.toString()
                 this.deptBudgetList.startPrivate =
                   CodeToText[this.selectedOptions[0]]
@@ -1114,6 +1115,7 @@ export default {
               if (valid) {
                 this.deptBudgetList.compId =
                   sessionStorage.getItem('ws-pf_compId')
+                  console.log(this.checkList.toString())
                 this.deptBudgetList.tranType = this.checkList.toString()
                 this.deptBudgetList.startPrivate =
                   CodeToText[this.selectedOptions[0]]

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

@@ -132,6 +132,7 @@
              <el-button
               v-if="deptBudgetList.priceStatus=='审核中'"
               type="primary"
+              v-hasPermission="`transportationTask.transportation.transportationInfo.exe`" 
               size="small"
               @click="examine()"
               >审核中</el-button

+ 30 - 0
src/views/warehouse/component/router/index.js

@@ -40,6 +40,36 @@ const warehouseManagementRouter = {
         // module: 'procurement.sparepart.applDetail'
       },
     },
+    {
+      path: 'warehouselocation',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/warehouselocation'),
+      name: 'warehouselocation',
+      meta: {
+        title: 'warehouselocation',
+        shortcutEntrance: 'warehouseManagementList',
+        module: 'warehouseManagement.warehouse.warehouseInfo',
+        permissicon: [],
+        keepAlive: true
+        // module: 'procurement.sparepart.applDetail'
+      },
+      hidden:true
+    },
+    {
+      path: 'weightedsubsidiary',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehouse/weightedsubsidiary'),
+      name: 'weightedsubsidiary',
+      meta: {
+        title: 'weightedsubsidiary',
+        shortcutEntrance: 'warehouseManagementList',
+        module: 'warehouseManagement.warehouse.warehouseInfo',
+        permissicon: [],
+        keepAlive: true
+        // module: 'procurement.sparepart.applDetail'
+      },
+      hidden:true
+    },
     {
       path: 'warehouseManagementAdd',
       component: () =>

+ 134 - 184
src/views/warehouse/costmanagement.vue

@@ -13,17 +13,26 @@
             <el-radio-button label="1">常用仓库</el-radio-button>
             <el-radio-button label="2">临时仓库</el-radio-button>
           </el-radio-group>
+          <ws-button class="find" type="primary" @click="warehouselocation()"
+          >库点费用</ws-button>
         </div>
       </template>
       <template slot="right">
-        <ws-input
+       <ws-select
           v-model="warehouseName"
-          placeholder="请输入仓库名"
-          clearable
-          maxlength="500"
-          type="input"
-          class="findValue"
-        ></ws-input>
+          placeholder=""
+          @change="warehouseNameChange"
+          :value="searchType"
+          style="margin: 0 10px"
+        >
+          <ws-option
+            v-for="item in warehouseList1"
+            :key="item.value"
+            :label="item.value"
+            :value="item.value"
+            style="color: #8890b1"
+          />
+        </ws-select>
         <!-- v-hasPermission="'procurement.sparepart.directShip'" -->
         <ws-button class="find" type="primary" @click="find()"
           ><img
@@ -40,10 +49,9 @@
         /></ws-button>
       </template>
     </BaseHeaderLayout>
-    <div v-show="this.warehouseType == '1'">
       <el-table
         class="wenzi"
-        :data="warehouseList"
+        :data="warehouseList.records"
         style="width: 100%; margin-top: 20px"
         height="780"
       >
@@ -51,104 +59,54 @@
       </el-table-column>
         <el-table-column prop="warehouseName" label="仓库" >
         </el-table-column>
-        <el-table-column prop="binNumber" label="货名" >
+        <el-table-column prop="goodsName" label="货名" >
         </el-table-column>
-        <el-table-column prop="capacity" label="储量(吨)">
-          <template slot-scope="scope">
-
-          </template>
-        </el-table-column>
-        <el-table-column label="加权成本(元/吨)">
-          <template slot-scope="scope">
-            <div
-              style="height: 24px"
-              v-for="(item, i) in scope.row.warehouseNumViewList"
-            >
-              {{ item.goodsName }}
-            </div>
-          </template>
-        </el-table-column>
-        <el-table-column label="价值(元)">
-          <template slot-scope="scope">
-            <div
-              style="height: 24px"
-              v-for="(item, i) in scope.row.warehouseNumViewList"
-            >
-               {{item.inNetWeight}}
-            </div>
-          </template>
-        </el-table-column>
-        
-        <el-table-column prop="address" label="操作" width="200">
-          <template slot-scope="scope">
-            <div class="record" v-hasPermission="
-           `warehouseManagement.warehouse.warehouseInfo.view`
-          " @click="record(scope.row)">修改</div>
-            <div class="adjustment" v-hasPermission="
-           `warehouseManagement.warehouse.warehouseInfo.view`
-          " @click="loss(scope.row)">加权明细</div>
-          </template>
-        </el-table-column>
-      </el-table>
-    </div>
-
-    <div v-show="this.warehouseType == '2'">
-      <el-table
-        class="wenzi"
-        :data="warehouseList"
-        style="width: 100%; margin-top: 20px"
-        height="780"
-      >
-      <el-table-column label="序号" type="index" show-overflow-tooltip width="50">
-      </el-table-column>
-        <el-table-column prop="warehouseName" label="仓库" >
-        </el-table-column>
-        <el-table-column prop="binNumber" label="货名" >
-        </el-table-column>
-        <el-table-column prop="capacity" label="储量(吨)">
-          <template slot-scope="scope">
-
-          </template>
+        <el-table-column prop="storage" label="储量(吨)">
         </el-table-column>
-        <el-table-column label="加权成本(元/吨)">
-          <template slot-scope="scope">
-            <div
-              style="height: 24px"
-              v-for="(item, i) in scope.row.warehouseNumViewList"
-            >
-              {{ item.goodsName }}
-            </div>
-          </template>
+        <el-table-column  prop="cost" label="加权成本(元/吨)">
         </el-table-column>
-        <el-table-column label="价值(元)">
-          <template slot-scope="scope">
-            <div
-              style="height: 24px"
-              v-for="(item, i) in scope.row.warehouseNumViewList"
-            >
-               {{item.inNetWeight}}
-            </div>
-          </template>
+        <el-table-column  prop="value" label="价值(元)">
         </el-table-column>
         
         <el-table-column prop="address" label="操作" width="200">
           <template slot-scope="scope">
             <div class="record" v-hasPermission="
            `warehouseManagement.warehouse.warehouseInfo.view`
-          " @click="record(scope.row)">修改</div>
+          " @click="edit(scope.row)">修改</div>
             <div class="adjustment" v-hasPermission="
            `warehouseManagement.warehouse.warehouseInfo.view`
-          " @click="loss(scope.row)">加权明细</div>
+          " @click="weightedsubsidiary(scope.row)">加权明细</div>
           </template>
         </el-table-column>
       </el-table>
-      
-    </div>
+      <el-pagination
+      @size-change="handleSizeChange"
+      @current-change="handleCurrentChange"
+      :current-page="currentPage"
+      :page-size="pageSize"
+      layout="total, sizes, prev, pager, next, jumper"
+      :total="deptBudgetTotal"
+    ></el-pagination>
+      <el-dialog title="修改加权成本价格" :visible.sync="editvisible">
+        <el-form >
+          <el-form-item label="价格(元/吨)" >
+            <el-input v-model="price" autocomplete="off"></el-input>
+          </el-form-item>
+        </el-form>
+        <div slot="footer" class="dialog-footer">
+          <el-button @click="editvisible = false">取 消</el-button>
+          <el-button type="primary" @click="editprice">确 定</el-button>
+        </div>
+      </el-dialog>
   </div>
 </template>
 <script>
+import {
+  selectWarehouseSelf
+} from '@/model/houseSelfCollect/index'
 import {
   getcost,
+  editcost,
   export1,
   editstatus,
   billoperatehis,
@@ -183,7 +141,7 @@ export default {
       monetaryKey: null,
       // 表格显示数据
       tableDate: [],
-
+      price:'',
       // 是否显示
       showType: true,
       // 年
@@ -193,15 +151,20 @@ export default {
       searchTypeText: '未完成',
       searchKeyWord: '',
       contractType: 2,
+      currentPage:1,
       warehouseType: '1',
       // 提交类型
       submitType: true,
       size: 10,
       spanArr: [],
+      id:0,
       warehouseName: '',
+      warehouseId:'',
+      editvisible:false,
       compId: sessionStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
       warehouseList: [],
+      warehouseList1: [],
       deptBudgetList: {},
       historyList: [],
       deptBudgetTotal: 0,
@@ -214,32 +177,58 @@ export default {
     }
   },
   activated() {
-    this.getList()
+    this.selectWarehouse()
+    // this.getList()
+
     this.showType = this.isShow
   },
-
   methods: {
-    //查看
-    handleLook() {
-      this.$router.push({ path: 'warehouseManagementLook' })
+    changeradio(e) {
+      this.getList()
     },
-    //添加
-    handleAdd() {
-      this.$router.push({ path: 'warehouseManagementAdd' })
+    warehouselocation(){
+      this.$router.push({ path: 'warehouselocation'})
     },
-    //编辑
-    handleEdit() {
-      this.$router.push({ path: 'warehouseManagementEdit' })
+     weightedsubsidiary(){
+       console.log(this.cangid)
+      this.$router.push({ path: 'weightedsubsidiary',query:{cangId:this.cangid}  })
     },
-    handleDelete() {
-      this.$router.push({ path: 'warehouseManagementDelete' })
+    warehouseNameChange(e) {
+      for(let i = 0 ; i < this.warehouseList1.length; i++){
+        if(this.warehouseList1[i].value == e){
+           this.warehouseName = this.warehouseList1[i].value
+          this.warehouseCount = this.warehouseList1[i].count
+          this.warehouseNo = this.warehouseList1[i].No
+          this.cangid = this.warehouseList1[i].id
+          this.WAREHOUSE[1].payname = this.warehouseList1[i].value
+          this.purchasePriceList = this.warehouseList1[i].purchasePriceList
+        }
+      }
+      this.getList()
     },
-    //任务
-    handlTask(){
-      this.$router.push({ path: 'tranManagementWarehouseInOutTask' })
+    edit(item){
+      this.price=item.cost
+      this.editvisible=true
+      this.id=item.id
     },
-    handleClose() {
-      this.accessoryTFs = false
+    editprice(){
+      this.$confirm(`加权成本价格修改后不可恢复,确认提交`, {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+      })
+        .then(() => {
+          editcost({id:this.id,cost:this.price}).toPromise()
+        .then((response) => {
+          this.$notify.success({
+                title: '成功',
+                message: '价格修改成功',
+              })
+           this.editvisible=false
+           this.getList()
+        })
+        })
+     
     },
     handleSizeChange(val) {
       console.log(`每页 ${val} 条`)
@@ -251,10 +240,43 @@ export default {
       console.log(`当前页: ${val}`)
       this.getList()
     },
+    selectWarehouse(){
+       selectWarehouseSelf({
+        compId: sessionStorage.getItem('ws-pf_compId'),
+      })
+        .toPromise()
+        .then((response) => {
+          this.warehouseList1 = []
+          for (let i = 0; i < response.length; i++) {
+            this.warehouseList1.push({
+              value: response[i].warehouseName,
+              id: response[i].id,
+              count: response[i].count,
+              purchasePriceList: response[i].purchasePriceList,
+              No:response[i].commonWarehouseNo
+            })
+            if (this.cangid&&this.cangid == response[i].id) {
+              this.warehouseName = response[i].warehouseName
+              this.warehouseCount =  response[i].count
+              this.warehouseNo =  response[i].commonWarehouseNo
+              this.purchasePriceList =  response[i].purchasePriceList
+            } 
+          }
+          if(this.warehouseList1.length > 0 && !this.cangid){
+            this.warehouseName = this.warehouseList1[0].value
+            this.warehouseCount =  this.warehouseList1[0].count
+            this.warehouseNo =  this.warehouseList1[0].No
+            this.cangid =  this.warehouseList1[0].id
+            this.purchasePriceList =  this.warehouseList1[0].purchasePriceList
+            this.WAREHOUSE[1].payname = this.warehouseList1[0].value
+          }
+          this.getList()
+        })
+    },
     getList() {
       getcost({
         compId: sessionStorage.getItem('ws-pf_compId'),
-        warehouseName: this.warehouseName,
+        warehouseId: this.cangid,
         warehouseType: this.warehouseType,
         currectPage:this.currectPage,
         pageSize:this.pageSize
@@ -262,61 +284,9 @@ export default {
         .toPromise()
         .then((response) => {
           this.warehouseList = response
+          this.deptBudgetTotal=response.total
         })
     },
-    editClick(row) {
-      var status = ''
-      if (row.status == '待执行' || row.status == '已完成') {
-        status = '执行中'
-      } else if (row.status == '执行中') {
-        status = '已完成'
-      }
-      //cancelButtonClass: "btn-custom-cancel"
-      this.$confirm(`是否将状态改为${status}`, {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning',
-      })
-        .then(() => {
-          editstatus({ id: row.id })
-            .toPromise()
-            .then((response) => {
-              this.$notify.success({
-                title: '成功',
-                message: '状态修改成功',
-              })
-              this.getList()
-            })
-            .catch((response) => {
-              // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
-            })
-        })
-        .catch(() => {
-          return false
-        })
-    },
-    selecttaskType(e) {
-      for (var i = 0; i < this.taskTypeList.length; i++) {
-        if (this.taskTypeList[i].value == e) {
-          this.searchType = this.taskTypeList[i].type
-        }
-      }
-    },
-
-    fujian(row) {
-      if (
-        row.receiveAttachmentPath === null ||
-        row.receiveAttachmentPath === ''
-      ) {
-        EventBus.$emit(
-          'warning',
-          this.$t('system.noticeCircular.NoInformation')
-        )
-      } else {
-        this.accessoryTFs = true
-      }
-      this.appendixIdss = row.receiveAttachmentPath
-    },
     handleExamine(row) {
       this.$router.push({
         name: 'salesContractExamine',
@@ -339,29 +309,6 @@ export default {
       this.currentPage = 1
       this.getList()
     },
-    async exportlist() {
-      const { data } = await export1(
-        {
-          compId: sessionStorage.getItem('ws-pf_compId'),
-          contractType: this.contractType,
-          currentPage: this.currentPage,
-          pageSize: this.pageSize,
-          searchType: this.searchType,
-          searchKeyWord: this.searchKeyWord,
-          startDate: this.startDate,
-          endDate: this.endDate,
-        },
-        {},
-        { responseType: 'blob' }
-      ).toPromise()
-      downloadFile({
-        res: data,
-        fileName: `${
-          this.date.year + (this.date.month ? `-${this.date.month}` : '')
-        }_采购合同`,
-        type: 'xls',
-      })
-    },
   },
 }
 </script>
@@ -370,6 +317,9 @@ export default {
   width: 90%;
   margin: 0 auto;
 }
+.bg-left {
+  padding-left: 30px;
+}
 .vertical-text-left {
   width: 62px;
   text-align: right;

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

@@ -321,7 +321,7 @@ export default {
   },
   activated() {
     this.loaddata()
-    getstaff({ compId: sessionStorage.getItem('ws-pf_compId'),warehouseId:this.baseId })
+    getstaff({ compId: sessionStorage.getItem('ws-pf_compId'),warehouseId:'' })
       .toPromise()
       .then((response) => {
         this.options = response

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

@@ -496,6 +496,7 @@ export default {
       deptBudgetList: {
         type:'干粮',
         freight:0,
+        cost:'',
         warehouseInOutDetail: {}
       },
       historyList: [],

+ 927 - 960
src/views/warehouse/warehouseManagementRecord.vue

@@ -1,992 +1,959 @@
 <template>
-  <div class="container">
-    <el-row>
-      <el-col :span="18">
-        <h2 class="bg-left title">流转记录</h2>
-      </el-col>
-      <el-col :span="6" class="bg-right">
-        <el-button
-          class="bg-bottom adjustment"
-          type="primary"
-          size="small"
-          @click="iossrecord()"
-          v-show="this.warehouseType != 2"
-          >盘损记录</el-button
-        >
-        <el-button
-          class="bg-bottom"
-          type="primary"
-          size="small"
-          @click="returnWarehouse()"
-          >返回</el-button
-        >
-      </el-col>
-    </el-row>
-    <div class="center">
-      <h2 style="padding-left: 20px">
-        <img
-          style="position: relative; top: 2px"
-          width="19"
-          height="19"
-          src="../../../public/img/cangku.png"
-          alt=""
-        />
-        <span style="color: #323233">{{ deptBudgetList.warehouseName }}</span>
-        <span class="ware" v-show="warehouseType==1">{{binNumber}}仓位(容量{{capacity}}吨)</span>
-        <span v-show="warehouseType==2">(临)</span>
-      </h2>
-      <p
-        style="
+	<div class="container">
+		<el-row>
+			<el-col :span="18">
+				<h2 class="bg-left title">流转记录</h2>
+			</el-col>
+			<el-col :span="6" class="bg-right">
+				<el-button class="bg-bottom adjustment" type="primary" size="small" @click="iossrecord()"
+					v-show="this.warehouseType != 2">盘损记录</el-button>
+				<el-button class="bg-bottom" type="primary" size="small" @click="returnWarehouse()">返回</el-button>
+			</el-col>
+		</el-row>
+		<div class="center">
+			<h2 style="padding-left: 20px">
+				<img style="position: relative; top: 2px" width="19" height="19" src="../../../public/img/cangku.png"
+					alt="" />
+				<span style="color: #323233">{{ deptBudgetList.warehouseName }}</span>
+				<span class="ware" v-show="warehouseType==1">{{binNumber}}仓位(容量{{capacity}}吨)</span>
+				<span v-show="warehouseType==2">(临)</span>
+			</h2>
+			<p style="
           margin-left: 42px;
           background: #f6f7fc;
           color: #afb5cb;
           width: 245px;
-        "
-      >
-        备注:{{remark }}
-      </p>
-
-      <ws-form ref="deptBudgetList" :model="deptBudgetList">
-        <div
-          class="record"
-          :class="{ active: status == 1 }"
-          @click="record('', 1)"
-        >
-          <img
-            v-if="status != 1"
-            width="14"
-            height="14"
-            src="../../../public/img/radio.png"
-            alt=""
-          />
-          <img
-            v-if="status == 1"
-            width="18"
-            height="18"
-            src="../../../public/img/radio-check.png"
-            alt=""
-          />全部记录
-        </div>
-        <div
-          class="record"
-          :class="{ active: status == 2 }"
-          @click="record(2, 2)"
-        >
-          <img
-            v-if="status != 2"
-            width="14"
-            height="14"
-            src="../../../public/img/radio.png"
-            alt=""
-          />
-          <img
-            v-if="status == 2"
-            width="18"
-            height="18"
-            src="../../../public/img/radio-check.png"
-            alt=""
-          />出库记录
-        </div>
-        <div
-          class="record"
-          :class="{ active: status == 3 }"
-          @click="record(3, 3)"
-        >
-          <img
-            v-if="status != 3"
-            width="14"
-            height="14"
-            src="../../../public/img/radio.png"
-            alt=""
-          />
-          <img
-            v-if="status == 3"
-            width="18"
-            height="18"
-            src="../../../public/img/radio-check.png"
-            alt=""
-          />入库记录
-        </div>
-        <el-table :data="warehouseList.records" height="560" v-show="this.warehouseType== '1'">
-          <el-table-column type="expand">
-            <template #default="props">
-              <ws-form ref="deptBudgetList" :model="deptBudgetList">
-                <ws-info-table>
-                  <ws-form-item label="水分(%)" span="1" prop="waterContent">
-                    {{ props.row.waterContent }}
-                  </ws-form-item>
-                  <ws-form-item label="容重(g/l)" span="1" prop="bulkDensity">
-                    {{ props.row.bulkDensity }}
-                  </ws-form-item>
-                  <ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
-                    {{ props.row.jiaorenli }}
-                  </ws-form-item>
-                  <ws-form-item label="杂质(%)" span="1" prop="impurity">
-                    {{ props.row.impurity }}
-                  </ws-form-item>
-                  <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
-                    {{ props.row.mildewGrain }}
-                  </ws-form-item>
-                  <ws-form-item
-                    label="不完善粒(%)"
-                    span="1"
-                    prop="imperfectGrain"
-                  >        
-                    {{ props.row.imperfectGrain }}
-                  </ws-form-item>
-                  <ws-form-item label="质检员" span="1" prop="qualityInspector">
-                    {{ props.row.qualityInspector }}
-                  </ws-form-item>
-                  <ws-form-item label="扣重比" span="1" prop="buckleWeightRatio">
-                    {{ props.row.buckleWeightRatio }}
-                  </ws-form-item>
-                  <ws-form-item label="干粮水分(%)" span="1" prop="solidGrainWater">
-                    {{ props.row.solidGrainWater }}
-                  </ws-form-item>
-                </ws-info-table>
-              </ws-form>
-            </template>
-          </el-table-column>
-          <el-table-column type="index" label="序号">
-            <template scope="scope">
-              <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
-              <span v-else>{{ scope.$index + 1 }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column prop="goodsName" label="货名"> </el-table-column>
-          <el-table-column
-            prop="grossWeight"
-            label="毛重(吨)"
-          ></el-table-column>
-          <el-table-column prop="tare" label="皮重(吨)"> </el-table-column>
-          <el-table-column prop="deductionWeight" label="扣重(吨)"> </el-table-column>
-          <el-table-column
-            prop="netWeight"
-            label="净重(吨)"
-          ></el-table-column>
-          <el-table-column prop="pureWeight" label="纯重(吨)"> </el-table-column>
-          <el-table-column prop="deductionAmount" label="扣款(元/吨)"> </el-table-column>
-          <el-table-column prop="grade" label="品级">
-            <template slot-scope="scope">
-              <span v-if="scope.row.grade == '一等品'" class="top-grade">{{
+        ">
+				备注:{{remark }}
+			</p>
+
+			<ws-form ref="deptBudgetList" :model="deptBudgetList">
+				<div class="record" :class="{ active: status == 1 }" @click="record('', 1)">
+					<img v-if="status != 1" width="14" height="14" src="../../../public/img/radio.png" alt="" />
+					<img v-if="status == 1" width="18" height="18" src="../../../public/img/radio-check.png"
+						alt="" />全部记录
+				</div>
+				<div class="record" :class="{ active: status == 2 }" @click="record(2, 2)">
+					<img v-if="status != 2" width="14" height="14" src="../../../public/img/radio.png" alt="" />
+					<img v-if="status == 2" width="18" height="18" src="../../../public/img/radio-check.png"
+						alt="" />出库记录
+				</div>
+				<div class="record" :class="{ active: status == 3 }" @click="record(3, 3)">
+					<img v-if="status != 3" width="14" height="14" src="../../../public/img/radio.png" alt="" />
+					<img v-if="status == 3" width="18" height="18" src="../../../public/img/radio-check.png"
+						alt="" />入库记录
+				</div>
+				<el-table :data="warehouseList.records" height="560" v-show="this.warehouseType== '1'">
+					<el-table-column type="expand">
+						<template #default="props">
+							<ws-form ref="deptBudgetList" :model="deptBudgetList">
+								<ws-info-table>
+									<ws-form-item label="水分(%)<=" span="1" prop="waterContent">
+										{{ props.row.waterContent }}
+									</ws-form-item>
+									<ws-form-item label="容重(克/升)>=" span="1" prop="bulkDensity">
+										{{ props.row.bulkDensity }}
+									</ws-form-item>
+									<ws-form-item label="热损伤(%)<=" span="1" prop="jiaorenli">
+										{{ props.row.jiaorenli }}
+									</ws-form-item>
+									<ws-form-item label="杂质(%)<=" span="1" prop="impurity">
+										{{ props.row.impurity }}
+									</ws-form-item>
+									<ws-form-item label="霉变粒(%)<=" span="1" prop="mildewGrain">
+										{{ props.row.mildewGrain }}
+									</ws-form-item>
+									<ws-form-item label="不完善粒(%)<=" span="1" prop="imperfectGrain">
+										{{ props.row.imperfectGrain }}
+									</ws-form-item>
+									<ws-form-item label="质检员" span="1" prop="qualityInspector">
+										{{ props.row.qualityInspector }}
+									</ws-form-item>
+									<ws-form-item label="扣重比" span="1" prop="buckleWeightRatio">
+										{{ props.row.buckleWeightRatio }}
+									</ws-form-item>
+									<ws-form-item label="干粮水分(%)" span="1" prop="solidGrainWater">
+										{{ props.row.solidGrainWater }}
+									</ws-form-item>
+								</ws-info-table>
+							</ws-form>
+						</template>
+					</el-table-column>
+					<el-table-column type="index" label="序号">
+						<template scope="scope">
+							<span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
+							<span v-else>{{ scope.$index + 1 }}</span>
+						</template>
+					</el-table-column>
+					<el-table-column prop="goodsName" label="货名" width="60px"> </el-table-column>
+					<el-table-column prop="type" label="类型" width="60px"> </el-table-column>
+					<el-table-column prop="grossWeight" label="毛重(吨)" ></el-table-column>
+					<el-table-column prop="tare" label="皮重(吨)"> </el-table-column>
+					<el-table-column prop="deductionWeight" label="扣重(吨)"> </el-table-column>
+					<el-table-column prop="netWeight" label="净重(吨)"></el-table-column>
+					<el-table-column prop="pureWeight" label="纯重(吨)"> </el-table-column>
+					<el-table-column prop="deductionAmount" label="扣款(元/吨)"> </el-table-column>
+					<el-table-column prop="grade" label="品级" width="80px">
+						<template slot-scope="scope">
+							<span v-if="scope.row.grade == '一等品'" class="top-grade">{{
                 scope.row.grade
               }}</span>
-              <span v-if="scope.row.grade == '二等品'" class="second-class">{{
+							<span v-if="scope.row.grade == '二等品'" class="second-class">{{
                 scope.row.grade
               }}</span>
-              <span v-if="scope.row.grade == '三等品'" class="third-class">{{
+							<span v-if="scope.row.grade == '三等品'" class="third-class">{{
                 scope.row.grade
               }}</span>
-              <span v-if="scope.row.grade == '等外'" class="substandard">{{
+							<span v-if="scope.row.grade == '等外'" class="substandard">{{
                 scope.row.grade
               }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column prop="inOutDate" label="出入库日期">
-            <template slot-scope="scope">
-              <span style="color: #8890b1">{{ scope.row.inOutDate }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column prop="inOutType" label="类型"> </el-table-column>
-          <el-table-column prop="contractNo" label="合同编号">
-            <template slot-scope="scope">
-              <span style="color: #8890b1">{{ scope.row.contractNo }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column prop="carNo" label="车牌号">
-            <template slot-scope="scope">
-              <span style="color: #8890b1">{{ scope.row.carNo }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column prop="agent" label="经办人">
-          </el-table-column>
-          <el-table-column prop="buyer" label="操作人">
-             </el-table-column>
-          <el-table-column prop="addressUrl" label="附件">
-            <template slot-scope="scope">
-              <img
-                width="18"
-                height="20"
-                style="vertical-align: text-top; position: relative; top: -1px"
-                src="../../../public/img/fujian.png"
-                @click="fujian(scope.row)"
-                alt=""
-              />
-              <!-- <span v-if="scope.row.addressUrlArray.length > 0">{{
+						</template>
+					</el-table-column>
+					<el-table-column prop="inOutDate" label="出入库日期">
+						<template slot-scope="scope">
+							<span style="color: #8890b1">{{ scope.row.inOutDate }}</span>
+						</template>
+					</el-table-column>
+					<el-table-column prop="inOutType" label="类型"> </el-table-column>
+					<el-table-column prop="contractNo" label="合同编号">
+						<template slot-scope="scope">
+							<span style="color: #8890b1">{{ scope.row.contractNo }}</span>
+						</template>
+					</el-table-column>
+					<el-table-column prop="carNo" label="车牌号">
+						<template slot-scope="scope">
+							<span style="color: #8890b1">{{ scope.row.carNo }}</span>
+						</template>
+					</el-table-column>
+					<el-table-column prop="agent" label="经办人">
+					</el-table-column>
+					<el-table-column prop="backOffice" label="操作人" width="120px">
+					</el-table-column>
+					<el-table-column prop="addressUrl" label="附件" width="50px">
+						<template slot-scope="scope">
+							<img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
+								src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" />
+							<!-- <span v-if="scope.row.addressUrlArray.length > 0">{{
                 scope.row.addressUrlArray.length
               }}</span> -->
-              <!-- <i @click="fujian(scope.row)" class="el-icon-paperclip iconCss"></i> -->
-            </template>
-          </el-table-column>
-          <el-table-column prop="createDate" label="录入时间">
-            <template slot-scope="scope">
-              <span style="color: #8890b1">{{ scope.row.createDate }}</span>
-            </template>
-          </el-table-column>
-          
-        </el-table>
-        <el-table :data="warehouseList.records" height="560" v-show="this.warehouseType== '2'">
-          <el-table-column type="expand">
-            <template #default="props">
-              <ws-form ref="deptBudgetList" :model="deptBudgetList">
-                <ws-info-table>
-                  <ws-form-item label="水分(%)" span="1" prop="waterContent">
-                    {{ props.row.waterContent }}
-                  </ws-form-item>
-                  <ws-form-item label="容重(g/l)" span="1" prop="bulkDensity">
-                    {{ props.row.bulkDensity }}
-                  </ws-form-item>
-                  <ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
-                    {{ props.row.jiaorenli }}
-                  </ws-form-item>
-                  <ws-form-item label="杂质(%)" span="1" prop="impurity">
-                    {{ props.row.impurity }}
-                  </ws-form-item>
-                  <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
-                    {{ props.row.mildewGrain }}
-                  </ws-form-item>
-                  <ws-form-item
-                    label="不完善粒(%)"
-                    span="1"
-                    prop="imperfectGrain"
-                  >
-                    {{ props.row.imperfectGrain }}
-                  </ws-form-item>
-                  <ws-form-item label="质检员" span="1" prop="qualityInspector">
-                    {{ props.row.qualityInspector }}
-                  </ws-form-item>
-                </ws-info-table>
-              </ws-form>
-            </template>
-          </el-table-column>
-          <el-table-column type="index" label="序号">
-            <template scope="scope">
-              <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
-              <span v-else>{{ scope.$index + 1 }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column prop="goodsName" label="货名"> </el-table-column>
-          <el-table-column
-            prop="grossWeight"
-            label="毛重(吨)"
-          ></el-table-column>
-          <el-table-column prop="tare" label="皮重(吨)"> </el-table-column>
-          <el-table-column
-            prop="netWeight"
-            label="净重(吨)"
-          ></el-table-column>
-          <el-table-column prop="grade" label="品级">
-            <template slot-scope="scope">
-              <span v-if="scope.row.grade == '一等品'" class="top-grade">{{
+							<!-- <i @click="fujian(scope.row)" class="el-icon-paperclip iconCss"></i> -->
+						</template>
+					</el-table-column>
+					<el-table-column prop="createDate" label="录入时间">
+						<template slot-scope="scope">
+							<span style="color: #8890b1">{{ scope.row.createDate }}</span>
+						</template>
+					</el-table-column>
+
+				</el-table>
+				<el-table :data="warehouseList.records" height="560" v-show="this.warehouseType== '2'">
+					<el-table-column type="expand">
+						<template #default="props">
+							<ws-form ref="deptBudgetList" :model="deptBudgetList">
+								<ws-info-table>
+									<ws-form-item label="水分(%)" span="1" prop="waterContent">
+										{{ props.row.waterContent }}
+									</ws-form-item>
+									<ws-form-item label="容重(g/l)" span="1" prop="bulkDensity">
+										{{ props.row.bulkDensity }}
+									</ws-form-item>
+									<ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
+										{{ props.row.jiaorenli }}
+									</ws-form-item>
+									<ws-form-item label="杂质(%)" span="1" prop="impurity">
+										{{ props.row.impurity }}
+									</ws-form-item>
+									<ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
+										{{ props.row.mildewGrain }}
+									</ws-form-item>
+									<ws-form-item label="不完善粒(%)" span="1" prop="imperfectGrain">
+										{{ props.row.imperfectGrain }}
+									</ws-form-item>
+									<ws-form-item label="质检员" span="1" prop="qualityInspector">
+										{{ props.row.qualityInspector }}
+									</ws-form-item>
+								</ws-info-table>
+							</ws-form>
+						</template>
+					</el-table-column>
+					<el-table-column type="index" label="序号">
+						<template scope="scope">
+							<span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
+							<span v-else>{{ scope.$index + 1 }}</span>
+						</template>
+					</el-table-column>
+					<el-table-column prop="goodsName" label="货名"> </el-table-column>
+					<el-table-column prop="grossWeight" label="毛重(吨)"></el-table-column>
+					<el-table-column prop="tare" label="皮重(吨)"> </el-table-column>
+					<el-table-column prop="netWeight" label="净重(吨)"></el-table-column>
+					<el-table-column prop="grade" label="品级">
+						<template slot-scope="scope">
+							<span v-if="scope.row.grade == '一等品'" class="top-grade">{{
                 scope.row.grade
               }}</span>
-              <span v-if="scope.row.grade == '二等品'" class="second-class">{{
+							<span v-if="scope.row.grade == '二等品'" class="second-class">{{
                 scope.row.grade
               }}</span>
-              <span v-if="scope.row.grade == '三等品'" class="third-class">{{
+							<span v-if="scope.row.grade == '三等品'" class="third-class">{{
                 scope.row.grade
               }}</span>
-              <span v-if="scope.row.grade == '等外'" class="substandard">{{
+							<span v-if="scope.row.grade == '等外'" class="substandard">{{
                 scope.row.grade
               }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column prop="inOutDate" label="出入库日期">
-            <template slot-scope="scope">
-              <span style="color: #8890b1">{{ scope.row.inOutDate }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column prop="inOutType" label="类型"> </el-table-column>
-          <el-table-column prop="contractNo" label="合同编号">
-            <template slot-scope="scope">
-              <span style="color: #8890b1">{{ scope.row.contractNo }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column prop="carNo" label="车牌号">
-            <template slot-scope="scope">
-              <span style="color: #8890b1">{{ scope.row.carNo }}</span>
-            </template>
-          </el-table-column>
-          <el-table-column prop="agent" label="经办人">
-          </el-table-column>
-          <el-table-column prop="backOffice" label="内勤"> </el-table-column>
-          <el-table-column prop="addressUrl" label="附件">
-            <template slot-scope="scope">
-              <img
-                width="18"
-                height="20"
-                style="vertical-align: text-top; position: relative; top: -1px"
-                src="../../../public/img/fujian.png"
-                @click="fujian(scope.row)"
-                alt=""
-              />
-              <!-- <span v-if="scope.row.addressUrlArray.length > 0">{{
+						</template>
+					</el-table-column>
+					<el-table-column prop="inOutDate" label="出入库日期">
+						<template slot-scope="scope">
+							<span style="color: #8890b1">{{ scope.row.inOutDate }}</span>
+						</template>
+					</el-table-column>
+					<el-table-column prop="inOutType" label="类型"> </el-table-column>
+					<el-table-column prop="contractNo" label="合同编号">
+						<template slot-scope="scope">
+							<span style="color: #8890b1">{{ scope.row.contractNo }}</span>
+						</template>
+					</el-table-column>
+					<el-table-column prop="carNo" label="车牌号">
+						<template slot-scope="scope">
+							<span style="color: #8890b1">{{ scope.row.carNo }}</span>
+						</template>
+					</el-table-column>
+					<el-table-column prop="agent" label="经办人">
+					</el-table-column>
+					<el-table-column prop="backOffice" label="内勤"> </el-table-column>
+					<el-table-column prop="addressUrl" label="附件">
+						<template slot-scope="scope">
+							<img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
+								src="../../../public/img/fujian.png" @click="fujian(scope.row)" alt="" />
+							<!-- <span v-if="scope.row.addressUrlArray.length > 0">{{
                 scope.row.addressUrlArray.length
               }}</span> -->
-              <!-- <i @click="fujian(scope.row)" class="el-icon-paperclip iconCss"></i> -->
-            </template>
-          </el-table-column>
-          <el-table-column prop="createDate" label="录入时间">
-            <template slot-scope="scope">
-              <span style="color: #8890b1">{{ scope.row.createDate }}</span>
-            </template>
-          </el-table-column>
-          
-        </el-table>
-        
-        <div style="text-align: center; padding: 10px">
-          <el-pagination
-            @size-change="handleSizeChange"
-            @current-change="handleCurrentChange"
-            :current-page="currentPage"
-            :page-size="deptCircularPage.pageSize"
-            layout="total, sizes, prev, pager, next, jumper"
-            :total="deptBudgetTotal"
-          >
-          </el-pagination>
-        </div>
-      </ws-form>
-    </div>
-    <WinseaContentModal
-      v-model="accessoryTFs"
-      :title="$t('system.noticeCircular.information')"
-      @on-cancel="handleClose"
-    >
-      <p>查看附件</p>
-      <ws-upload
-        ref="upload"
-        table-name="maintain_work_order"
-        oss-key="mainPlan"
-        :comp-id="compId"
-        :appendix-ids="appendixIdsAdd"
-        :vesselId="deptBudgetList.addressUrl"
-        :size-limit="size"
-        @uploadSuccess="uploadSuccess"
-        accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
-      />
-    </WinseaContentModal>
-  </div>
-  
+							<!-- <i @click="fujian(scope.row)" class="el-icon-paperclip iconCss"></i> -->
+						</template>
+					</el-table-column>
+					<el-table-column prop="createDate" label="录入时间">
+						<template slot-scope="scope">
+							<span style="color: #8890b1">{{ scope.row.createDate }}</span>
+						</template>
+					</el-table-column>
+
+				</el-table>
+
+				<div style="text-align: center; padding: 10px">
+					<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange"
+						:current-page="currentPage" :page-size="deptCircularPage.pageSize"
+						layout="total, sizes, prev, pager, next, jumper" :total="deptBudgetTotal">
+					</el-pagination>
+				</div>
+			</ws-form>
+		</div>
+		<WinseaContentModal v-model="accessoryTFs" :title="$t('system.noticeCircular.information')"
+			@on-cancel="handleClose">
+			<p>查看附件</p>
+			<ws-upload ref="upload" table-name="maintain_work_order" oss-key="mainPlan" :comp-id="compId"
+				:appendix-ids="appendixIdsAdd" :vesselId="deptBudgetList.addressUrl" :size-limit="size"
+				@uploadSuccess="uploadSuccess" accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar" />
+		</WinseaContentModal>
+	</div>
+
 </template>
 
 
 <script>
-import { addselectinfoList,recordss } from '@/model/warehouse/index'
-import { downloadFile } from '@/utils/batchDown'
-import Pagination from '@/components/Pagination'
-import WsUpload from '@/components/WsUpload'
-import { dayjs, fmoney, EventBus } from 'base-core-lib'
-export default {
-  name: 'viewSpareMoney',
-  components: {
-    WsUpload,
-    Pagination,
-  },
-  watch: {
-    vesselId(val) {
-      this.getList()
-    },
-    isShow(val) {
-      this.showType = val
-    },
-  },
-  data() {
-    return {
-      //弹出框
-      dialogViewSpareMoney: false,
-      dialogApproveFormVisible: false,
-      // 船舶类型
-      monetaryKey: null,
-      // 表格显示数据
-      tableDate: [],
-      appendixIdsAdd: '',
-      // 是否显示
-      showType: true,
-      // 年
-      year: '',
-      deptBudgetTotal: 0,
-      currentPage: 1,
-      pageSize: 10,
-      radiostatus: 1,
-      capacity: '',
-      searchKeyWord: '',
-      contractType: 2,
-      startDate: null,
-      endDate: null,
-      remark: '',
-      binNumber: '',
-      status: 1,
-      // 提交类型
-      submitType: true,
-      selectpackingMethod: {},
-      size: 10,
-      warehouseType:'1',
-     deptBudgetList1: {},
-      compId: sessionStorage.getItem('ws-pf_compId'),
-      deptCircularPage: {},
-      packtypeList: {},
-      pcFlag: 1,
-      date: {
-        year: dayjs().format('YYYY'),
-        month: dayjs().format('MM'),
-      },
-      warehouseList: [],
-      deptBudgetList: {},
-      historyList: [],
-      searchType: '',
-      allurl: '../../../public/img/radio.png',
-      pickerBeginDateBefore: {
-        disabledDate: (time) => {
-          return time.getTime() > Date.now()
-        },
-      },
-      accessoryTFs: false,
-    }
-  },
- 
-  activated() {
-    this.deptBudgetList.baseId = this.$route.query.baseId
-    this.deptBudgetList.positionId = this.$route.query.positionId
-    this.deptBudgetList.warehouseName = this.$route.query.warehouseName
-    this.remark = this.$route.query.remark
-    this.binNumber = this.$route.query.binNumber
-    this.capacity = this.$route.query.capacity
-    this.warehouseType = this.$route.query.warehouseType
-    this.getList()
-
-    this.showType = this.isShow
-  },
-  methods: {
-  
-    //返回按钮
-    returnWarehouse() {
-      this.$router.push({ path: 'warehouseManagementList' })
-    },
-    //
-    iossrecord() {
-      this.$router.push({
-        path: 'warehouseManagementIossRecord',
-        query: {
-          baseId: this.deptBudgetList.baseId,
-          positionId: this.deptBudgetList.positionId,
-          warehouseName: this.deptBudgetList.warehouseName,
-          binNumber: this.binNumber,
-        },
-      })
-    },
-    dateFormat(fmt, date) {
-      let ret
-      const opt = {
-        'Y+': date.getFullYear().toString(), // 年
-        'm+': (date.getMonth() + 1).toString(), // 月
-        'd+': date.getDate().toString(), // 日
-        'H+': date.getHours().toString(), // 时
-        // "M+": date.getMinutes().toString(),         // 分
-        // "S+": date.getSeconds().toString()          // 秒
-        // 有其他格式化字符需求可以继续添加,必须转化成字符串
-      }
-      for (let k in opt) {
-        ret = new RegExp('(' + k + ')').exec(fmt)
-        if (ret) {
-          fmt = fmt.replace(
-            ret[1],
-            ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
-          )
-        }
-      }
-      return fmt
-    },
-    handleClose() {
-      this.accessoryTFs = false
-    },
-    handleSizeChange(val) {
-      console.log(`每页 ${val} 条`)
-      this.pageSize = val
-      this.getList()
-    },
-    handleCurrentChange(val) {
-      this.currentPage = val
-      console.log(`当前页: ${val}`)
-      this.getList()
-    },
-    record(status, status1) {
-      this.status = status1
-      this.searchType = status
-      this.getList()
-    },
-    // 上传附件
-    uploadSuccess(data, files, url) {
-      console.log(data, files, url)
-
-      // this.deptBudgetList.
-      // this.formData.append('files', files)
-      // this.feedbackObj.uploadNameAttachment = data.appendixName
-      // this.feedbackObj.pathUploadAttachment = data.appendixPath
-      // // this.newAppendixs = files
-      // this.onChangeFlag = true
-    },
-    getList() {
-      if(this.warehouseType==1){
-        addselectinfoList({
-        compId: sessionStorage.getItem('ws-pf_compId'),
-        baseId: this.deptBudgetList.baseId,
-        positionId: this.deptBudgetList.positionId,
-        warehouseName: this.deptBudgetList.warehouseName,
-        searchType: this.searchType,
-        currentPage: this.currentPage,
-        pcFlag: this.pcFlag,
-        pageSize: this.pageSize
-      })
-        .toPromise()
-        .then((response) => {
-          for (var i = 0; i <  response.records.length; i++) {
-            if (response.records[i].addressUrl != null) {
-              response.records[i].addressUrlArray = response.records[
-                i
-              ].addressUrl.split(',')
-            } else {
-              response.records[i].addressUrlArray = []
-            }
-          }
-          this.deptCircularPage.currentPage = response.current
-          this.deptCircularPage.pageSize = response.size
-          this.deptBudgetTotal = response.total
-          this.warehouseList = response
-        }) 
-      }else if(this.warehouseType==2){
-       recordss({
-        compId: sessionStorage.getItem('ws-pf_compId'),
-        baseId: this.deptBudgetList.baseId,
-        positionId: this.deptBudgetList.positionId,
-        warehouseName: this.deptBudgetList.warehouseName,
-        searchType: this.searchType,
-        currentPage: this.currentPage,
-        pageSize: this.pageSize,
-      })
-        .toPromise()
-        .then((response) => {
-          for (var i = 0; i < response.records.length; i++) {
-            if (response.records[i].addressUrl != null) {
-              response.records[i].addressUrlArray = response.records[
-                i
-              ].addressUrl.split(',')
-            } else {
-              response.records[i].addressUrlArray = []
-            }
-          }
-         this.deptCircularPage.currentPage = response.current
-          this.deptCircularPage.pageSize = response.size
-          this.deptBudgetTotal = response.total
-          this.warehouseList = response
-        }) 
-      }
-      
-    },
-    selecttaskType(e) {
-      for (var i = 0; i < this.taskTypeList.length; i++) {
-        if (this.taskTypeList[i].value == e) {
-          this.searchType = this.taskTypeList[i].type
-        }
-      }
-    },
-    fujian(row) {
-      if (
-        row.receiveAttachmentPath === null ||
-        row.receiveAttachmentPath === ''
-      ) {
-        EventBus.$emit(
-          'warning',
-          this.$t('system.noticeCircular.NoInformation')
-        )
-      } else {
-        this.accessoryTFs = true
-      }
-      this.appendixIdss = row.receiveAttachmentPath
-    },
-    handleExamine(row) {
-      this.$router.push({
-        name: 'salesContractExamine',
-        query: { id: row.id },
-      })
-    },
-
-    // 关闭 dialog时 处理文件url 初始化upload组件
-    handleCloe() {
-      this.dialogViewSpareMoney = false
-    },
-    history(row) {
-      console.log(row)
-      billoperatehis({ id: row.id })
-        .toPromise()
-        .then((response) => {
-          this.historyList = response
-        })
-    },
-    find() {
-      this.startDate = this.dateFormat('YYYY-mm-dd', this.value2[0])
-      this.endDate = this.dateFormat('YYYY-mm-dd', this.value2[1])
-      this.currentPage = 1
-      this.getList()
-    },
-    // async exportlist() {
-    //   const { data } = await export1(
-    //     {
-    //       compId: sessionStorage.getItem('ws-pf_compId'),
-    //       contractType: this.contractType,
-    //       currentPage: this.currentPage,
-    //       pageSize: this.pageSize,
-    //       searchType: this.searchType,
-    //       searchKeyWord: this.searchKeyWord,
-    //       startDate: this.startDate,
-    //       endDate: this.endDate,
-    //     },
-    //     {},
-    //     { responseType: 'blob' }
-    //   ).toPromise()
-    //   downloadFile({
-    //     res: data,
-    //     fileName: `${
-    //       this.date.year + (this.date.month ? `-${this.date.month}` : '')
-    //     }_采购合同`,
-    //     type: 'xls',
-    //   })
-    // },
-    // deletecontract(){},
-    //删除
-
-    approve() {},
-    listQuery() {},
-    total() {},
-    clearfiltQuery() {},
-    selectCrtDuty() {},
-  },
-}
+	import {
+		addselectinfoList,
+		recordss
+	} from '@/model/warehouse/index'
+	import {
+		downloadFile
+	} from '@/utils/batchDown'
+	import Pagination from '@/components/Pagination'
+	import WsUpload from '@/components/WsUpload'
+	import {
+		dayjs,
+		fmoney,
+		EventBus
+	} from 'base-core-lib'
+	export default {
+		name: 'viewSpareMoney',
+		components: {
+			WsUpload,
+			Pagination,
+		},
+		watch: {
+			vesselId(val) {
+				this.getList()
+			},
+			isShow(val) {
+				this.showType = val
+			},
+		},
+		data() {
+			return {
+				//弹出框
+				dialogViewSpareMoney: false,
+				dialogApproveFormVisible: false,
+				// 船舶类型
+				monetaryKey: null,
+				// 表格显示数据
+				tableDate: [],
+				appendixIdsAdd: '',
+				// 是否显示
+				showType: true,
+				// 年
+				year: '',
+				deptBudgetTotal: 0,
+				currentPage: 1,
+				pageSize: 10,
+				radiostatus: 1,
+				capacity: '',
+				searchKeyWord: '',
+				contractType: 2,
+				startDate: null,
+				endDate: null,
+				remark: '',
+				binNumber: '',
+				status: 1,
+				// 提交类型
+				submitType: true,
+				selectpackingMethod: {},
+				size: 10,
+				warehouseType: '1',
+				deptBudgetList1: {},
+				compId: sessionStorage.getItem('ws-pf_compId'),
+				deptCircularPage: {},
+				packtypeList: {},
+				pcFlag: 1,
+				date: {
+					year: dayjs().format('YYYY'),
+					month: dayjs().format('MM'),
+				},
+				warehouseList: [],
+				deptBudgetList: {},
+				historyList: [],
+				searchType: '',
+				allurl: '../../../public/img/radio.png',
+				pickerBeginDateBefore: {
+					disabledDate: (time) => {
+						return time.getTime() > Date.now()
+					},
+				},
+				accessoryTFs: false,
+			}
+		},
+
+		activated() {
+			this.deptBudgetList.baseId = this.$route.query.baseId
+			this.deptBudgetList.positionId = this.$route.query.positionId
+			this.deptBudgetList.warehouseName = this.$route.query.warehouseName
+			this.remark = this.$route.query.remark
+			this.binNumber = this.$route.query.binNumber
+			this.capacity = this.$route.query.capacity
+			this.warehouseType = this.$route.query.warehouseType
+			this.getList()
+
+			this.showType = this.isShow
+		},
+		methods: {
+
+			//返回按钮
+			returnWarehouse() {
+				this.$router.push({
+					path: 'warehouseManagementList'
+				})
+			},
+			//
+			iossrecord() {
+				this.$router.push({
+					path: 'warehouseManagementIossRecord',
+					query: {
+						baseId: this.deptBudgetList.baseId,
+						positionId: this.deptBudgetList.positionId,
+						warehouseName: this.deptBudgetList.warehouseName,
+						binNumber: this.binNumber,
+					},
+				})
+			},
+			dateFormat(fmt, date) {
+				let ret
+				const opt = {
+					'Y+': date.getFullYear().toString(), // 年
+					'm+': (date.getMonth() + 1).toString(), // 月
+					'd+': date.getDate().toString(), // 日
+					'H+': date.getHours().toString(), // 时
+					// "M+": date.getMinutes().toString(),         // 分
+					// "S+": date.getSeconds().toString()          // 秒
+					// 有其他格式化字符需求可以继续添加,必须转化成字符串
+				}
+				for (let k in opt) {
+					ret = new RegExp('(' + k + ')').exec(fmt)
+					if (ret) {
+						fmt = fmt.replace(
+							ret[1],
+							ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
+						)
+					}
+				}
+				return fmt
+			},
+			handleClose() {
+				this.accessoryTFs = false
+			},
+			handleSizeChange(val) {
+				console.log(`每页 ${val} 条`)
+				this.pageSize = val
+				this.getList()
+			},
+			handleCurrentChange(val) {
+				this.currentPage = val
+				console.log(`当前页: ${val}`)
+				this.getList()
+			},
+			record(status, status1) {
+				this.status = status1
+				this.searchType = status
+				this.getList()
+			},
+			// 上传附件
+			uploadSuccess(data, files, url) {
+				console.log(data, files, url)
+
+				// this.deptBudgetList.
+				// this.formData.append('files', files)
+				// this.feedbackObj.uploadNameAttachment = data.appendixName
+				// this.feedbackObj.pathUploadAttachment = data.appendixPath
+				// // this.newAppendixs = files
+				// this.onChangeFlag = true
+			},
+			getList() {
+				if (this.warehouseType == 1) {
+					addselectinfoList({
+							compId: sessionStorage.getItem('ws-pf_compId'),
+							baseId: this.deptBudgetList.baseId,
+							positionId: this.deptBudgetList.positionId,
+							warehouseName: this.deptBudgetList.warehouseName,
+							searchType: this.searchType,
+							currentPage: this.currentPage,
+							pcFlag: this.pcFlag,
+							pageSize: this.pageSize
+						})
+						.toPromise()
+						.then((response) => {
+							for (var i = 0; i < response.records.length; i++) {
+								if (response.records[i].addressUrl != null) {
+									response.records[i].addressUrlArray = response.records[
+										i
+									].addressUrl.split(',')
+								} else {
+									response.records[i].addressUrlArray = []
+								}
+							}
+							this.deptCircularPage.currentPage = response.current
+							this.deptCircularPage.pageSize = response.size
+							this.deptBudgetTotal = response.total
+							this.warehouseList = response
+						})
+				} else if (this.warehouseType == 2) {
+					recordss({
+							compId: sessionStorage.getItem('ws-pf_compId'),
+							baseId: this.deptBudgetList.baseId,
+							positionId: this.deptBudgetList.positionId,
+							warehouseName: this.deptBudgetList.warehouseName,
+							searchType: this.searchType,
+							currentPage: this.currentPage,
+							pageSize: this.pageSize,
+						})
+						.toPromise()
+						.then((response) => {
+							for (var i = 0; i < response.records.length; i++) {
+								if (response.records[i].addressUrl != null) {
+									response.records[i].addressUrlArray = response.records[
+										i
+									].addressUrl.split(',')
+								} else {
+									response.records[i].addressUrlArray = []
+								}
+							}
+							this.deptCircularPage.currentPage = response.current
+							this.deptCircularPage.pageSize = response.size
+							this.deptBudgetTotal = response.total
+							this.warehouseList = response
+						})
+				}
+
+			},
+			selecttaskType(e) {
+				for (var i = 0; i < this.taskTypeList.length; i++) {
+					if (this.taskTypeList[i].value == e) {
+						this.searchType = this.taskTypeList[i].type
+					}
+				}
+			},
+			fujian(row) {
+				if (
+					row.receiveAttachmentPath === null ||
+					row.receiveAttachmentPath === ''
+				) {
+					EventBus.$emit(
+						'warning',
+						this.$t('system.noticeCircular.NoInformation')
+					)
+				} else {
+					this.accessoryTFs = true
+				}
+				this.appendixIdss = row.receiveAttachmentPath
+			},
+			handleExamine(row) {
+				this.$router.push({
+					name: 'salesContractExamine',
+					query: {
+						id: row.id
+					},
+				})
+			},
+
+			// 关闭 dialog时 处理文件url 初始化upload组件
+			handleCloe() {
+				this.dialogViewSpareMoney = false
+			},
+			history(row) {
+				console.log(row)
+				billoperatehis({
+						id: row.id
+					})
+					.toPromise()
+					.then((response) => {
+						this.historyList = response
+					})
+			},
+			find() {
+				this.startDate = this.dateFormat('YYYY-mm-dd', this.value2[0])
+				this.endDate = this.dateFormat('YYYY-mm-dd', this.value2[1])
+				this.currentPage = 1
+				this.getList()
+			},
+			// async exportlist() {
+			//   const { data } = await export1(
+			//     {
+			//       compId: sessionStorage.getItem('ws-pf_compId'),
+			//       contractType: this.contractType,
+			//       currentPage: this.currentPage,
+			//       pageSize: this.pageSize,
+			//       searchType: this.searchType,
+			//       searchKeyWord: this.searchKeyWord,
+			//       startDate: this.startDate,
+			//       endDate: this.endDate,
+			//     },
+			//     {},
+			//     { responseType: 'blob' }
+			//   ).toPromise()
+			//   downloadFile({
+			//     res: data,
+			//     fileName: `${
+			//       this.date.year + (this.date.month ? `-${this.date.month}` : '')
+			//     }_采购合同`,
+			//     type: 'xls',
+			//   })
+			// },
+			// deletecontract(){},
+			//删除
+
+			approve() {},
+			listQuery() {},
+			total() {},
+			clearfiltQuery() {},
+			selectCrtDuty() {},
+		},
+	}
 </script>
 <style lang="scss" scoped>
-/deep/.totalStorage .el-input__inner {
-  color: #afb5cb;
-  background: #f5f7fa;
-}
-.small-title {
-  position: relative;
-  padding: 10px;
-  font-weight: 600;
-}
-.small-title::before {
-  position: absolute;
-  content: '';
-  display: block;
-  background: #5473e8;
-  width: 4px;
-  height: 14px;
-  left: 0px;
-  top: 13px;
-}
-.position {
-  position: relative;
-}
-.add,
-.del {
-  position: absolute;
-  right: -38px;
-  top: 9px;
-  cursor: pointer;
-}
-.del {
-  right: -70px;
-}
-.amap-page-container {
-  width: 300px;
-  height: 300px;
-}
-.ware {
-  font-size: 12px;
-  color: rgb(255, 255, 255);
-  background: rgb(175, 181, 203);
-  padding: 3px;
-  position: relative;
-  top: -1px;
-  border-radius: 3px;
-  text-align: center;
-}
-.title {
-  position: relative;
-}
-.title::before {
-  content: '';
-  display: inline-block;
-  width: 5px;
-  height: 30px;
-  background: #5473e8;
-  position: absolute;
-  left: 0;
-}
-.ws-info-table {
-  border-left: 1px solid transparent;
-  border-top: 1px solid transparent;
-}
-.el-button--primary {
-  background-color: #5878e8;
-  border-color: #5878e8;
-}
-.adjustment.el-button--primary {
-  background-color: #51cdd9;
-  border-color: #51cdd9;
-}
-.el-col {
-  background: #f6f7fc;
-}
-.record {
-  background: #fff;
-  color: #8890b1;
-  border-color: #fff;
-  display: inline-block;
-  margin-bottom: 10px;
-  cursor: pointer;
-  margin-left: 5px;
-  margin-right: 5px;
-}
-.record img {
-  position: relative;
-  top: 2px;
-}
-.record.active img {
-  position: relative;
-  top: 4px;
-}
-.record.active {
-  color: #262626;
-}
-.button-container {
-  display: flex;
-  flex-wrap: nowrap;
-  justify-content: space-between;
-  align-items: center;
-  background-color: #fff;
-  width: 100%;
-  height: 50px;
-  padding: 0 10px;
-  & > div {
-    margin-left: 10px;
-    display: flex;
-    flex-wrap: nowrap;
-    flex-direction: row;
-    & > span {
-      line-height: 50px;
-    }
-  }
-
-  /deep/.auditFlow-box {
-    position: unset;
-    margin-left: 10px;
-    &/deep/.auditFlow-icon {
-      width: auto;
-      padding-right: 30px;
-    }
-    &/deep/.auditFlow-main {
-      position: absolute;
-    }
-  }
-}
-.box-app {
-  display: inline-block;
-  float: left;
-  margin-left: 30px;
-  line-height: 50px;
-}
-/deep/.el-dialog {
-  .el-form-item {
-    margin-bottom: 0 !important;
-    .el-input--medium {
-      textarea {
-        min-height: 100px !important;
-      }
-    }
-  }
-}
-.top-grade {
-  background: linear-gradient(90deg, #5678e9, #7993f6);
-  color: #fff;
-  padding: 3px;
-  border-radius: 2px;
-}
-.second-class {
-  background: linear-gradient(90deg, #50cdd9, #82e2ea);
-  color: #fff;
-  padding: 3px;
-  border-radius: 2px;
-}
-.third-class {
-  background: linear-gradient(90deg, #ffa735, #ffbf70);
-  color: #fff;
-  padding: 3px;
-  border-radius: 2px;
-}
-.substandard {
-  background: linear-gradient(90deg, #b2b4bb, #ced0d5);
-  color: #fff;
-  padding: 3px;
-  border-radius: 2px;
-}
-.collapse-bottom {
-  margin-bottom: 20px;
-}
-.input-main .textarea .el-textarea__inner {
-  width: 100%;
-  z-index: 1;
-}
-.bg-left {
-  padding-left: 30px;
-}
-.bg-right {
-  padding-right: 10px;
-  text-align: right;
-}
-.bg-bottom {
-  margin: 15px 0px;
-}
-.wenzi {
-  width: 900px;
-  margin: 0 auto;
-}
-.wenzi h3 {
-  display: inline-block;
-  left: 10px;
-}
-.wenzi p {
-  display: inline-block;
-}
-.center {
-  padding: 0 1%;
-}
-.el-form-item {
-  width: 50%;
-}
-.el-form-item__label {
-  text-align: center;
-}
-.ce {
-  width: 900px;
-  margin: 0 auto;
-}
-/*.crt-main .textarea /deep/ .el-form-item__label {*/
-/*  height: 82px;*/
-/*}*/
-// 控制select为只读的时候显示样式
-
-.hide-sel {
-  .el-input__inner {
-    border: 0px;
-  }
-  .el-icon-arrow-up {
-    display: none;
-  }
-  .el-textarea__inner {
-    background-color: #fff !important;
-    border: 0;
-  }
-  .el-date-editor {
-    i {
-      display: none;
-    }
-  }
-  .is-disabled {
-    .el-input__inner:hover {
-      background-color: #fff !important;
-      border: 0;
-    }
-    color: #606266;
-    .el-input__inner {
-      background-color: #fff !important;
-      border: 0;
-      color: #606266;
-    }
-    .el-textarea__inner {
-      background-color: #fff !important;
-      border: 0;
-      color: #606266;
-    }
-  }
-}
-
-// 控制select为只读的时候显示样式
-/deep/.ws-class-table-col {
-  height: auto;
-  padding: 0px 2px;
-  /deep/.el-input__inner {
-    padding: 0px 2px;
-  }
-}
-/deep/.is-disabled {
-  .el-input__prefix,
-  .el-input__suffix {
-    display: none;
-  }
-  .el-input__inner {
-    background-color: #fff;
-    border-color: #fff !important;
-    color: #000 !important;
-    font-size: 14px;
-    cursor: text;
-    padding: 0 !important;
-  }
-}
-.winseaview-view {
-  padding: 0 0 20px;
-}
-.container {
-  overflow: scroll;
-  height: 93vh;
-}
-.el-textarea__inner {
-  display: none;
-}
-.readonly {
-  width: 16%;
-}
-.ws-info-table .el-form-item {
-  width: 14.28%;
-}
-/deep/.ws-info-table .el-form-item .el-form-item__label {
-  background-color: #f6f7fc;
-  font-size: 12px;
-  height: 45px;
-}
-//去边框
-/deep/.el-form-item {
-  border-right: 0px;
-  border-bottom: 0px;
-}
-/deep/.ws-info-table {
-  border-left: 0px;
-  border-top: 0px;
-}
-.ws-info-table .el-form-item .el-form-item__content {
-  border-right: 0px;
-  border-bottom: 0px;
-  border-left: 0px;
-  border-top: 0px;
-}
-/deep/.ws-info-table .el-form-item {
-  border-right: 0px;
-  border-bottom: 0px;
-  border-left: 0px;
-  border-top: 0px;
-}
-/deep/.ws-info-table .el-form-item .el-form-item__content {
-  background: #f5f7fa;
-  border-radius: 4px;
-  border: 1px solid #d8dce6;
-  font-family: PingFangSC-Regular, PingFang SC;
-  margin-bottom: 5px;
-  background-color: #fff;
-  font-size: 14px;
-  font-weight: 400;
-  color: #8890b1;
-  line-height: 16px;
-}
-
-/deep/.ws-info-table .el-form-item .el-form-item__content {
-  border: 0px;
-}
+	/deep/.totalStorage .el-input__inner {
+		color: #afb5cb;
+		background: #f5f7fa;
+	}
+
+	.small-title {
+		position: relative;
+		padding: 10px;
+		font-weight: 600;
+	}
+
+	.small-title::before {
+		position: absolute;
+		content: '';
+		display: block;
+		background: #5473e8;
+		width: 4px;
+		height: 14px;
+		left: 0px;
+		top: 13px;
+	}
+
+	.position {
+		position: relative;
+	}
+
+	.add,
+	.del {
+		position: absolute;
+		right: -38px;
+		top: 9px;
+		cursor: pointer;
+	}
+
+	.del {
+		right: -70px;
+	}
+
+	.amap-page-container {
+		width: 300px;
+		height: 300px;
+	}
+
+	.ware {
+		font-size: 12px;
+		color: rgb(255, 255, 255);
+		background: rgb(175, 181, 203);
+		padding: 3px;
+		position: relative;
+		top: -1px;
+		border-radius: 3px;
+		text-align: center;
+	}
+
+	.title {
+		position: relative;
+	}
+
+	.title::before {
+		content: '';
+		display: inline-block;
+		width: 5px;
+		height: 30px;
+		background: #5473e8;
+		position: absolute;
+		left: 0;
+	}
+
+	.ws-info-table {
+		border-left: 1px solid transparent;
+		border-top: 1px solid transparent;
+	}
+
+	.el-button--primary {
+		background-color: #5878e8;
+		border-color: #5878e8;
+	}
+
+	.adjustment.el-button--primary {
+		background-color: #51cdd9;
+		border-color: #51cdd9;
+	}
+
+	.el-col {
+		background: #f6f7fc;
+	}
+
+	.record {
+		background: #fff;
+		color: #8890b1;
+		border-color: #fff;
+		display: inline-block;
+		margin-bottom: 10px;
+		cursor: pointer;
+		margin-left: 5px;
+		margin-right: 5px;
+	}
+
+	.record img {
+		position: relative;
+		top: 2px;
+	}
+
+	.record.active img {
+		position: relative;
+		top: 4px;
+	}
+
+	.record.active {
+		color: #262626;
+	}
+
+	.button-container {
+		display: flex;
+		flex-wrap: nowrap;
+		justify-content: space-between;
+		align-items: center;
+		background-color: #fff;
+		width: 100%;
+		height: 50px;
+		padding: 0 10px;
+
+		&>div {
+			margin-left: 10px;
+			display: flex;
+			flex-wrap: nowrap;
+			flex-direction: row;
+
+			&>span {
+				line-height: 50px;
+			}
+		}
+
+		/deep/.auditFlow-box {
+			position: unset;
+			margin-left: 10px;
+
+			&/deep/.auditFlow-icon {
+				width: auto;
+				padding-right: 30px;
+			}
+
+			&/deep/.auditFlow-main {
+				position: absolute;
+			}
+		}
+	}
+
+	.box-app {
+		display: inline-block;
+		float: left;
+		margin-left: 30px;
+		line-height: 50px;
+	}
+
+	/deep/.el-dialog {
+		.el-form-item {
+			margin-bottom: 0 !important;
+
+			.el-input--medium {
+				textarea {
+					min-height: 100px !important;
+				}
+			}
+		}
+	}
+
+	.top-grade {
+		background: linear-gradient(90deg, #5678e9, #7993f6);
+		color: #fff;
+		padding: 3px;
+		border-radius: 2px;
+	}
+
+	.second-class {
+		background: linear-gradient(90deg, #50cdd9, #82e2ea);
+		color: #fff;
+		padding: 3px;
+		border-radius: 2px;
+	}
+
+	.third-class {
+		background: linear-gradient(90deg, #ffa735, #ffbf70);
+		color: #fff;
+		padding: 3px;
+		border-radius: 2px;
+	}
+
+	.substandard {
+		background: linear-gradient(90deg, #b2b4bb, #ced0d5);
+		color: #fff;
+		padding: 3px;
+		border-radius: 2px;
+	}
+
+	.collapse-bottom {
+		margin-bottom: 20px;
+	}
+
+	.input-main .textarea .el-textarea__inner {
+		width: 100%;
+		z-index: 1;
+	}
+
+	.bg-left {
+		padding-left: 30px;
+	}
+
+	.bg-right {
+		padding-right: 10px;
+		text-align: right;
+	}
+
+	.bg-bottom {
+		margin: 15px 0px;
+	}
+
+	.wenzi {
+		width: 900px;
+		margin: 0 auto;
+	}
+
+	.wenzi h3 {
+		display: inline-block;
+		left: 10px;
+	}
+
+	.wenzi p {
+		display: inline-block;
+	}
+
+	.center {
+		padding: 0 1%;
+	}
+
+	.el-form-item {
+		width: 50%;
+	}
+
+	.el-form-item__label {
+		text-align: center;
+	}
+
+	.ce {
+		width: 900px;
+		margin: 0 auto;
+	}
+
+	/*.crt-main .textarea /deep/ .el-form-item__label {*/
+	/*  height: 82px;*/
+	/*}*/
+	// 控制select为只读的时候显示样式
+
+	.hide-sel {
+		.el-input__inner {
+			border: 0px;
+		}
+
+		.el-icon-arrow-up {
+			display: none;
+		}
+
+		.el-textarea__inner {
+			background-color: #fff !important;
+			border: 0;
+		}
+
+		.el-date-editor {
+			i {
+				display: none;
+			}
+		}
+
+		.is-disabled {
+			.el-input__inner:hover {
+				background-color: #fff !important;
+				border: 0;
+			}
+
+			color: #606266;
+
+			.el-input__inner {
+				background-color: #fff !important;
+				border: 0;
+				color: #606266;
+			}
+
+			.el-textarea__inner {
+				background-color: #fff !important;
+				border: 0;
+				color: #606266;
+			}
+		}
+	}
+
+	// 控制select为只读的时候显示样式
+	/deep/.ws-class-table-col {
+		height: auto;
+		padding: 0px 2px;
+
+		/deep/.el-input__inner {
+			padding: 0px 2px;
+		}
+	}
+
+	/deep/.is-disabled {
+		.el-input__prefix,
+		.el-input__suffix {
+			display: none;
+		}
+
+		.el-input__inner {
+			background-color: #fff;
+			border-color: #fff !important;
+			color: #000 !important;
+			font-size: 14px;
+			cursor: text;
+			padding: 0 !important;
+		}
+	}
+
+	.winseaview-view {
+		padding: 0 0 20px;
+	}
+
+	.container {
+		overflow: scroll;
+		height: 93vh;
+	}
+
+	.el-textarea__inner {
+		display: none;
+	}
+
+	.readonly {
+		width: 16%;
+	}
+
+	.ws-info-table .el-form-item {
+		width: 14.28%;
+	}
+
+	/deep/.ws-info-table .el-form-item .el-form-item__label {
+		background-color: #f6f7fc;
+		font-size: 12px;
+		height: 45px;
+	}
+
+	//去边框
+	/deep/.el-form-item {
+		border-right: 0px;
+		border-bottom: 0px;
+	}
+
+	/deep/.ws-info-table {
+		border-left: 0px;
+		border-top: 0px;
+	}
+
+	.ws-info-table .el-form-item .el-form-item__content {
+		border-right: 0px;
+		border-bottom: 0px;
+		border-left: 0px;
+		border-top: 0px;
+	}
+
+	/deep/.ws-info-table .el-form-item {
+		border-right: 0px;
+		border-bottom: 0px;
+		border-left: 0px;
+		border-top: 0px;
+	}
+
+	/deep/.ws-info-table .el-form-item .el-form-item__content {
+		background: #f5f7fa;
+		border-radius: 4px;
+		border: 1px solid #d8dce6;
+		font-family: PingFangSC-Regular, PingFang SC;
+		margin-bottom: 5px;
+		background-color: #fff;
+		font-size: 14px;
+		font-weight: 400;
+		color: #8890b1;
+		line-height: 16px;
+	}
+
+	/deep/.ws-info-table .el-form-item .el-form-item__content {
+		border: 0px;
+	}
 </style>

+ 721 - 0
src/views/warehouse/warehouselocation.vue

@@ -0,0 +1,721 @@
+<!--仓库管理-->
+<template>
+  <div>
+      <el-row>
+      <el-col :span="12">
+        <h2 class="bg-left title">库点费用</h2>
+      </el-col>
+      <el-col :span="12" class="bg-right">
+        <el-button
+          class="bg-bottom"
+          type="primary"
+          size="small"
+          @click="returnsales()"
+          ><img
+            width="6"
+            height="10"
+            style="vertical-align: bottom; margin-right: 3px"
+            src="../../../public/img/lujing.png"
+            alt=""
+          />返回</el-button
+        >
+      </el-col>
+    </el-row>
+    <el-row>
+      <el-col class='bg-left' :span="12">
+        <div style='align-items:center;' class='flex'>
+          <ws-button class="find" type="primary" @click="addlist()"
+          >添加</ws-button>
+          <div style='align-items:center;' class='flex'>
+              <div :class='{"forbidden":forbidden==true}' @click='minus'><i class="el-icon-arrow-left"></i></div>
+              <ws-select
+                v-model="year"
+                placeholder=""
+                @change="yearChange"
+                :value="searchType"
+                style="margin: 0 10px"
+                >
+                <ws-option
+                    v-for="item in yearList"
+                    :key="item.value"
+                    :label="item.value"
+                    :value="item.value"
+                    style="color: #8890b1"
+                />
+                </ws-select>
+              <div :class='{"forbidden":forbidden1==true}' @click='add'><i class="el-icon-arrow-right"></i></div>
+          </div>
+          <span>合计:{{count}}元</span>
+        </div>
+      </el-col>
+      <el-col :span="12" class="bg-right">
+       <ws-select
+          v-model="warehouseName"
+          placeholder=""
+          @change="warehouseNameChange"
+          :value="searchType"
+          style="margin: 0 10px"
+        >
+          <ws-option
+            v-for="item in warehouseList1"
+            :key="item.value"
+            :label="item.value"
+            :value="item.value"
+            style="color: #8890b1"
+          />
+        </ws-select>
+        <!-- v-hasPermission="'procurement.sparepart.directShip'" -->
+        <ws-button class="find" type="primary" @click="find()"
+          ><img
+            width="16"
+            height="16"
+            style="
+              vertical-align: text-top;
+              position: relative;
+              top: 0px;
+              left: -8px;
+            "
+            src="../../../public/img/sousuo.png"
+            alt=""
+        /></ws-button>
+     </el-col>
+    </el-row>
+      <el-table
+        class="wenzi"
+        :data="warehouseList.records"
+        style="width: 100%; margin-top: 20px"
+        height="780"
+      >
+      <el-table-column label="序号" type="index" show-overflow-tooltip width="50">
+      </el-table-column>
+        <el-table-column prop="expenseName" label="费用名称" >
+        </el-table-column>
+        <el-table-column prop="amount" label="金额(元)" >
+        </el-table-column>
+        <el-table-column prop="storage" label="附件">
+            <template slot-scope="scope">
+                <img
+            width="18"
+            height="20"
+            style="vertical-align: text-top; position: relative; top: -1px"
+            src="../../../public/img/fujian.png"
+            @click="fujian(scope.row)"
+            alt=""
+          />
+            </template>
+        </el-table-column>
+        <el-table-column  prop="costDate" label="日期">
+        </el-table-column>
+        
+        <el-table-column prop="address" label="操作" width="200">
+          <template slot-scope="scope">
+            <div class="adjustment" v-hasPermission="
+           `warehouseManagement.warehouse.warehouseInfo.view`
+          " @click="editlist(scope.row)">编辑</div>
+          </template>
+        </el-table-column>
+      </el-table>
+      <el-pagination
+      @size-change="handleSizeChange"
+      @current-change="handleCurrentChange"
+      :current-page="currentPage"
+      :page-size="pageSize"
+      layout="total, sizes, prev, pager, next, jumper"
+      :total="deptBudgetTotal"
+    >
+    </el-pagination>
+    <WinseaContentModal
+      v-model="accessoryTFs"
+      :title="$t('system.noticeCircular.information')"
+      @on-cancel="handleClose"
+    >
+    <ws-upload
+        ref="upload"
+        :comp-id="compId"
+        :appendix-ids="appendixIdss"
+        :editable="false"
+        accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
+      />
+      
+    </WinseaContentModal>
+      <el-dialog :title="dialogtitle" :visible.sync="addvisible">
+        <el-form label-width="140px" label-position='right'>
+          <el-form-item  label="费用名称" >
+            <el-input v-model="expenseName" autocomplete="off"></el-input>
+          </el-form-item>
+          <el-form-item  label="金额" >
+            <el-input v-model="amount" autocomplete="off"></el-input>
+          </el-form-item>
+          <el-form-item label="付款截图" >
+            <ws-upload
+        ref="upload"
+        :comp-id="compId"
+        :appendix-ids="applUrl"
+        :size-limit="size"
+        :limit='limit'
+        @onChange="onChange"
+        accept=".jpg, .jpeg, .png, .pdf, .doc, .zip, .rar"
+      />
+          </el-form-item>
+        </el-form>
+        <div slot="footer" class="dialog-footer">
+          <el-button @click="addvisible = false">取 消</el-button>
+          <el-button type="primary" @click="addInventory">确 定</el-button>
+        </div>
+      </el-dialog>
+  </div>
+</template>
+<script>
+import {
+  selectWarehouseSelf
+} from '@/model/houseSelfCollect/index'
+import {
+  getinventory,
+  addinventory,
+  editinventory,
+  editcost,
+  export1,
+  editstatus,
+  billoperatehis,
+  clearancee,
+} from '@/model/warehouse/index'
+import { downloadFile } from '@/utils/batchDown'
+import Pagination from '@/components/Pagination'
+import WsUpload from '@/components/WsUpload'
+import { EventBus } from 'base-core-lib'
+export default {
+  name: 'viewSpareMoney',
+  components: {
+    WsUpload,
+    Pagination,
+  },
+  watch: {
+    vesselId(val) {
+      this.getList()
+    },
+    isShow(val) {
+      this.showType = val
+    },
+  },
+  data() {
+    return {
+        currectPage:1,
+        pageSize:10,
+      //弹出框
+      dialogViewSpareMoney: false,
+      dialogApproveFormVisible: false,
+      // 船舶类型
+      monetaryKey: null,
+      // 表格显示数据
+      tableDate: [],
+      expenseName:'',
+      yearList:[],
+      dialogtitle:'',
+      appendixIdss:[],
+      amount:'',
+      applUrl:'',
+      price:'',
+      costDate:'',
+      // 是否显示
+      showType: true,
+      // 年
+      year: '',
+
+      searchType: 1,
+      searchTypeText: '未完成',
+      searchKeyWord: '',
+      contractType: 2,
+      currentPage:1,
+      warehouseType: '1',
+      // 提交类型
+      submitType: true,
+      size: 10,
+      limit:1,
+      spanArr: [],
+      id:0,
+      warehouseName: '',
+      warehouseId:'',
+      start:2021,
+      forbidden:false,
+      forbidden1:false,
+      addvisible:false,
+      compId: sessionStorage.getItem('ws-pf_compId'),
+      deptCircularPage: {},
+      warehouseList: [],
+      warehouseList1: [],
+      deptBudgetList: {},
+      historyList: [],
+      count:0,
+      deptBudgetTotal: 0,
+      pickerBeginDateBefore: {
+        disabledDate: (time) => {
+          return time.getTime() > Date.now()
+        },
+      },
+      accessoryTFs: false,
+    }
+  },
+  activated() {
+
+      this.year=new Date().getFullYear()
+      for(var i=this.start;i<=this.year;i++){
+          this.yearList.push({value:i})
+      }
+      if(this.year>=new Date().getFullYear()){
+          this.forbidden1=true
+      }
+      if(this.year<=this.start){
+          this.forbidden=true
+      }
+    this.selectWarehouse()
+    // this.getList()
+
+    this.showType = this.isShow
+  },
+  methods: {
+      returnsales(){
+          this.$router.go(-1)
+      },
+      fujian(row) {
+      if (row.applUrl === null || row.applUrl === '') {
+        EventBus.$emit(
+          'warning',
+          this.$t('system.noticeCircular.NoInformation')
+        )
+      }
+      this.appendixIdss = row.applUrl
+      this.accessoryTFs = true
+    },
+    uploadSuccessHandle(e){
+        this.applUrl=e.url
+    },
+    counttotal(){
+        for (let i = 0; i < this.warehouseList.records.length; i++) {
+            this.count+=this.warehouseList.records[i].amount
+        }
+    },
+    onChange() {
+     this.$refs.upload
+        .handleSaveBill()
+        .then(async response => {
+          this.applUrl = response
+        })
+        .catch(res => {
+          EventBus.$emit('error', (JSON.parse(res) || {}).message)
+          this.$refs.upload.clearFiles()
+        })
+    },
+    minus(){
+
+        if(this.year<=this.start){
+            this.forbidden=true
+        }else{
+            this.year--
+        }
+    },
+    add(){
+
+        if(this.year>=new Date().getFullYear()){
+            this.forbidden1=true
+        }else{
+            this.year++
+        }
+    },
+    addInventory(){
+        if(!this.expenseName){
+            this.$message({
+              message: '费用名称不能为空!',
+              type: 'warning'
+            })
+            return
+        }
+        if(this.expenseName.length<1||this.expenseName.length>10){
+            this.$message({
+              message: '费用名称1-10个字!',
+              type: 'warning'
+            })
+            return
+        }
+        if(!this.amount){
+            this.$message({
+              message: '金额不能为空!',
+              type: 'warning'
+            })
+            return
+        }
+        if(this.amount<0||this.amount>100000000){
+            this.$message({
+              message: '金额输入错误!',
+              type: 'warning'
+            })
+            return
+        }
+        addinventory({applUrl:this.applUrl,expenseName:this.expenseName,amount:this.amount,warehouseId:this.cangid,warehouseName:this.warehouseName}).toPromise()
+        .then((response) => {
+            this.$notify.success({
+                title: '成功',
+                message: '添加成功',
+              })
+           this.addvisible=false
+           this.getList()
+        })
+    },
+    editInventory(){
+        if(!this.expenseName){
+            this.$message({
+              message: '费用名称不能为空!',
+              type: 'warning'
+            })
+            return
+        }
+        if(this.expenseName.length<1||this.expenseName.length>10){
+            this.$message({
+              message: '费用名称1-10个字!',
+              type: 'warning'
+            })
+            return
+        }
+        if(!this.amount){
+            this.$message({
+              message: '金额不能为空!',
+              type: 'warning'
+            })
+            return
+        }
+        if(this.amount<0||this.amount>100000000){
+            this.$message({
+              message: '金额输入错误!',
+              type: 'warning'
+            })
+            return
+        }
+        editinventory({applUrl:this.applUrl,expenseName:this.expenseName,amount:this.amount,warehouseId:this.cangid,warehouseName:this.warehouseName}).toPromise()
+        .then((response) => {
+            this.$notify.success({
+                title: '成功',
+                message: '编辑成功',
+              })
+           this.addvisible=false
+           this.getList()
+        })
+    },
+    yearChange(){
+
+    },
+    addlist(){
+        this.addvisible=true
+        this.dialogtitle='添加费用'
+    },
+    editlist(item){
+        this.addvisible=true
+        this.dialogtitle='编辑费用'
+        this.id=item.id
+        this.applUrl=item.applUrl
+        this.expenseName=item.expenseName
+        this.amount=item.amount
+    },
+    warehouselocation(){
+      this.$router.push({ path: 'warehouselocation' })
+    },
+    warehouseNameChange(e) {
+      for(let i = 0 ; i < this.warehouseList1.length; i++){
+        if(this.warehouseList1[i].value == e){
+           this.warehouseName = this.warehouseList1[i].value
+          this.warehouseCount = this.warehouseList1[i].count
+          this.warehouseNo = this.warehouseList1[i].No
+          this.cangid = this.warehouseList1[i].id
+          this.WAREHOUSE[1].payname = this.warehouseList1[i].value
+          this.purchasePriceList = this.warehouseList1[i].purchasePriceList
+        }
+      }
+      this.getList()
+    },
+    edit(item){
+      this.price=item.cost
+      this.editvisible=true
+      this.id=item.id
+    },
+    editprice(){
+      this.$confirm(`加权成本价格修改后不可恢复,确认提交`, {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+      })
+        .then(() => {
+          editcost({id:this.id,cost:this.price}).toPromise()
+        .then((response) => {
+          this.$notify.success({
+                title: '成功',
+                message: '价格修改成功',
+              })
+           this.editvisible=false
+           this.getList()
+        })
+        })
+     
+    },
+    handleClose() {
+      this.accessoryTFs = false
+    },
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`)
+      this.pageSize = val
+      this.getList()
+    },
+    handleCurrentChange(val) {
+      this.currentPage = val
+      console.log(`当前页: ${val}`)
+      this.getList()
+    },
+    selectWarehouse(){
+       selectWarehouseSelf({
+        compId: sessionStorage.getItem('ws-pf_compId'),
+      })
+        .toPromise()
+        .then((response) => {
+          this.warehouseList1 = []
+          for (let i = 0; i < response.length; i++) {
+            this.warehouseList1.push({
+              value: response[i].warehouseName,
+              id: response[i].id,
+              count: response[i].count,
+              purchasePriceList: response[i].purchasePriceList,
+              No:response[i].commonWarehouseNo
+            })
+            if (this.cangid&&this.cangid == response[i].id) {
+              this.warehouseName = response[i].warehouseName
+              this.warehouseCount =  response[i].count
+              this.warehouseNo =  response[i].commonWarehouseNo
+              this.purchasePriceList =  response[i].purchasePriceList
+            } 
+          }
+          if(this.warehouseList1.length > 0 && !this.cangid){
+            this.warehouseName = this.warehouseList1[0].value
+            this.warehouseCount =  this.warehouseList1[0].count
+            this.warehouseNo =  this.warehouseList1[0].No
+            this.cangid =  this.warehouseList1[0].id
+            this.purchasePriceList =  this.warehouseList1[0].purchasePriceList
+            this.WAREHOUSE[1].payname = this.warehouseList1[0].value
+          }
+          this.getList()
+        })
+    },
+    getList() {
+      getinventory({
+        compId: sessionStorage.getItem('ws-pf_compId'),
+        warehouseId: this.cangid,
+        year: this.year,
+        currectPage:this.currectPage,
+        pageSize:this.pageSize
+      })
+        .toPromise()
+        .then((response) => {
+          this.warehouseList = response
+          this.deptBudgetTotal=response.total
+          this.counttotal()
+        })
+    },
+    editClick(row) {
+      var status = ''
+      if (row.status == '待执行' || row.status == '已完成') {
+        status = '执行中'
+      } else if (row.status == '执行中') {
+        status = '已完成'
+      }
+      //cancelButtonClass: "btn-custom-cancel"
+      this.$confirm(`是否将状态改为${status}`, {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+      })
+        .then(() => {
+          editstatus({ id: row.id })
+            .toPromise()
+            .then((response) => {
+              this.$notify.success({
+                title: '成功',
+                message: '状态修改成功',
+              })
+              this.getList()
+            })
+            .catch((response) => {
+              // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+            })
+        })
+        .catch(() => {
+          return false
+        })
+    },
+    selecttaskType(e) {
+      for (var i = 0; i < this.taskTypeList.length; i++) {
+        if (this.taskTypeList[i].value == e) {
+          this.searchType = this.taskTypeList[i].type
+        }
+      }
+    },
+    handleExamine(row) {
+      this.$router.push({
+        name: 'salesContractExamine',
+        query: { id: row.id },
+      })
+    },
+    // 关闭 dialog时 处理文件url 初始化upload组件
+    handleCloe() {
+      this.dialogViewSpareMoney = false
+    },
+
+    history(row) {
+      billoperatehis({ id: row.id })
+        .toPromise()
+        .then((response) => {
+          this.historyList = response
+        })
+    },
+    find() {
+      this.currentPage = 1
+      this.getList()
+    },
+    async exportlist() {
+      const { data } = await export1(
+        {
+          compId: sessionStorage.getItem('ws-pf_compId'),
+          contractType: this.contractType,
+          currentPage: this.currentPage,
+          pageSize: this.pageSize,
+          searchType: this.searchType,
+          searchKeyWord: this.searchKeyWord,
+          startDate: this.startDate,
+          endDate: this.endDate,
+        },
+        {},
+        { responseType: 'blob' }
+      ).toPromise()
+      downloadFile({
+        res: data,
+        fileName: `${
+          this.date.year + (this.date.month ? `-${this.date.month}` : '')
+        }_采购合同`,
+        type: 'xls',
+      })
+    },
+  },
+}
+</script>
+<style lang="scss" scoped>
+.connert {
+  width: 90%;
+  margin: 0 auto;
+}
+.bg-left {
+  padding-left: 30px;
+}
+.bg-right {
+  text-align: right;
+  padding: 16px 20px;
+}
+.el-icon-arrow-left,.el-icon-arrow-right{
+    font-size:24px;
+}
+.vertical-text-left {
+  width: 62px;
+  text-align: right;
+}
+.el-button--primary {
+  background-color: #5878e8;
+  border-color: #5878e8;
+}
+.el-button--default {
+  color: #8890b1;
+  border-color: #e8eaf1;
+}
+/deep/.base_header_layout .grid-content.right .find.el-button--primary {
+  width: 30px;
+  margin-left: 0;
+  border-top-left-radius: 0px;
+  border-bottom-left-radius: 0px;
+}
+/deep/.findValue .el-input__inner {
+  border-top-right-radius: 0px;
+  border-bottom-right-radius: 0px;
+}
+.completed.el-button--default {
+  border-color: #5878e8;
+  background-color: #f6f7fc;
+  color: #5878e8;
+}
+.putstorage.el-button--default,
+.deliverystorage.el-button--default {
+  border-color: #8890b1;
+  background-color: #fff;
+  color: #8890b1;
+}
+/deep/.el-table td,
+/deep/.el-table th.is-leaf {
+  border-right: 1px solid #e9ecf7;
+  text-align: center;
+}
+/deep/.el-table tr td:first-child,
+/deep/.el-table tr th.is-leaf:first-child {
+  border-left: 1px solid #e9ecf7;
+}
+/deep/.el-table .el-table__header .cell,
+/deep/.el-table .el-table__body .cell {
+  -webkit-line-clamp: 10;
+  max-height: 400px;
+}
+.record,
+.adjustment {
+  display: inline-block;
+  color: #5878e8;
+  padding: 0 4px !important;
+  position: relative;
+}
+.record:after {
+  position: absolute;
+  content: '';
+  display: block;
+  top: 5px;
+  right: -2px;
+  width: 1px;
+  height: 12px;
+  background: #e9ecf7;
+}
+/deep/.el-radio-button:first-child .el-radio-button__inner {
+  margin-left: 10px;
+}
+//分页
+.el-pagination {
+  text-align: center;
+    white-space: nowrap;
+    padding: 2px 5px;
+    color: #303133;
+    font-weight: 700;
+    margin-bottom: 20px;
+}
+.forbidden{
+    cursor: not-allowed;
+}
+ .avatar-uploader .el-upload {
+    border: 1px dashed #d9d9d9;
+    border-radius: 6px;
+    cursor: pointer;
+    position: relative;
+    overflow: hidden;
+  }
+  .avatar-uploader .el-upload:hover {
+    border-color: #409EFF;
+  }
+  .avatar-uploader-icon {
+    font-size: 28px;
+    color: #8c939d;
+    width: 178px;
+    height: 178px;
+    line-height: 178px;
+    text-align: center;
+  }
+  .avatar {
+    width: 178px;
+    height: 178px;
+    display: block;
+  }
+</style>

+ 552 - 0
src/views/warehouse/weightedsubsidiary.vue

@@ -0,0 +1,552 @@
+<!--仓库管理-->
+<template>
+  <div>
+      <el-row>
+      <el-col :span="12">
+        <h2 class="bg-left title">加权明细</h2>
+      </el-col>
+      <el-col :span="12" class="bg-right">
+        <el-button
+          class="bg-bottom"
+          type="primary"
+          size="small"
+          @click="returnsales()"
+          ><img
+            width="6"
+            height="10"
+            style="vertical-align: bottom; margin-right: 3px"
+            src="../../../public/img/lujing.png"
+            alt=""
+          />返回</el-button
+        >
+      </el-col>
+    </el-row>
+    <el-row>
+      <el-col class='bg-left' :span="12">
+        <div style='align-items:center;' class='flex'>
+          <div style='align-items:center;' class='flex'>
+              <div :class='{"forbidden":forbidden==true}' @click='minus'><i class="el-icon-arrow-left"></i></div>
+              <ws-select
+                v-model="year"
+                placeholder=""
+                @change="yearChange"
+                :value="searchType"
+                style="margin: 0 10px"
+                >
+                <ws-option
+                    v-for="item in yearList"
+                    :key="item.value"
+                    :label="item.value"
+                    :value="item.value"
+                    style="color: #8890b1"
+                />
+                </ws-select>
+              <div :class='{"forbidden":forbidden1==true}' @click='add'><i class="el-icon-arrow-right"></i></div>
+          </div>
+        </div>
+      </el-col>
+      <el-col :span="12" class="bg-right">
+       <ws-select
+          v-model="warehouseName"
+          placeholder=""
+          @change="warehouseNameChange"
+          :value="searchType"
+          style="margin: 0 10px"
+        >
+          <ws-option
+            v-for="item in warehouseList1"
+            :key="item.value"
+            :label="item.value"
+            :value="item.value"
+            style="color: #8890b1"
+          />
+        </ws-select>
+        <ws-select
+            v-model="goodsName"
+            placeholder=""
+            class="typeselect"
+            @change="selectgoodsName"
+          >
+            <ws-option
+              v-for="item in goodnameList"
+              :key="item.constKey"
+              :label="item.goodsName"
+              :value="item.goodsName"
+            />
+          </ws-select>
+        <!-- v-hasPermission="'procurement.sparepart.directShip'" -->
+        <ws-button class="find" type="primary" @click="find()"
+          ><img
+            width="16"
+            height="16"
+            style="
+              vertical-align: text-top;
+              position: relative;
+              top: 0px;
+              left: -8px;
+            "
+            src="../../../public/img/sousuo.png"
+            alt=""
+        /></ws-button>
+     </el-col>
+    </el-row>
+      <el-table
+        class="wenzi"
+        :data="warehouseList.records"
+        style="width: 100%; margin-top: 20px"
+        height="780"
+      >
+      <el-table-column label="序号" type="index" show-overflow-tooltip width="50">
+      </el-table-column>
+        <el-table-column prop="goodsName" label="货名" >
+        </el-table-column>
+        <el-table-column prop="grainType" label="粮食类型" >
+        </el-table-column>
+        <el-table-column prop="inType" label="入库类型" >
+        </el-table-column>
+        <el-table-column prop="netWeight" label="净重(吨)" >
+        </el-table-column>
+        <el-table-column prop="pureWeight" label="纯重(吨)" >
+        </el-table-column>
+        <el-table-column prop="unitPrice" label="价格(元/吨)" >
+        </el-table-column> 
+        <el-table-column prop="deductionAmount" label="扣款(元/吨)" >
+        </el-table-column>
+        <el-table-column prop="freight" label="运费(元/吨)" >
+        </el-table-column>
+        <el-table-column prop="originalStock" label="原库存量(吨)" >
+        </el-table-column>
+        <el-table-column prop="costBefore" label="入库前加权成本" >
+        </el-table-column>
+        <el-table-column prop="costAfter" label="入库后加权成本" >
+        </el-table-column>
+        <el-table-column  prop="createDate" label="更新日期">
+        </el-table-column>
+      </el-table>
+      <el-pagination
+      @size-change="handleSizeChange"
+      @current-change="handleCurrentChange"
+      :current-page="currentPage"
+      :page-size="pageSize"
+      layout="total, sizes, prev, pager, next, jumper"
+      :total="deptBudgetTotal"
+    >
+    </el-pagination>
+  </div>
+</template>
+<script>
+import {
+  selectWarehouseSelf
+} from '@/model/houseSelfCollect/index'
+import {
+  weighteddetails,
+  editcost,
+  export1,
+  editstatus,
+  billoperatehis,
+} from '@/model/warehouse/index'
+import {
+  packList,
+} from '@/model/contarct/index'
+import { downloadFile } from '@/utils/batchDown'
+import Pagination from '@/components/Pagination'
+import WsUpload from '@/components/WsUpload'
+import { EventBus } from 'base-core-lib'
+export default {
+  name: 'viewSpareMoney',
+  components: {
+    WsUpload,
+    Pagination,
+  },
+  watch: {
+    vesselId(val) {
+      this.getList()
+    },
+    isShow(val) {
+      this.showType = val
+    },
+  },
+  data() {
+    return {
+        currectPage:1,
+        pageSize:10,
+      //弹出框
+      dialogViewSpareMoney: false,
+      dialogApproveFormVisible: false,
+      // 船舶类型
+      monetaryKey: null,
+      // 表格显示数据
+      tableDate: [],
+      goodnameList:[],
+      goodsName:'玉米',
+      goodsNameKey:1,
+      expenseName:'',
+      yearList:[],
+      dialogtitle:'',
+      appendixIdss:[],
+      amount:'',
+      applUrl:'',
+      price:'',
+      costDate:'',
+      // 是否显示
+      showType: true,
+      // 年
+      year: '',
+
+      searchType: 1,
+      searchTypeText: '未完成',
+      searchKeyWord: '',
+      contractType: 2,
+      currentPage:1,
+      warehouseType: '1',
+      // 提交类型
+      submitType: true,
+      size: 10,
+      limit:1,
+      spanArr: [],
+      id:0,
+      warehouseName: '',
+      warehouseId:'',
+      forbidden:false,
+      forbidden1:false,
+      start:2021,
+      addvisible:false,
+      compId: sessionStorage.getItem('ws-pf_compId'),
+      deptCircularPage: {},
+      warehouseList: [],
+      warehouseList1: [],
+      deptBudgetList: {},
+      historyList: [],
+      count:0,
+      deptBudgetTotal: 0,
+      pickerBeginDateBefore: {
+        disabledDate: (time) => {
+          return time.getTime() > Date.now()
+        },
+      },
+      accessoryTFs: false,
+    }
+  },
+  activated() {
+    this.cangid=this.$route.query.cangId
+// 货名
+      // packList({ constId: 'CON2' })
+      //   .toPromise()
+      //   .then((response) => {
+      //     this.goodnameList = response
+      //   })
+      this.year=new Date().getFullYear()
+      for(var i=this.start;i<=this.year;i++){
+          this.yearList.push({value:i})
+      }
+      if(this.year>=new Date().getFullYear()){
+          this.forbidden1=true
+      }
+      if(this.year<=this.start){
+          this.forbidden=true
+      }
+    this.selectWarehouse()
+    // this.getList()
+
+    this.showType = this.isShow
+  },
+  methods: {
+      selectgoodsName(e) {
+      for (var i = 0; i < this.goodnameList.length; i++) {
+        if (this.goodnameList[i].goodsName == e) {
+          this.goodsNameKey = this.goodnameList[i].goodsNameKey
+        }
+      }
+    },
+      returnsales(){
+          this.$router.go(-1)
+      },
+    counttotal(){
+        for (let i = 0; i < this.warehouseList.records.length; i++) {
+            this.count+=this.warehouseList.records[i].amount
+        }
+    },
+    minus(){
+
+        if(this.year<=this.start){
+            this.forbidden=true
+        }else{
+            this.year--
+        }
+    },
+    add(){
+
+        if(this.year>=new Date().getFullYear()){
+            this.forbidden1=true
+        }else{
+            this.year++
+        }
+    },
+    yearChange(){
+
+    },
+    warehouseNameChange(e) {
+      for(let i = 0 ; i < this.warehouseList1.length; i++){
+        if(this.warehouseList1[i].value == e){
+           this.warehouseName = this.warehouseList1[i].value
+          this.warehouseCount = this.warehouseList1[i].count
+          this.warehouseNo = this.warehouseList1[i].No
+          this.cangid = this.warehouseList1[i].id
+          this.WAREHOUSE[1].payname = this.warehouseList1[i].value
+          this.purchasePriceList = this.warehouseList1[i].purchasePriceList
+        }
+      }
+      this.getList()
+    },
+    edit(item){
+      this.price=item.cost
+      this.editvisible=true
+      this.id=item.id
+    },
+    //查看
+    handleClose() {
+      this.accessoryTFs = false
+    },
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`)
+      this.pageSize = val
+      this.getList()
+    },
+    handleCurrentChange(val) {
+      this.currentPage = val
+      console.log(`当前页: ${val}`)
+      this.getList()
+    },
+    selectWarehouse(){
+       selectWarehouseSelf({
+        compId: sessionStorage.getItem('ws-pf_compId'),
+      })
+        .toPromise()
+        .then((response) => {
+          this.warehouseList1 = []
+          for (let i = 0; i < response.length; i++) {
+            this.warehouseList1.push({
+              value: response[i].warehouseName,
+              id: response[i].id,
+              count: response[i].count,
+              purchasePriceList: response[i].purchasePriceList,
+              No:response[i].commonWarehouseNo,
+              goodsNameInfos:response[i].goodsNameInfos
+            })
+            if (this.cangid&&this.cangid == response[i].id) {
+              this.warehouseName = response[i].warehouseName
+              this.warehouseCount =  response[i].count
+              this.warehouseNo =  response[i].commonWarehouseNo
+              this.purchasePriceList =  response[i].purchasePriceList
+              this.goodnameList=response[i].goodsNameInfos
+              if(this.goodnameList){
+              this.goodsName=this.goodnameList[0].goodsName
+              this.goodsNameKey=this.goodnameList[0].goodsNameKey
+            }
+            } 
+          }
+          if(this.warehouseList1.length > 0 && !this.cangid){
+            this.warehouseName = this.warehouseList1[0].value
+            this.warehouseCount =  this.warehouseList1[0].count
+            this.warehouseNo =  this.warehouseList1[0].No
+            this.cangid =  this.warehouseList1[0].id
+            this.purchasePriceList =  this.warehouseList1[0].purchasePriceList
+            this.WAREHOUSE[1].payname = this.warehouseList1[0].value
+            this.goodnameList=this.warehouseList1[0].goodsNameInfos
+            if(this.goodnameList){
+              this.goodsName=this.goodnameList[0].goodsName
+              this.goodsNameKey=this.goodnameList[0].goodsNameKey
+            }
+          }
+          this.getList()
+        })
+    },
+    getList() {
+      weighteddetails({
+        compId: sessionStorage.getItem('ws-pf_compId'),
+        warehouseId: this.cangid,
+        goodsNameKey:this.goodsNameKey,
+        year: this.year,
+        currectPage:this.currectPage,
+        pageSize:this.pageSize
+      })
+        .toPromise()
+        .then((response) => {
+          this.warehouseList = response
+          this.deptBudgetTotal=response.total
+          this.counttotal()
+        })
+    },
+    selecttaskType(e) {
+      for (var i = 0; i < this.taskTypeList.length; i++) {
+        if (this.taskTypeList[i].value == e) {
+          this.searchType = this.taskTypeList[i].type
+        }
+      }
+    },
+    handleExamine(row) {
+      this.$router.push({
+        name: 'salesContractExamine',
+        query: { id: row.id },
+      })
+    },
+    // 关闭 dialog时 处理文件url 初始化upload组件
+    handleCloe() {
+      this.dialogViewSpareMoney = false
+    },
+
+    history(row) {
+      billoperatehis({ id: row.id })
+        .toPromise()
+        .then((response) => {
+          this.historyList = response
+        })
+    },
+    find() {
+      this.currentPage = 1
+      this.getList()
+    },
+    async exportlist() {
+      const { data } = await export1(
+        {
+          compId: sessionStorage.getItem('ws-pf_compId'),
+          contractType: this.contractType,
+          currentPage: this.currentPage,
+          pageSize: this.pageSize,
+          searchType: this.searchType,
+          searchKeyWord: this.searchKeyWord,
+          startDate: this.startDate,
+          endDate: this.endDate,
+        },
+        {},
+        { responseType: 'blob' }
+      ).toPromise()
+      downloadFile({
+        res: data,
+        fileName: `${
+          this.date.year + (this.date.month ? `-${this.date.month}` : '')
+        }_采购合同`,
+        type: 'xls',
+      })
+    },
+  },
+}
+</script>
+<style lang="scss" scoped>
+.connert {
+  width: 90%;
+  margin: 0 auto;
+}
+.bg-left {
+  padding-left: 30px;
+}
+.bg-right {
+  text-align: right;
+  padding: 16px 20px;
+}
+.el-icon-arrow-left,.el-icon-arrow-right{
+    font-size:24px;
+}
+.vertical-text-left {
+  width: 62px;
+  text-align: right;
+}
+.el-button--primary {
+  background-color: #5878e8;
+  border-color: #5878e8;
+}
+.el-button--default {
+  color: #8890b1;
+  border-color: #e8eaf1;
+}
+/deep/.base_header_layout .grid-content.right .find.el-button--primary {
+  width: 30px;
+  margin-left: 0;
+  border-top-left-radius: 0px;
+  border-bottom-left-radius: 0px;
+}
+/deep/.findValue .el-input__inner {
+  border-top-right-radius: 0px;
+  border-bottom-right-radius: 0px;
+}
+.completed.el-button--default {
+  border-color: #5878e8;
+  background-color: #f6f7fc;
+  color: #5878e8;
+}
+.putstorage.el-button--default,
+.deliverystorage.el-button--default {
+  border-color: #8890b1;
+  background-color: #fff;
+  color: #8890b1;
+}
+/deep/.el-table td,
+/deep/.el-table th.is-leaf {
+  border-right: 1px solid #e9ecf7;
+  text-align: center;
+}
+/deep/.el-table tr td:first-child,
+/deep/.el-table tr th.is-leaf:first-child {
+  border-left: 1px solid #e9ecf7;
+}
+/deep/.el-table .el-table__header .cell,
+/deep/.el-table .el-table__body .cell {
+  -webkit-line-clamp: 10;
+  max-height: 400px;
+}
+.record,
+.adjustment {
+  display: inline-block;
+  color: #5878e8;
+  padding: 0 4px !important;
+  position: relative;
+}
+.record:after {
+  position: absolute;
+  content: '';
+  display: block;
+  top: 5px;
+  right: -2px;
+  width: 1px;
+  height: 12px;
+  background: #e9ecf7;
+}
+/deep/.el-radio-button:first-child .el-radio-button__inner {
+  margin-left: 10px;
+}
+//分页
+.el-pagination {
+  text-align: center;
+    white-space: nowrap;
+    padding: 2px 5px;
+    color: #303133;
+    font-weight: 700;
+    margin-bottom: 20px;
+}
+.forbidden{
+    cursor: not-allowed;
+}
+ .avatar-uploader .el-upload {
+    border: 1px dashed #d9d9d9;
+    border-radius: 6px;
+    cursor: pointer;
+    position: relative;
+    overflow: hidden;
+  }
+  .avatar-uploader .el-upload:hover {
+    border-color: #409EFF;
+  }
+  .avatar-uploader-icon {
+    font-size: 28px;
+    color: #8c939d;
+    width: 178px;
+    height: 178px;
+    line-height: 178px;
+    text-align: center;
+  }
+  .avatar {
+    width: 178px;
+    height: 178px;
+    display: block;
+  }
+</style>

+ 1 - 0
vue.config.js

@@ -142,6 +142,7 @@ module.exports = {
         // target: 'http://standard-dev.winsea.com/', //目标地址
         // target: 'http://localhost:8090/',
         target: 'http://192.168.1.120:8090/',
+        // target: 'http://192.168.1.115:8090/',
         // target: 'http://192.168.1.122:9100/',
         // target: 'http://192.168.1.121:8090/',
         // target: 'http://192.168.1.119:8090/',