|
@@ -0,0 +1,823 @@
|
|
|
+<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">
|
|
|
+ {{ weighingList.tare }} <span class="kg-style">kg</span>
|
|
|
+ </div>
|
|
|
+ <div v-else class="weight">
|
|
|
+ {{ weighingList.grossWeight }} <span class="kg-style">kg</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="confirmInfo">
|
|
|
+ <div class="car-type">车牌号</div>
|
|
|
+ <div class="car-no">{{ weighingList.carNumber }}</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>
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="12">
|
|
|
+ <div class="grid-content bg-purple">
|
|
|
+ <div 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>
|
|
|
+ <ws-form class="right-content">
|
|
|
+ <div class="left1">
|
|
|
+ <div class="weightInfo">
|
|
|
+ <ws-info-table>
|
|
|
+ <ws-form-item label="货名" span="1" prop="tare">
|
|
|
+ <el-select style="width: 400px" v-model="weighingList.goodsName"
|
|
|
+ filterable placeholder="请选择货名" @change="goodsNameChange"
|
|
|
+ :disabled="tpyeNo == 1">
|
|
|
+ <el-option v-for="item in goodsNameList" :key="item.constValue"
|
|
|
+ :label="item.constValue" :value="item.constValue"
|
|
|
+ style="color: #8890b1" />
|
|
|
+ </el-select>
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="车牌号" span="1" prop="carNo">
|
|
|
+ <ws-input @mousewheel.native.prevent v-if="cartips == '下拉选择'"
|
|
|
+ v-model="weighingList.carNo" placeholder="请输入车牌号" maxlength="7"
|
|
|
+ size="small" :disabled="tpyeNo == 1" />
|
|
|
+ <el-select style="width: 400px" v-model="weighingList.carNo" filterable
|
|
|
+ v-else placeholder="请选择车牌号" @change="carNochange"
|
|
|
+ :disabled="tpyeNo == 1">
|
|
|
+ <el-option v-for="item in carList" :key="item.carNo"
|
|
|
+ :label="item.carNo" :value="item.id" style="color: #8890b1" />
|
|
|
+ </el-select>
|
|
|
+ <el-button @click="carNoTypechange" v-if="tpyeNo == 2">{{ cartips }}
|
|
|
+ </el-button>
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="毛重(KG)" span="1" prop="grossWeight">
|
|
|
+ <ws-input type="number" @mousewheel.native.prevent
|
|
|
+ v-model="weighingList.grossWeight" @input="calculation"
|
|
|
+ placeholder="自动获取" maxlength="100" size="small"
|
|
|
+ :disabled="disabled || tpyeNo == 1" />
|
|
|
+ <el-button v-if="tpyeNo == 2" @click="openPort">
|
|
|
+ 重新获取</el-button>
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="皮重(KG)" span="1" prop="tare" v-if="cartips == '手动输入'">
|
|
|
+ <ws-input type="number" @mousewheel.native.prevent
|
|
|
+ v-model="weighingList.tare" @input="calculation" placeholder="自动获取"
|
|
|
+ maxlength="100" size="small" :disabled="disabled" />
|
|
|
+ <el-button v-if="tpyeNo == 1" @click="openPort">
|
|
|
+ 重新获取</el-button>
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item label="净重(KG)" span="1" prop="tare" v-if="cartips == '手动输入'">
|
|
|
+ <ws-input type="number" @mousewheel.native.prevent
|
|
|
+ v-model="weighingList.netWeight" @input="calculation"
|
|
|
+ placeholder="自动计算" maxlength="100" size="small" disabled />
|
|
|
+ </ws-form-item>
|
|
|
+ </ws-info-table>
|
|
|
+ <div class="but">
|
|
|
+ <el-button @click="submit" type="primary">提交</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </ws-form>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <div class="list-info">
|
|
|
+ <div style="justify-content: space-between" class="flex">
|
|
|
+ <div style="display: flex;">
|
|
|
+ <el-button @click="record" type="primary">记录</el-button>
|
|
|
+ <el-button @click="addCar" type="primary">添加车辆</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <el-table @cell-click="listclick" :data="deliveryList" style="width: 100%; margin-top: 20px"
|
|
|
+ ref="deliveryList" border>
|
|
|
+ <el-table-column prop="dryNumber" width="120" 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>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import {
|
|
|
+ selectWarehouseSelf,
|
|
|
+} from '@/model/outboundManagement/index'
|
|
|
+import {
|
|
|
+ pullDown,
|
|
|
+ carXiala,
|
|
|
+ addDryWarehouse,
|
|
|
+ getRecord,
|
|
|
+ editDryWarehouse,
|
|
|
+} from '@/model/warehouse/index'
|
|
|
+import { hasPermission } from '../../utils/getHasPermission'
|
|
|
+import WsUpload from '@/components/WsUpload'
|
|
|
+import BalanceAlert from '@/components/balanceAlert'
|
|
|
+import { EventBus } from 'base-core-lib'
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ WsUpload,
|
|
|
+ BalanceAlert,
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ isShowBalance: false,
|
|
|
+ isShowPrint: false,
|
|
|
+ warehouseName: '',
|
|
|
+ currentPage: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ disabled: true,
|
|
|
+ tpyeNo: 2,
|
|
|
+ information: '毛重',
|
|
|
+ carChange1: '手动填写',
|
|
|
+ taskNolist: [],
|
|
|
+ deliveryList: [],
|
|
|
+ warehouseType: 1,
|
|
|
+ weighingList: {},
|
|
|
+ deptBudgetList: {},
|
|
|
+ warehouseList: [],
|
|
|
+ goodsNameList: [],
|
|
|
+ carList: [],
|
|
|
+ index: '',
|
|
|
+ monitorUrl1: '',
|
|
|
+ monitorUrl2: '',
|
|
|
+ deptBudgetTotal: 0,
|
|
|
+ cartips: '手动输入',
|
|
|
+ warehouseId: '',
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() { },
|
|
|
+ activated() {
|
|
|
+ this.selectWarehouse()
|
|
|
+ this.getGoodsList()
|
|
|
+ this.isShowBalance = true
|
|
|
+ this.openPort()
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ goodsNameChange(e) {
|
|
|
+ this.weighingList.goodsName = e
|
|
|
+ for (let i = 0; i < this.goodsNameList.length; i++) {
|
|
|
+ if (e == this.goodsNameList[i].constValue) {
|
|
|
+ this.weighingList.goodsNameKey = this.goodsNameList[i].constKey
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getCarXiaLa() {
|
|
|
+ carXiala({
|
|
|
+ baseId: this.warehouseId,
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.carList = response
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getGoodsList() {
|
|
|
+ pullDown({
|
|
|
+ constId: 'CON2',
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ for (let i = 0; i < response.length; i++) {
|
|
|
+ if (response[i].constValue.indexOf('潮粮') == -1) {
|
|
|
+ this.goodsNameList.push(response[i])
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.weighingList.goodsName = this.goodsNameList[0].constValue
|
|
|
+ this.weighingList.goodsNameKey = this.goodsNameList[0].constKey
|
|
|
+ })
|
|
|
+ },
|
|
|
+ carNochange(e) {
|
|
|
+ //车牌号下拉选中
|
|
|
+ for (let i = 0; i < this.carList.length; i++) {
|
|
|
+ if (e == this.carList[i].id) {
|
|
|
+ this.weighingList.carNo = this.carList[i].carNo
|
|
|
+ this.weighingList.tare = this.carList[i].tare
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ carNoTypechange() {
|
|
|
+ if (this.cartips == '手动输入') {
|
|
|
+ this.cartips = '下拉选择'
|
|
|
+ } else {
|
|
|
+ this.cartips = '手动输入'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ record() {
|
|
|
+ this.$router.push({
|
|
|
+ path: 'dryRecord',
|
|
|
+ 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.information == '毛重') {
|
|
|
+ this.weighingList.grossWeight = data
|
|
|
+ this.weighingList.netWeight =
|
|
|
+ Number(this.weighingList.grossWeight) - Number(this.weighingList.tare)
|
|
|
+ } else {
|
|
|
+ this.weighingList.tare = data
|
|
|
+ }
|
|
|
+ },
|
|
|
+ openPort() {
|
|
|
+ this.$refs.weightChild.openPort()
|
|
|
+ },
|
|
|
+
|
|
|
+ listclick(row) {
|
|
|
+ this.weighingList = row
|
|
|
+ this.information = '皮重'
|
|
|
+ this.cartips = '手动输入'
|
|
|
+ this.tpyeNo = '1'
|
|
|
+ },
|
|
|
+ addCar() {
|
|
|
+ this.$router.push({
|
|
|
+ path: 'addCar',
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ submit() {
|
|
|
+ var allow = hasPermission('warehouseManagement.warehouse.warehouseInfo.hong')
|
|
|
+ if (!allow) {// 提交为外勤权限,错误提示“暂未获得权限”
|
|
|
+ this.$message({
|
|
|
+ message: '暂未获得权限,不可保存检斤信息!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.weighingList.compId = localStorage.getItem('ws-pf_compId')
|
|
|
+ this.weighingList.weigher = localStorage.getItem('ws-pf_staffName')
|
|
|
+ this.weighingList.warehouseName = this.warehouseName
|
|
|
+ if (this.tpyeNo == 2) {
|
|
|
+ this.weighingList.statusFlag = 1
|
|
|
+ if (!this.weighingList.goodsName) {
|
|
|
+ this.$message({
|
|
|
+ message: '货名不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.weighingList.carNo) {
|
|
|
+ this.$message({
|
|
|
+ message: '车牌号不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (!this.weighingList.grossWeight) {
|
|
|
+ this.$message({
|
|
|
+ message: '毛重不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ isNaN(this.weighingList.grossWeight) ||
|
|
|
+ (String(this.weighingList.grossWeight).indexOf('.') != -1 &&
|
|
|
+ String(this.weighingList.grossWeight).length -
|
|
|
+ (String(this.weighingList.grossWeight).indexOf('.') + 1) >
|
|
|
+ 1) ||
|
|
|
+ this.weighingList.grossWeight < 1 ||
|
|
|
+ this.weighingList.grossWeight > 100000
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '毛重输入错误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.cartips == '手动输入') {
|
|
|
+ this.weighingList.statusFlag = 3
|
|
|
+ if (!this.weighingList.tare) {
|
|
|
+ this.$message({
|
|
|
+ message: '皮重不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ isNaN(this.weighingList.tare) ||
|
|
|
+ (String(this.weighingList.tare).indexOf('.') != -1 &&
|
|
|
+ String(this.weighingList.tare).length -
|
|
|
+ (String(this.weighingList.tare).indexOf('.') + 1) >
|
|
|
+ 1) ||
|
|
|
+ this.weighingList.tare < 1 ||
|
|
|
+ this.weighingList.tare > 100000
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '皮重输入错误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.weighingList.netWeight < 0) {
|
|
|
+ this.$message({
|
|
|
+ message: '净重不能为负',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.tpyeNo == 1) { //称皮重
|
|
|
+ this.weighingList.statusFlag = 3
|
|
|
+ if (!this.weighingList.tare) {
|
|
|
+ this.$message({
|
|
|
+ message: '皮重不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ isNaN(this.weighingList.tare) ||
|
|
|
+ (String(this.weighingList.tare).indexOf('.') != -1 &&
|
|
|
+ String(this.weighingList.tare).length -
|
|
|
+ (String(this.weighingList.tare).indexOf('.') + 1) >
|
|
|
+ 1) ||
|
|
|
+ this.weighingList.tare < 1 ||
|
|
|
+ this.weighingList.tare > 100000
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '皮重输入错误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.weighingList.netWeight < 0) {
|
|
|
+ this.$message({
|
|
|
+ message: '净重不能为负',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$confirm('确定保存检斤信息?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ if (this.tpyeNo == 2) { //称毛重
|
|
|
+ addDryWarehouse(this.weighingList)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message({
|
|
|
+ message: '操作成功!',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ this.weighingList.carNo = ""
|
|
|
+ this.weighingList.grossWeight = ""
|
|
|
+ this.weighingList.tare = ""
|
|
|
+ this.weighingList.netWeight = ""
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ } else if (this.tpyeNo == 1) {//称皮重
|
|
|
+ editDryWarehouse(this.weighingList)
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$message({
|
|
|
+ message: '操作成功!',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ this.weighingList.carNo = ""
|
|
|
+ this.weighingList.grossWeight = ""
|
|
|
+ this.weighingList.tare = ""
|
|
|
+ this.weighingList.netWeight = ""
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ tabClick(val) {
|
|
|
+ this.weighingList = {}
|
|
|
+ this.index = val
|
|
|
+ if (val == 0) {
|
|
|
+ this.information = '皮重'
|
|
|
+ this.tpyeNo = '1'
|
|
|
+ this.cartips = '手动输入'//用来点称皮重时显示皮重输入框
|
|
|
+ } else {
|
|
|
+ this.tpyeNo = '2'
|
|
|
+ this.information = '毛重'
|
|
|
+ }
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ warehouseNameChange(e) {
|
|
|
+ for (let i = 0; i < this.warehouseList.length; i++) {
|
|
|
+ if (this.warehouseList[i].warehouseName == e) {
|
|
|
+ this.warehouseId = this.warehouseList[i].id
|
|
|
+ this.weighingList.baseId = this.warehouseList[i].id
|
|
|
+ this.weighingList.warehouseNo = this.warehouseList[i].commonWarehouseNo
|
|
|
+ if (this.warehouseList[i].allowEdit == 1) {
|
|
|
+ this.disabled = false
|
|
|
+ } else {
|
|
|
+ this.disabled = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.getList()
|
|
|
+ this.getCarXiaLa()
|
|
|
+ },
|
|
|
+ calculation() {
|
|
|
+ //計算净重
|
|
|
+ if (this.weighingList.grossWeight && this.weighingList.tare) {
|
|
|
+ let count = 0
|
|
|
+ this.weighingList.netWeight =
|
|
|
+ this.weighingList.grossWeight -
|
|
|
+ this.weighingList.tare -
|
|
|
+ Number(
|
|
|
+ this.weighingList.buckleMiscellaneous
|
|
|
+ ? this.weighingList.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.weighingList.baseId = obj.warehouseId
|
|
|
+ this.weighingList.warehouseNo = obj.No
|
|
|
+ this.getCarXiaLa()
|
|
|
+ this.getList()
|
|
|
+ } else {
|
|
|
+ this.warehouseName = response[0].warehouseName
|
|
|
+ this.weighingList.baseId = response[0].id
|
|
|
+ this.warehouseId = response[0].id
|
|
|
+ this.weighingList.warehouseNo = response[0].commonWarehouseNo
|
|
|
+ if (response[0].allowEdit == 1) {
|
|
|
+ this.disabled = false
|
|
|
+ } else {
|
|
|
+ this.disabled = true
|
|
|
+ }
|
|
|
+ this.getCarXiaLa()
|
|
|
+ this.getList()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getList() {
|
|
|
+ getRecord({
|
|
|
+ baseId: this.warehouseId,
|
|
|
+ currentPage: this.currentPage,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ searchType: 1,
|
|
|
+ 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: 30%;
|
|
|
+ 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;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.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;
|
|
|
+}
|
|
|
+</style>
|