业务单据功能界面修改,单据类型修改

master
anthonywj 3 years ago
parent 1b07355857
commit 4308e3c464

@ -755,7 +755,7 @@ export const asyncRouterMap = [
name: "库存统计",
icon: "",
meta: {
authRule: ["inv/invProducts"]
authRule: ["inv/invStatistics"]
}
},
{
@ -1002,16 +1002,16 @@ export const asyncRouterMap = [
authRule: ["spInv/spInvProducts"]
}
},
{
path: "spInvProducts",
component: supInvProducts,
name: "库存统计",
icon: "",
hidden: false,
meta: {
authRule: ["spInv/spInvProducts"]
}
},
// {
// path: "spInvProducts",
// component: supInvProducts,
// name: "库存统计",
// icon: "",
// hidden: false,
// meta: {
// authRule: ["spInv/spInvProducts"]
// }
// },
{
path: "spInvPreProducts",
component: supInvPreProducts,

@ -241,6 +241,10 @@ export default {
this.$message.error("本地单据不能为空!");
return;
}
if (this.inputQuery.mainAction == "" || this.inputQuery.mainAction == null) {
this.$message.error("出入库类型不能为空!");
return;
}
insertBussinessType(this.inputQuery)
.then((response) => {
this.loading = false;
@ -258,6 +262,11 @@ export default {
this.$message.error("本地单据不能为空!");
return;
}
if (this.inputQuery.mainAction == "" || this.inputQuery.mainAction == null) {
this.$message.error("出入库类型不能为空!");
return;
}
updateBussinessType(this.inputQuery)
.then((response) => {
this.loading = false;

@ -40,7 +40,7 @@
<span>{{ enableMap[scope.row.enable] }}</span>
</template>
</el-table-column>
<el-table-column label="是否预入库" prop="advanceType" fixed>
<el-table-column label="是否寄售" prop="advanceType" fixed>
<template slot-scope="scope">
<span>{{ enableMap[scope.row.advanceType] }}</span>
</template>

@ -37,7 +37,7 @@
<span>出入库类型:&nbsp;</span>
</div>
<el-select v-model="inputQuery.mainAction" placeholder="出入库类型">
<el-select v-model="inputQuery.mainAction" placeholder="出入库类型" @change="getOrderType">
<el-option label="入库" value="WareHouseIn"></el-option>
<el-option label="出库" value="WareHouseOut"></el-option>
</el-select>
@ -138,7 +138,9 @@
<div class="itemTag">
<span>补单单据类型:&nbsp;</span>
</div>
<el-select :disabled="inputQuery.orderTypeEnable" v-model="inputQuery.supplementOrderType"
<el-select :disabled="inputQuery.corpType !=1"
v-model="inputQuery.supplementOrderType"
clearable
placeholder="单据类型">
<el-option
v-for="item in orderTypeList"
@ -373,7 +375,7 @@ export default {
getOrderType() {
this.orderTypeList = [];
let query = {
id: this.inputQuery.id
mainAction: this.inputQuery.mainAction
};
getCandidateBussinessType(query).then((response) => {
this.orderTypeList = response.data || [];
@ -399,9 +401,12 @@ export default {
},
created() {
if (this.inputQuery.mainAction != null && this.inputQuery.mainAction != "") {
this.getOrderType();
}
this.getList();
this.getStorage();
this.getOrderType();
},
};
</script>

@ -38,7 +38,7 @@
</el-table-column>
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo" width="250"></el-table-column>
<el-table-column label="供应商名称" prop="corpName" width="250"></el-table-column>
<el-table-column label="往来单位" prop="corpName" width="250"></el-table-column>
<el-table-column label="单据日期" prop="billdate" width="100"></el-table-column>
<el-table-column label="单据状态" width="100">
<template slot-scope="scope">

@ -68,7 +68,7 @@
</el-table-column>
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column>
<el-table-column label="供应商名称" prop="corpName" show-overflow-tooltip></el-table-column>
<el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column>
<el-table-column label="单据来源" prop="sourceType" width="150">
<template slot-scope="scope">
<span>{{ sourceMap[scope.row.sourceType] }}</span>
@ -348,6 +348,9 @@ export default {
data() {
return {
query: {
billType:null,
corpName:null,
locStorageCode:null,
billNo: "",
status: "3",
page: 1,

@ -54,7 +54,7 @@
</el-table-column>
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column>
<el-table-column label="供应商名称" prop="corpName" show-overflow-tooltip></el-table-column>
<el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column>
<el-table-column label="单据来源" prop="sourceType" width="150">
<template slot-scope="scope">
<span>{{ sourceMap[scope.row.sourceType] }}</span>

@ -9,7 +9,33 @@
>
<el-row>
<el-form-item class="query-form-item">
<el-input v-model="query.billNo" placeholder="单据号"></el-input>
<el-input v-model="query.billNo" placeholder="单据号" clearable></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="query.billType" placeholder="请选择业务类型" clearable="true" size="mini">
<el-option
v-for="item in busTypes"
:key="item.localName"
:label="item.localName"
:value="item.localAction">
<span style="float: left">{{ item.localName }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item class="query-form-item">
<el-input v-model="query.corpName" placeholder="往来单位" clearable></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="query.locStorageCode" placeholder="请选择当前仓库" clearable="true" size="mini">
<el-option
v-for="item in storageList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item class="query-form-item">
<span style="color: #000; margin-left: 10px; margin-right: 6px">单据日期:</span>
@ -476,6 +502,9 @@ export default {
data() {
return {
query: {
billType:null,
corpName:null,
locStorageCode:null,
billNo: "",
status: "2",
startTime: "",

@ -27,7 +27,7 @@
@row-click="getStockOrderDetailList">
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo" width="250"></el-table-column>
<el-table-column label="供应商名称" prop="corpName" width="250"></el-table-column>
<el-table-column label="往来单位" prop="corpName" width="250"></el-table-column>
<el-table-column label="单据日期" prop="billdate" width="100"></el-table-column>
<el-table-column label="单据状态" width="100">
<template slot-scope="scope">

@ -46,7 +46,7 @@
</el-table-column>
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo"></el-table-column>
<el-table-column label="供应商名称" prop="corpName"></el-table-column>
<el-table-column label="往来单位" prop="corpName"></el-table-column>
<el-table-column label="单据来源" prop="sourceType" width="150">
<template slot-scope="scope">
<span>{{ sourceMap[scope.row.sourceType] }}</span>

@ -9,7 +9,33 @@
>
<el-row>
<el-form-item class="query-form-item">
<el-input v-model="query.billNo" placeholder="单据号"></el-input>
<el-input v-model="query.billNo" placeholder="单据号" clearable></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="query.billType" placeholder="请选择业务类型" clearable="true" size="mini">
<el-option
v-for="item in busTypes"
:key="item.localName"
:label="item.localName"
:value="item.localAction">
<span style="float: left">{{ item.localName }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item class="query-form-item">
<el-input v-model="query.corpName" placeholder="往来单位" clearable></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="query.locStorageCode" placeholder="请选择当前仓库" clearable="true" size="mini">
<el-option
v-for="item in storageList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item class="query-form-item">
<span style="color: #000; margin-left: 10px; margin-right: 6px">单据日期:</span>
@ -47,7 +73,7 @@
</el-table-column>
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column>
<el-table-column label="供应商名称" prop="corpName" show-overflow-tooltip></el-table-column>
<el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column>
<el-table-column label="单据来源" prop="sourceType" width="150">
<template slot-scope="scope">
<span>{{ sourceMap[scope.row.sourceType] }}</span>
@ -430,6 +456,9 @@ export default {
data() {
return {
query: {
billType:null,
corpName:null,
locStorageCode:null,
billNo: "",
status: "1",
page: 1,

@ -552,30 +552,27 @@ export default {
this.$message.warning('未添加产品');
return;
}
for (let i = 0; i < this.codeArray.length; i++) {
if (!this.$isBlank(this.codeArray[i].productDate && this.codeArray[i].productDate.length != 6)) {
if (!this.$isBlank(this.codeArray[i].productDate) && this.codeArray[i].productDate.length != 6) {
return this.$message.error('生产日期格式错误');
}
if (!this.$isBlank(this.codeArray[i].expireDate && this.codeArray[i].expireDate.length != 6)) {
if (!this.$isBlank(this.codeArray[i].expireDate) && this.codeArray[i].expireDate.length != 6) {
return this.$message.error('失效日期格式错误');
}
}
if (status === '3') {
for (let i = 0; i < this.codeArray.length; i++) {
if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count == "0") {
return this.$message.error('单据数量不能为0');
}
if (this.$isBlank(this.codeArray[i].batchNo)) {
return this.$message.error('批次号不能为空');
}
if (this.$isBlank(this.codeArray[i].productDate)) {
return this.$message.error('生产日期不能为空');
}
if (this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('失效日期不能为空');
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
return this.$message.error('生产日期与失效日期不能全部为空');
}
if (this.$isBlank(this.codeArray[i].count) || this.codeArray[i].count === '0') {
return this.$message.error('单据数量不能小于0');
}
}
}

@ -263,12 +263,11 @@ export default {
return;
}
let ids = [];
selection.forEach((obj, index) => {
console.log("obj:===" + obj + "==" + obj.relIdFk)
let data = {
relId: obj.relIdFk,
batchNo: obj.batchNo,
productDate: obj.productionDate,
expireDate: obj.expireDate,
relId: obj.rlId,
}
ids.push(data);
});

@ -37,7 +37,7 @@
</el-table-column>
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo"></el-table-column>
<el-table-column label="供应商名称" prop="corpName"></el-table-column>
<el-table-column label="往来单位" prop="corpName"></el-table-column>
<el-table-column label="单据日期" prop="billdate"></el-table-column>
<el-table-column label="单据状态">
<template slot-scope="scope">

@ -54,7 +54,7 @@
</el-table-column>
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column>
<el-table-column label="供应商名称" prop="corpName" show-overflow-tooltip></el-table-column>
<el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column>
<el-table-column label="单据来源" prop="sourceType" width="150" show-overflow-tooltip>
<template slot-scope="scope">
<span>{{ sourceMap[scope.row.sourceType] }}</span>

@ -12,6 +12,32 @@
<el-form-item class="query-form-item">
<el-input v-model="query.billNo" placeholder="单据号"></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="query.billType" placeholder="请选择业务类型" clearable="true" size="mini">
<el-option
v-for="item in busTypes"
:key="item.localName"
:label="item.localName"
:value="item.localAction">
<span style="float: left">{{ item.localName }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item class="query-form-item">
<el-input v-model="query.corpName" placeholder="往来单位" clearable></el-input>
</el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="query.locStorageCode" placeholder="请选择当前仓库" clearable="true" size="mini">
<el-option
v-for="item in storageList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item class="query-form-item">
<span style="color: #000; margin-left: 10px; margin-right: 6px">单据日期:</span>
<el-date-picker
@ -46,7 +72,7 @@
</el-table-column>
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="单据号" prop="billNo" show-overflow-tooltip></el-table-column>
<el-table-column label="供应商名称" prop="corpName" show-overflow-tooltip></el-table-column>
<el-table-column label="往来单位" prop="corpName" show-overflow-tooltip></el-table-column>
<el-table-column label="单据来源" prop="sourceType" width="150">
<template slot-scope="scope">
<span>{{ sourceMap[scope.row.sourceType] }}</span>
@ -321,6 +347,9 @@ export default {
data() {
return {
query: {
billType:null,
corpName:null,
locStorageCode:null,
billNo: "",
status: "3",
page: 1,

Loading…
Cancel
Save