作者 小范

出入库记录新增禁选功能,仓库入库取消包装类型必填,库存管理优化

... ... @@ -828,9 +828,9 @@
{ validator: checkInputArea, trigger: 'blur' }
// { pattern: /^[0-9\.x]+$/gm, message: '体积信息只能输入数字和(.)点符号与x小写字母' }
],
packingid:[
{ required: true, message: '包装信息必选', trigger: 'blur' }
]
// packingid:[
// { required: true, message: '包装信息必选', trigger: 'blur' }
// ]
},
}
},
... ...
... ... @@ -51,26 +51,37 @@
</el-col>
</el-row>
</el-row>
<el-col :gutter="0" class="toolbar toobar_analysis" style="padding-top:0">
<el-col :span="7">
<div class="analysis_title">总单数:</div>
<div class="analysis_text">20</div>
</el-col>
<el-col :span="1">
<el-divider direction="vertical"></el-divider>
</el-col>
<el-col :span="7">
<div class="analysis_title">总件数:</div>
<div class="analysis_text">50</div>
</el-col>
<el-col :span="1">
<el-divider direction="vertical"></el-divider>
</el-col>
<el-col :span="8">
<div class="analysis_title">总重量:</div>
<div class="analysis_text">150</div>
<el-row>
<el-col :gutter="0" class="toolbar toobar_analysis" style="margin-top: -25px;height: 100px">
<el-col :span="7" >
<div class="analysis_title">总单数:</div>
<div class="analysis_text">
<el-input v-model="total" readonly style="width: 100px">
</el-input>
</div>
</el-col>
<el-col :span="1">
<el-divider direction="vertical"></el-divider>
</el-col>
<el-col :span="7">
<div class="analysis_title">总件数:</div>
<div class="analysis_text">
<el-input v-model="pcsSum" readonly style="width: 100px">
</el-input>
</div>
</el-col>
<el-col :span="1">
<el-divider direction="vertical"></el-divider>
</el-col>
<el-col :span="7">
<div class="analysis_title">总重量:</div>
<div class="analysis_text">
<el-input v-model="weightSum" readonly style="font-size:12px;color:cornflowerblue;width: 100px">
</el-input>
</div>
</el-col>
</el-col>
</el-col>
</el-row>
<!-- 列表区域-->
<el-row>
<template>
... ... @@ -133,10 +144,14 @@
<el-table-column
fixed="right"
label="操作"
width="200">
width="320">
<template slot-scope="scope">
<el-button type="warning" size="mini" @click="changeFhl(scope.row)">更改分单号</el-button>
<!-- <el-button type="success" size="mini" @click="applyEdit(scope.row)">编辑</el-button>-->
<el-button type="primary" size="mini">分批出库</el-button>
<!-- 件数重量尺寸-->
<el-button type="success" size="mini">分批改单</el-button>
<!-- 单号-->
<!-- <el-button type="success" size="mini" @click="applyEdit(scope.row)">编辑</el-button>-->
<!-- <el-button type="danger" size="mini" @click="applyDel(scope.$index,scope.row)">删除</el-button>-->
</template>
</el-table-column>
... ... @@ -381,8 +396,8 @@
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="" :label-width="formLabelWidth" prop="dest4city">
<el-input disabled v-model="detaForm.dest4city" autocomplete="off" size="small" style="width: 300px">
<el-form-item label="" :label-width="formLabelWidth" prop="shpcomid">
<el-input disabled v-model="detaForm.shpcomid" autocomplete="off" size="small" style="width: 300px">
<template slot="prepend">代理人代码</template>
</el-input>
</el-form-item>
... ... @@ -504,6 +519,8 @@
},
creattime:'',
total: 0,
pcsSum:'',
weightSum:'',
tableData:[],
//新增编辑
dialogMap: {
... ... @@ -571,7 +588,7 @@
detaMap:'货物明细',
detaForm:{
dest4: '',
dest4city: '',
shpcomid: '',
optime:'',
pcs: '',
weight: '',
... ... @@ -613,7 +630,6 @@
shprtel: '',
shpraddress: '',
shprcountyr:'',
shpcomid: '',
shpaeocode:'',
shpcustomerid: '',
cnsnname: '',
... ... @@ -792,7 +808,7 @@
const _this = this
selectNewInventroys(this.queryInfo).then((response) => {
const res = response.data
// console.log(response.data)
console.log(response.data)
if (res.code !== '200') {
return _this.$message.error('获取消息收发记录,失败!')
}
... ... @@ -800,6 +816,8 @@
_this.tableData = res.data.list
// 获取列表的总记录数
_this.total = res.data.total
_this.pcsSum = res.data.pcsSum
_this.weightSum = res.data.weightSum
_this.$message.success('获取消息收发记录,成功!')
}).catch(error => {
// 关闭加载
... ...
... ... @@ -148,8 +148,9 @@
label="操作"
width="120">
<template slot-scope="scope">
<el-button type="success" size="mini" @click="outBound(scope.row)">出库</el-button>
<!-- <el-button type="success" size="mini" @click="applyEdit(scope.row)">编辑</el-button>-->
<el-button v-if="scope.row.ietype ==='E'" disabled type="success" size="mini" @click="outBound(scope.row)">出库</el-button>
<el-button v-else type="success" size="mini" @click="outBound(scope.row)">出库</el-button>
<!-- <el-button type="success" size="mini" @click="applyEdit(scope.row)">编辑</el-button>-->
<!-- <el-button type="danger" size="mini" @click="applyDel(scope.$index,scope.row)">删除</el-button>-->
</template>
</el-table-column>
... ...