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

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

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

@ -178,6 +178,12 @@ export default class VirtualSummary extends BasePage {
// //
ClickHandover(e: any) { ClickHandover(e: any) {
console.log(e); console.log(e);
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) { if (e.data.length != this.model.proOrderResultList.length) {
let index = e.data[e.data.length - 1].index; let index = e.data[e.data.length - 1].index;
let num: any = parseFloat(this.model.proOrderResultList[index].amount) - parseFloat(this.model.proOrderResultList[index].totalMoAmount); let num: any = parseFloat(this.model.proOrderResultList[index].amount) - parseFloat(this.model.proOrderResultList[index].totalMoAmount);
@ -189,6 +195,7 @@ export default class VirtualSummary extends BasePage {
}); });
} }
} }
}
onSubmit() { onSubmit() {
this.$submitForm.validate(async (valid) => { this.$submitForm.validate(async (valid) => {
if (valid) { if (valid) {

Loading…
Cancel
Save