Merge branch 'master' of http://10.0.0.11:10080/nx.wms/u8-import
This commit is contained in:
@@ -63,6 +63,7 @@
|
|||||||
<Compile Include="BaseBill.cs" />
|
<Compile Include="BaseBill.cs" />
|
||||||
<Compile Include="BaseModel.cs" />
|
<Compile Include="BaseModel.cs" />
|
||||||
<Compile Include="Request\BinChange.cs" />
|
<Compile Include="Request\BinChange.cs" />
|
||||||
|
<Compile Include="Request\Inventorybu.cs" />
|
||||||
<Compile Include="Request\Inventoryall.cs" />
|
<Compile Include="Request\Inventoryall.cs" />
|
||||||
<Compile Include="Request\SnOrderRequest.cs" />
|
<Compile Include="Request\SnOrderRequest.cs" />
|
||||||
<Compile Include="Request\SaleOrderRequest.cs" />
|
<Compile Include="Request\SaleOrderRequest.cs" />
|
||||||
|
|||||||
@@ -13,5 +13,6 @@ namespace NX.ERP.Model.Request
|
|||||||
|
|
||||||
public string SoCode { get; set; }
|
public string SoCode { get; set; }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
18
NX.ERP.Model/Request/Inventorybu.cs
Normal file
18
NX.ERP.Model/Request/Inventorybu.cs
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace NX.ERP.Model.Request
|
||||||
|
{
|
||||||
|
public class Inventorybu : BaseModel
|
||||||
|
{
|
||||||
|
|
||||||
|
public IEnumerable<string> inumsc { get; set; }
|
||||||
|
|
||||||
|
public bool outycl { get; set; }
|
||||||
|
|
||||||
|
public bool outbcp { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -419,6 +419,42 @@ namespace NX.ERP.U8.Pmc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IEnumerable<object> Inventorybu(NX.ERP.Model.Request.Inventorybu info1)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
using (var conn = NX.ERP.U8.U8LoginContext.Instance.Connection)
|
||||||
|
{
|
||||||
|
DynamicParameters sp = new DynamicParameters(info1);
|
||||||
|
string sql;
|
||||||
|
if (info1.outycl == true && info1.outbcp == true)
|
||||||
|
{
|
||||||
|
sql = $@"Usp_BO_ExpandByParent_BU_20210513_4 ";
|
||||||
|
}
|
||||||
|
else if (info1.outycl == true && info1.outbcp == false)
|
||||||
|
{
|
||||||
|
sql = $@"Usp_BO_ExpandByParent_BU_20210513_1 ";
|
||||||
|
}
|
||||||
|
else if (info1.outycl == false && info1.outbcp == true)
|
||||||
|
{
|
||||||
|
sql = $@"Usp_BO_ExpandByParent_BU_20210513_3 ";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
sql = $@" Usp_BO_ExpandByParent_BU_20210513 ";
|
||||||
|
}
|
||||||
|
//var sql = $@"Usp_BO_ExpandByParent_BU_20210208 ";
|
||||||
|
foreach (var item in info1.inumsc)
|
||||||
|
{
|
||||||
|
|
||||||
|
sql = sql +"'"+ item + "'" + ","; }
|
||||||
|
sql = sql.Substring(0, sql.Length - 1);
|
||||||
|
|
||||||
|
|
||||||
|
return conn.Query<object>(sql, new { inumsc = info1.inumsc });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,6 +44,15 @@ namespace NX.ERP.WebAPi.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
[Route("api/Pmc/Inventorybu")]
|
||||||
|
public IEnumerable<object> Inventorybu(NX.ERP.Model.Request.Inventorybu info)
|
||||||
|
{
|
||||||
|
var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery();
|
||||||
|
return PmcQuery.Inventorybu(info);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="server" value="10.0.0.12" />
|
<add key="server" value="10.0.0.12" />
|
||||||
<add key="AccId" value="u8-2@001" />
|
<add key="AccId" value="u8-2@001" />
|
||||||
<add key="UserId" value="wxapi" />
|
<add key="UserId" value="wx994" />
|
||||||
<add key="Password" value="1" />
|
<add key="Password" value="1" />
|
||||||
<add key="EaiPort" value="80" />
|
<add key="EaiPort" value="80" />
|
||||||
<add key="EaiPath" value="U8EAI/import.asp" />
|
<add key="EaiPath" value="U8EAI/import.asp" />
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
<MenuItem to="/InventoryMonth" name="3-4">材料出库数据与品种</MenuItem>
|
<MenuItem to="/InventoryMonth" name="3-4">材料出库数据与品种</MenuItem>
|
||||||
<MenuItem to="/InventorySo" name="3-5">销售订单表</MenuItem>
|
<MenuItem to="/InventorySo" name="3-5">销售订单表</MenuItem>
|
||||||
<MenuItem to="/inventory-SNDetail" name="3-6">序列号查询</MenuItem>
|
<MenuItem to="/inventory-SNDetail" name="3-6">序列号查询</MenuItem>
|
||||||
|
<MenuItem to="/inventorybu" name="3-7">补料量查询</MenuItem>
|
||||||
</MenuGroup>
|
</MenuGroup>
|
||||||
</Submenu>
|
</Submenu>
|
||||||
</Menu>
|
</Menu>
|
||||||
|
|||||||
@@ -11,4 +11,7 @@ export const getInventorymonth=(info)=>{
|
|||||||
export const getInventorysocode=(info)=>{
|
export const getInventorysocode=(info)=>{
|
||||||
return axios.post('/api/Pmc/Inventorysocode',info)
|
return axios.post('/api/Pmc/Inventorysocode',info)
|
||||||
}
|
}
|
||||||
|
export const getInventorybu=(info)=>{
|
||||||
|
return axios.post('/api/Pmc/Inventorybu',info)
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import InventoryMom from '@/views/inventory-mom.vue'
|
|||||||
import InventoryMonth from '@/views/inventory-month.vue'
|
import InventoryMonth from '@/views/inventory-month.vue'
|
||||||
import InventorySo from '@/views/inventory-so.vue'
|
import InventorySo from '@/views/inventory-so.vue'
|
||||||
import inventorySNDetail from '@/views/inventory-SNDetail.vue'
|
import inventorySNDetail from '@/views/inventory-SNDetail.vue'
|
||||||
|
import inventorybu from '@/views/inventory-bu.vue'
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
@@ -15,5 +16,6 @@ export default [
|
|||||||
{ path: '/InventoryMom', component: InventoryMom },
|
{ path: '/InventoryMom', component: InventoryMom },
|
||||||
{ path: '/InventoryMonth', component: InventoryMonth },
|
{ path: '/InventoryMonth', component: InventoryMonth },
|
||||||
{ path: '/inventory-SNDetail', component: inventorySNDetail },
|
{ path: '/inventory-SNDetail', component: inventorySNDetail },
|
||||||
{ path: '/InventorySo', component: InventorySo }
|
{ path: '/InventorySo', component: InventorySo },
|
||||||
|
{ path: '/inventorybu', component: inventorybu }
|
||||||
]
|
]
|
||||||
|
|||||||
247
NX.ERP.Webapp/src/views/inventory-bu.vue
Normal file
247
NX.ERP.Webapp/src/views/inventory-bu.vue
Normal file
@@ -0,0 +1,247 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<h4>补料查询表</h4>
|
||||||
|
<div>
|
||||||
|
<Row :gutter="16">
|
||||||
|
<Col span="4">
|
||||||
|
<label>产品编码及数量(示例:905006,3,903001,2)</label>
|
||||||
|
<Input autosize type="textarea" v-model="filter.inumsc" />
|
||||||
|
</Col>
|
||||||
|
|
||||||
|
<Col span="3">
|
||||||
|
<label>状态</label>
|
||||||
|
<div>
|
||||||
|
<Checkbox v-model="filter.outycl">去除原材料</Checkbox>
|
||||||
|
</div>
|
||||||
|
</Col>
|
||||||
|
<Col span="3">
|
||||||
|
<label>状态</label>
|
||||||
|
<div>
|
||||||
|
<Checkbox v-model="filter.outbcp">去除半成品</Checkbox>
|
||||||
|
</div>
|
||||||
|
</Col>
|
||||||
|
<Col span="4">
|
||||||
|
<Button
|
||||||
|
size="large"
|
||||||
|
type="primary"
|
||||||
|
icon="ios-search"
|
||||||
|
@click="handleClick"
|
||||||
|
>查询</Button
|
||||||
|
>
|
||||||
|
<Button size="large" type="success" @click="handelExport"
|
||||||
|
>导出</Button
|
||||||
|
>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<Table
|
||||||
|
style="margin-top: 20px"
|
||||||
|
size="small"
|
||||||
|
:loading="loading"
|
||||||
|
border
|
||||||
|
:columns="columns"
|
||||||
|
:data="pagedData"
|
||||||
|
>
|
||||||
|
</Table>
|
||||||
|
|
||||||
|
<Page
|
||||||
|
style="margin-top: 20px"
|
||||||
|
:current="pageNo"
|
||||||
|
:page-size="pageSize"
|
||||||
|
:total="total"
|
||||||
|
:page-size-opts="PageSizeOpts"
|
||||||
|
@on-change="handlePagechange"
|
||||||
|
@on-page-size-change="handlePageSize"
|
||||||
|
show-elevator
|
||||||
|
show-sizer
|
||||||
|
show-total
|
||||||
|
size="small"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { getInventorybu } from "@/api/pmc";
|
||||||
|
import {
|
||||||
|
pageingData,
|
||||||
|
export_col_to_excel,
|
||||||
|
dateFormatFull,
|
||||||
|
dateFormat,
|
||||||
|
sortByKey,
|
||||||
|
} from "@/libs/tools";
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
loading: false,
|
||||||
|
PageSizeOpts: [10, 15, 20, 30],
|
||||||
|
pageNo: 1,
|
||||||
|
strfilter: "",
|
||||||
|
multiple: false,
|
||||||
|
pageSize: 15,
|
||||||
|
datas: [],
|
||||||
|
filter: {
|
||||||
|
inumsc: "",
|
||||||
|
dates: [],
|
||||||
|
outycl: false,
|
||||||
|
outbcp: false,
|
||||||
|
},
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
title: "产品编码",
|
||||||
|
align: "center",
|
||||||
|
key: "invcode1",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "产品名称",
|
||||||
|
align: "center",
|
||||||
|
key: "invname1",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "产品型号",
|
||||||
|
align: "center",
|
||||||
|
key: "anItemSpec",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "子件编码",
|
||||||
|
align: "center",
|
||||||
|
key: "invcode2",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "子件名称",
|
||||||
|
align: "center",
|
||||||
|
key: "invname2",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "供应类型",
|
||||||
|
align: "center",
|
||||||
|
key: "gytype",
|
||||||
|
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "使用数量",
|
||||||
|
align: "center",
|
||||||
|
key: "sysl",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "当前库存",
|
||||||
|
align: "center",
|
||||||
|
key: "dqkc",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "子件需求量",
|
||||||
|
align: "center",
|
||||||
|
key: "zjxql",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "补料量",
|
||||||
|
align: "center",
|
||||||
|
key: "bll",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "采购在途",
|
||||||
|
align: "center",
|
||||||
|
key: "cgzt",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "委外在途",
|
||||||
|
align: "center",
|
||||||
|
key: "wwzt",
|
||||||
|
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
total() {
|
||||||
|
return this.datas.length;
|
||||||
|
},
|
||||||
|
pagedData() {
|
||||||
|
return pageingData(this.datas, this.pageSize, this.pageNo);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
mounted() {},
|
||||||
|
methods: {
|
||||||
|
handelExport() {
|
||||||
|
export_col_to_excel(this.columns, this.datas);
|
||||||
|
},
|
||||||
|
handleClick() {
|
||||||
|
this.loadData();
|
||||||
|
},
|
||||||
|
async loadData() {
|
||||||
|
try {
|
||||||
|
let _filert = {
|
||||||
|
inumsc:
|
||||||
|
this.filter.inumsc !== ""
|
||||||
|
? this.filter.inumsc.split(/[,\s\n,]/)
|
||||||
|
: null,
|
||||||
|
outycl: this.filter.outycl,
|
||||||
|
outbcp: this.filter.outbcp,
|
||||||
|
};
|
||||||
|
this.loading=true;
|
||||||
|
let resp = await getInventorybu(_filert);
|
||||||
|
this.pageNo = 1;
|
||||||
|
this.datas = resp.data.data;
|
||||||
|
// this.datas = sortByKey(resp.data.data, "cSOCode");
|
||||||
|
}catch (error) {}
|
||||||
|
finally{this.loading=false;}
|
||||||
|
},
|
||||||
|
|
||||||
|
handlePagechange(page) {
|
||||||
|
this.pageNo = page;
|
||||||
|
},
|
||||||
|
handlePageSize(pageSize) {
|
||||||
|
this.pageSize = pageSize;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||||
|
<style >
|
||||||
|
h3 {
|
||||||
|
margin: 40px 0 0;
|
||||||
|
}
|
||||||
|
ul {
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 10px;
|
||||||
|
}
|
||||||
|
a {
|
||||||
|
color: #42b983;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ivu-table .demo-table-info-row td {
|
||||||
|
background-color: #2db7f5;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.ivu-table .demo-table-error-row td {
|
||||||
|
background-color: #ff6600;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ivu-table td.demo-table-info-old {
|
||||||
|
color: #2db7f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ivu-table td.demo-table-info-new {
|
||||||
|
color: #ff6600;
|
||||||
|
}
|
||||||
|
.ivu-table td.demo-table-info-ex {
|
||||||
|
color: #187;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
padding: 10px 1;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user