فهرست منبع

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

ccjgmwz 3 سال پیش
والد
کامیت
2d99ea750a

+ 1 - 0
package.json

@@ -54,6 +54,7 @@
     "element-ui": "^2.13.2",
     "form-making-advanced": "^1.2.6",
     "html2canvas": "^1.3.2",
+    "js-base64": "^3.7.2",
     "js-cookie": "2.2.0",
     "lodash": "^4.17.20",
     "node-gyp": "^5.0.6",

+ 7 - 0
src/App.vue

@@ -90,4 +90,11 @@ export default {
     background-color: #5878e8;
     border-color: #5878e8;
 }
+input::-webkit-outer-spin-button,
+input::-webkit-inner-spin-button {
+      -webkit-appearance: none !important;
+    }
+input[type='number'] {
+      -moz-appearance: textfield !important;
+    }
 </style>

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

@@ -55,6 +55,8 @@ export const API_GET_GOODSNAME_XIALA = '/warehouseInOutInfo/selectTemporaryGoods
 export const API_GET_WAREHOUSE_LIST = '/warehouseInOutInfo/selectWarehouseInOutInfoTemporary'
 //任务列表
 export const API_GET_WAREHOUSE_TASKLIST = '/inOutWarehouseTask/selectInOutWarehouseTask'
+// 成本管理
+export const API_GET_COSTMANAGEMENT = '/costManagementInfo/selectCostManagementInfo'
 
 
 

+ 2 - 0
src/lang/zh.js

@@ -502,6 +502,7 @@ export default {
 
     //仓库管理
     warehouseManagementList: '仓库管理',
+    costmanagement:'成本管理',
     warehouseManagementAdd: '仓库管理添加',
     warehouseManagementEdit: '仓库管理编辑',
     warehouseManagementPut: '入库',
@@ -4802,6 +4803,7 @@ export default {
   //仓库管理
   warehouseManagement: {
     warehouseManagementList: '仓库管理',
+    costmanagement:'成本管理',
     warehouseManagementAdd: '仓库管理添加',
     warehouseManagementEdit: '仓库管理编辑',
     warehouseManagementPut: '入库',

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

@@ -27,6 +27,7 @@ import {
     API_GET_GOODSNAME_XIALA,
     API_GET_WAREHOUSE_LIST,
     API_GET_WAREHOUSE_TASKLIST,
+    API_GET_COSTMANAGEMENT
 } from '@/api/V2/warehouse'
 // import { app } from 'electron'
 // 列表
@@ -82,7 +83,8 @@ export const completeList = appRx.get(API_GET_WAREHOUSE_LIST, errorCatcher, erro
 export const xialaNo = appRx.get(API_GET_WAREHOUSE_NO, errorCatcher, errorHandle, filter)
 //任务列表
 export const taskList = appRx.get(API_GET_WAREHOUSE_TASKLIST,errorCatcher, errorHandle, filter)
-
+// 成本管理
+export const getcost = appRx.get(API_GET_COSTMANAGEMENT,errorCatcher, errorHandle, filter)
 
 
 

+ 7 - 7
src/views/houseSelfCollect/acquisitionManagementAdd.vue

@@ -23,34 +23,34 @@
           </div>
           <div class="grid-content">
             <el-form-item label="基准水分(%)">
-              <el-input v-model="baseInfoForm.waterBase" @input="changeBaseWater" :disabled="!isEdit"></el-input>
+              <el-input type="number" @mousewheel.native.prevent v-model="baseInfoForm.waterBase" @input="changeBaseWater" :disabled="!isEdit"></el-input>
             </el-form-item>
           </div>
           <div class="grid-content">
             <el-form-item label="扣重比">
-              <el-input v-model="baseInfoForm.deductWeight" :disabled="!isEdit"></el-input>
+              <el-input type="number" @mousewheel.native.prevent v-model="baseInfoForm.deductWeight" :disabled="!isEdit"></el-input>
             </el-form-item>
           </div>
           <div class="grid-content">
             <el-form-item label="干粮收购价格(元/公斤)"  label-width="180px">
-              <el-input v-model="baseInfoForm.dryGrainPrice" :disabled="!isEdit"></el-input>
+              <el-input type="number" @mousewheel.native.prevent v-model="baseInfoForm.dryGrainPrice" :disabled="!isEdit"></el-input>
             </el-form-item>
           </div>
         </div>
         <div class="row2">
           <div class="grid-content">
             <el-form-item label="干粮水分(%)">
-              <el-input v-model="baseInfoForm.waterMin" @input="changeMinWater" :disabled="!isEdit" id="aaa"></el-input>
+              <el-input type="number" @mousewheel.native.prevent v-model="baseInfoForm.waterMin" @input="changeMinWater" :disabled="!isEdit" id="aaa"></el-input>
             </el-form-item>
           </div>
           <div class="grid-content">
             <el-form-item label="水分上限(%)">
-              <el-input v-model="baseInfoForm.waterMax" @input="changeMaxWater" :disabled="!isEdit"></el-input>
+              <el-input type="number" @mousewheel.native.prevent v-model="baseInfoForm.waterMax" @input="changeMaxWater" :disabled="!isEdit"></el-input>
             </el-form-item>
           </div>
           <div class="grid-content">
             <el-form-item label="销售上限(吨/年)">
-              <el-input v-model="baseInfoForm.saleLimit" :disabled="!isEdit"></el-input>
+              <el-input type="number" @mousewheel.native.prevent v-model="baseInfoForm.saleLimit" :disabled="!isEdit"></el-input>
             </el-form-item>
           </div>
         </div>
@@ -64,7 +64,7 @@
           <div class="top">
             <div class="left">
               <div class="text">基准单价(元/公斤)</div>
-              <el-input v-model="item.basicUnitPrice" :disabled="!isEdit"></el-input>
+              <el-input type="number" @mousewheel.native.prevent v-model="item.basicUnitPrice" :disabled="!isEdit"></el-input>
             </div>
             <el-button @click="delSetPrice(item,index)" :disabled="!isEdit">删除</el-button>
           </div>

+ 3 - 3
src/views/houseSelfCollect/customerManagementAdd.vue

@@ -61,7 +61,7 @@
               :disabled="disabled" />
           </ws-form-item>
           <ws-form-item label="银行卡号" span="1" prop="bankCard">
-            <ws-input v-model="customerList.bankCard" placeholder="请输入银行卡号" maxlength="19" size="small"
+            <ws-input type="number" @mousewheel.native.prevent v-model="customerList.bankCard" placeholder="请输入银行卡号" maxlength="19" size="small"
               :disabled="disabled" />
           </ws-form-item>
           <ws-form-item label="开户行" span="1" prop="bankDeposit">
@@ -85,7 +85,7 @@
               :disabled="disabled" />
           </ws-form-item>
           <ws-form-item label="手机号" span="1" prop="customerPhone">
-            <ws-input v-model="customerList.customerPhone" placeholder="请输入手机号" maxlength="11" size="small"
+            <ws-input type="number" @mousewheel.native.prevent v-model="customerList.customerPhone" placeholder="请输入手机号" maxlength="11" size="small"
               :disabled="disabled" />
           </ws-form-item>
           <ws-form-item label="联系地址" span="1" prop="compAddress">
@@ -95,7 +95,7 @@
           <div v-if="this.switchType == 1 || this.switchType == 3" class = "jiaoYan">
               <el-button type="primary" class="veriCode" @click="toSend()" v-if="!sendDisabled">获取验证码</el-button>
             <el-button type="warning" class="veriCode" v-if="sendDisabled">{{sendText}}</el-button>
-            <ws-input v-model="verifyCode" placeholder="请输入验证码" maxlength="100" size="small" :disabled="disabled" />
+            <ws-input type="number" @mousewheel.native.prevent v-model="verifyCode" placeholder="请输入验证码" maxlength="100" size="small" :disabled="disabled" />
           </div>
         </ws-info-table>
         <div class="but">

+ 9 - 9
src/views/houseSelfCollect/inspectInfo.vue

@@ -49,7 +49,7 @@
               </ws-select>
             </ws-form-item>
             <ws-form-item label="扣重比" span="1" prop="buckleWeightRatio">
-              <ws-input v-model="inspect.buckleWeightRatio" placeholder="请输入扣重比" maxlength="100" size="small"
+              <ws-input type="number" @mousewheel.native.prevent v-model="inspect.buckleWeightRatio" placeholder="请输入扣重比" maxlength="100" size="small"
                 :disabled="disabled" />
             </ws-form-item>
             <ws-form-item label="类型" span="1" prop="type">
@@ -62,10 +62,10 @@
                 :disabled="disabled" />
             </ws-form-item>
             <ws-form-item label="净重单价(元/公斤)" span="1" prop="tidalGrainPrice" v-if="inspect.type == '潮粮'">
-              <ws-input v-model="inspect.tidalGrainPrice" placeholder="请输入净重单价" maxlength="10" size="small" disabled />
+              <ws-input type="number" @mousewheel.native.prevent v-model="inspect.tidalGrainPrice" placeholder="请输入净重单价" maxlength="10" size="small" disabled />
             </ws-form-item>
             <ws-form-item label="干粮单价(元/公斤)" span="1" prop="dryGrainPrice" v-if="inspect.type == '干粮'">
-              <ws-input v-model="inspect.dryGrainPrice" placeholder="请输入干粮单价" maxlength="10" size="small"  :disabled="disabled" />
+              <ws-input type="number" @mousewheel.native.prevent v-model="inspect.dryGrainPrice" placeholder="请输入干粮单价" maxlength="10" size="small"  :disabled="disabled" />
             </ws-form-item>
           </ws-info-table>
 
@@ -79,27 +79,27 @@
               </ws-select>
             </ws-form-item>
             <ws-form-item label="杂质(%)" span="1" prop="impurity">
-              <ws-input v-model="inspect.impurity" placeholder="请输入杂质占比" maxlength="100" size="small"
+              <ws-input type="number" @mousewheel.native.prevent v-model="inspect.impurity" placeholder="请输入杂质占比" maxlength="100" size="small"
                 :disabled="disabled" />
             </ws-form-item>
             <ws-form-item label="水分(%)" span="1" prop="waterContent">
-              <ws-input v-model="inspect.waterContent" placeholder="请输入水分占比" maxlength="100" size="small"
+              <ws-input type="number" @mousewheel.native.prevent v-model="inspect.waterContent" placeholder="请输入水分占比" maxlength="100" size="small"
                 @change="waterContentChange('water')" :disabled="disabled" />
             </ws-form-item>
             <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
-              <ws-input v-model="inspect.mildewGrain" placeholder="请输入霉变粒占比" maxlength="100" size="small"
+              <ws-input type="number" @mousewheel.native.prevent v-model="inspect.mildewGrain" placeholder="请输入霉变粒占比" maxlength="100" size="small"
                 :disabled="disabled" />
             </ws-form-item>
             <ws-form-item label="容重(克/升)" span="1" prop="bulkDensity">
-              <ws-input v-model="inspect.bulkDensity" placeholder="请输入容重" maxlength="100" size="small"
+              <ws-input type="number" @mousewheel.native.prevent v-model="inspect.bulkDensity" placeholder="请输入容重" maxlength="100" size="small"
                 :disabled="disabled" />
             </ws-form-item>
             <ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
-              <ws-input v-model="inspect.jiaorenli" placeholder="请输入热损伤占比" maxlength="100" size="small"
+              <ws-input type="number" @mousewheel.native.prevent v-model="inspect.jiaorenli" placeholder="请输入热损伤占比" maxlength="100" size="small"
                 :disabled="disabled" />
             </ws-form-item>
             <ws-form-item label="不完善粒(%)" span="1" prop="imperfectGrain">
-              <ws-input v-model="inspect.imperfectGrain" placeholder="请输入不完善粒占比" maxlength="100" size="small"
+              <ws-input type="number" @mousewheel.native.prevent v-model="inspect.imperfectGrain" placeholder="请输入不完善粒占比" maxlength="100" size="small"
                 :disabled="disabled" />
             </ws-form-item>
           </ws-info-table>

+ 1 - 1
src/views/houseSelfCollect/paymentManagement.vue

@@ -140,7 +140,7 @@
           <ws-info-table>
             <ws-form-item label="未付金额(元)" prop="amountNotPayable">{{ payments.amountNotPayable }}</ws-form-item>
             <ws-form-item label="本次付款金额(元)" prop="money">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
                 v-model="payments.money"
                 placeholder="请输入本次付款金额(元)"
                 maxlength="100"

+ 35 - 35
src/views/houseSelfCollect/settlement.vue

@@ -69,10 +69,10 @@
                 <ws-input v-model="paymentList.qualityInspectionManagement.natureOfGrainPurchase" placeholder="请输入购粮性质" maxlength="100" size="small" disabled />
             </ws-form-item>
              <ws-form-item v-if='paymentList.type=="干粮"' label="干粮单价(元/公斤)" span="1" prop="waterContent">
-                <ws-input v-model="paymentList.qualityInspectionManagement.dryGrainPrice" placeholder="请输入干粮单价" maxlength="100" size="small" disabled />
+                <ws-input type="number" @mousewheel.native.prevent v-model="paymentList.qualityInspectionManagement.dryGrainPrice" placeholder="请输入干粮单价" maxlength="100" size="small" disabled />
             </ws-form-item>
              <ws-form-item v-if='paymentList.type=="干粮"' label="净重(公斤)" span="1" prop="waterContent">
-                <ws-input v-model="paymentList.netWeight" placeholder="请输入净重" maxlength="100" size="small" disabled />
+                <ws-input type="number" @mousewheel.native.prevent v-model="paymentList.netWeight" placeholder="请输入净重" maxlength="100" size="small" disabled />
             </ws-form-item>
           </ws-info-table>
           <div class="titles">质检数据</div>
@@ -81,7 +81,7 @@
               <ws-input v-model="paymentList.qualityInspectionManagement.grade" placeholder="请输入等级" maxlength="100" size="small" disabled />
             </ws-form-item>
             <ws-form-item label="杂质(%)" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               v-model="paymentList.qualityInspectionManagement.impurity"
                 placeholder="请输入杂质占比"
                 maxlength="100"
@@ -90,7 +90,7 @@
               />
             </ws-form-item>
             <ws-form-item label="水分(%)" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               v-model="paymentList.qualityInspectionManagement.waterContent"
                 placeholder="请输入水分占比"
                 maxlength="100"
@@ -99,7 +99,7 @@
               />
             </ws-form-item>
             <ws-form-item label="霉变粒(%)" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               v-model="paymentList.qualityInspectionManagement.mildewGrain"
                 placeholder="请输入霉变粒占比"
                 maxlength="100"
@@ -108,10 +108,10 @@
               />
             </ws-form-item>
             <ws-form-item label="容重(克/升)" span="1" prop="waterContent">
-              <ws-input v-model="paymentList.qualityInspectionManagement.bulkDensity" placeholder="请输入容重" maxlength="100" size="small" disabled />
+              <ws-input type="number" @mousewheel.native.prevent v-model="paymentList.qualityInspectionManagement.bulkDensity" placeholder="请输入容重" maxlength="100" size="small" disabled />
             </ws-form-item>
             <ws-form-item label="热损伤(%)" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
                v-model="paymentList.qualityInspectionManagement.jiaorenli"
                 placeholder="请输入热损伤占比"
                 maxlength="100"
@@ -120,7 +120,7 @@
               />
             </ws-form-item>
             <ws-form-item label="不完善粒(%)" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               v-model="paymentList.qualityInspectionManagement.imperfectGrain"
                 placeholder="请输入不完善粒占比"
                 maxlength="100"
@@ -133,7 +133,7 @@
           <div v-if='paymentList.type=="潮粮"' class="titles">单价核算</div>
           <ws-info-table v-if='paymentList.type=="潮粮"'>
             <ws-form-item label="潮粮水分(%)" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               v-model="paymentList.qualityInspectionManagement.waterContent"
                 placeholder="请输入潮粮水分"
                 maxlength="100"
@@ -142,7 +142,7 @@
               />
             </ws-form-item>
             <ws-form-item v-if='paymentList.type=="潮粮"' label="扣重比" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               @input='buckleWeightRatiochange'
               v-model="paymentList.buckleWeightRatio"
                 placeholder="请输入扣重比"
@@ -154,7 +154,7 @@
               />
             </ws-form-item>
             <ws-form-item v-if='paymentList.type=="潮粮"' label="干粮水分(%)" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               v-model="paymentList.qualityInspectionManagement.waterMin"
                 placeholder="请输入干粮水分"
                 maxlength="100"
@@ -163,29 +163,29 @@
               />
             </ws-form-item>
             <ws-form-item v-if='paymentList.type=="潮粮"' label="扣重" span="1" prop="waterContent">
-              <ws-input v-model="paymentList.qualityInspectionManagement.weightDeduction" placeholder="请输入扣重" maxlength="100" size="small" disabled/>
+              <ws-input type="number" @mousewheel.native.prevent v-model="paymentList.qualityInspectionManagement.weightDeduction" placeholder="请输入扣重" maxlength="100" size="small" disabled/>
             </ws-form-item>
             <ws-form-item v-if='paymentList.type=="潮粮"' label="掉水(%)" span="1" prop="waterContent">
-              <ws-input v-model="paymentList.qualityInspectionManagement.waterContent-paymentList.qualityInspectionManagement.waterMin" placeholder="请输入掉水" maxlength="100" size="small" disabled/>
+              <ws-input type="number" @mousewheel.native.prevent v-model="paymentList.qualityInspectionManagement.waterContent-paymentList.qualityInspectionManagement.waterMin" placeholder="请输入掉水" maxlength="100" size="small" disabled/>
             </ws-form-item>
             <ws-form-item v-if='paymentList.type=="潮粮"' label="基数" span="1" prop="waterContent">
-              <ws-input v-model="paymentList.base" placeholder="请输入基数" maxlength="100" size="small" disabled/>
+              <ws-input type="number" @mousewheel.native.prevent v-model="paymentList.base" placeholder="请输入基数" maxlength="100" size="small" disabled/>
             </ws-form-item>
             <ws-form-item v-if='paymentList.type=="潮粮"' label="毛重(公斤)" span="1" prop="waterContent">
-              <ws-input v-model="paymentList.weighingManagement.grossWeight" placeholder="请输入毛重" maxlength="100" size="small" disabled/>
+              <ws-input type="number" @mousewheel.native.prevent v-model="paymentList.weighingManagement.grossWeight" placeholder="请输入毛重" maxlength="100" size="small" disabled/>
             </ws-form-item>
             <ws-form-item v-if='paymentList.type=="潮粮"' label="纯重(公斤)" span="1" prop="waterContent">
-              <ws-input v-model="paymentList.pureWeight" placeholder="请输入纯重" maxlength="100" size="small" disabled/>
+              <ws-input type="number" @mousewheel.native.prevent v-model="paymentList.pureWeight" placeholder="请输入纯重" maxlength="100" size="small" disabled/>
             </ws-form-item>
             <ws-form-item v-if='paymentList.type=="潮粮"' label="皮重(公斤)" span="1" prop="waterContent">
-              <ws-input v-model="paymentList.weighingManagement.tare" placeholder="请输入皮重" maxlength="100" size="small" disabled/>
+              <ws-input type="number" @mousewheel.native.prevent v-model="paymentList.weighingManagement.tare" placeholder="请输入皮重" maxlength="100" size="small" disabled/>
             </ws-form-item>
             <ws-form-item v-if='paymentList.type=="潮粮"'
               label="净重单价(元/公斤)"
               span="1"
               prop="waterContent"
             >
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
                v-model="paymentList.qualityInspectionManagement.tidalGrainPrice"
                 placeholder="请输入净重单价"
                 maxlength="100"
@@ -194,10 +194,10 @@
               />
             </ws-form-item>
             <ws-form-item v-if='paymentList.type=="潮粮"' label="扣杂(公斤)" span="1" prop="waterContent">
-              <ws-input v-model="paymentList.weighingManagement.buckleMiscellaneous" placeholder="请输入扣杂" maxlength="100" size="small" disabled/>
+              <ws-input type="number" @mousewheel.native.prevent v-model="paymentList.weighingManagement.buckleMiscellaneous" placeholder="请输入扣杂" maxlength="100" size="small" disabled/>
             </ws-form-item>
             <ws-form-item  label="扣单价(元/公斤)" span="1" prop="unitDeduction">
-              <ws-input v-model="paymentList.unitDeduction" @input="grainMoney" placeholder="请输入扣单价" maxlength="100" size="small" :disabled="disabled"/>
+              <ws-input type="number" @mousewheel.native.prevent v-model="paymentList.unitDeduction" @input="grainMoney" placeholder="请输入扣单价" maxlength="100" size="small" :disabled="disabled"/>
             </ws-form-item>
             <ws-form-item v-if='paymentList.type=="潮粮"'
               label="纯重单价(元/公斤)"
@@ -205,7 +205,7 @@
               prop="waterContent"
             >
               <!-- v-model="paymentList.solidGrainPrice" -->
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               v-model="paymentList.solidGrainPrice"
                 placeholder="请输入纯重单价"
                 maxlength="100"
@@ -214,7 +214,7 @@
               />
             </ws-form-item>
             <ws-form-item v-if='paymentList.type=="潮粮"' label="净重(公斤)" span="1" prop="waterContent">
-              <ws-input v-model="paymentList.weighingManagement.netWeight" placeholder="请输入净重" maxlength="100" size="small" disabled/>
+              <ws-input type="number" @mousewheel.native.prevent v-model="paymentList.weighingManagement.netWeight" placeholder="请输入净重" maxlength="100" size="small" disabled/>
             </ws-form-item>
           </ws-info-table>
 
@@ -226,7 +226,7 @@
               prop="waterContent"
               class="formItem"
             >
-              <ws-input @input='grainMoney' v-model="paymentList.grainMoney" placeholder="请输入粮款" maxlength="100" size="small" disabled/>
+              <ws-input type="number" @mousewheel.native.prevent @input='grainMoney' v-model="paymentList.grainMoney" placeholder="请输入粮款" maxlength="100" size="small" disabled/>
             </ws-form-item>
             <ws-form-item v-if='paymentList.type=="干粮"' 
               label="粮款 = 净重 x  (干粮单价 - 扣单价)  ="
@@ -234,10 +234,10 @@
               prop="waterContent"
               class="formItem"
             >
-              <ws-input @input='grainMoney' v-model="paymentList.grainMoney" placeholder="请输入粮款" maxlength="100" size="small" disabled/>
+              <ws-input type="number" @mousewheel.native.prevent @input='grainMoney' v-model="paymentList.grainMoney" placeholder="请输入粮款" maxlength="100" size="small" disabled/>
             </ws-form-item>
             <ws-form-item label="称重扣款" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               @input='grainMoney'
               @focus="inputFocus($event)"
               v-model="paymentList.weighingDeduction"
@@ -248,7 +248,7 @@
               />
             </ws-form-item>
             <ws-form-item label="称重补助" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               @input='grainMoney'
               @focus="inputFocus($event)"
                v-model="paymentList.weighingSubsidy"
@@ -260,7 +260,7 @@
             </ws-form-item>
             
             <ws-form-item label="运费扣款" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               @input='grainMoney'
               @focus="inputFocus($event)"
                v-model="paymentList.freightDeduction"
@@ -271,7 +271,7 @@
               />
             </ws-form-item>
             <ws-form-item label="运费补助" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               @input='grainMoney'
               @focus="inputFocus($event)"
               v-model="paymentList.freightSubsidy"
@@ -282,7 +282,7 @@
               />
             </ws-form-item>
             <ws-form-item label="卸车扣款" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               @input='grainMoney'
               @focus="inputFocus($event)"
               v-model="paymentList.unloadDeduction"
@@ -293,7 +293,7 @@
               />
             </ws-form-item>
             <ws-form-item label="卸车补助" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               @input='grainMoney'
               @focus="inputFocus($event)"
               v-model="paymentList.unloadSubsidy"
@@ -304,7 +304,7 @@
               />
             </ws-form-item>
             <ws-form-item label="质量扣款" span="1" prop="qualityDeduction">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               @input='grainMoney'
               @focus="inputFocus($event)"
               v-model="paymentList.qualityDeduction"
@@ -316,7 +316,7 @@
             </ws-form-item>
 
             <ws-form-item label="其他补助" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               @input='grainMoney'
               @focus="inputFocus($event)"
               v-model="paymentList.otherSubsidy"
@@ -328,7 +328,7 @@
             </ws-form-item>
             
             <ws-form-item label="其他扣款" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               @input='grainMoney'
               @focus="inputFocus($event)"
               v-model="paymentList.otherDeduction"
@@ -344,7 +344,7 @@
               prop="waterContent"
               class="formItem"
             >
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               v-model="paymentList.calculationPayable"
                 placeholder="请输入计算应付"
                 maxlength="100"
@@ -353,7 +353,7 @@
               />
             </ws-form-item>
             <ws-form-item label="实际付款" span="1" prop="waterContent">
-              <ws-input
+              <ws-input type="number" @mousewheel.native.prevent
               @change='actualPayment'
               v-model="paymentList.actualPayment"
                 placeholder="请输入实际付款"

+ 5 - 5
src/views/houseSelfCollect/weightCheck.vue

@@ -66,25 +66,25 @@
                 <ws-input v-model="weighingList.goodsName" placeholder="请输入货名" maxlength="100" size="small" disabled />
               </ws-form-item>
               <ws-form-item label="毛重(公斤)" span="1" prop="grossWeight">
-                <ws-input v-if="this.index == 0" v-model="weighingList.grossWeight" @input="calculation"
+                <ws-input type="number" @mousewheel.native.prevent v-if="this.index == 0" v-model="weighingList.grossWeight" @input="calculation"
                   placeholder="未获取到毛重" maxlength="100" size="small" :disabled="disabled" />
-                <ws-input v-else v-model="weighingList.grossWeight" @input="calculation" placeholder="未获取到毛重"
+                <ws-input type="number" @mousewheel.native.prevent v-else v-model="weighingList.grossWeight" @input="calculation" placeholder="未获取到毛重"
                   maxlength="100" size="small" disabled />
               </ws-form-item>
               <el-button type="primary" :class="index ==0 ? '' : 'butCss'" @click="openPort">重新获取</el-button>
               <ws-form-item label="皮重(公斤)" span="1" prop="tare" v-if="information == '皮重'">
-                <ws-input v-model="weighingList.tare" @input="calculation" placeholder="未获取到皮重" maxlength="100"
+                <ws-input type="number" @mousewheel.native.prevent v-model="weighingList.tare" @input="calculation" placeholder="未获取到皮重" maxlength="100"
                   size="small" :disabled="disabled" />
               </ws-form-item>
               <el-button type="primary" v-if="index != 0" @click="openPort">重新获取</el-button>
               <div class="formItem">
                 <ws-form-item label="扣杂(公斤)" span="1" prop="buckleWeightRatio" v-if="information == '皮重'">
-                  <ws-input v-model="weighingList.buckleMiscellaneous" @input="calculation" placeholder="请输入扣杂"
+                  <ws-input type="number" @mousewheel.native.prevent v-model="weighingList.buckleMiscellaneous" @input="calculation" placeholder="请输入扣杂"
                     maxlength="100" size="small" />
                 </ws-form-item>
 
                 <ws-form-item label="净重(公斤)" span="1" prop="netWeight" v-if="information == '皮重'">
-                  <ws-input v-model="weighingList.netWeight" placeholder="请输入净重" maxlength="100" size="small"
+                  <ws-input type="number" @mousewheel.native.prevent v-model="weighingList.netWeight" placeholder="请输入净重" maxlength="100" size="small"
                     disabled />
                 </ws-form-item>
               </div>

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

@@ -410,7 +410,7 @@ export default {
         },
       })
     },
-    audit(item) {debugger
+    audit(item) {
       this.$router.push({
         path: 'tranManagementWarehouseInOuttaskaudit',
         query: {

+ 258 - 171
src/views/tranManagement/tranManagementFireFeedback.vue

@@ -6,88 +6,70 @@
         <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="revert()"
-          ><img
+        <el-button class="bg-bottom" type="primary" size="small" @click="revert()">
+          <img
             width="6"
             height="10"
             style="vertical-align: bottom; margin-right: 3px"
             src="../../../public/img/lujing.png"
-            alt=""
-          />返回</el-button
-        >
+            alt
+          />返回
+        </el-button>
       </el-col>
     </el-row>
-    <ws-form
-      class="position"
-      ref="deptBudgetList"
-      :rules="rules"
-      :model="deptBudgetList"
-    >
+    <ws-form class="position" ref="deptBudgetList" :rules="rules" :model="deptBudgetList">
       <div class="small-title" style="font-size: 16px">任务详情</div>
       <ws-info-table>
         <!--任务编号-->
-        <ws-form-item label="任务编号" span="1" prop="processNo">
-          {{ deptBudgetList.processNo }}
-        </ws-form-item>
+        <ws-form-item label="任务编号" span="1" prop="processNo">{{ deptBudgetList.processNo }}</ws-form-item>
         <!--货名-->
-        <ws-form-item label="货名" span="1" prop="goodsName">
-          {{ deptBudgetList.goodsName }}
-        </ws-form-item>
+        <ws-form-item label="货名" span="1" prop="goodsName">{{ deptBudgetList.goodsName }}</ws-form-item>
         <!--重量(吨)-->
-        <ws-form-item label="重量(吨)" span="1" prop="weight">
-          {{ deptBudgetList.weight }}
-        </ws-form-item>
+        <ws-form-item label="重量(吨)" span="1" prop="weight">{{ deptBudgetList.weight }}</ws-form-item>
         <!--发货地址-->
         <ws-form-item label="发货地址" span="1" prop="sendDetailedAddress">
           {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
           }}{{ deptBudgetList.sendArea }}
         </ws-form-item>
         <!--发货人-->
-        <ws-form-item label="发货人" span="1" prop="sender" class="readonly">
-          {{ deptBudgetList.sender }}
-        </ws-form-item>
+        <ws-form-item
+          label="发货人"
+          span="1"
+          prop="sender"
+          class="readonly"
+        >{{ deptBudgetList.sender }}</ws-form-item>
         <!--发货人电话-->
         <ws-form-item
           label="发货人电话"
           span="1"
           prop="senderPhone"
           class="readonly"
-        >
-          {{ deptBudgetList.senderPhone }}
-        </ws-form-item>
+        >{{ deptBudgetList.senderPhone }}</ws-form-item>
         <!--收货地址-->
         <ws-form-item label="收货地址" span="1" prop="receiveDetailedAddress">
           {{ deptBudgetList.receivePrivate }}{{ deptBudgetList.receiveCity
           }}{{ deptBudgetList.receiveArea }}
         </ws-form-item>
         <!--收货人-->
-        <ws-form-item label="收货人" span="1" prop="receiver">
-          {{ deptBudgetList.receiver }}
-        </ws-form-item>
+        <ws-form-item label="收货人" span="1" prop="receiver">{{ deptBudgetList.receiver }}</ws-form-item>
         <!--收货人电话-->
-        <ws-form-item label="收货人电话" span="1" prop="receiverPhone">
-          {{ deptBudgetList.receiverPhone }}
-        </ws-form-item>
+        <ws-form-item label="收货人电话" span="1" prop="receiverPhone">{{ deptBudgetList.receiverPhone }}</ws-form-item>
         <!--发货日期-->
-        <ws-form-item label="发货日期" span="1" prop="deliveryDateStart">
-          {{ deptBudgetList.deliveryDateStart }}
-        </ws-form-item>
+        <ws-form-item
+          label="发货日期"
+          span="1"
+          prop="deliveryDateStart"
+        >{{ deptBudgetList.deliveryDateStart }}</ws-form-item>
         <!--最晚到货日期-->
-        <ws-form-item label="最晚到货日期" span="1" prop="deliveryDateEnd">
-          {{ deptBudgetList.deliveryDateEnd }}
-        </ws-form-item>
+        <ws-form-item
+          label="最晚到货日期"
+          span="1"
+          prop="deliveryDateEnd"
+        >{{ deptBudgetList.deliveryDateEnd }}</ws-form-item>
         <!--合同编号-->
-        <ws-form-item label="合同编号" span="1" prop="contractNo">
-          {{ deptBudgetList.contractNo }}
-        </ws-form-item>
+        <ws-form-item label="合同编号" span="1" prop="contractNo">{{ deptBudgetList.contractNo }}</ws-form-item>
         <!-- 运输方式 -->
-        <ws-form-item label="运输方式" span="1" prop="tranType">
-          {{ deptBudgetList.tranType }}
-        </ws-form-item>
+        <ws-form-item label="运输方式" span="1" prop="tranType">{{ deptBudgetList.tranType }}</ws-form-item>
       </ws-info-table>
       <div class="small-title" style="font-size: 16px">联络员及车次</div>
       <div class="lianluoyuan">
@@ -121,6 +103,20 @@
         </ws-info-table>
       </div>
       <div class="small-title" style="font-size: 16px">装车详情</div>
+      <!-- 导入 -->
+      <div style="font-size: 16px; width: 100%;  text-align: right">
+        <el-upload
+          style="margin-left: 8px;"
+          class="upload-demo inline-block margin-right-10"
+          action
+          :on-change="handleChange"
+          :show-file-list="false"
+          accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
+          :auto-upload="false"
+        >
+          <el-button type="primary">导入</el-button>
+        </el-upload>
+      </div>
       <div class="liaison">
         <div
           style="width: 100%"
@@ -166,32 +162,31 @@
                   "
                   class="avatar-uploader"
                   accept=".jpg, .jpeg, .png, .gif"
-                  ><img
+                >
+                  <img
                     width="18"
                     height="20"
                     style="vertical-align: text-top; position: relative"
                     src="../../../public/img/fujian.png"
-                    alt=""
+                    alt
                   />
                 </el-upload>
                 <span
                   v-if="
                     deptBudgetList.tranCarInfoList[index].loadPoundImg != null
                   "
-                  >1</span
-                >
+                >1</span>
                 <span
                   v-if="
                     deptBudgetList.tranCarInfoList[index].loadPoundImg == null
                   "
-                  >未上传</span
-                >
+                >未上传</span>
               </template>
             </ws-form-item>
             <!--装车日期-->
             <el-form-item label="装车日期:" span="1" prop="loadingDate">
               <ws-date-picker
-                 v-if="item.status == '已装车' || item.status == '已送达'"
+                v-if="item.status == '已装车' || item.status == '已送达'"
                 :disabled="readonly"
                 v-model="item.loadingDate"
                 type="date"
@@ -210,11 +205,7 @@
             </el-form-item>
 
             <!-- 提交 -->
-            <span
-              class="servicein"
-              v-show="item.status == '已装车' || item.status == '已送达'"
-              >已装车</span
-            >
+            <span class="servicein" v-show="item.status == '已装车' || item.status == '已送达'">已装车</span>
             <span
               style="text-align: right; padding: 10px"
               class="center"
@@ -230,8 +221,7 @@
                   type="primary"
                   size="small"
                   @click="submit(deptBudgetList)"
-                  >提交</el-button
-                >
+                >提交</el-button>
               </div>
             </span>
             <!-- <div
@@ -249,7 +239,7 @@
               class="signStatus1"
             >
               {{ item.signStatus }}
-            </div> -->
+            </div>-->
             <span
               v-show="item.temporaryDriverFlag != 0"
               width="22"
@@ -257,36 +247,29 @@
               class="del"
               @click="del(index)"
               src="../../../public/img/del.png"
-              alt=""
-              >×</span
-            >
+              alt
+            >×</span>
           </ws-info-table>
         </div>
       </div>
       <div style="text-align: right; color: #8890b1; font-size: 16px">
         合计(吨):{{ total }}/{{ deptBudgetList.weight }}
-         <!--阶段状态-->
-         <span class="noservice" v-show="deptBudgetList.feedbackStatus=='执行中'">
-          未完货
-        </span>
-        <span class="service" v-show="deptBudgetList.feedbackStatus=='已完货'">{{
+        <!--阶段状态-->
+        <span class="noservice" v-show="deptBudgetList.feedbackStatus=='执行中'">未完货</span>
+        <span class="service" v-show="deptBudgetList.feedbackStatus=='已完货'">
+          {{
           deptBudgetList.feedbackStatus
-        }}</span>
+          }}
+        </span>
       </div>
       <!-- <el-button class="add bg-bottom" type="primary" size="small" @click="add">
         <img width="22" height="22" src="../../../public/img/add.png" alt="" />
         <div class="spans">添加临时用车</div></el-button
-      > -->
+      >-->
     </ws-form>
     <!-- 完货 -->
     <div style="text-align: right; padding: 10px" class="wanhuo">
-      <el-button
-        class="bg-bottom"
-        type="primary"
-        size="small"
-        @click="finished(deptBudgetList)"
-        >完货</el-button
-      >
+      <el-button class="bg-bottom" type="primary" size="small" @click="finished(deptBudgetList)">完货</el-button>
     </div>
   </div>
 </template>
@@ -299,7 +282,7 @@ export default {
   name: 'viewSpareMoney',
   components: {
     WsUpload,
-    mapDrag,
+    mapDrag
   },
   watch: {
     vesselId(val) {
@@ -307,12 +290,12 @@ export default {
     },
     isShow(val) {
       this.showType = val
-    },
+    }
   },
   data() {
     return {
       deptBudgetList: {
-        totalStorage: 0,
+        totalStorage: 0
       },
       options_: regionData,
       heightData: '600px',
@@ -333,15 +316,15 @@ export default {
           {
             required: true,
             message: '请输入仓库名称',
-            trigger: 'blur',
+            trigger: 'blur'
           },
           {
             min: 2,
             max: 20,
             message: '仓库名长度不符合要求,请输入2-20字符之内',
-            trigger: 'blur',
-          },
-        ],
+            trigger: 'blur'
+          }
+        ]
       },
       tranType: 2,
       size: 10,
@@ -356,24 +339,25 @@ export default {
           compName: '',
           bankDeposit: '',
           addressUrlArray: [],
-          bankCard: '',
-        },
+          bankCard: ''
+        }
       ],
       freightspace: [
         {
           boxNo: '',
           loadNetWeight: '',
           loadPoundImg: '',
-          loadingDate: '',
-        },
+          loadingDate: ''
+        }
         // {loadPoundImg:{}},
       ],
       name: '',
       staffList: [],
       options: [],
       carModel: [],
+      fileTemp: {},
       tranCarInfoList: {
-        loadPoundImg: '',
+        loadPoundImg: ''
       },
       //  tranCarList: {
       //   driver: '',
@@ -385,7 +369,7 @@ export default {
       //上传
       accessoryTFs: false,
       fileList: [],
-      appendixIdsAdd: '',
+      appendixIdsAdd: ''
     }
   },
   activated() {
@@ -393,14 +377,14 @@ export default {
     this.getList()
   },
   computed: {
-    totalStorage: function () {
+    totalStorage: function() {
       var maxStorage = 0
       for (var i = 0; i < this.freightspace.length; i++) {
         maxStorage += Number(this.freightspace[i].maxStorage)
       }
       return maxStorage
     },
-    total: function () {
+    total: function() {
       if (this.deptBudgetList.tranCarInfoList != null) {
         var maxStorage = 0
         for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
@@ -412,10 +396,97 @@ export default {
       } else {
         return 0
       }
-    },
+    }
   },
   methods: {
-    marker: function (item) {
+    handleChange(file, fileList) {
+      this.fileTemp = file.raw
+      let fileName = file.raw.name
+      let fileType = fileName.substring(fileName.lastIndexOf('.') + 1)
+      // 判断上传文件格式
+      if (this.fileTemp) {
+        if (fileType == 'xlsx' || fileType == 'xls') {
+          this.importf(this.fileTemp)
+        } else {
+          this.$message({
+            type: 'warning',
+            message: '附件格式错误,请删除后重新上传!'
+          })
+        }
+      } else {
+        this.$message({
+          type: 'warning',
+          message: '请上传附件!'
+        })
+      }
+    },
+    importf(obj) {
+      this.dialogVisible = true
+      let _this = this
+      let inputDOM = this.$refs.inputer // 通过DOM取文件数据
+      this.file = event.currentTarget.files[0]
+      var rABS = false //是否将文件读取为二进制字符串
+      var f = this.file
+      var reader = new FileReader()
+      //if (!FileReader.prototype.readAsBinaryString) {
+      FileReader.prototype.readAsBinaryString = function(f) {
+        var binary = ''
+        var rABS = false //是否将文件读取为二进制字符串
+        var pt = this
+        var wb //读取完成的数据
+        var outdata
+        var reader = new FileReader()
+        reader.onload = function(e) {
+          var bytes = new Uint8Array(reader.result)
+          var length = bytes.byteLength
+          for (var i = 0; i < length; i++) {
+            binary += String.fromCharCode(bytes[i])
+          }
+          var XLSX = require('xlsx')
+          if (rABS) {
+            wb = XLSX.read(btoa(fixdata(binary)), {
+              //手动转化
+              type: 'base64'
+            })
+          } else {
+            wb = XLSX.read(binary, {
+              type: 'binary'
+            })
+          }
+          // outdata就是你想要的东西 excel导入的数据
+          outdata = XLSX.utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]])
+          // excel 数据再处理
+          let arr = []
+          outdata.map(v => {
+            // let jsonString = JSON.stringify(v).replace(/\*/g, '').replace(/\s/ig,'');
+            let jsonString = JSON.stringify(v)
+              .replace(/\//g, '')
+              .replace(/\s/gi, '')
+            console.log(jsonString)
+            v = JSON.parse(jsonString)
+            let obj = {}
+            //xxx代表列名
+            obj.boxNo = v.车厢号
+            obj.loadNetWeight = v.装车净重
+            obj.loadingDate = toString(v.装车日期)
+            obj.status = v.状态
+            obj.unloadPoundImg = v.磅单
+            console.log(obj)
+            _this.freightspace.push(obj)
+          })
+          // _this.freightspace.concat(arr)
+          console.log(arr, _this.freightspace)
+        }
+        reader.readAsArrayBuffer(f)
+      }
+      if (rABS) {
+        reader.readAsArrayBuffer(f)
+      } else {
+        reader.readAsBinaryString(f)
+      }
+      console.log(reader)
+    },
+    marker: function(item) {
       this.deptBudgetList.warehousePositioning =
         item.lnglat.lat + ',' + item.lnglat.lng
     },
@@ -428,7 +499,7 @@ export default {
         driver: '',
         driverPhone: '',
         carNo: '',
-        loadNetWeight: '',
+        loadNetWeight: ''
       })
     },
     del(index) {
@@ -444,22 +515,22 @@ export default {
       this.$confirm(`完货操作后,装车信息不可修改,是否确定完货?`, {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
-        type: 'warning',
+        type: 'warning'
       })
         .then(() => {
-          this.$refs.deptBudgetList.validate((valid) => {
+          this.$refs.deptBudgetList.validate(valid => {
             if (valid) {
               var tranProcessInfo = {}
               tranProcessInfo.id = this.deptBudgetList.id
               state(tranProcessInfo)
                 .toPromise()
-                .then((response) => {
+                .then(response => {
                   this.$message.success('完货成功')
                   this.deptBudgetList = {}
                   this.freightspace = {}
                   this.selectedOptions = ''
                   this.$router.push({
-                    path: 'tranManagementTransporHairRespond',
+                    path: 'tranManagementTransporHairRespond'
                   })
                 })
             } else {
@@ -471,121 +542,137 @@ export default {
           return false
         })
     },
+    validateFunc() {
+      this.$refs.deptBudgetList.validate(valid => {
+        if (valid) {
+          // this.deptBudgetList.totalStorage = this.totalStorage
+          this.tranCarInfoList = this.freightspace
+          this.tranCarInfoList.driver = this.deptBudgetList.driver
+          this.tranCarInfoList.driverPhone = this.deptBudgetList.driverPhone
+          this.tranCarInfoList.tranCarNo = this.deptBudgetList.tranCarNo
+          this.tranCarInfoList.carNo = this.deptBudgetList.carNo
+          this.tranCarInfoList[0].sendDateStart = this.deptBudgetList.sendDateStart
+          this.tranCarInfoList.loadNetWeight = this.deptBudgetList.loadNetWeight
+          this.tranCarInfoList.tranType = this.tranType
+          this.tranCarInfoList.loadPoundImg = this.deptBudgetList.loadPoundImg
+          // this.tranCarInfoList.boxNo = this.arr.toString()
+          for (var i = 0; i < this.tranCarInfoList.length; i++) {
+            this.tranCarInfoList[i].id = this.freightspace[i].id
+            if (this.tranCarInfoList[i].temporaryDriverFlag != 0) {
+              this.tranCarInfoList[i].temporaryDriverFlag = 1
+              this.tranCarInfoList[i].tranType = this.tranType
+            }
+          }
+          var tranProcessInfo = {}
+          tranProcessInfo.id = this.deptBudgetList.id
+          tranProcessInfo.infoId = this.deptBudgetList.infoId
+          tranProcessInfo.processNo = this.deptBudgetList.processNo
+          tranProcessInfo.tranPrice = this.deptBudgetList.tranPrice
+          tranProcessInfo.tranCarInfoList = this.tranCarInfoList
+          // dispatchCat({tranCarInfo:{tranCarInfoList:[this.tranCarInfoList],id:this.deptBudgetList.id}
+          feedback(tranProcessInfo)
+            .toPromise()
+            .then(response => {
+              this.$message.success('提交成功')
+              this.deptBudgetList = {}
+              this.freightspace = {}
+              this.selectedOptions = ''
+              this.$router.push({
+                path: 'tranManagementTransporHairRespond'
+              })
+            })
+        } else {
+          // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+          return false
+        }
+      })
+    },
     submit() {
-      debugger
       for (var i = 0; i < this.freightspace.length; i++) {
         if (this.freightspace[i].temporaryDriverFlag != 0) {
           if (!this.freightspace[i].driver) {
             this.$message({
               message: '司机姓名不能为空!',
-              type: 'warning',
+              type: 'warning'
             })
             return
           }
           if (!this.freightspace[i].driverPhone) {
             this.$message({
               message: '司机电话不能为空!',
-              type: 'warning',
+              type: 'warning'
             })
             return
           }
           if (!this.freightspace[i].carNo) {
             this.$message({
               message: '车牌号不能为空!',
-              type: 'warning',
+              type: 'warning'
             })
             return
           }
-          debugger
           if (!this.freightspace[i].loadNetWeight) {
             this.$message({
               message: '装车净重不能为空!',
-              type: 'warning',
+              type: 'warning'
             })
             return
           }
-            if (this.freightspace[i].loadNetWeight < 0 || this.freightspace[i].loadNetWeight > 10000) {
+          if (
+            this.freightspace[i].loadNetWeight < 0 ||
+            this.freightspace[i].loadNetWeight > 10000
+          ) {
             this.$message({
               message: '装车净重输入错误!',
-              type: 'warning',
+              type: 'warning'
             })
             return
           }
-           if (!this.freightspace[i].loadingDate) {
+          if (!this.freightspace[i].loadingDate) {
             this.$message({
               message: '装车日期不能为空!',
-              type: 'warning',
+              type: 'warning'
             })
             return
           }
         }
       }
-      this.$confirm(`提交成功后提醒司机及时签订运输合同,确定提交装车信息?`, {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning',
-      })
-        .then(() => {
-          this.$refs.deptBudgetList.validate((valid) => {
-            if (valid) {
-              // this.deptBudgetList.totalStorage = this.totalStorage
-              this.tranCarInfoList = this.freightspace
-              this.tranCarInfoList.driver = this.deptBudgetList.driver
-              this.tranCarInfoList.driverPhone = this.deptBudgetList.driverPhone
-              this.tranCarInfoList.tranCarNo = this.deptBudgetList.tranCarNo
-              this.tranCarInfoList.carNo = this.deptBudgetList.carNo
-              this.tranCarInfoList[0].sendDateStart = this.deptBudgetList.sendDateStart
-              this.tranCarInfoList.loadNetWeight =
-                this.deptBudgetList.loadNetWeight
-              this.tranCarInfoList.tranType = this.tranType
-              this.tranCarInfoList.loadPoundImg =
-                this.deptBudgetList.loadPoundImg
-              // this.tranCarInfoList.boxNo = this.arr.toString()
-              for (var i = 0; i < this.tranCarInfoList.length; i++) {
-                this.tranCarInfoList[i].id = this.freightspace[i].id
-                if (this.tranCarInfoList[i].temporaryDriverFlag != 0) {
-                  this.tranCarInfoList[i].temporaryDriverFlag = 1
-                  this.tranCarInfoList[i].tranType = this.tranType
-                }
-              }
-              var tranProcessInfo = {}
-              tranProcessInfo.id = this.deptBudgetList.id
-              tranProcessInfo.infoId = this.deptBudgetList.infoId
-              tranProcessInfo.processNo = this.deptBudgetList.processNo
-              tranProcessInfo.tranPrice = this.deptBudgetList.tranPrice
-              tranProcessInfo.tranCarInfoList = this.tranCarInfoList
-              // dispatchCat({tranCarInfo:{tranCarInfoList:[this.tranCarInfoList],id:this.deptBudgetList.id}
-              feedback(tranProcessInfo)
-                .toPromise()
-                .then((response) => {
-                  this.$message.success('提交成功')
-                  this.deptBudgetList = {}
-                  this.freightspace = {}
-                  this.selectedOptions = ''
-                  this.$router.push({
-                    path: 'tranManagementTransporHairRespond',
-                  })
-                })
-            } else {
-              // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
-              return false
-            }
+      if (sessionStorage.getItem('sh-msg')) {
+        this.validateFunc()
+      } else {
+        this.$alert(
+          '<div><strong>提交成功后提醒司机及时签订运输合同,确定提交装车信息?</strong><div style="display:flex;align-items: center;"><input id="noMsg" type="checkbox" onclick="window.noMessege(1)"><span style="margin-left:10px">不在提示</span><div></div>',
+          '',
+          {
+            dangerouslyUseHTMLString: true,
+            distinguishCancelAndClose: true,
+            showCancelButton: true,
+            confirmButtonText: '确定',
+            cancelButtonText: '取消'
+          }
+        )
+          .then(() => {
+            this.validateFunc()
           })
-        })
-        .catch(() => {
-          return false
-        })
+          .catch(() => {
+            return false
+          })
+      }
     },
     getList() {
       seeCat({ id: this.deptBudgetList.id })
         .toPromise()
-        .then((response) => {
+        .then(response => {
           this.deptBudgetList = response
           //  this.deptBudgetList.tranCarInfoList = response.tranCarInfoList
           this.deptBudgetList.driver = response.tranCarInfoList[0].driver
           this.deptBudgetList.driverPhone =
             response.tranCarInfoList[0].driverPhone
-          this.$set(this.deptBudgetList,'sendDateStart',response.tranCarInfoList[0].sendDateStart) 
+          this.$set(
+            this.deptBudgetList,
+            'sendDateStart',
+            response.tranCarInfoList[0].sendDateStart
+          )
           this.deptBudgetList.receiveDateEnd =
             response.tranCarInfoList[0].receiveDateEnd
           this.deptBudgetList.carModel = response.tranCarInfoList[0].carModel
@@ -599,8 +686,8 @@ export default {
     },
     uploadSuccessHandle1(e, index) {
       this.freightspace[index].loadPoundImg = e.url
-    },
-  },
+    }
+  }
 }
 </script>
 
@@ -1058,7 +1145,7 @@ export default {
   margin-top: 11px;
   margin-left: 53px;
 }
-/deep/.el-input--suffix .el-input__inner{
+/deep/.el-input--suffix .el-input__inner {
   padding-right: 0px !important;
 }
 //送达/未送达

+ 96 - 0
src/views/tranManagement/tranManagementFireReceivingFeedback.vue

@@ -121,6 +121,17 @@
         </ws-info-table>
       </div>
       <div class="small-title" style="font-size: 16px">卸车详情</div>
+      <div style="font-size: 16px; width: 100%;  text-align: right">
+        <el-upload style="margin-left: 8px;"
+          class="upload-demo inline-block margin-right-10"
+          action=""
+          :on-change="handleChange"
+          :show-file-list="false"
+          accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
+          :auto-upload="false">
+          <el-button  type="primary">导入</el-button>
+        </el-upload>
+      </div>
       <div class="liaison">
         <div
           style="width: 100%"
@@ -427,6 +438,91 @@ export default {
     },
   },
   methods: {
+    handleChange(file, fileList) {
+            this.fileTemp = file.raw
+                let fileName = file.raw.name
+                let fileType = fileName.substring(fileName.lastIndexOf('.') + 1);
+                // 判断上传文件格式
+                if (this.fileTemp) {
+                    if ((fileType == 'xlsx') || (fileType == 'xls')) {
+                        this.importf(this.fileTemp)
+                    } else {
+                        this.$message({
+                            type: 'warning',
+                            message: '附件格式错误,请删除后重新上传!'
+                        })
+                    }
+                } else {
+                    this.$message({
+                        type: 'warning',
+                        message: '请上传附件!'
+                    })
+                }
+
+    },
+ importf(obj) {
+                this.dialogVisible = true;
+                let _this = this;
+                let inputDOM = this.$refs.inputer;   // 通过DOM取文件数据
+                this.file = event.currentTarget.files[0];
+                var rABS = false; //是否将文件读取为二进制字符串
+                var f = this.file;
+                var reader = new FileReader();
+                //if (!FileReader.prototype.readAsBinaryString) {
+                FileReader.prototype.readAsBinaryString = function (f) {
+                    var binary = "";
+                    var rABS = false; //是否将文件读取为二进制字符串
+                    var pt = this;
+                    var wb; //读取完成的数据
+                    var outdata;
+                    var reader = new FileReader();
+                    reader.onload = function (e) {
+                        var bytes = new Uint8Array(reader.result);
+                        var length = bytes.byteLength;
+                        for (var i = 0; i < length; i++) {
+                            binary += String.fromCharCode(bytes[i]);
+                        }
+                        var XLSX = require('xlsx');
+                        if (rABS) {
+                            wb = XLSX.read(btoa(fixdata(binary)), { //手动转化
+                                type: 'base64'
+                            });
+                        } else {
+                            wb = XLSX.read(binary, {
+                                type: 'binary'
+                            });
+                        }
+                        // outdata就是你想要的东西 excel导入的数据
+                        outdata = XLSX.utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]]);
+                        // excel 数据再处理
+                        let arr = []
+                        outdata.map(v => {
+                            // let jsonString = JSON.stringify(v).replace(/\*/g, '').replace(/\s/ig,'');
+                            let jsonString = JSON.stringify(v).replace(/\//g, '').replace(/\s/ig,'');
+                            console.log(jsonString);
+                            v = JSON.parse(jsonString);
+                            let obj = {}
+                            //xxx代表列名
+                            obj.boxNo = v.车厢号
+                            obj.loadNetWeight = v.装车净重
+                            obj.loadingDate = toString(v.装车日期)
+                            obj.status= v.状态
+                            obj.unloadPoundImg = v.磅单
+                            console.log(obj)
+                            _this.freightspace.push(obj)
+                        })
+                        // _this.freightspace.concat(arr)
+                        console.log(arr,_this.freightspace)
+                    }
+                    reader.readAsArrayBuffer(f);
+                }
+                if (rABS) {
+                    reader.readAsArrayBuffer(f);
+                } else {
+                    reader.readAsBinaryString(f);
+                }
+                console.log(reader)
+            },
     marker: function (item) {
       this.deptBudgetList.warehousePositioning =
         item.lnglat.lat + ',' + item.lnglat.lng

+ 116 - 9
src/views/tranManagement/tranManagementReceivingloading.vue

@@ -81,15 +81,30 @@
 
           <div class="small-title" style="font-size: 16px;width: 50%;float: left;">卸车详情</div>
           <!-- 导入 -->
-          <div style="font-size: 16px;width: 50%; margin-left: 1150px;">
-          <el-button
-            class="bg-bottom"
-            type="primary"
-            size="small"
-            @click="import(deptBudgetList)"
-            >导入</el-button
+          <div style="font-size: 16px; width: 100%;text-align: right;">
+      <!-- <el-upload style="margin-left: 8px;"
+          class=""
+          action="https://www.zthymaoyi.com/upload/admin"
+          :show-file-list="false"
+          :on-success="
+          (res, file) => {
+            uploadSuccessHandle(res)
+          }
+        "
+          accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
           >
-        </div>
+          <el-button  type="primary">导入</el-button>
+        </el-upload> -->
+        <el-upload style="margin-left: 8px;"
+          class="upload-demo inline-block margin-right-10"
+          action=""
+          :on-change="handleChange"
+          :show-file-list="false"
+          accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
+          :auto-upload="false">
+          <el-button  type="primary">导入</el-button>
+        </el-upload>
+    </div>
           <div
             class="driver position liaison"
             v-for="(item, index) in deptBudgetList.tranCarInfoList"
@@ -335,6 +350,96 @@ export default {
     this.getList()
   },
   methods: {
+    handleChange(file, fileList) {
+            this.fileTemp = file.raw
+                let fileName = file.raw.name
+                let fileType = fileName.substring(fileName.lastIndexOf('.') + 1);
+                // 判断上传文件格式
+                if (this.fileTemp) {
+                    if ((fileType == 'xlsx') || (fileType == 'xls')) {
+                        this.importf(this.fileTemp)
+                    } else {
+                        this.$message({
+                            type: 'warning',
+                            message: '附件格式错误,请删除后重新上传!'
+                        })
+                    }
+                } else {
+                    this.$message({
+                        type: 'warning',
+                        message: '请上传附件!'
+                    })
+                }
+
+    },
+ importf(obj) {
+                this.dialogVisible = true;
+                let _this = this;
+                let inputDOM = this.$refs.inputer;   // 通过DOM取文件数据
+                this.file = event.currentTarget.files[0];
+                var rABS = false; //是否将文件读取为二进制字符串
+                var f = this.file;
+                var reader = new FileReader();
+                //if (!FileReader.prototype.readAsBinaryString) {
+                FileReader.prototype.readAsBinaryString = function (f) {
+                    var binary = "";
+                    var rABS = false; //是否将文件读取为二进制字符串
+                    var pt = this;
+                    var wb; //读取完成的数据
+                    var outdata;
+                    var reader = new FileReader();
+                    reader.onload = function (e) {
+                        var bytes = new Uint8Array(reader.result);
+                        var length = bytes.byteLength;
+                        for (var i = 0; i < length; i++) {
+                            binary += String.fromCharCode(bytes[i]);
+                        }
+                        var XLSX = require('xlsx');
+                        if (rABS) {
+                            wb = XLSX.read(btoa(fixdata(binary)), { //手动转化
+                                type: 'base64'
+                            });
+                        } else {
+                            wb = XLSX.read(binary, {
+                                type: 'binary'
+                            });
+                        }
+                        // outdata就是你想要的东西 excel导入的数据
+                        outdata = XLSX.utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]]);
+                        // excel 数据再处理
+                        let arr = []
+                        outdata.map(v => {
+                            // let jsonString = JSON.stringify(v).replace(/\*/g, '').replace(/\s/ig,'');
+                            let jsonString = JSON.stringify(v).replace(/\//g, '').replace(/\s/ig,'');
+                            console.log(jsonString);
+                            v = JSON.parse(jsonString);
+                            let obj = {}
+                            //xxx代表列名
+                            obj.temporaryDriverFlag = v.临时司机标识
+                            obj.caseNo= v.箱号
+                            obj.titleNo= v.封号
+                            obj.driverPhone = v.司机电话
+                            obj.driver=v.司机姓名
+                            obj.loadNetWeight = v.装车净重
+                            obj.loadingDate = toString(v.装车日期)
+                            obj.status= v.状态
+                            obj.carNo = v.车牌号
+                            obj.unloadPoundImg = v.磅单
+                            console.log(obj)
+                            _this.freightspace.push(obj)
+                        })
+                        // _this.freightspace.concat(arr)
+                        console.log(arr,_this.freightspace)
+                    }
+                    reader.readAsArrayBuffer(f);
+                }
+                if (rABS) {
+                    reader.readAsArrayBuffer(f);
+                } else {
+                    reader.readAsBinaryString(f);
+                }
+                console.log(reader)
+            },
     //返回按钮
     revert() {
       this.$router.push({ path: 'tranManagementReceivingFeedback' })
@@ -458,7 +563,9 @@ export default {
         .toPromise()
         .then(response => {
           this.deptBudgetList = response
-          this.freightspace = response.tranCarInfoList
+            if(response.tranCarInfoList){
+            this.freightspace = response.tranCarInfoList
+          }
           for (var i = 0; i < this.freightspace.length; i++) {
             if (!this.freightspace[i].loadNetWeight) {
               this.freightspace[i].loadNetWeight = 0

+ 10 - 10
src/views/tranManagement/tranManagementShippingFeedback.vue

@@ -144,9 +144,6 @@
           action=""
           :on-change="handleChange"
           :show-file-list="false"
-          :on-remove="handleRemove"
-          :file-list="fileListUpload"
-          :limit="limitUpload"
           accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
           :auto-upload="false">
           <el-button  type="primary">导入</el-button>
@@ -601,10 +598,14 @@ export default {
                             obj.binNumber = v.仓位号
                             obj.positionWeight=v.散船重量
                             obj.loadNetWeight = v.装船净重
-                            obj.loadingDate = v.装船日期
-                            arr.push(obj)
+                            obj.loadingDate = toString(v.装船日期)
+                            obj.status= v.状态
+                            obj.shipType = v.类型
+                            console.log(obj)
+                            _this.freightspace.push(obj)
                         })
-                        _this.freightspace.concat(arr)
+                        // _this.freightspace.concat(arr)
+                        console.log(arr,_this.freightspace)
                     }
                     reader.readAsArrayBuffer(f);
                 }
@@ -613,6 +614,7 @@ export default {
                 } else {
                     reader.readAsBinaryString(f);
                 }
+                console.log(reader)
             },
     uploadSectionFile (param) {
       var fileName = param.file.name.split('.')
@@ -1189,16 +1191,14 @@ export default {
 }
 //联络员及车次
 /deep/.liaison .ws-info-table .el-form-item {
-  width: 22%;
+  width: 19%;
 }
 /deep/.liaison .ws-info-table .el-form-item .el-form-item__label {
   width: 37%;
   background: #f6f7fc;
 }
-/deep/.liaison .flex {
-  display: contents;
-}
 /deep/.liaison .ws-info-table {
+  width: 100%;
   background: #f6f7fc;
   border-radius: 4px;
   border: 1px solid #d8dce6;

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 355 - 269
src/views/tranManagement/tranManagementTransporFeedback.vue


+ 99 - 8
src/views/tranManagement/tranManagementUnShippingFeedback.vue

@@ -138,14 +138,17 @@
         卸船详情
       </div>
       <!-- 导入 -->
-      <div style="font-size: 16px; width: 50%; float: left; text-align: right">
-        <el-button
-          class="bg-bottom"
-          type="primary"
-          size="small"
-          @click="import(deptBudgetList)"
-          >导入</el-button
-        >
+      <!-- 导入 -->
+      <div style="font-size: 16px; width: 100%; text-align: right">
+        <el-upload style="margin-left: 8px;"
+          class="upload-demo inline-block margin-right-10"
+          action=""
+          :on-change="handleChange"
+          :show-file-list="false"
+          accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
+          :auto-upload="false">
+          <el-button  type="primary">导入</el-button>
+        </el-upload>
       </div>
       <div class="liaison">
         <div
@@ -452,6 +455,94 @@ export default {
     },
   },
   methods: {
+    handleChange(file, fileList) {
+            this.fileTemp = file.raw
+                let fileName = file.raw.name
+                let fileType = fileName.substring(fileName.lastIndexOf('.') + 1);
+                // 判断上传文件格式
+                if (this.fileTemp) {
+                    if ((fileType == 'xlsx') || (fileType == 'xls')) {
+                        this.importf(this.fileTemp)
+                    } else {
+                        this.$message({
+                            type: 'warning',
+                            message: '附件格式错误,请删除后重新上传!'
+                        })
+                    }
+                } else {
+                    this.$message({
+                        type: 'warning',
+                        message: '请上传附件!'
+                    })
+                }
+
+    },
+ importf(obj) {
+                this.dialogVisible = true;
+                let _this = this;
+                let inputDOM = this.$refs.inputer;   // 通过DOM取文件数据
+                this.file = event.currentTarget.files[0];
+                var rABS = false; //是否将文件读取为二进制字符串
+                var f = this.file;
+                var reader = new FileReader();
+                //if (!FileReader.prototype.readAsBinaryString) {
+                FileReader.prototype.readAsBinaryString = function (f) {
+                    var binary = "";
+                    var rABS = false; //是否将文件读取为二进制字符串
+                    var pt = this;
+                    var wb; //读取完成的数据
+                    var outdata;
+                    var reader = new FileReader();
+                    reader.onload = function (e) {
+                        var bytes = new Uint8Array(reader.result);
+                        var length = bytes.byteLength;
+                        for (var i = 0; i < length; i++) {
+                            binary += String.fromCharCode(bytes[i]);
+                        }
+                        var XLSX = require('xlsx');
+                        if (rABS) {
+                            wb = XLSX.read(btoa(fixdata(binary)), { //手动转化
+                                type: 'base64'
+                            });
+                        } else {
+                            wb = XLSX.read(binary, {
+                                type: 'binary'
+                            });
+                        }
+                        // outdata就是你想要的东西 excel导入的数据
+                        outdata = XLSX.utils.sheet_to_json(wb.Sheets[wb.SheetNames[0]]);
+                        // excel 数据再处理
+                        let arr = []
+                        outdata.map(v => {
+                            // let jsonString = JSON.stringify(v).replace(/\*/g, '').replace(/\s/ig,'');
+                            let jsonString = JSON.stringify(v).replace(/\//g, '').replace(/\s/ig,'');
+                            console.log(jsonString);
+                            v = JSON.parse(jsonString);
+                            let obj = {}
+                            //xxx代表列名
+                            obj.caseNo = v.箱号
+                            obj.titleNo= v.封号
+                            obj.binNumber = v.仓位号
+                            obj.positionWeight=v.散船重量
+                            obj.loadNetWeight = v.装船净重
+                            obj.loadingDate = toString(v.装船日期)
+                            obj.status= v.状态
+                            obj.shipType = v.类型
+                            console.log(obj)
+                            _this.freightspace.push(obj)
+                        })
+                        // _this.freightspace.concat(arr)
+                        console.log(arr,_this.freightspace)
+                    }
+                    reader.readAsArrayBuffer(f);
+                }
+                if (rABS) {
+                    reader.readAsArrayBuffer(f);
+                } else {
+                    reader.readAsBinaryString(f);
+                }
+                console.log(reader)
+            },
     dataFilter(val) {
       this.deptBudgetList.personCharge = val
       if (val) {

+ 14 - 2
src/views/warehouse/component/router/index.js

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

+ 450 - 0
src/views/warehouse/costmanagement.vue

@@ -0,0 +1,450 @@
+<!--仓库管理-->
+<template>
+  <div>
+    <BaseHeaderLayout :leftSpan="15">
+      
+      <template slot="left">
+        <div >
+          <el-radio-group
+            v-model="warehouseType"
+            @change="changeradio"
+            size="small"
+          >
+            <el-radio-button label="1">常用仓库</el-radio-button>
+            <el-radio-button label="2">临时仓库</el-radio-button>
+          </el-radio-group>
+        </div>
+      </template>
+      <template slot="right">
+        <ws-input
+          v-model="warehouseName"
+          placeholder="请输入仓库名"
+          clearable
+          maxlength="500"
+          type="input"
+          class="findValue"
+        ></ws-input>
+        <!-- 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>
+      </template>
+    </BaseHeaderLayout>
+    <div v-show="this.warehouseType == '1'">
+      <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>
+        <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>
+        <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>
+</template>
+<script>
+import {
+  getcost,
+  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: [],
+
+      // 是否显示
+      showType: true,
+      // 年
+      year: '',
+
+      searchType: 1,
+      searchTypeText: '未完成',
+      searchKeyWord: '',
+      contractType: 2,
+      warehouseType: '1',
+      // 提交类型
+      submitType: true,
+      size: 10,
+      spanArr: [],
+      warehouseName: '',
+      compId: sessionStorage.getItem('ws-pf_compId'),
+      deptCircularPage: {},
+      warehouseList: [],
+      deptBudgetList: {},
+      historyList: [],
+      deptBudgetTotal: 0,
+      pickerBeginDateBefore: {
+        disabledDate: (time) => {
+          return time.getTime() > Date.now()
+        },
+      },
+      accessoryTFs: false,
+    }
+  },
+  activated() {
+    this.getList()
+    this.showType = this.isShow
+  },
+
+  methods: {
+    //查看
+    handleLook() {
+      this.$router.push({ path: 'warehouseManagementLook' })
+    },
+    //添加
+    handleAdd() {
+      this.$router.push({ path: 'warehouseManagementAdd' })
+    },
+    //编辑
+    handleEdit() {
+      this.$router.push({ path: 'warehouseManagementEdit' })
+    },
+    handleDelete() {
+      this.$router.push({ path: 'warehouseManagementDelete' })
+    },
+    //任务
+    handlTask(){
+      this.$router.push({ path: 'tranManagementWarehouseInOutTask' })
+    },
+    handleClose() {
+      this.accessoryTFs = false
+    },
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`)
+      this.pageSize = val
+      this.getList()
+    },
+    handleCurrentChange(val) {
+      this.currentPage = val
+      console.log(`当前页: ${val}`)
+      this.getList()
+    },
+    getList() {
+      getcost({
+        compId: sessionStorage.getItem('ws-pf_compId'),
+        warehouseName: this.warehouseName,
+        warehouseType: this.warehouseType,
+        currectPage:this.currectPage,
+        pageSize:this.pageSize
+      })
+        .toPromise()
+        .then((response) => {
+          this.warehouseList = response
+        })
+    },
+    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',
+        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;
+}
+.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;
+}
+
+</style>

+ 0 - 1
vue.config.js

@@ -143,7 +143,6 @@ module.exports = {
         // target: 'http://localhost:8090/',
         target: 'http://192.168.1.122:8090/',
         // target: 'http://192.168.1.122:9100/',
-        // target: 'http://192.168.1.112:8090/',
         // target: 'http://192.168.1.121:8090/',
         // target: 'http://192.168.1.119:8090/',
         // target: 'http://192.168.24.5:8098',//目标地址

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است