Sfoglia il codice sorgente

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

ccj 2 anni fa
parent
commit
e7fc006e80

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

@@ -571,6 +571,36 @@ const warehouseManagementRouter = {
       },
       hidden:true
     },
+    {
+      path: 'materialInOutWarehouse',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehousenew/materialInOutWarehouse'),
+      name: 'materialInOutWarehouse',
+      meta: {
+        title: 'materialInOutWarehouse',
+        shortcutEntrance: 'materialInOutWarehouse',
+        module: 'warehouseManagement.warehouse.warehouseInfo',
+        permissicon: [],
+        keepAlive: true,
+        _title:'物料出入库'
+      },
+      hidden: true
+    },
+    {
+      path: 'materialInOutRecord',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/warehousenew/materialInOutRecord'),
+      name: 'materialInOutRecord',
+      meta: {
+        title: 'materialInOutRecord',
+        shortcutEntrance: 'materialInOutRecord',
+        module: 'warehouseManagement.warehouse.warehouseInfo',
+        permissicon: [],
+        keepAlive: true,
+        _title:'物料出入库记录'
+      },
+      hidden: true
+    },
   ],
 };
 export default warehouseManagementRouter;

+ 946 - 0
src/views/warehousenew/materialInOutRecord.vue

@@ -0,0 +1,946 @@
+// 物料出入库记录
+<template>
+    <div class="container">
+        <el-row class="toptitle">
+            <el-col :span="12">
+                <h2 class="bg-left title">物料出入库记录</h2>
+            </el-col>
+            <el-col :span="12" class="bg-right">
+                <el-button 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>
+        <div class="center">
+            <el-row>
+                <el-col :span="6" style="height: 45px"></el-col>
+                <el-col :span="18" class="bg-right">
+                    <div style="display:flex">
+                        <el-select style='margin-right:5px; width:40%' v-model="warehouseName" placeholder="请选择仓库名"
+                            @change="warehouseNameChange">
+                            <el-option v-for="item in warehouseList" :key="item.id" :label="item.warehouseName"
+                                :value="item.warehouseName"></el-option>
+                        </el-select>
+                        <el-date-picker v-model="value2" type="daterange" align="right" unlink-panels
+                            range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
+                            :picker-options="pickerOptions">
+                        </el-date-picker>
+                        <el-input placeholder=" 可按物料名称、车牌号和操作员姓名查找" clearable v-model="searchKeyWord"
+                            class="search_css">
+                        </el-input>
+                        <el-button type="primary" size="small" @click="lookup">查找</el-button>
+                    </div>
+                </el-col>
+            </el-row>
+            <el-row>
+                <el-col :span="18" style="height: 33px;">
+                    <el-button style="margin-left: 10px !important" @click="inOutChange('')"
+                        :type="inOutFlag == '' ? 'primary' : ''">全部</el-button>
+                    <el-button @click="inOutChange(2)" :type="inOutFlag == 2 ? 'primary' : ''">入库</el-button>
+                    <el-button @click="inOutChange(1)" :type="inOutFlag == 1 ? 'primary' : ''">出库</el-button>
+                </el-col>
+                <el-col :span="18" style="display:flex;margin-left: 45%;">
+                    <div style="text-align:right;margin-right:80px;">合计入库重量(吨):{{ inWeight }}</div>
+                    <div style="text-align:right;margin-right:60px;">合计出库重量(吨):{{ outWeight }}</div>
+                    <div style="text-align:right;margin-right:40px;">合计入库数量(个):{{ inCount }}</div>
+                    <div style="text-align:right;margin-right:20px;">合计出库数量(个):{{ outCount }}</div>
+                </el-col>
+            </el-row>
+            <el-table class="forData" :data="weighingRecordList" style="width: 100%; margin-top: 20px" height="500"
+                @selection-change="handleSelectionChange">
+                <el-table-column type="selection" width="55"></el-table-column>
+                <el-table-column type="index" label="序号" width="50">
+                    <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="businessNo" label="业务编号" width="150"></el-table-column> -->
+                <el-table-column prop="itemName" label="物料名称" width="120"></el-table-column>
+                <el-table-column label="类型" width="60">
+                    <template scope="scope">
+                        <span v-if="scope.row.inOutFlag == '1'">出库</span>
+                        <span v-else>入库</span>
+                    </template>
+                </el-table-column>
+                <el-table-column prop="deliveryMethod" label="统计方式" width="100">
+                    <template scope="scope">
+                        <span v-if="scope.row.deliveryMethod == '1'">称重</span>
+                        <span v-else>计数</span>
+                    </template>
+                </el-table-column>
+                <el-table-column prop="grossWeight" label="毛重(公斤)" width="150"></el-table-column>
+                <el-table-column prop="tare" label="皮重(公斤)" width="150"></el-table-column>
+                <el-table-column prop="netWeight" label="净重(公斤)" width="150"></el-table-column>
+                <el-table-column prop="carNo" label="车牌号" width="150"></el-table-column>
+                <el-table-column prop="materialQuantity" label="数量(个)" width="100"></el-table-column>
+                <el-table-column label="经办人" width="200">
+                    <template scope="scope">
+                        <span v-if="scope.row.grossAgent == scope.row.tareAgent"> {{ scope.row.grossAgent }}</span>
+                        <span v-else>{{ scope.row.grossAgent }} {{ scope.row.tareAgent }}</span>
+                    </template>
+                </el-table-column>
+                <el-table-column prop="status" label="状态"></el-table-column>
+                <el-table-column prop="inOutWarehouseDate" label="出入库日期">
+                    <template scope="scope">
+                        <span>{{ scope.row.inOutWarehouseDate.split(" ")[0] }}</span>
+                    </template>
+                </el-table-column>
+                <!-- <el-table-column label="操作"  width="200">
+                    <template scope="scope">
+                        <el-button @click="printInfo(scope.row)" >打印</el-button>
+                        <el-button @click="deleteInfo(scope.row)" v-if="scope.row.status == '待称皮重'">删除</el-button>
+                    </template>
+                </el-table-column> -->
+            </el-table>
+        </div>
+        <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>
+        <!-- <div class="mask1" v-show="isShowPrintTypeBills"></div>
+        <div class="print-type1" v-show="isShowPrintTypeBills">
+            <div class="print-type-content">
+                <div class="print-type-title">请选择打印纸张类型</div>
+                <div class="print-type-checkbox">
+                </div>
+                <div class="shdw-style1" v-if="checked || (!ddchecked && !checked)">
+                    <div>收货单位:</div>
+                    <el-select v-model="companyName" placeholder="请选择" style="width: 75%;">
+                        <el-option v-for="item in companyNameOptions" :key="item.value" :label="item.label"
+                            :value="item.value">
+                        </el-option>
+                    </el-select>
+                </div>
+                <div
+                    v-if="warehouseName1 == '鲅鱼圈金信库' || warehouseName1 == '白城内陆港' || warehouseName1 == '杜尔伯特家禾库' || warehouseName1 == '洮南新友谊兴旺库' || warehouseName1 == '甘南宏旗库' || warehouseName1 == '哈尔滨依兰库' || warehouseName1 == '山东园丰库'">
+                    <div class="print-type-ew">
+                        <el-checkbox v-model="checked" @change="changeEw">打印额外票据</el-checkbox>
+                        <el-checkbox v-model="ddchecked" @change="changeEwDD">单独打印额外票据</el-checkbox>
+                    </div>
+                    <div class="ew-print" v-if="printSeparately">
+                        <div class="row">
+                            <div>额外客户姓名:</div>
+                            <el-select v-model="ewCustomer" placeholder="请选择" style="width: 75%;">
+                                <el-option v-for="item in ewCustomerOptions" :key="item.value" :label="item.label"
+                                    :value="item.value">
+                                </el-option>
+                            </el-select>
+                        </div>
+                        <div class="row">
+                            <div>额外收货单位:</div>
+                            <el-select v-model="companyNameEW" placeholder="请选择" style="width: 75%;">
+                                <el-option v-for="item in companyNameEWOptions" :key="item.value" :label="item.label"
+                                    :value="item.value">
+                                </el-option>
+                            </el-select>
+                        </div>
+                    </div>
+                </div>
+            </div>
+            <div class="bottom-btn">
+                <el-button @click="printBig1">确定</el-button>
+                <el-button @click="typePrintCannelClick1">取消</el-button>
+            </div>
+        </div> -->
+    </div>
+</template>
+<script>
+import {
+    // delMaterial,
+    getMaterialRecord
+} from '@/model/warehouse/index'
+import {
+    selectWarehouseSelf,
+} from '@/model/outboundManagement/index'
+export default {
+    data() {
+        return {
+            weighingRecordList: [],
+            warehouseId: '',
+            warehouseName: '',
+            warehouseName1: '',
+
+            compId: '',
+            inOutFlag: '',
+            //分页
+            currentPage: 1,
+            pageSize: 10,
+            value2: '',
+            deptCircularPage: {},
+            deptBudgetTotal: 0,
+            warehouseList: [], //仓库
+            searchKeyWord: '',
+            title: '',
+            modification: [],
+            isShowPrintTypeBills: false,
+            inWeight: 0,//合计入库重量
+            outWeight: 0,//合计出库重量
+            inCount: 0,//合计入库数量
+            outCount: 0,//合计出库数量
+            startDate: '',
+            endDate: '',
+            pickerOptions: {
+                shortcuts: [{
+                    text: '本周',
+                    onClick(picker) {
+                        const end = new Date()
+                        const start = new Date()
+                        var thisDay = start.getDay()
+                        var thisDate = start.getDate()
+                        if (thisDay != 0) {
+                            start.setDate(thisDate - thisDay)
+                        }
+                        picker.$emit('pick', [start, end])
+                    },
+                },
+                {
+                    text: '本月',
+                    onClick(picker) {
+                        const end = new Date()
+                        const start = new Date()
+                        start.setDate(1)
+                        picker.$emit('pick', [start, end])
+                    },
+                },
+                {
+                    text: '本季度',
+                    onClick(picker) {
+                        var oDate = new Date()
+
+                        var thisYear = oDate.getFullYear()
+                        var thisMonth = oDate.getMonth() + 1
+
+                        var n = Math.ceil(thisMonth / 3) // 季度
+
+                        var Month = n * 3 - 1
+
+                        var start = new Date(thisYear, Month - 2, 1)
+                        var end = new Date()
+
+                        picker.$emit('pick', [start, end])
+                    },
+                },
+                ],
+            },
+            ddchecked: false,
+            checked: false,
+            // ewCustomerOptions: [{
+            //     value: '天津建源供应链管理有限公司',
+            //     label: '天津建源供应链管理有限公司'
+            // }, {
+            //     value: '黑龙江中天昊元贸易有限公司',
+            //     label: '黑龙江中天昊元贸易有限公司'
+            // }, {
+            //     value: '黑龙江利润元粮食贸易有限公司',
+            //     label: '黑龙江利润元粮食贸易有限公司'
+            // }, {
+            //     value: '黑龙江众利合粮食贸易有限公司',
+            //     label: '黑龙江众利合粮食贸易有限公司'
+            // }, {
+            //     value: '黑龙江鑫满仓粮食贸易有限公司',
+            //     label: '黑龙江鑫满仓粮食贸易有限公司'
+            // }, {
+            //     value: '厦门建发物产有限公司',
+            //     label: '厦门建发物产有限公司'
+            // }, {
+            //     value: '黑龙江谷香粮食贸易有限公司',
+            //     label: '黑龙江谷香粮食贸易有限公司'
+            // }, {
+            //     value: '黑龙江秋收有限公司',
+            //     label: '黑龙江秋收有限公司'
+            // }, {
+            //     value: '黑龙江欣洋粮食贸易有限公司',
+            //     label: '黑龙江欣洋粮食贸易有限公司'
+            // }, {
+            //     value: '黑龙江益储益运粮食贸易有限公司',
+            //     label: '黑龙江益储益运粮食贸易有限公司'
+            // }, {
+            //     value: '黑龙江启兴粮食贸易有限公司',
+            //     label: '黑龙江启兴粮食贸易有限公司'
+            // }],
+            // companyNameOptions: [{
+            //     value: '黑龙江中天昊元贸易有限公司',
+            //     label: '黑龙江中天昊元贸易有限公司'
+            // }, {
+            //     value: '黑龙江利润元粮食贸易有限公司',
+            //     label: '黑龙江利润元粮食贸易有限公司'
+            // }, {
+            //     value: '黑龙江众利合粮食贸易有限公司',
+            //     label: '黑龙江众利合粮食贸易有限公司'
+            // }, {
+            //     value: '黑龙江鑫满仓粮食贸易有限公司',
+            //     label: '黑龙江鑫满仓粮食贸易有限公司'
+            // }, {
+            //     value: '黑龙江谷香粮食贸易有限公司',
+            //     label: '黑龙江谷香粮食贸易有限公司'
+            // }, {
+            //     value: '黑龙江秋收有限公司',
+            //     label: '黑龙江秋收有限公司'
+            // }, {
+            //     value: '黑龙江欣洋粮食贸易有限公司',
+            //     label: '黑龙江欣洋粮食贸易有限公司'
+            // }, {
+            //     value: '黑龙江益储益运粮食贸易有限公司',
+            //     label: '黑龙江益储益运粮食贸易有限公司'
+            // }, {
+            //     value: '黑龙江启兴粮食贸易有限公司',
+            //     label: '黑龙江启兴粮食贸易有限公司'
+            // }],
+            // companyNameEWOptions: [{
+            //     value: '天津建源供应链管理有限公司',
+            //     label: '天津建源供应链管理有限公司'
+            // }, {
+            //     value: '厦门建发物产有限公司',
+            //     label: '厦门建发物产有限公司'
+            // }],
+            // companyName: '黑龙江中天昊元贸易有限公司',
+            // companyNameEW: '厦门建发物产有限公司',
+            // ewCustomer: '黑龙江利润元粮食贸易有限公司',
+            printSeparately: false,
+            onePrint: false,
+            dialogDataList: [],
+            printData: {
+            }
+        }
+    },
+    activated() {
+        //仓库
+        selectWarehouseSelf({
+            compId: localStorage.getItem('ws-pf_compId'),
+        })
+            .toPromise()
+            .then((response) => {
+                this.warehouseList = response
+            })
+        this.compId = localStorage.getItem('ws-pf_compId')
+        this.warehouseName = this.$route.query.warehouseName //仓库名
+        this.warehouseId = this.$route.query.warehouseId //仓库Id
+        // if (localStorage.getItem('compNameoptions')) {
+        //     var company = JSON.parse(localStorage.getItem('compNameoptions'))
+
+        //     var extra = company.filter((item) => {
+        //         return item != '黑龙江中天昊元贸易有限公司'
+        //             && item != '黑龙江利润元粮食贸易有限公司'
+        //             && item != '黑龙江众利合粮食贸易有限公司'
+        //             && item != '黑龙江鑫满仓粮食贸易有限公司'
+        //             && item != '黑龙江谷香粮食贸易有限公司'
+        //             && item != '黑龙江秋收有限公司'
+        //             && item != '黑龙江欣洋粮食贸易有限公司'
+        //             && item != '黑龙江益储益运粮食贸易有限公司'
+        //             && item != '黑龙江启兴粮食贸易有限公司'
+        //     })
+        //     if (extra.length > 0) {
+        //         this.companyNameOptions = [
+        //             {
+        //                 value: '黑龙江中天昊元贸易有限公司',
+        //                 label: '黑龙江中天昊元贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江利润元粮食贸易有限公司',
+        //                 label: '黑龙江利润元粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江众利合粮食贸易有限公司',
+        //                 label: '黑龙江众利合粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江鑫满仓粮食贸易有限公司',
+        //                 label: '黑龙江鑫满仓粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江欣洋粮食贸易有限公司',
+        //                 label: '黑龙江欣洋粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江谷香粮食贸易有限公司',
+        //                 label: '黑龙江谷香粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江秋收有限公司',
+        //                 label: '黑龙江秋收有限公司'
+        //             }, {
+        //                 value: '黑龙江益储益运粮食贸易有限公司',
+        //                 label: '黑龙江益储益运粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江启兴粮食贸易有限公司',
+        //                 label: '黑龙江启兴粮食贸易有限公司'
+        //             }]
+
+        //         this.ewCustomerOptions = [
+        //             {
+        //                 value: '天津建源供应链管理有限公司',
+        //                 label: '天津建源供应链管理有限公司'
+        //             }, {
+        //                 value: '黑龙江中天昊元贸易有限公司',
+        //                 label: '黑龙江中天昊元贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江利润元粮食贸易有限公司',
+        //                 label: '黑龙江利润元粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江众利合粮食贸易有限公司',
+        //                 label: '黑龙江众利合粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江鑫满仓粮食贸易有限公司',
+        //                 label: '黑龙江鑫满仓粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江欣洋粮食贸易有限公司',
+        //                 label: '黑龙江欣洋粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江谷香粮食贸易有限公司',
+        //                 label: '黑龙江谷香粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江秋收有限公司',
+        //                 label: '黑龙江秋收有限公司'
+        //             }, {
+        //                 value: '黑龙江益储益运粮食贸易有限公司',
+        //                 label: '黑龙江益储益运粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江启兴粮食贸易有限公司',
+        //                 label: '黑龙江启兴粮食贸易有限公司'
+        //             }]
+        //         this.companyNameEWOptions = [
+        //             {
+        //                 value: '天津建源供应链管理有限公司',
+        //                 label: '天津建源供应链管理有限公司'
+        //             }, {
+        //                 value: '黑龙江中天昊元贸易有限公司',
+        //                 label: '黑龙江中天昊元贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江利润元粮食贸易有限公司',
+        //                 label: '黑龙江利润元粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江众利合粮食贸易有限公司',
+        //                 label: '黑龙江众利合粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江鑫满仓粮食贸易有限公司',
+        //                 label: '黑龙江鑫满仓粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江欣洋粮食贸易有限公司',
+        //                 label: '黑龙江欣洋粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江谷香粮食贸易有限公司',
+        //                 label: '黑龙江谷香粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江秋收有限公司',
+        //                 label: '黑龙江秋收有限公司'
+        //             }, {
+        //                 value: '黑龙江益储益运粮食贸易有限公司',
+        //                 label: '黑龙江益储益运粮食贸易有限公司'
+        //             }, {
+        //                 value: '黑龙江启兴粮食贸易有限公司',
+        //                 label: '黑龙江启兴粮食贸易有限公司'
+        //             }]
+        //         if (localStorage.getItem('print_company_name')) {
+        //             this.companyName = localStorage.getItem('print_company_name')
+        //         } else {
+        //             this.companyName = extra[0]
+        //         }
+        //         if (localStorage.getItem('print_company_name_ew')) {
+        //             this.companyNameEW = localStorage.getItem('print_company_name_ew')
+        //         } else {
+        //             this.companyNameEW = extra[0]
+        //         }
+        //         if (localStorage.getItem('print_customer_name_ew')) {
+        //             this.ewCustomer = localStorage.getItem('print_customer_name_ew')
+        //         } else {
+        //             this.ewCustomer = extra[0]
+        //         }
+        //         for (let i = 0; i < extra.length; i++) {
+        //             this.ewCustomerOptions.push({ value: extra[i], label: extra[i] })
+        //             this.companyNameOptions.push({ value: extra[i], label: extra[i] })
+        //             this.companyNameEWOptions.push({ value: extra[i], label: extra[i] })
+        //         }
+        //     }
+        // }
+        this.getList()
+    },
+    methods: {
+        inOutChange(num) {
+            this.inOutFlag = num
+            this.getList()
+        },
+        // changeEw(e) {
+        //     this.ddchecked = false
+        //     if (e) {
+        //         this.printSeparately = true
+        //     } else {
+        //         this.printSeparately = false
+        //     }
+        // },
+        // changeEwDD(e) {
+        //     this.checked = false
+        //     if (e) {
+        //         this.printSeparately = true
+        //     } else {
+        //         this.printSeparately = false
+        //     }
+        // },
+        // printBig1(type, radioType) {
+        //     this.printData.extra1 = true
+        //     localStorage.setItem('print_company_name', this.companyName)
+        //     localStorage.setItem('print_company_name_ew', this.companyNameEW)
+        //     localStorage.setItem('print_customer_name_ew', this.ewCustomer)
+        //     // 打印额外
+        //     if (this.checked || this.ddchecked) {
+        //         this.printData.extra2 = true
+        //         if (this.ddchecked) {
+        //             localStorage.setItem('print_alone_extra', true)
+        //         } else {
+        //             localStorage.setItem('print_alone_extra', false)
+        //         }
+        //         //  this.selectEW = true;
+        //     } else {
+        //         this.printData.extra2 = false
+        //     }
+        //     localStorage.setItem('printdrydata', JSON.stringify(this.printData))
+        //     window.open(
+        //         '../../../../../static/printdry.html?type=2&printTypeList=结算凭证'
+        //     )
+        //     // if (type == 1) {
+        //     //   localStorage.setItem('selectPrint_jjSelectPrintList', JSON.stringify(this.jjSelectPrintList))
+        //     //   window.open('../../../../static/weightCheck.html?type=2&radioType=' + radioType + '&selectEW=' + this
+        //     //     .checked + '&selectEWDD=' + this.ddchecked)
+        //     // } else if (type == 2) {
+        //     //   localStorage.setItem('selectPrint_jjSelectPrintList', JSON.stringify(this.excelPrintData))
+        //     //   window.open('../../../../static/weightCheck.html?type=2&radioType=' + radioType)
+        //     // } else {
+        //     //   console.log(this.dialogDataList)
+
+        //     //   localStorage.setItem('print_in_data',JSON.stringify(this.dialogDataList).replace(/%/g, 'baifenhao'))
+        //     //   // window.open('../../../../static/weightCheck.html?type=2&tableData=' + JSON.stringify(this.dialogDataList).replace(/%/g, 'baifenhao'))
+        //     //   window.open('../../../../static/weightCheck.html?type=2&tableData=' )
+        //     // }
+        // },
+        //   typePrintCannelClick1() {
+        //     this.dialogDataList = [] //打个打印取消时数组至空
+        //     this.isShowPrintTypeBills= false
+        //   },
+        //     printInfo(row){
+        //         this.printData=row
+        //         this.warehouseName1=row.warehouseName
+
+        //         this.isShowPrintTypeBills=true
+        //         // window.open('../../../static/printdry.html')
+        //     },
+        // deleteInfo(row) {
+        //     //删除
+        //     this.$confirm('确定删除检斤信息?', '提示', {
+        //         confirmButtonText: '确定',
+        //         cancelButtonText: '取消',
+        //         type: 'warning',
+        //     })
+        //         .then(() => {
+        //             delMaterial({
+        //                 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
+        //         })
+        // },
+        handleSelectionChange(val) {
+            this.modification = val;
+            //合计入库重量
+            this.inWeight = 0
+            //合计出库重量
+            this.outWeight = 0
+            //合计入库数量
+            this.inCount = 0
+            //合计出库数量
+            this.outCount = 0
+            for (let i = 0; i < this.modification.length; i++) {
+                //合计入库重量
+                if (this.modification[i].netWeight && this.modification[i].inOutFlag == 2) {
+                    this.inWeight += this.modification[i].netWeight
+                }
+                //合计出库重量
+                if (this.modification[i].netWeight && this.modification[i].inOutFlag == 1) {
+                    this.outWeight += this.modification[i].netWeight
+                }
+                //合计入库数量
+                if (this.modification[i].materialQuantity && this.modification[i].deliveryMethod == 3 && this.modification[i].inOutFlag == 2) {
+                    this.inCount += this.modification[i].materialQuantity
+                }
+                //合计出库数量
+                if (this.modification[i].materialQuantity && this.modification[i].deliveryMethod == 3 && this.modification[i].inOutFlag == 1) {
+                    this.outCount += this.modification[i].materialQuantity
+                }
+            }
+            this.inWeight = (this.inWeight / 1000).toFixed(2)
+            this.outWeight = (this.outWeight / 1000).toFixed(2)
+        },
+        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
+        },
+        lookup() {
+            if (this.value2) {
+                this.startDate = this.dateFormat('YYYY-mm-dd', this.value2[0])
+                this.endDate = this.dateFormat('YYYY-mm-dd', this.value2[1])
+            } else {
+                this.startDate = ''
+                this.endDate = ''
+            }
+            this.currentPage = 1
+            this.getList()
+        },
+        returnsales() {
+            this.searchKeyWord = ''
+            this.$router.go(-1)
+        },
+        warehouseNameChange(e) {
+            for (let i = 0; i < this.warehouseList.length; i++) {
+                if (e == this.warehouseList[i].warehouseName) {
+                    this.warehouseId = this.warehouseList[i].id
+                }
+            }
+            this.getList()
+        },
+        handleSizeChange(val) {
+            console.log(`每页 ${val} 条`)
+            this.pageSize = val
+            this.getList()
+        },
+        handleCurrentChange(val) {
+            this.currentPage = val
+            console.log(`当前页: ${val}`)
+            this.getList()
+        },
+        getList() {
+            // 列表
+            getMaterialRecord({
+                baseId: this.warehouseId,
+                currentPage: this.currentPage,
+                pageSize: this.pageSize,
+                searchKeyWord: this.searchKeyWord,
+                inOutFlag: this.inOutFlag,
+                startDate: this.startDate,
+                endDate: this.endDate,
+            })
+                .toPromise()
+                .then((response) => {
+                    this.weighingRecordList = response.records
+                    this.deptBudgetTotal = response.total
+                })
+                .catch((response) => {
+                    // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+                })
+        },
+
+    },
+}
+</script>
+<style lang="scss" scoped>
+.toptitle {
+    background: #f6f7fc;
+}
+
+.bg-left {
+    padding-left: 30px;
+}
+
+.bg-right {
+    text-align: right;
+    padding: 16px 20px;
+}
+
+.top-title {
+    width: 50%;
+    display: flex;
+}
+
+.title {
+    position: relative;
+}
+
+.title::before {
+    content: '';
+    display: inline-block;
+    width: 5px;
+    height: 30px;
+    background: #5473e8;
+    position: absolute;
+    left: 0;
+}
+
+.container {
+    overflow: scroll;
+    height: 93vh;
+}
+
+.center {
+    margin: auto;
+}
+
+.centertitle {
+    display: flex;
+    margin: 10px 0;
+}
+
+.temporary {
+    line-height: 80px;
+    font-size: 20px;
+    color: #abaaaa;
+}
+
+/deep/.forData .cell {
+    text-align: center;
+}
+
+//弹出框
+.eject-warehouse {
+    font-size: 20px;
+    margin-left: 15px;
+    font-weight: 600;
+}
+
+.table_css {
+    margin: 20px auto;
+
+    tr {
+        height: 50px;
+    }
+
+    .table_item {
+        min-width: 70px;
+    }
+
+    td {
+        text-align: center;
+        font-size: 18px;
+        font-weight: 600;
+    }
+
+    .el-select {
+        width: 90%;
+    }
+}
+
+.btn_topcss {
+    margin-top: 15px;
+
+}
+
+.btn_css {
+    width: 90px;
+    margin-left: 10px;
+}
+
+.search_css {
+    margin: 0 20px;
+}
+
+.mask {
+    background: black;
+    width: 100vw;
+    height: 100vh;
+    position: fixed;
+    top: 0;
+    z-index: 99;
+    opacity: 0.3;
+}
+
+.print-type-title {
+    text-align: center;
+    font-size: 18px;
+    margin: 20px;
+}
+
+.bottom-btn {
+    display: flex;
+    margin-top: 20px;
+    justify-content: space-around;
+}
+
+.print-type-checkbox {
+    // padding-left: 20px;
+}
+
+.print-type {
+    position: absolute;
+    top: 0;
+    bottom: 0;
+    left: 0;
+    right: 0;
+    margin: auto;
+    width: 440px;
+    height: 320px;
+    background: white;
+    border-radius: 10px;
+    z-index: 999;
+}
+
+/deep/.el-radio-group {
+    width: 100%;
+    display: flex;
+}
+
+/deep/.el-radio__label {
+    font-size: 20px;
+}
+
+/deep/.el-radio__inner {
+    // background: red;
+    height: 20px;
+    width: 20px;
+}
+
+.label-width {
+    width: 100%;
+    text-align: center;
+    font-size: 20px;
+}
+
+.show-excel {
+    opacity: 0;
+}
+
+/deep/.base_header_layout .find.el-button--primary {
+    width: 30px;
+    border-top-left-radius: 0px;
+    border-bottom-left-radius: 0px;
+}
+
+/deep/.base_header_layout .findinput input {
+    border-top-right-radius: 0px;
+    border-bottom-right-radius: 0px;
+}
+
+.ew-print {
+    padding: 0 20px;
+    margin-top: 10px;
+
+    // display: flex;
+    // justify-content: space-between;
+    // align-content: center;
+    .row {
+        display: flex;
+        margin-top: 10px;
+        align-items: center;
+    }
+}
+
+.sh-address {
+    display: flex;
+}
+
+.print-type-ew {
+    display: flex;
+    justify-content: space-between;
+    padding: 0 20px;
+
+    /deep/.el-radio__label {
+        font-size: 14px;
+    }
+
+    margin-top: 10px;
+}
+
+/deep/.el-table .cell {
+    text-align: center;
+}
+
+.shdw-style {
+    display: flex;
+    justify-content: space-between;
+    align-items: center;
+    padding: 0 20px;
+    margin-top: 20px;
+}
+
+.mask1 {
+    background: black;
+    width: 100vw;
+    height: 100vh;
+    position: fixed;
+    top: 0;
+    z-index: 1001;
+    opacity: 0.3;
+}
+
+.print-type-title1 {
+    text-align: center;
+    font-size: 18px;
+    margin: 20px;
+}
+
+
+.print-type-checkbox1 {
+    // padding-left: 20px;
+}
+
+.print-type1 {
+    position: absolute;
+    top: 0;
+    bottom: 0;
+    left: 0;
+    right: 0;
+    margin: auto;
+    width: 440px;
+    height: 320px;
+    background: white;
+    border-radius: 10px;
+    z-index: 1001;
+}
+
+.shdw-style1 {
+    display: flex;
+    justify-content: space-between;
+    align-items: center;
+    padding: 0 20px;
+    margin-top: 20px;
+}
+
+.print-type-ew {
+    display: flex;
+    justify-content: space-between;
+    padding: 0 20px;
+
+    /deep/.el-radio__label {
+        font-size: 14px;
+    }
+
+    margin-top: 10px;
+}
+
+.ew-print {
+    padding: 0 20px;
+    margin-top: 10px;
+
+    // display: flex;
+    // justify-content: space-between;
+    // align-content: center;
+    .row {
+        display: flex;
+        margin-top: 10px;
+        align-items: center;
+    }
+}
+</style>

+ 1589 - 0
src/views/warehousenew/materialInOutWarehouse.vue

@@ -0,0 +1,1589 @@
+<template>
+  <div class="center">
+    <BaseHeaderLayout :leftSpan="12">
+      <template slot="left"> </template>
+      <template slot="right">
+        <el-select style="width: 400px" v-model="warehouseName" filterable placeholder="请选择仓库"
+          @change="warehouseNameChange">
+          <el-option v-for="item in warehouseList" :key="item.id" :label="item.warehouseName"
+            :value="item.warehouseName" style="color: #8890b1" />
+        </el-select>
+      </template>
+    </BaseHeaderLayout>
+    <div style="display: flex">
+      <div style="background: #f6f7fc; padding: 10px" class="grid-content bg-purple size_css">
+        <BalanceAlert v-if="isShowBalance" ref="weightChild" :deptBudgetList="deptBudgetList" :information="information"
+          v-on:balanceListen="setVal" class="zujian">
+        </BalanceAlert>
+        <div class="top">
+          <div class="confirmWeight">
+            <div class="titleWeight">确认重量</div>
+            <div v-if="index == 0" class="weight">
+              {{ materialList.tare }} <span class="kg-style">kg</span>
+            </div>
+            <div v-else class="weight">
+              {{ materialList.grossWeight }} <span class="kg-style">kg</span>
+            </div>
+          </div>
+          <div class="confirmInfo">
+            <div class="car-type">车牌号</div>
+            <div class="car-no">{{ materialList.carNo }}</div>
+          </div>
+        </div>
+        <div class="bg-left titleup">
+          <span class="word_css">实时监控</span>
+        </div>
+        <div class="bottom">
+          <div v-if="!monitorUrl1" class="video1">
+            <img src="../../../public/img/quesheng@2x.png" alt="" class="img1" />
+            <div>监控视频未连接</div>
+          </div>
+          <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>
+      <div class="right">
+        <el-row :gutter="20">
+          <el-col :span="12">
+            <div class="grid-content bg-purple">
+              <div class="tab">
+                <div :class="inOutFlag == 2 ? 'in_css' : 'in_cssno'" @click="inOutFlagChange(2)">入库</div>
+                <div :class="inOutFlag == 1 ? 'in_css' : 'in_cssno'" @click="inOutFlagChange(1)">出库</div>
+              </div>
+              <div v-if="inOutFlag == 2" class="tab method_btn">
+                <el-radio style="display: flex;" v-model="materialList.deliveryMethod" label="1"
+                  @change="changeRadio">
+                  <div class="method">
+                    称重入库
+                  </div>
+                </el-radio>
+                <el-radio style="display: flex;" v-model="materialList.deliveryMethod" label="3"
+                  @change="radiochange">
+                  <div class="method">
+                    计数入库
+                  </div>
+                </el-radio>
+              </div>
+              <div v-else class="tab method_btn">
+                <el-radio style="display: flex;" v-model="materialList.deliveryMethod" label="1"
+                  @change="changeRadio">
+                  <div class="method">
+                    称重出库
+                  </div>
+                </el-radio>
+                <el-radio style="display: flex;" v-model="materialList.deliveryMethod" label="3"
+                  @change="radiochange">
+                  <div class="method">
+                    计数出库
+                  </div>
+                </el-radio>
+              </div>
+              <div v-if="inOutFlag == 2 && materialList.deliveryMethod == '1'" class="tab weigh_btn">
+                <el-button :type="tpyeNo == 2 ? 'primary' : ''">
+                  <div @click="tabClick(1)">称毛重</div>
+                </el-button>
+                <el-button :type="tpyeNo == 1 ? 'primary' : ''">
+                  <div @click="tabClick(0)">称皮重</div>
+                </el-button>
+              </div>
+              <div v-else-if="inOutFlag == 1 && materialList.deliveryMethod == '1'" class="tab weigh_btn">
+                <el-button :type="tpyeNo == 1 ? 'primary' : ''">
+                  <div @click="tabClick(0)">称皮重</div>
+                </el-button>
+                <el-button :type="tpyeNo == 2 ? 'primary' : ''">
+                  <div @click="tabClick(1)">称毛重</div>
+                </el-button>
+              </div>
+              <ws-form class="right-content">
+                <div class="left1">
+                  <div class="weightInfo">
+                    <ws-info-table>
+                      <ws-form-item label="物料名称" span="1" prop="itemName">
+                        <ws-input @mousewheel.native.prevent v-model="materialList.itemName" placeholder="请输入物料名称"
+                          maxlength="10" size="small" :disabled="recheck" />
+                      </ws-form-item>
+                      <ws-form-item label="车牌号" span="1" prop="carNo" v-show="materialList.deliveryMethod == '1'">
+                        <ws-input @mousewheel.native.prevent v-model="materialList.carNo" placeholder="请输入车牌号"
+                          maxlength="7" size="small" :disabled="recheck" />
+                      </ws-form-item>
+                      <ws-form-item label="毛重(KG)" span="1" prop="grossWeight"
+                        v-show="grossShow && materialList.deliveryMethod == '1'">
+                        <ws-input type="number" @mousewheel.native.prevent v-model="materialList.grossWeight"
+                          @input="calculation" placeholder="自动获取" maxlength="100" size="small"
+                          :disabled="disabled || grossDisabled" />
+                        <el-button v-if="tpyeNo == 2" @click="openPort">
+                          重新获取</el-button>
+                      </ws-form-item>
+                      <ws-form-item label="皮重(KG)" span="1" prop="tare"
+                        v-show="tareShow && materialList.deliveryMethod == '1'">
+                        <ws-input type="number" @mousewheel.native.prevent v-model="materialList.tare"
+                          @input="calculation" placeholder="自动获取" maxlength="100" size="small"
+                          :disabled="disabled || tareDisabled" />
+                        <el-button v-if="tpyeNo == 1" @click="openPort">
+                          重新获取</el-button>
+                      </ws-form-item>
+                      <ws-form-item label="净重(KG)" span="1" prop="tare"
+                        v-show="netWeightShow && materialList.deliveryMethod == '1'">
+                        <ws-input type="number" @mousewheel.native.prevent v-model="materialList.netWeight"
+                          @input="calculation" placeholder="自动计算" maxlength="100" size="small" disabled />
+                      </ws-form-item>
+                      <ws-form-item label="数量" span="1" prop="materialQuantity"
+                        v-show="materialList.deliveryMethod == '3'">
+                        <ws-input type="number" @mousewheel.native.prevent v-model="materialList.materialQuantity"
+                          placeholder="请输入数量" maxlength="10" size="small" />
+                      </ws-form-item>
+                    </ws-info-table>
+                    <div class="but">
+                      <el-button @click="submit" type="primary">提交</el-button>
+                      <el-button @click="canel" type="primary">清空</el-button>
+                    </div>
+                  </div>
+                </div>
+              </ws-form>
+            </div>
+          </el-col>
+          <el-col :span="12">
+            <div class="list-info">
+              <div style="justify-content: flex-end;margin-right: 10px;" class="flex">
+                <div style="display: flex;">
+                  <el-button @click="record" type="primary">记录</el-button>
+                  <el-button v-show="this.materialList.deliveryMethod == '1'" @click="delInfo" type="danger">删除</el-button>
+                </div>
+              </div>
+              <el-table @cell-click="listclick" :data="deliveryList" style="width: 100%; margin-top: 20px"
+                ref="deliveryList" border>
+                <el-table-column prop="businessNo" width="160" label="业务编号"></el-table-column>
+                <el-table-column prop="carNo" label="车牌号"></el-table-column>
+                <el-table-column prop="status" 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>
+          </el-col>
+        </el-row>
+      </div>
+    </div>
+    <!-- <div class="mask1" v-show="isShowPrintTypeBills"></div>
+    <div class="print-type1" v-show="isShowPrintTypeBills">
+      <div class="print-type-content">
+        <div class="print-type-title">请选择打印纸张类型</div>
+        <div class="print-type-checkbox">
+        </div>
+
+        <div class="shdw-style1" v-if="checked || (!ddchecked && !checked)">
+          <div>收货单位:</div>
+          <el-select v-model="companyName" placeholder="请选择" style="width: 75%;">
+            <el-option v-for="item in companyNameOptions" :key="item.value" :label="item.label" :value="item.value">
+            </el-option>
+          </el-select>
+        </div>
+        <div
+          v-if="printData.warehouseName == '鲅鱼圈金信库' || printData.warehouseName == '白城内陆港' || printData.warehouseName == '杜尔伯特家禾库' || printData.warehouseName == '洮南新友谊兴旺库' || printData.warehouseName == '甘南宏旗库' || printData.warehouseName == '哈尔滨依兰库' || printData.warehouseName == '山东园丰库'">
+          <div class="print-type-ew">
+            <el-checkbox v-model="checked" @change="changeEw">打印额外票据</el-checkbox>
+            <el-checkbox v-model="ddchecked" @change="changeEwDD">单独打印额外票据</el-checkbox>
+          </div>
+          <div class="ew-print" v-if="printSeparately">
+            <div class="row">
+              <div>额外客户姓名:</div>
+              <el-select v-model="ewCustomer" placeholder="请选择" style="width: 75%;">
+                <el-option v-for="item in ewCustomerOptions" :key="item.value" :label="item.label" :value="item.value">
+                </el-option>
+              </el-select>
+            </div>
+            <div class="row">
+              <div>额外收货单位:</div>
+              <el-select v-model="companyNameEW" placeholder="请选择" style="width: 75%;">
+                <el-option v-for="item in companyNameEWOptions" :key="item.value" :label="item.label"
+                  :value="item.value">
+                </el-option>
+              </el-select>
+            </div>
+          </div>
+        </div>
+      </div>
+      <div class="bottom-btn">
+        <el-button @click="printBig1">确定</el-button>
+        <el-button @click="typePrintCannelClick1">取消</el-button>
+      </div>
+    </div> -->
+  </div>
+</template>
+<script>
+import {
+  selectWarehouseSelf,
+} from '@/model/outboundManagement/index'
+import {
+  delMaterial,
+  carXiala,
+  addMaterial,
+  getMaterialRecord,
+  editMaterial,
+  lookMaterial
+} from '@/model/warehouse/index'
+import WsUpload from '@/components/WsUpload'
+import BalanceAlert from '@/components/balanceAlert'
+export default {
+  components: {
+    WsUpload,
+    BalanceAlert,
+  },
+  data() {
+    return {
+      isShowBalance: false,
+      isShowPrint: false,
+      warehouseName: '',
+      currentPage: 1,
+      pageSize: 10,
+      disabled: false,
+      grossDisabled: false,
+      tareDisabled: false,
+      recheck: false,
+      grossShow: true,
+      deliveryShow: false,
+      tareShow: false,
+      netWeightShow: false,
+      id: '',
+      grossEditFlag: '',
+      tareEditFlag: '',
+      statusFlag: '',
+      status: '',
+      tpyeNo: 2,
+      inOutFlag: 2,
+      searchType: 1,
+      //右侧列表选中标识
+      selectFlag: 0,
+      information: '毛重',
+      carChange1: '手动填写',
+      taskNolist: [],
+      deliveryList: [],
+      warehouseType: 1,
+      materialList: {
+        deliveryMethod: '1',
+        grossWeight: '',
+        tare: '',
+        netWeight: '',
+      },
+      positionInfos: [],
+      deptBudgetList: {},
+      warehouseList: [],
+      goodsNameList: [],
+      carList: [],
+      index: 1,
+      monitorUrl1: '',
+      monitorUrl2: '',
+      deptBudgetTotal: 0,
+      cartips: '手动输入',
+      warehouseId: '',
+      ddchecked: false,
+      checked: false,
+      ewCustomerOptions: [{
+        value: '天津建源供应链管理有限公司',
+        label: '天津建源供应链管理有限公司'
+      }, {
+        value: '黑龙江中天昊元贸易有限公司',
+        label: '黑龙江中天昊元贸易有限公司'
+      }, {
+        value: '黑龙江利润元粮食贸易有限公司',
+        label: '黑龙江利润元粮食贸易有限公司'
+      }, {
+        value: '黑龙江众利合粮食贸易有限公司',
+        label: '黑龙江众利合粮食贸易有限公司'
+      }, {
+        value: '黑龙江鑫满仓粮食贸易有限公司',
+        label: '黑龙江鑫满仓粮食贸易有限公司'
+      }, {
+        value: '厦门建发物产有限公司',
+        label: '厦门建发物产有限公司'
+      }, {
+        value: '黑龙江谷香粮食贸易有限公司',
+        label: '黑龙江谷香粮食贸易有限公司'
+      }, {
+        value: '黑龙江秋收有限公司',
+        label: '黑龙江秋收有限公司'
+      }, {
+        value: '黑龙江欣洋粮食贸易有限公司',
+        label: '黑龙江欣洋粮食贸易有限公司'
+      }, {
+        value: '黑龙江益储益运粮食贸易有限公司',
+        label: '黑龙江益储益运粮食贸易有限公司'
+      }, {
+        value: '黑龙江启兴粮食贸易有限公司',
+        label: '黑龙江启兴粮食贸易有限公司'
+      }],
+      companyNameOptions: [{
+        value: '黑龙江中天昊元贸易有限公司',
+        label: '黑龙江中天昊元贸易有限公司'
+      }, {
+        value: '黑龙江利润元粮食贸易有限公司',
+        label: '黑龙江利润元粮食贸易有限公司'
+      }, {
+        value: '黑龙江众利合粮食贸易有限公司',
+        label: '黑龙江众利合粮食贸易有限公司'
+      }, {
+        value: '黑龙江鑫满仓粮食贸易有限公司',
+        label: '黑龙江鑫满仓粮食贸易有限公司'
+      }, {
+        value: '黑龙江谷香粮食贸易有限公司',
+        label: '黑龙江谷香粮食贸易有限公司'
+      }, {
+        value: '黑龙江秋收有限公司',
+        label: '黑龙江秋收有限公司'
+      }, {
+        value: '黑龙江欣洋粮食贸易有限公司',
+        label: '黑龙江欣洋粮食贸易有限公司'
+      }, {
+        value: '黑龙江益储益运粮食贸易有限公司',
+        label: '黑龙江益储益运粮食贸易有限公司'
+      }, {
+        value: '黑龙江启兴粮食贸易有限公司',
+        label: '黑龙江启兴粮食贸易有限公司'
+      }],
+      companyNameEWOptions: [{
+        value: '天津建源供应链管理有限公司',
+        label: '天津建源供应链管理有限公司'
+      }, {
+        value: '厦门建发物产有限公司',
+        label: '厦门建发物产有限公司'
+      }],
+      isShowPrintTypeBills: false,
+      companyName: '黑龙江中天昊元贸易有限公司',
+      companyNameEW: '厦门建发物产有限公司',
+      ewCustomer: '黑龙江利润元粮食贸易有限公司',
+      printSeparately: false,
+      onePrint: false,
+      dialogDataList: [],
+      printData: {
+        warehouseName: ''
+      },
+    }
+  },
+  mounted() { },
+  activated() {
+    this.selectWarehouse()
+    // this.getGoodsList()
+    this.isShowBalance = true
+    // console.log(localStorage.getItem('compNameoptions'))
+    // if (localStorage.getItem('compNameoptions')) {
+    //   var company = JSON.parse(localStorage.getItem('compNameoptions'))
+
+    //   var extra = company.filter((item) => {
+    //     return item != '黑龙江中天昊元贸易有限公司'
+    //       && item != '黑龙江利润元粮食贸易有限公司'
+    //       && item != '黑龙江众利合粮食贸易有限公司'
+    //       && item != '黑龙江鑫满仓粮食贸易有限公司'
+    //       && item != '黑龙江谷香粮食贸易有限公司'
+    //       && item != '黑龙江秋收有限公司'
+    //       && item != '黑龙江欣洋粮食贸易有限公司'
+    //       && item != '黑龙江益储益运粮食贸易有限公司'
+    //       && item != '黑龙江启兴粮食贸易有限公司'
+    //   })
+    //   console.log(extra, 1111111111111111)
+    //   if (extra.length > 0) {
+    //     this.companyNameOptions = [
+    //       {
+    //         value: '黑龙江中天昊元贸易有限公司',
+    //         label: '黑龙江中天昊元贸易有限公司'
+    //       }, {
+    //         value: '黑龙江利润元粮食贸易有限公司',
+    //         label: '黑龙江利润元粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江众利合粮食贸易有限公司',
+    //         label: '黑龙江众利合粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江鑫满仓粮食贸易有限公司',
+    //         label: '黑龙江鑫满仓粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江欣洋粮食贸易有限公司',
+    //         label: '黑龙江欣洋粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江谷香粮食贸易有限公司',
+    //         label: '黑龙江谷香粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江秋收有限公司',
+    //         label: '黑龙江秋收有限公司'
+    //       }, {
+    //         value: '黑龙江益储益运粮食贸易有限公司',
+    //         label: '黑龙江益储益运粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江启兴粮食贸易有限公司',
+    //         label: '黑龙江启兴粮食贸易有限公司'
+    //       }]
+
+    //     this.ewCustomerOptions = [
+    //       {
+    //         value: '天津建源供应链管理有限公司',
+    //         label: '天津建源供应链管理有限公司'
+    //       }, {
+    //         value: '黑龙江中天昊元贸易有限公司',
+    //         label: '黑龙江中天昊元贸易有限公司'
+    //       }, {
+    //         value: '黑龙江利润元粮食贸易有限公司',
+    //         label: '黑龙江利润元粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江众利合粮食贸易有限公司',
+    //         label: '黑龙江众利合粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江鑫满仓粮食贸易有限公司',
+    //         label: '黑龙江鑫满仓粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江欣洋粮食贸易有限公司',
+    //         label: '黑龙江欣洋粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江谷香粮食贸易有限公司',
+    //         label: '黑龙江谷香粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江秋收有限公司',
+    //         label: '黑龙江秋收有限公司'
+    //       }, {
+    //         value: '黑龙江益储益运粮食贸易有限公司',
+    //         label: '黑龙江益储益运粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江启兴粮食贸易有限公司',
+    //         label: '黑龙江启兴粮食贸易有限公司'
+    //       }]
+    //     this.companyNameEWOptions = [
+    //       {
+    //         value: '天津建源供应链管理有限公司',
+    //         label: '天津建源供应链管理有限公司'
+    //       }, {
+    //         value: '黑龙江中天昊元贸易有限公司',
+    //         label: '黑龙江中天昊元贸易有限公司'
+    //       }, {
+    //         value: '黑龙江利润元粮食贸易有限公司',
+    //         label: '黑龙江利润元粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江众利合粮食贸易有限公司',
+    //         label: '黑龙江众利合粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江鑫满仓粮食贸易有限公司',
+    //         label: '黑龙江鑫满仓粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江欣洋粮食贸易有限公司',
+    //         label: '黑龙江欣洋粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江谷香粮食贸易有限公司',
+    //         label: '黑龙江谷香粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江秋收有限公司',
+    //         label: '黑龙江秋收有限公司'
+    //       }, {
+    //         value: '黑龙江益储益运粮食贸易有限公司',
+    //         label: '黑龙江益储益运粮食贸易有限公司'
+    //       }, {
+    //         value: '黑龙江启兴粮食贸易有限公司',
+    //         label: '黑龙江启兴粮食贸易有限公司'
+    //       }]
+    //     if (localStorage.getItem('print_company_name')) {
+    //       this.companyName = localStorage.getItem('print_company_name')
+    //     } else {
+    //       this.companyName = extra[0]
+    //     }
+    //     if (localStorage.getItem('print_company_name_ew')) {
+    //       this.companyNameEW = localStorage.getItem('print_company_name_ew')
+    //     } else {
+    //       this.companyNameEW = extra[0]
+    //     }
+    //     if (localStorage.getItem('print_customer_name_ew')) {
+    //       this.ewCustomer = localStorage.getItem('print_customer_name_ew')
+    //     } else {
+    //       this.ewCustomer = extra[0]
+    //     }
+
+    //     for (let i = 0; i < extra.length; i++) {
+    //       this.ewCustomerOptions.push({ value: extra[i], label: extra[i] })
+    //       this.companyNameOptions.push({ value: extra[i], label: extra[i] })
+    //       this.companyNameEWOptions.push({ value: extra[i], label: extra[i] })
+    //     }
+    //   }
+    // }
+    this.openPort()
+  },
+  methods: {
+    radiochange() {
+      this.recheck = false
+      this.tpyeNo = ''
+      this.materialList.deliveryMethod = '3'
+      this.$set(this.materialList, 'itemName', '')
+      this.$set(this.materialList, 'carNo', '')
+      this.$set(this.materialList, 'grossWeight', '')
+      this.$set(this.materialList, 'tare', '')
+      this.$set(this.materialList, 'netWeight', '')
+      this.$set(this.materialList, 'materialQuantity', '')
+
+    },
+    changeRadio() {
+      if (this.inOutFlag == 2) {
+        this.tpyeNo = '2'
+        this.tabClick(1)
+      } else {
+        this.tpyeNo = '1'
+        this.tabClick(0)
+      }
+    },
+    // binNumberchange(e) {
+    //   for (let i = 0; i < this.positionInfos.length; i++) {
+    //     if (this.positionInfos[i].binNumber == e) {
+    //       this.materialList.positionId = this.positionInfos[i].id
+    //     }
+    //   }
+    // },
+    // changeEw(e) {
+    //   this.ddchecked = false
+    //   if (e) {
+    //     this.printSeparately = true
+    //   } else {
+    //     this.printSeparately = false
+    //   }
+    // },
+    // changeEwDD(e) {
+    //   this.checked = false
+    //   if (e) {
+    //     this.printSeparately = true
+    //   } else {
+    //     this.printSeparately = false
+    //   }
+    // },
+    // printBig1(type, radioType) {
+    //   this.printData.extra1 = true
+    //   localStorage.setItem('print_company_name', this.companyName)
+    //   localStorage.setItem('print_company_name_ew', this.companyNameEW)
+    //   localStorage.setItem('print_customer_name_ew', this.ewCustomer)
+    //   // 打印额外
+    //   if (this.checked || this.ddchecked) {
+    //     this.printData.extra2 = true
+    //     if (this.ddchecked) {
+    //       localStorage.setItem('print_alone_extra', true)
+    //     } else {
+    //       localStorage.setItem('print_alone_extra', false)
+    //     }
+    //     //  this.selectEW = true;
+    //   } else {
+    //     this.printData.extra2 = false
+    //   }
+    //   localStorage.setItem('printdrydata', JSON.stringify(this.printData))
+    //   window.open(
+    //     '../../../../../static/printdry.html?type=2&printTypeList=结算凭证'
+    //   )
+    // },
+    // typePrintCannelClick1() {
+    //   this.dialogDataList = [] //打个打印取消时数组至空
+    //   this.isShowPrintTypeBills = false
+    // },
+    getCarXiaLa() {
+      carXiala({
+        baseId: this.warehouseId,
+      })
+        .toPromise()
+        .then((response) => {
+          this.carList = response
+        })
+    },
+    record() {
+      this.$router.push({
+        path: 'materialInOutRecord',
+        query: {
+          warehouseName: this.warehouseName,
+          warehouseId: this.warehouseId
+        }
+      })
+    },
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`)
+      this.pageSize = val
+      this.getList()
+    },
+    handleCurrentChange(val) {
+      this.currentPage = val
+      console.log(`当前页: ${val}`)
+      this.getList()
+    },
+    setVal(data) {
+      if (this.inOutFlag == 2) {
+        if (this.information == '毛重') {
+          this.materialList.grossWeight = data
+        } else {
+          this.materialList.tare = data
+          this.materialList.netWeight =
+            Number(this.materialList.grossWeight) - Number(this.materialList.tare)
+        }
+      } else {
+        if (this.information == '皮重') {
+          this.materialList.tare = data
+        } else {
+          this.materialList.grossWeight = data
+          this.materialList.netWeight =
+            Number(this.materialList.grossWeight) - Number(this.materialList.tare)
+        }
+      }
+    },
+    openPort() {
+      this.$refs.weightChild.openPort()
+    },
+
+    listclick(row) {
+      this.selectFlag = 1
+      this.materialList = row
+      this.id = this.materialList.id
+      if (this.materialList.status == '待称皮重') {
+        this.information = '皮重'
+        this.index = 0
+        this.cartips = '手动输入'
+        this.tpyeNo = '1'
+        this.tabClick(0)
+      } else {
+        this.information = '毛重'
+        this.index = 0
+        this.cartips = '手动输入'
+        this.tpyeNo = '2'
+        this.tabClick(1)
+      }
+    },
+    canel() {
+      if (this.inOutFlag == 2 && this.tpyeNo == 1) {
+        this.$set(this.materialList, 'tare', '')
+        this.$set(this.materialList, 'netWeight', '')
+      } else if (this.inOutFlag == 2 && this.tpyeNo == 2) {
+        this.$set(this.materialList, 'grossWeight', '')
+        this.$set(this.materialList, 'itemName', '')
+        this.$set(this.materialList, 'carNo', '')
+      } else if (this.inOutFlag == 1 && this.tpyeNo == 1) {
+        this.$set(this.materialList, 'tare', '')
+        this.$set(this.materialList, 'grossWeight', '')
+        this.$set(this.materialList, 'itemName', '')
+      } else if (this.inOutFlag == 1 && this.tpyeNo == 2) {
+        this.$set(this.materialList, 'grossWeight', '')
+        this.$set(this.materialList, 'netWeight', '')
+      }
+      if (this.materialList.deliveryMethod == '3') {
+        this.$set(this.materialList, 'materialQuantity', '')
+        this.$set(this.materialList, 'itemName', '')
+      }
+    },
+    submit() {
+      var title 
+      this.materialList.compId = localStorage.getItem('ws-pf_compId')
+      if (this.tpyeNo == 2) {
+        this.materialList.grossAgent = localStorage.getItem('ws-pf_staffName')
+      } else if (this.tpyeNo == 1) {
+        this.materialList.tareAgent = localStorage.getItem('ws-pf_staffName')
+      } else if (this.materialList.deliveryMethod) {
+        this.materialList.tareAgent = localStorage.getItem('ws-pf_staffName')
+        this.materialList.grossAgent = localStorage.getItem('ws-pf_staffName')
+      }
+      this.materialList.inOutFlag = this.inOutFlag
+      this.materialList.deliveryMethod = this.materialList.deliveryMethod
+      this.materialList.warehouseName = this.warehouseName
+      this.materialList.baseId = this.warehouseId
+      debugger
+      this.materialList.warehouseNo = this.materialList.warehouseNo
+      //称重
+      if (this.materialList.deliveryMethod == '1') {
+        if (this.inOutFlag == 2 && this.tpyeNo == 2) { //入库称毛重
+          // this.materialList.statusFlag = 1
+          if (!this.materialList.itemName) {
+            this.$message({
+              message: '物料名称不能为空',
+              type: 'warning',
+            })
+            return
+          }
+          if (!this.materialList.carNo) {
+            this.$message({
+              message: '车牌号不能为空',
+              type: 'warning',
+            })
+            return
+          }
+          if (!this.materialList.grossWeight) {
+            this.$message({
+              message: '毛重不能为空',
+              type: 'warning',
+            })
+            return
+          }
+          if (
+            isNaN(this.materialList.grossWeight) ||
+            (String(this.materialList.grossWeight).indexOf('.') != -1 &&
+              String(this.materialList.grossWeight).length -
+              (String(this.materialList.grossWeight).indexOf('.') + 1) >
+              1) ||
+            this.materialList.grossWeight < 1
+            // ||
+            // this.materialList.grossWeight > 100000
+          ) {
+            this.$message({
+              message: '毛重输入错误!',
+              type: 'warning',
+            })
+            return
+          }
+        }
+        if (this.inOutFlag == 2 && this.tpyeNo == 1) { //入库称皮重
+          if (!this.materialList.tare) {
+            this.$message({
+              message: '皮重不能为空',
+              type: 'warning',
+            })
+            return
+          }
+          if (
+            isNaN(this.materialList.tare) ||
+            (String(this.materialList.tare).indexOf('.') != -1 &&
+              String(this.materialList.tare).length -
+              (String(this.materialList.tare).indexOf('.') + 1) >
+              1) ||
+            this.materialList.tare < 1
+            // ||
+            // this.materialList.tare > 100000
+          ) {
+            this.$message({
+              message: '皮重输入错误!',
+              type: 'warning',
+            })
+            return
+          }
+          if (this.materialList.netWeight < 0) {
+            this.$message({
+              message: '净重不能为负',
+              type: 'warning',
+            })
+            return
+          }
+        }
+        if (this.inOutFlag == 1 && this.tpyeNo == 1) { //出库称皮重
+          if (!this.materialList.itemName) {
+            this.$message({
+              message: '物料名称不能为空',
+              type: 'warning',
+            })
+            return
+          }
+          if (!this.materialList.carNo) {
+            this.$message({
+              message: '车牌号不能为空',
+              type: 'warning',
+            })
+            return
+          }
+          if (!this.materialList.tare) {
+            this.$message({
+              message: '皮重不能为空',
+              type: 'warning',
+            })
+            return
+          }
+          if (
+            isNaN(this.materialList.tare) ||
+            (String(this.materialList.tare).indexOf('.') != -1 &&
+              String(this.materialList.tare).length -
+              (String(this.materialList.tare).indexOf('.') + 1) >
+              1) ||
+            this.materialList.tare < 1
+            // ||
+            // this.materialList.grossWeight > 100000
+          ) {
+            this.$message({
+              message: '皮重输入错误!',
+              type: 'warning',
+            })
+            return
+          }
+        }
+        if (this.inOutFlag == 1 && this.tpyeNo == 2) { //出库称毛重
+          if (!this.materialList.grossWeight) {
+            this.$message({
+              message: '毛重不能为空',
+              type: 'warning',
+            })
+            return
+          }
+          if (
+            isNaN(this.materialList.grossWeight) ||
+            (String(this.materialList.grossWeight).indexOf('.') != -1 &&
+              String(this.materialList.grossWeight).length -
+              (String(this.materialList.grossWeight).indexOf('.') + 1) >
+              1) ||
+            this.materialList.grossWeight < 1
+            // ||
+            // this.materialList.grossWeight > 100000
+          ) {
+            this.$message({
+              message: '毛重输入错误!',
+              type: 'warning',
+            })
+            return
+          }
+          if (this.materialList.netWeight < 0) {
+            this.$message({
+              message: '净重不能为负',
+              type: 'warning',
+            })
+            return
+          }
+        }
+      }
+      //计数
+      else {
+        if (!this.materialList.itemName) {
+          this.$message({
+            message: '物料名称不能为空',
+            type: 'warning',
+          })
+          return
+        }
+        if (!this.materialList.materialQuantity) {
+          this.$message({
+            message: '数量不能为空',
+            type: 'warning',
+          })
+          return
+        }
+        if (
+          isNaN(this.materialList.materialQuantity) ||
+          (String(this.materialList.materialQuantity).indexOf('.') != -1 &&
+            String(this.materialList.materialQuantity).length -
+            (String(this.materialList.materialQuantity).indexOf('.') + 1) >
+            1) ||
+          this.materialList.materialQuantity < 1
+          // ||
+          // this.materialList.materialQuantity > 100000
+        ) {
+          this.$message({
+            message: '数量输入错误!',
+            type: 'warning',
+          })
+          return
+        }
+      }
+      debugger
+      if (this.materialList.deliveryMethod != '3') {
+        if (this.tpyeNo == 2) {
+          title = '确定提交毛重数据?'
+        } else {
+          title = '确定提交皮重数据?'
+        }
+      }else {
+        title = '确定保存检斤信息?'
+      }
+      this.$confirm(title, '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+      })
+        .then(() => {
+          if ((this.inOutFlag == 2 && this.tpyeNo == 2) || (this.inOutFlag == 1 && this.tpyeNo == 1) || this.materialList.deliveryMethod == '3') { //出库称皮+入库称毛
+            addMaterial(this.materialList)
+              .toPromise()
+              .then((response) => {
+                this.$message({
+                  message: '操作成功!',
+                  type: 'success'
+                });
+                this.$set(this.materialList, 'itemName', '')
+                this.$set(this.materialList, 'carNo', '')
+                this.$set(this.materialList, 'grossWeight', '')
+                this.$set(this.materialList, 'tare', '')
+                this.$set(this.materialList, 'netWeight', '')
+                this.$set(this.materialList, 'materialQuantity', '')
+                this.getList()
+              })
+          } else if ((this.inOutFlag == 1 && this.tpyeNo == 2) || (this.inOutFlag == 2 && this.tpyeNo == 1)) {//出库称毛+入库称皮
+            editMaterial(this.materialList)
+              .toPromise()
+              .then((response) => {
+                this.$message({
+                  message: '操作成功!',
+                  type: 'success'
+                });
+                this.$set(this.materialList, 'itemName', '')
+                this.$set(this.materialList, 'carNo', '')
+                this.$set(this.materialList, 'grossWeight', '')
+                this.$set(this.materialList, 'tare', '')
+                this.$set(this.materialList, 'netWeight', '')
+                this.$set(this.materialList, 'materialQuantity', '')
+                lookMaterial({ id: this.materialList.id }).toPromise()
+                  .then((response) => {
+                    this.printData = response
+                    this.isShowPrintTypeBills = true
+                  })
+                console.log(this.materialList)
+                this.getList()
+              })
+          }
+
+        })
+        .catch(() => {
+          return false
+        })
+    },
+    delInfo() {
+      debugger
+      if (this.id) {
+        this.$confirm('确定删除该记录?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning',
+        })
+          .then(() => {
+            delMaterial({
+              id: this.id,
+            })
+              .toPromise()
+              .then((response) => {
+                this.$message({
+                  message: '删除成功!',
+                  type: 'success',
+                })
+                this.id = ''
+                this.materialList = {
+                  itemName: '',
+                  deliveryMethod: '1',
+                  carNo: '',
+                  grossWeight: '',
+                  tare: '',
+                  netWeight: '',
+                }
+                this.getList()
+              })
+          })
+      }
+    },
+    inOutFlagChange(num) {
+      this.inOutFlag = num
+      // this.materialList = {
+      //   deliveryMethod: '1',
+      //   grossWeight: '',
+      //   tare: '',
+      //   netWeight: ''
+      // }
+      this.materialList.deliveryMethod = '1'
+      this.$set(this.materialList, 'itemName', '')
+      this.$set(this.materialList, 'carNo', '')
+      this.$set(this.materialList, 'grossWeight', '')
+      this.$set(this.materialList, 'tare', '')
+      this.$set(this.materialList, 'netWeight', '')
+      this.$set(this.materialList, 'materialQuantity', '')
+      if (this.inOutFlag == 2) {
+        this.tpyeNo = '2'
+        this.grossShow = true
+        this.tareShow = false
+        this.netWeightShow = false
+        this.grossDisabled = false
+        this.searchType = 1
+      } else {
+        this.tpyeNo = '1'
+        this.tareShow = true
+        this.grossShow = false
+        this.netWeightShow = false
+        this.tareDisabled = false
+        this.searchType = 3
+      }
+      this.recheck = false
+      this.getList()
+    },
+    tabClick(val) {
+      if (this.selectFlag == 0) {
+        this.materialList = {
+          deliveryMethod: '1',
+          grossWeight: '',
+          tare: '',
+          netWeight: ''
+        }
+      }
+      for (let i = 0; i < this.warehouseList.length; i++) {
+        if (this.warehouseList[i].warehouseName == this.warehouseName) {
+          this.warehouseId = this.warehouseList[i].id
+          this.materialList.baseId = this.warehouseList[i].id
+          this.materialList.warehouseNo = this.warehouseList[i].commonWarehouseNo
+          this.positionInfos = this.warehouseList[i].positionInfos
+        }
+      }
+      this.index = val
+      if (val == 0) {
+        this.information = '皮重'
+        this.tpyeNo = '1'
+        this.cartips = '手动输入'//用来点称皮重时显示皮重输入框
+
+      } else {
+        this.tpyeNo = '2'
+        this.information = '毛重'
+      }
+      if (this.tpyeNo == '1' && this.inOutFlag == 2) {
+        this.recheck = true
+        this.netWeightShow = true
+        this.tareShow = true
+        this.grossShow = true
+        this.grossDisabled = true
+        this.tareDisabled = false
+      } else if (this.tpyeNo == '2' && this.inOutFlag == 2) {
+        this.recheck = false
+        this.grossShow = true
+        this.netWeightShow = false
+        this.tareShow = false
+        this.grossDisabled = false
+        this.tareDisabled = false
+      } else if (this.tpyeNo == '1' && this.inOutFlag == 1) {
+        this.recheck = false
+        this.grossShow = false
+        this.netWeightShow = false
+        this.tareShow = true
+        this.tareDisabled = false
+        this.grossDisabled = false
+      } else {
+        this.recheck = true
+        this.netWeightShow = true
+        this.tareShow = true
+        this.grossShow = true
+        this.grossDisabled = false
+        this.tareDisabled = true
+      }
+      this.getList()
+      this.selectFlag = 0
+    },
+    warehouseNameChange(e) {
+      for (let i = 0; i < this.warehouseList.length; i++) {
+        if (this.warehouseList[i].warehouseName == e) {
+          this.warehouseId = this.warehouseList[i].id
+          this.materialList.baseId = this.warehouseList[i].id
+          this.materialList.warehouseNo = this.warehouseList[i].commonWarehouseNo
+          this.positionInfos = this.warehouseList[i].positionInfos
+          // if (this.warehouseList[i].allowEdit == 1) {
+          //     this.disabled = false
+          // } else {
+          //     this.disabled = true
+          // }
+        }
+      }
+      this.getList()
+      this.getCarXiaLa()
+    },
+    calculation() {
+      //計算净重
+      if (this.materialList.grossWeight && this.materialList.tare) {
+        let count = 0
+        this.materialList.netWeight =
+          this.materialList.grossWeight -
+          this.materialList.tare -
+          Number(
+            this.materialList.buckleMiscellaneous
+              ? this.materialList.buckleMiscellaneous
+              : 0
+          )
+      }
+    },
+    selectWarehouse() {
+      selectWarehouseSelf({
+        compId: localStorage.getItem('ws-pf_compId'),
+      })
+        .toPromise()
+        .then((response) => {
+          this.warehouseList = response
+          var obj = JSON.parse(localStorage.getItem('houseSelfCollect_house1'))
+          if (obj) {
+            this.warehouseName = obj.value
+            if (obj.allowEdit == 1) {
+              this.disabled = false
+            } else {
+              this.disabled = true
+            }
+            this.warehouseId = obj.warehouseId
+            this.materialList.baseId = obj.warehouseId
+            this.materialList.warehouseNo = obj.No
+            this.getCarXiaLa()
+            this.getList()
+            for (let i = 0; i < response.length; i++) {
+              this.positionInfos = response[i].positionInfos
+
+            }
+          } else {
+            this.warehouseName = response[0].warehouseName
+            this.materialList.baseId = response[0].id
+            this.warehouseId = response[0].id
+            this.materialList.warehouseNo = response[0].commonWarehouseNo
+            this.positionInfos = response[0].positionInfos
+            if (response[0].allowEdit == 1) {
+              this.disabled = false
+            } else {
+              this.disabled = true
+            }
+            this.getCarXiaLa()
+            this.getList()
+          }
+          this.deptBudgetList.warehouseName = this.warehouseName
+
+        })
+    },
+    getList() {
+      getMaterialRecord({
+        baseId: this.warehouseId,
+        currentPage: this.currentPage,
+        pageSize: this.pageSize,
+        searchType: this.searchType,
+        startDate: '',
+        endDate: '',
+        searchKeyWord: '',
+      })
+        .toPromise()
+        .then((response) => {
+          this.deliveryList = response.records
+          this.deptBudgetTotal = response.total
+        })
+    },
+  },
+}
+</script>
+<style lang="scss" scoped>
+.center {
+  background: #fff;
+}
+
+.size_css {
+  width: 540px;
+  min-width: 540px;
+  overflow-x: scroll;
+  position: relative;
+}
+
+.ws-info-table {
+  border: none;
+}
+
+.base_header_layout {
+  padding: 10px;
+  margin-bottom: 10px;
+}
+
+.ws-info-table .el-form-item {
+  width: 50%;
+  border: none;
+}
+
+.formItem {
+  width: 100%;
+  display: inline;
+}
+
+.ws-info-table {
+  border: none;
+}
+
+.ws-info-table .el-form-item {
+  width: 100%;
+  border: none;
+}
+
+/deep/.ws-info-table .el-form-item .el-form-item__label {
+  width: 25%;
+  text-align: center;
+  background: #ffffff;
+  color: #8890b1;
+}
+
+/deep/.ws-info-table .el-form-item .el-form-item__content {
+  border: none;
+}
+
+/deep/.el-textarea__inner {
+  width: 92%;
+}
+
+/deep/.ws-info-table .el-form-item.rememo .el-form-item__content {
+  height: 76px;
+}
+
+.title {
+  font-size: 16px;
+  font-weight: 600;
+  margin: 10px;
+}
+
+.titleup {
+  position: relative;
+}
+
+.title::before {
+  content: '';
+  display: inline-block;
+  width: 5px;
+  height: 15px;
+  background: #8890b1;
+  margin-right: 5px;
+}
+
+.substance {
+  background: #ffffff;
+  width: 100%;
+  border-radius: 4px;
+  margin: 0 auto;
+  padding-top: 20px;
+}
+
+/deep/.el-table .el-table__header .cell,
+.el-table .el-table__body .cell {
+  text-align: center;
+}
+
+/deep/.el-table--enable-row-transition .el-table__body td {
+  text-align: center;
+}
+
+.bg-left {
+  padding-left: 30px;
+}
+
+.bg-right {
+  padding-right: 10px;
+  text-align: right;
+}
+
+.bg-bottom {
+  margin: 15px 0px;
+}
+
+.titleup {
+  position: relative;
+}
+
+.el-upload--picture-card {
+  background-color: #fbfdff;
+  border: 1px dashed #c0ccda;
+  border-radius: 6px;
+  box-sizing: border-box;
+  width: 148px;
+  height: 148px;
+  line-height: 146px;
+  vertical-align: top;
+  margin-left: -289px;
+}
+
+.but {
+  text-align: center;
+  margin: 20px auto;
+}
+
+.top {
+  background: black;
+  color: #2aff7c;
+  font-size: 32px;
+  text-align: right;
+  padding: 0 10px 0 20px;
+  border-radius: 10px;
+  margin: 0 20px 20px 21px;
+  position: absolute;
+  top: 140px;
+  width: 465px;
+
+  .zujian {
+    position: relative;
+  }
+
+  .kg-style {
+    font-size: 30px;
+    color: red;
+  }
+
+  .confirmInfo {
+    display: flex;
+
+    .car-type {
+      text-align: left;
+      width: 50%;
+      min-width: 200px;
+    }
+
+    .car-no {
+      width: 50%;
+      text-align: right;
+    }
+  }
+
+  .confirmWeight {
+    display: flex;
+    align-items: center;
+
+    .titleWeight {
+      width: 35%;
+      min-width: 200px;
+      text-align: left;
+      line-height: 90px;
+      color: red;
+    }
+
+    .weight {
+      width: 65%;
+      text-align: right;
+      color: red;
+    }
+  }
+}
+
+.right {
+  width: 70%;
+  height: 750px;
+
+  .tab {
+    display: flex;
+    margin: 0px 0px 5px 20px;
+
+    .tab-item {
+      padding: 5px 10px;
+      margin-right: 20px;
+      border-radius: 10px;
+    }
+
+    .in_css,
+    .in_cssno,
+    .in_cssno1,
+    .in_css1 {
+      width: 80px;
+      height: 32px;
+      padding: 3px 10px;
+      border-radius: 4px;
+      margin-right: 10px;
+      font-size: 15px;
+      line-height: 28px;
+      text-align: center;
+      font-weight: 600;
+    }
+
+    .in_css:hover,
+    .in_cssno:hover,
+    .in_cssno1:hover,
+    .in_css1:hover {
+      cursor: pointer;
+    }
+
+    .in_css {
+      color: #5878E8;
+      background: #F0F6FF;
+    }
+
+    .in_css1 {
+      color: #5878E8;
+    }
+
+    .in_cssno1 {
+      color: #8890B1;
+    }
+
+    /deep/.el-badge__content.is-fixed {
+      top: 3px;
+      right: 26px;
+    }
+  }
+
+  .weigh_btn {
+    height: 35px;
+    margin-left: 20px;
+  }
+
+  .method_btn {
+    display: flex;
+    font-size: 10px;
+    height: 30px;
+    margin:20px 0px 11px 20px;
+  }
+
+  .method {
+    font-size: 14px;
+    margin-top: 3px;
+  }
+
+  .table-title {
+    background: red;
+
+    .top {
+      display: inline-block;
+      width: 48%;
+
+      .top-item {
+        display: inline-block;
+      }
+    }
+  }
+
+  .table {
+    background: red;
+
+    .table-content {
+      background: green;
+      display: inline-block;
+      width: 50%;
+
+      .table-content-item {
+        display: inline-block;
+      }
+    }
+  }
+}
+
+.bottom {
+  // text-align: center;
+  background: white;
+  margin: 20px 20px 0 20px;
+  // border-radius: 10px;
+  padding-bottom: 20px;
+
+  .img1,
+  .img2 {
+    width: 200px;
+    padding: 20px;
+  }
+
+  .video-content {
+    width: 100%;
+  }
+
+  .video1 {
+    text-align: center;
+  }
+}
+
+/deep/.title_css .el-dialog__header {
+  text-align: center !important;
+}
+
+.bottom-btn {
+  display: flex;
+  margin-top: 20px;
+  justify-content: space-around;
+}
+
+/deep/.el-radio-group {
+  width: 100%;
+  display: flex;
+}
+
+/deep/.el-radio__label {
+  font-size: 20px;
+}
+
+/deep/.el-radio__inner {
+  // background: red;
+  height: 20px;
+  width: 20px;
+}
+
+.label-width {
+  width: 100%;
+  text-align: center;
+  font-size: 20px;
+}
+
+.show-excel {
+  opacity: 0;
+}
+
+/deep/.base_header_layout .find.el-button--primary {
+  width: 30px;
+  border-top-left-radius: 0px;
+  border-bottom-left-radius: 0px;
+}
+
+/deep/.base_header_layout .findinput input {
+  border-top-right-radius: 0px;
+  border-bottom-right-radius: 0px;
+}
+
+.sh-address {
+  display: flex;
+}
+
+.print-type-ew {
+  display: flex;
+  justify-content: space-between;
+  padding: 0 20px;
+
+  /deep/.el-radio__label {
+    font-size: 14px;
+  }
+
+  margin-top: 10px;
+}
+
+.right-content {
+  margin-top: 20px;
+}
+
+.mask1 {
+  background: black;
+  width: 100vw;
+  height: 100vh;
+  position: fixed;
+  top: 0;
+  z-index: 1001;
+  opacity: 0.3;
+}
+
+.print-type-title {
+  text-align: center;
+  font-size: 18px;
+  margin: 20px;
+}
+
+
+.print-type-checkbox1 {
+  // padding-left: 20px;
+}
+
+.print-type1 {
+  position: absolute;
+  top: 0;
+  bottom: 0;
+  left: 0;
+  right: 0;
+  margin: auto;
+  width: 440px;
+  height: 320px;
+  background: white;
+  border-radius: 10px;
+  z-index: 1001;
+}
+
+.shdw-style1 {
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+  padding: 0 20px;
+  margin-top: 20px;
+}
+
+.print-type-ew {
+  display: flex;
+  justify-content: space-between;
+  padding: 0 20px;
+
+  /deep/.el-radio__label {
+    font-size: 14px;
+  }
+
+  margin-top: 10px;
+}
+
+.ew-print {
+  padding: 0 20px;
+  margin-top: 10px;
+
+  // display: flex;
+  // justify-content: space-between;
+  // align-content: center;
+  .row {
+    display: flex;
+    margin-top: 10px;
+    align-items: center;
+  }
+}
+</style>

+ 6 - 6
src/views/warehousenew/warehouseManagementList.vue

@@ -97,7 +97,7 @@
       <ws-button v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.kan`" @click="handleall()">全部仓库</ws-button>
       <ws-button v-hasPermission="`warehouseManagement.warehouse.warehouseInfo.kan`" @click="handleMintor()">查看监控</ws-button>
       <ws-button @click="dryClick()">烘干入库</ws-button>
-      <!-- <ws-button @click="materialInOut()">物料出入库</ws-button> -->
+      <ws-button @click="materialInOut()">物料出入库</ws-button>
         <el-table ref='table' show-summary :summary-method="getSummaries" class="wenzi setUp_css" :data="warehouseList" style="width: 100%; margin-top: 20px" height="calc(100% - 45px)" v-if="warehouseType == '1'">
         <el-table-column prop="warehouseName" label="仓库名">
         </el-table-column>
@@ -850,11 +850,11 @@
           path: 'dryWarehousing'
         })
       },
-      // materialInOut(){
-      //   this.$router.push({
-      //     path: 'materialInOutWarehouse'
-      //   })
-      // },
+      materialInOut(){
+        this.$router.push({
+          path: 'materialInOutWarehouse'
+        })
+      },
       handleall(){
         this.$router.push({
           path: 'warehouseManagement'