|
@@ -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>
|