cosmoim-852 fix 补料创建 && 虚拟单交接 优化

master
hou 3 years ago
parent a7f77e0c75
commit b5342f8ee1

@ -31,6 +31,7 @@ export default Vue.extend({
<style lang="scss">
/* 注意要写在第一行同时给style标签加入lang="scss"属性 */
@import '~uview-ui/index.scss';
/*每个页面公共css */
page {
height: 100%;
@ -40,27 +41,33 @@ page {
width: 100%;
height: 100rpx;
display: flex;
.library-left {
width: 45%;
height: 100%;
display: flex;
view {
// width: 120rpx;
line-height: 100rpx;
}
.search {
padding-left: 30px;
}
}
.library-right {
width: 55%;
height: 100%;
display: flex;
.library-right-title {
width: 140rpx;
height: 100%;
line-height: 100rpx;
}
.input {
width: 200rpx;
height: 70rpx;
@ -69,6 +76,7 @@ page {
}
}
}
// .uni-input-input:disabled{
// background:red;
// }
@ -77,7 +85,15 @@ page {
background: #ecefefb3;
color: rgb(158, 157, 157);
}
.u-mode-center-box {
padding: 5px;
}
.uni-modal {
z-index: 20000;
}
uni-modal {
z-index: 19000;
}
</style>

@ -131,10 +131,16 @@ export default class RawReceiptDetail extends BasePage {
materialCode: any = '';
async propoWindow() {
this.show = !this.show;
await this.query();
// await this.query();
if (this.PopupList.length == 0) {
this.PageShow = false;
} else {
this.PageShow = true;
}
}
async query() {
this.PageShow = false;
this.PopupList = [];
let params = {
prdOrder: this.prdOrder,
materialCode: this.materialCode,
@ -154,6 +160,9 @@ export default class RawReceiptDetail extends BasePage {
}
Change(e: any) {
this.PopupList = this.obj[e.current - 1];
this.PopupList.forEach((item: any) => {
item.checked = false;
});
}
selectItem(e: any) {
console.log(e);
@ -178,7 +187,6 @@ export default class RawReceiptDetail extends BasePage {
return;
}
this.show = !this.show;
this.model.MaterialList.length = 0;
this.prdOrder = '';
this.materialCode = '';
}

@ -131,6 +131,9 @@ export class VirtualModule extends VuexModule {
@MutationAction
async queryProOrderResult(params: any) {
const { list: proOrderResultList }: any = await http.post(url.virtual.query.ordoutlist, params);
proOrderResultList.forEach((item: any) => {
item.hvAmount = 0;
});
return { proOrderResultList };
}

@ -178,15 +178,22 @@ export default class VirtualSummary extends BasePage {
//
ClickHandover(e: any) {
console.log(e);
if (e.data.length != this.model.proOrderResultList.length) {
let index = e.data[e.data.length - 1].index;
let num: any = parseFloat(this.model.proOrderResultList[index].amount) - parseFloat(this.model.proOrderResultList[index].totalMoAmount);
this.model.proOrderResultList[index].hvAmount = num;
} else {
this.model.proOrderResultList.forEach((item: any) => {
let num: any = parseFloat(item.amount) - parseFloat(item.totalMoAmount);
item.hvAmount = num;
});
this.model.proOrderResultList.forEach((item: any) => {
if (!item.checked) {
item.hvAmount = 0;
}
});
if (e.data.length != 0) {
if (e.data.length != this.model.proOrderResultList.length) {
let index = e.data[e.data.length - 1].index;
let num: any = parseFloat(this.model.proOrderResultList[index].amount) - parseFloat(this.model.proOrderResultList[index].totalMoAmount);
this.model.proOrderResultList[index].hvAmount = num;
} else {
this.model.proOrderResultList.forEach((item: any) => {
let num: any = parseFloat(item.amount) - parseFloat(item.totalMoAmount);
item.hvAmount = num;
});
}
}
}
onSubmit() {

Loading…
Cancel
Save