This commit is contained in:
gongxh
2021-10-28 11:14:08 +08:00
11 changed files with 465 additions and 194 deletions

View File

@@ -87,6 +87,7 @@
<Compile Include="Request\Stock.cs" />
<Compile Include="Request\Userrequest.cs" />
<Compile Include="Response\MOM\Bom.cs" />
<Compile Include="Response\Pmc\PmcWwInvlRes.cs" />
<Compile Include="Response\Pmc\PmcInventoryallRes.cs" />
<Compile Include="Response\Pmc\PmcInventorymomRes.cs" />
<Compile Include="Response\Qmcheck\Qmcheckvoucher.cs" />

View File

@@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;
namespace NX.ERP.Model
{
public class PmcWwInvlRes : BaseModel
{
public int wfjl{ get; set; }
public int wsjl { get; set; }
public IEnumerable<wfdetail> wfdetails { get; set; }
public IEnumerable<wsdetail> wsdetails { get; set; }
}
public class wfdetail
{
public string TaskItemID { get; set; }
public string code { get; set; }
public string name { get; set; }
public string standard { get; set; }
public string Qua { get; set; }
public string qty { get; set; }
public string diff { get; set; }
}
public class wsdetail
{
public string sheetid { get; set; }
public string code { get; set; }
public string name { get; set; }
public string standard { get; set; }
public string Qua { get; set; }
public string ReceivedQua { get; set; }
public string diff { get; set; }
}
}

View File

@@ -9,7 +9,7 @@
<add key="EaiPath" value="EAI/import.asp" />
<!--<add key="url" value="http://192.168.0.242/U8EAI/import.asp"/>-->
<!--账套数据库配置如果不配置就使用登录后的数据库连接-->
<add key="connStr" value="Server=10.0.0.250,49318;DataBase=UFDATA_001_2019;Uid=wxinput;Pwd=Nx123456;" />
<add key="connStr" value="Server=10.0.0.250;DataBase=UFDATA_001_2019;Uid=input;Pwd=wxnx2021;" />
<add key="ClientSettingsProvider.ServiceUri" value="" />
</appSettings>
<runtime>

View File

@@ -856,7 +856,7 @@ select *from tempdb..tablepzck20210526
{
string sql = $@"
select *from (
select f.cCusAbbName,CONVERT(varchar(100),b.dDate, 23) as dDate ,b.cSOCode,a.cInvCode,a.cInvName,g.cInvStd, a.iQuantity - isnull(d.cqty,0) as wfiQuantity
select f.cCusAbbName,CONVERT(varchar(100),b.dDate, 23) as dDate ,b.cSOCode,a.cInvCode,a.cInvName,g.cInvStd, a.iQuantity - isnull(d.cqty,0) as wfiQuantity,b.cCloser
,
isnull(cs.qty,0) as xcl,
b.cVerifier
@@ -904,7 +904,7 @@ select *from tempdb..tablepzck20210526
// where.Add(" a.iQuantity - isnull(d.cqty,0) >0 and b.cVerifier is not null ");
where.Add(" mm.wfiQuantity >0 and mm.cVerifier is not null and mm.cInvCode like '9%' ");
where.Add(" mm.wfiQuantity >0 and mm.cVerifier is not null and mm.cInvCode like '9%' and isnull( mm.cCloser ,'') ='' ");
if(info1 ==null)
{
info1 = new NX.ERP.Model.Request.SaleinvRequest();

View File

@@ -559,5 +559,46 @@ CREATE INDEX IX_test ON tempdb..tablepuapp20210625 (cinvcode)
return conn.Query<object>(sql, new { info.cpersonname, info.InvCodes, info.cday, info.BeginDate, info.EndDate });
}
}
public NX.ERP.Model.PmcWwInvlRes Purchasesuww()
{
var PmcWwInvlRes = new NX.ERP.Model.PmcWwInvlRes();
using (var conn = U8LoginContext.Instance.Connection)
{
var sql = @" select aa.TaskItemID,aa.materialid,dd.code,dd.name,dd.standard, CONVERT(DECIMAL(13,3),aa.Qua) as Qua , CONVERT(DECIMAL(13,3),bb.qty) as qty , CONVERT(DECIMAL(13,3),(isnull(aa.Qua,0)-isnull(bb.qty,0))) as diff from [10.0.0.230].wxnx2021.dbo.t_TaskItem aa left join (
select TaskItemID, sum(Qua) AS qty
from [10.0.0.230].wxnx2021.dbo.t_OutSourcing_SendItems a left join
[10.0.0.230].wxnx2021.dbo.t_OutSourcing_SendSheet b on a.SID_Sheet= b.SID_Sheet
where b.IsChecked =1 and isnull(b.IsDeleted,0)=0 group by TaskItemID ) bb on aa. SID_Item= bb.TaskItemID
left join [10.0.0.230].wxnx2021.dbo.t_TaskSheet cc on aa.SID_Sheet = cc.SID_Sheet
left join [10.0.0.230].wxnx2021.dbo.t_Material dd on dd.SysID=aa.materialid
where cc.IsChecked=1 and (isnull(aa.Qua,0)-isnull(bb.qty,0))>0 and cc.SheetType=3 and isnull(cc.IsDeleted,0)=0
";
PmcWwInvlRes.wfdetails=conn.Query< NX.ERP.Model.wfdetail> (sql,"" );
var sql2 = @" select b.sheetid,dd.code,dd.name,dd.standard, CONVERT(DECIMAL(13,3),a.Qua) as Qua, CONVERT(DECIMAL(13,3),a.ReceivedQua) as ReceivedQua , CONVERT(DECIMAL(13,3),a.Qua-a.ReceivedQua) as diff
from [10.0.0.230].wxnx2021.dbo.t_OutSourcing_SendItems a left join
[10.0.0.230].wxnx2021.dbo.t_OutSourcing_SendSheet b on a.SID_Sheet= b.SID_Sheet
left join [10.0.0.230].wxnx2021.dbo.t_Material dd on dd.SysID=a.materialid
where b.IsChecked =1 and isnull(b.IsDeleted,0)=0 and a.Qua<>a.ReceivedQua
";
PmcWwInvlRes.wsdetails = conn.Query<NX.ERP.Model.wsdetail>(sql2, "");
PmcWwInvlRes.wfjl = PmcWwInvlRes.wfdetails.Count();
PmcWwInvlRes.wsjl = PmcWwInvlRes.wsdetails.Count();
}
return PmcWwInvlRes;
}
}
}

View File

@@ -46,6 +46,14 @@ namespace NX.ERP.WebAPi.Controllers
}
[HttpPost]
[Route("api/Purchase/Purchasesuww")]
public NX.ERP.Model.PmcWwInvlRes Purchasesuww()
{
var PurchaseQuery = new NX.ERP.U8.Purchase.PurchaseQuery();
return PurchaseQuery.Purchasesuww();
}
}
}

View File

@@ -3,37 +3,36 @@
<Menu mode="horizontal" theme="dark" active-name="1">
<Submenu name="3">
<template slot="title">
<Icon type="ios-stats" />
ERP查询
<Icon type="ios-stats" />ERP查询
</template>
<MenuGroup title="报表">
<!-- <MenuItem to="/inventory" name="3-2">物料在途在制查询表</MenuItem>
<!-- <MenuItem to="/inventory" name="3-2">物料在途在制查询表</MenuItem>
<MenuItem to="/inventoryMom" name="3-3">跟单记录表</MenuItem>
<MenuItem to="/InventoryMonth" name="3-4">材料出库数据与品种</MenuItem>
<MenuItem to="/InventorySo" name="3-5">销售订单表</MenuItem> -->
<MenuItem to="/inventorypo" name="3-8">采购订单列表(PMC)</MenuItem>
<MenuItem to="/inventorysale" name="3-5">销售未发明细表</MenuItem>
<!-- <MenuItem to="/inventory-SNDetail" name="3-6">序列号查询</MenuItem>
<MenuItem to="/InventorySo" name="3-5">销售订单表</MenuItem>-->
<MenuItem to="/inventory-SNDetail" name="3-6">序列号查询</MenuItem>
<MenuItem to="/inventorybu" name="3-7">补料量查询</MenuItem>
<MenuItem to="/inventorypo" name="3-8">采购订单列表(PMC)</MenuItem>
<MenuItem to="/inventorypoc" name="3-9">采购跟进表(采购部)</MenuItem>
<MenuItem to="/Purchasesum" name="3-99">采购查询汇总</MenuItem>-->
<MenuItem to="/Purchasesum" name="3-99">采购查询汇总</MenuItem>
</MenuGroup>
</Submenu>
<!--
<Submenu name="4">
<template slot="title">
<Icon type="ios-stats" />
ERP单据
<Icon type="ios-stats" />ERP单据
</template>
<MenuGroup title="单据">
<MenuItem to="/inventoryrrival" name="4-2">到货单</MenuItem>
<MenuItem to="/inventoryerror" name="4-3">异常单据查询</MenuItem>
<MenuItem to="/inventoryerror" name="4-3">异常单据查询</MenuItem>
<MenuItem to="/inventoryMaterialAppVouch" name="4-4">领料单查询</MenuItem>
<MenuItem to="/inventorypick" name="4-5">生产领料需求查询</MenuItem>
<MenuItem to="/inventoryQmerror" name="4-5">不良品处理问题单据</MenuItem>
<MenuItem to="/inventorypick" name="4-5">生产领料需求查询</MenuItem>
<MenuItem to="/inventoryQmerror" name="4-5">不良品处理问题单据</MenuItem>
</MenuGroup>
</Submenu>
-->
</Menu>
<div class="contain">
<router-view></router-view>
@@ -43,12 +42,12 @@
<script>
export default {
name: 'App',
name: "App",
components: {},
methods: {
loadData() {}
}
}
};
</script>
<style >

View File

@@ -27,3 +27,8 @@ export const ArrivalGet = (info) => {
}
export const Purchasesuww = () => {
return axios.post('/api/Purchase/Purchasesuww','')
}

View File

@@ -23,17 +23,42 @@ export default {
data: Array //表格数据
},
computed: {
/*
custnanme() {
this.data3=[];
this.data3 = [];
this.data.forEach(item => {
//console.log(1)
this.data3.push(item.cCusAbbName);
});
this.data3 = this.noRepeat(this.data3);
this.data3 = this.data3.slice(0, 10);
//console.log(this.data);
//console.log(this.columns);
//console.log(this.arraydata);
return this.data3;
},
*/
getarraydata:function(){
this.arraydata=[]
this.columns.forEach(element => {
this.arraydata[element.key] = [];
});//建立一个字典,key为列名,值是对应一列所有数的 数组
for (var item = 0; item < this.data.length; item++) {
//遍历对象数组
for (var i in this.data[item]) {
if (this.arraydata.hasOwnProperty(i)) {
this.arraydata[i].push(this.data[item][i]);//填充元素给 对应的数组
}
//console.log(this.objectList[item][i]); //objectList[item][i]表示某个对象的某个具体属性值,i表示属性名,可以打印出来看一下;
}
}
return function(key){
this.arraydata[key] = this.noRepeat(this.arraydata[key]);
return this.arraydata[key];
}
}
},
data() {
return {
@@ -43,6 +68,7 @@ export default {
}
],
data3: [],
arraydata: new Array(),
tableColumnsFilters: [],
search: {} //过滤条件保存的对象,就是保存Input框和Select中值
};
@@ -92,7 +118,7 @@ export default {
props: {
value: "", //Select选项列表一般 0 为全部
transfer: true,
data: this.custnanme,
data: this.getarraydata(this.columns[index].key),
filterMethod: this.filterMethod
},
on: {
@@ -211,7 +237,7 @@ export default {
};
return;
}
if (index != 7) {
if (column.issum != true) {
sums[key] = {
key,
value: ""
@@ -230,7 +256,7 @@ export default {
}, 0);
sums[key] = {
key,
value: v
value: v
};
} else {
sums[key] = {
@@ -239,7 +265,6 @@ export default {
};
}
});
return sums;
}

View File

@@ -16,25 +16,12 @@
</div>
</Col>
<Col span="4">
<Button
size="large"
type="primary"
icon="ios-search"
@click="handleClick"
>查询</Button
>
<Button size="large" type="success" @click="handelExport"
>导出</Button
>
<Button size="large" type="primary" icon="ios-search" @click="handleClick">查询</Button>
<Button size="large" type="success" @click="handelExport">导出</Button>
</Col>
<Col span="10">
<Modal
width="1366"
v-model="modal1"
title="请购详情"
@on-cancel="cancel"
>
<Modal width="1366" v-model="modal1" title="请购详情" @on-cancel="cancel">
<Table
style="margin-top: 20px"
height="700"
@@ -42,18 +29,12 @@
border
:columns="columnsDetail"
:data="dataDetail"
>
</Table>
></Table>
</Modal>
</Col>
<Col span="20">
<Modal
width="1366"
v-model="modal2"
title="缺件详情"
@on-cancel="cancel"
>
<Modal width="1366" v-model="modal2" title="缺件详情" @on-cancel="cancel">
<Table
style="margin-top: 20px"
height="700"
@@ -61,8 +42,33 @@
border
:columns="columnsDetail2"
:data="dataDetail2"
>
</Table>
></Table>
</Modal>
</Col>
<Col span="20">
<Modal width="1366" v-model="modal3" title="委外未发详情" @on-cancel="cancel">
<Table
style="margin-top: 20px"
height="700"
size="small"
border
:columns="columnsDetail3"
:data="dataDetail3"
></Table>
</Modal>
</Col>
<Col span="20">
<Modal width="1366" v-model="modal4" title="委外未收详情" @on-cancel="cancel">
<Table
style="margin-top: 20px"
height="700"
size="small"
border
:columns="columnsDetail4"
:data="dataDetail4"
></Table>
</Modal>
</Col>
</Row>
@@ -76,9 +82,20 @@
:loading="loading"
:columns="columns"
:data="pagedData"
>
</Table>
></Table>
<div>
<Row :gutter="16">
<Col span="1"></Col>
<Col span="15">
<div style="color: #060c09 ;font-size: 20px; float:left">{{"委外收发情况:未发"}}</div>
<div style="color: #2db7f5 ;font-size: 20px; float:left" @click="wfclickFunc">{{this.wwdata.wfjl}}</div>
<div style="color: #060c09 ;font-size: 20px; float:left">{{";未收"}}</div>
<div style="color: #2db7f5 ;font-size: 20px; float:left" @click="wsclickFunc">{{this.wwdata.wsjl}}</div>
</Col>
</Row>
</div>
<!--@click="wfclickFunc" 2db7f5
<Page
style="margin-top: 20px"
:current="pageNo"
@@ -92,18 +109,24 @@
show-total
size="small"
/>
-->
</div>
</template>
<script>
import { Purchasesum, Purchasesumpuapp, Purchasesummom } from "@/api/Purchase";
import {
Purchasesum,
Purchasesumpuapp,
Purchasesummom,
Purchasesuww
} from "@/api/Purchase";
import {
pageingData,
export_col_to_excel,
dateFormatFull,
dateFormat,
sortByKey,
getMonth,
getMonth
} from "@/libs/tools";
export default {
data() {
@@ -112,12 +135,17 @@ export default {
pageNo: 1,
modal1: false,
modal2: false,
modal3: false,
modal4: false,
loading: false,
strfilter: "",
multiple: false,
pageSize: 15,
pageSize: 999,
dataDetail: [],
dataDetail2: [],
dataDetail3: [],
dataDetail4: [],
wwdata: {},
datas: [],
filter: {
inv_codes: "",
@@ -126,87 +154,171 @@ export default {
app_codes: "",
dates: [getMonth("s", -1), getMonth("e", 0)],
dates2: [getMonth("s", -1), getMonth("e", 1)],
by_finish: false,
by_finish: false
},
columnsDetail: [
{
title: "业务员",
align: "center",
key: "cMaker",
key: "cMaker"
},
{
title: "请购单号",
align: "center",
key: "ccode",
key: "ccode"
},
{
title: "请购日期",
align: "center",
key: "dDatel",
key: "dDatel"
},
{
title: "存货编码",
align: "center",
key: "cInvCode",
key: "cInvCode"
},
{
title: "存货名称",
align: "center",
key: "cinvname",
key: "cinvname"
},
{
title: "规格型号",
align: "center",
key: "cinvstd",
key: "cinvstd"
},
{
title: "数量",
align: "center",
key: "RQTY",
},
key: "RQTY"
}
],
columnsDetail2: [
{
title: "业务员",
align: "center",
key: "cpersonname",
key: "cpersonname"
},
{
title: "存货编码",
align: "center",
key: "CINVCODE",
key: "CINVCODE"
},
{
title: "存货名称",
align: "center",
key: "cInvName",
key: "cInvName"
},
{
title: "规格型号",
align: "center",
key: "cInvStd",
key: "cInvStd"
},
{
title: "需求数量",
align: "center",
key: "iqty",
key: "iqty"
},
{
title: "现存量",
align: "center",
key: "iQuantity",
key: "iQuantity"
},
{
title: "补料量",
align: "center",
key: "bull",
key: "bull"
}
],
columnsDetail3: [
{
title: "委外派工单号",
align: "center",
key: "task_item_id"
},
{
title: "存货编码",
align: "center",
key: "code"
},
{
title: "存货名称",
align: "center",
key: "name"
},
{
title: "规格型号",
align: "center",
key: "standard"
},
{
title: "计划发料数量",
align: "center",
key: "qua"
}
,
{
title: "已发料数量",
align: "center",
key: "qty"
}
,
{
title: "未发料数量",
align: "center",
key: "diff"
}
],
columnsDetail4: [
{
title: "委外发料单号",
align: "center",
key: "sheetid"
},
{
title: "存货编码",
align: "center",
key: "code"
},
{
title: "存货名称",
align: "center",
key: "name"
},
{
title: "规格型号",
align: "center",
key: "standard"
},
{
title: "已发料数量",
align: "center",
key: "qua"
}
,
{
title: "已收料数量",
align: "center",
key: "received_qua"
}
,
{
title: "未收料数量",
align: "center",
key: "diff"
}
],
columns: [
{
title: "业务员",
align: "center",
key: "cpersonname",
key: "cpersonname"
},
{
title: "请购未下单记录",
@@ -220,22 +332,22 @@ export default {
{
props: {
type: "primary",
size: "small",
size: "small"
},
style: { color: "#2db7f5" },
domProps: {
title: params.row.puappnumall, //添加title属性
title: params.row.puappnumall //添加title属性
},
on: {
click: () => {
this.handleShow(params.row.cpersonname); //点击事件
},
},
}
}
},
params.row.puappnumall
),
)
]);
},
}
},
{
@@ -249,22 +361,22 @@ export default {
{
props: {
type: "primary",
size: "small",
size: "small"
},
style: { color: "#2db7f5" },
domProps: {
title: params.row.puappnum03, //添加title属性
title: params.row.puappnum03 //添加title属性
},
on: {
click: () => {
this.handleShow2(params.row.cpersonname); //点击事件
},
},
}
}
},
params.row.puappnum03
),
)
]);
},
}
},
{
title: "第一期间内计划工单缺件品种数",
@@ -277,22 +389,22 @@ export default {
{
props: {
type: "primary",
size: "small",
size: "small"
},
style: { color: "#2db7f5" },
domProps: {
title: params.row.mommouth02, //添加title属性
title: params.row.mommouth02 //添加title属性
},
on: {
click: () => {
this.handleShow3(params.row.cpersonname); //点击事件
},
},
}
}
},
params.row.mommouth02
),
)
]);
},
}
},
{
title: "第二期间内计划工单缺件品种数",
@@ -305,24 +417,24 @@ export default {
{
props: {
type: "primary",
size: "small",
size: "small"
},
style: { color: "#2db7f5" },
domProps: {
title: params.row.mommouth04, //添加title属性
title: params.row.mommouth04 //添加title属性
},
on: {
click: () => {
this.handleShow4(params.row.cpersonname); //点击事件
},
},
}
}
},
params.row.mommouth04
),
)
]);
},
},
],
}
}
]
};
},
computed: {
@@ -331,7 +443,7 @@ export default {
},
pagedData() {
return pageingData(this.datas, this.pageSize, this.pageNo);
},
}
},
mounted() {
@@ -348,7 +460,7 @@ export default {
let _filert2 = {
cpersonname: h,
cInvCode: null,
cday: 0,
cday: 0
};
let respd = await Purchasesumpuapp(_filert2);
this.dataDetail = sortByKey(respd.data.data, "ccode");
@@ -358,75 +470,81 @@ export default {
let _filert2 = {
cpersonname: h,
cInvCode: null,
cday: 3,
cday: 3
};
let respd = await Purchasesumpuapp(_filert2);
this.dataDetail = sortByKey(respd.data.data, "ccode");
this.modal1 = true;
},
async handleShow3(h) {
let _beginDate = null;
let _endDate = null;
let _beginDate2 = null;
let _endDate2 = null;
if (
this.filter.dates.length == 2 &&
this.filter.dates[0] !== "" &&
this.filter.dates[0] !== ""
) {
_beginDate = this.filter.dates[0];
_endDate = this.filter.dates[1];
}
if (
this.filter.dates2.length == 2 &&
this.filter.dates2[0] !== "" &&
this.filter.dates2[0] !== ""
) {
_beginDate2 = this.filter.dates2[0];
_endDate2 = this.filter.dates2[1];
}
let _filert = {
cpersonname: h,
cInvCode: null,
begin_date: _beginDate,
end_date: _endDate,
};
let _beginDate = null;
let _endDate = null;
let _beginDate2 = null;
let _endDate2 = null;
if (
this.filter.dates.length == 2 &&
this.filter.dates[0] !== "" &&
this.filter.dates[0] !== ""
) {
_beginDate = this.filter.dates[0];
_endDate = this.filter.dates[1];
}
if (
this.filter.dates2.length == 2 &&
this.filter.dates2[0] !== "" &&
this.filter.dates2[0] !== ""
) {
_beginDate2 = this.filter.dates2[0];
_endDate2 = this.filter.dates2[1];
}
let _filert = {
cpersonname: h,
cInvCode: null,
begin_date: _beginDate,
end_date: _endDate
};
let respd = await Purchasesummom(_filert);
this.dataDetail2 = sortByKey(respd.data.data, "CINVCODE");
this.modal2 = true;
},
wfclickFunc() {
this.dataDetail3= sortByKey( this.wwdata.wfdetails, "task_item_id");
this.modal3 = true;
},
wsclickFunc() {
this.dataDetail4= sortByKey( this.wwdata.wsdetails, "sheetid");
this.modal4 = true;
},
async handleShow4(h) {
let _beginDate = null;
let _endDate = null;
let _beginDate2 = null;
let _endDate2 = null;
if (
this.filter.dates.length == 2 &&
this.filter.dates[0] !== "" &&
this.filter.dates[0] !== ""
) {
_beginDate = this.filter.dates[0];
_endDate = this.filter.dates[1];
}
if (
this.filter.dates2.length == 2 &&
this.filter.dates2[0] !== "" &&
this.filter.dates2[0] !== ""
) {
_beginDate2 = this.filter.dates2[0];
_endDate2 = this.filter.dates2[1];
}
let _filert = {
cpersonname: h,
cInvCode: null,
begin_date: _beginDate2,
end_date: _endDate2,
};
let _beginDate = null;
let _endDate = null;
let _beginDate2 = null;
let _endDate2 = null;
if (
this.filter.dates.length == 2 &&
this.filter.dates[0] !== "" &&
this.filter.dates[0] !== ""
) {
_beginDate = this.filter.dates[0];
_endDate = this.filter.dates[1];
}
if (
this.filter.dates2.length == 2 &&
this.filter.dates2[0] !== "" &&
this.filter.dates2[0] !== ""
) {
_beginDate2 = this.filter.dates2[0];
_endDate2 = this.filter.dates2[1];
}
let _filert = {
cpersonname: h,
cInvCode: null,
begin_date: _beginDate2,
end_date: _endDate2
};
let respd = await Purchasesummom(_filert);
this.dataDetail2 = sortByKey(respd.data.data, "CINVCODE");
this.modal2 = true;
@@ -434,44 +552,49 @@ export default {
cancel() {
this.dataDetail = [];
this.dataDetail2 = [];
this.dataDetail3 = [];
this.dataDetail4 = [];
this.modal1 = false;
this.modal2 = false;
this.modal3 = false;
this.modal4 = false;
},
async loadData() {
let _beginDate = null;
let _endDate = null;
let _beginDate2 = null;
let _endDate2 = null;
if (
this.filter.dates.length == 2 &&
this.filter.dates[0] !== "" &&
this.filter.dates[0] !== ""
) {
_beginDate = this.filter.dates[0];
_endDate = this.filter.dates[1];
}
if (
this.filter.dates2.length == 2 &&
this.filter.dates2[0] !== "" &&
this.filter.dates2[0] !== ""
) {
_beginDate2 = this.filter.dates2[0];
_endDate2 = this.filter.dates2[1];
}
let _filert = {
begin_date: _beginDate,
end_date: _endDate,
begin_date2: _beginDate2,
end_date2: _endDate2,
};
let _endDate = null;
let _beginDate2 = null;
let _endDate2 = null;
if (
this.filter.dates.length == 2 &&
this.filter.dates[0] !== "" &&
this.filter.dates[0] !== ""
) {
_beginDate = this.filter.dates[0];
_endDate = this.filter.dates[1];
}
if (
this.filter.dates2.length == 2 &&
this.filter.dates2[0] !== "" &&
this.filter.dates2[0] !== ""
) {
_beginDate2 = this.filter.dates2[0];
_endDate2 = this.filter.dates2[1];
}
let _filert = {
begin_date: _beginDate,
end_date: _endDate,
begin_date2: _beginDate2,
end_date2: _endDate2
};
try {
this.loading = true;
let resp = await Purchasesum(_filert);
let resq = await Purchasesuww();
this.pageNo = 1;
this.datas = resp.data.data;
this.wwdata = resq.data.data;
console.log(this.wwdata);
// this.datas = sortByKey(resp.data.data, "cordercode");
} catch (error) {
} finally {
@@ -484,8 +607,8 @@ export default {
},
handlePageSize(pageSize) {
this.pageSize = pageSize;
},
},
}
}
};
</script>

View File

@@ -169,7 +169,7 @@ export default {
key: "cSOCode",
width: "160",
filter: {
type: "Input"
type: "AutoComplete"
}
},
@@ -189,7 +189,7 @@ export default {
width: "150",
key: "cInvName",
filter: {
type: "Input"
type: "AutoComplete"
}
},
{
@@ -198,13 +198,14 @@ export default {
key: "cInvStd",
width: "220",
filter: {
type: "Input"
}
type: "AutoComplete",
}
},
{
title: "未发数量",
align: "center",
width: "120",
issum:true,
key: "wfiQuantity",
filter: {
type: "Input"
@@ -526,6 +527,11 @@ body {
}
.ivu-select-dropdown-transfer {
width: 150px;
width: 165px;
max-height: 160px;
}
.ivu-auto-complete.ivu-select-dropdown {
max-height: 500px;
}
</style>