|
|
|
@ -75,7 +75,7 @@
|
|
|
|
|
<u-button type="primary" class="appoint" @click="bill">{{ $t('message.detailed') }}</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col :span="4">
|
|
|
|
|
<u-button type="success" @click="onSubmit">
|
|
|
|
|
<u-button type="success" :disabled="disableflg" @click="onSubmit">
|
|
|
|
|
{{ $t('message.po_Submit') }}
|
|
|
|
|
</u-button>
|
|
|
|
|
</u-col>
|
|
|
|
@ -117,6 +117,7 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
* 页面Module
|
|
|
|
|
*/
|
|
|
|
|
model = model;
|
|
|
|
|
disableflg = false;
|
|
|
|
|
type = 'text';
|
|
|
|
|
wlCode: any = '';
|
|
|
|
|
LOCKProOrderResultListParams: any = '';
|
|
|
|
@ -386,6 +387,7 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
* 提交
|
|
|
|
|
*/
|
|
|
|
|
async onSubmit() {
|
|
|
|
|
this.disableflg = true;
|
|
|
|
|
const dataList: any = [];
|
|
|
|
|
this.model.proOrderResultList.forEach((item: any) => {
|
|
|
|
|
if (item.checked == true) {
|
|
|
|
@ -394,26 +396,32 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
});
|
|
|
|
|
if (dataList.length == 0) {
|
|
|
|
|
this.customToast(this.$t('message.Warehouse_Tip6') as any);
|
|
|
|
|
this.disableflg = false;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
await this.model.saveProOrderResultUploadRussia(dataList);
|
|
|
|
|
if (this.model.code == '1') {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
//icon: 'success',
|
|
|
|
|
title: this.$t('message.Warehouse_Tip9') as any,
|
|
|
|
|
duration: 2000,
|
|
|
|
|
image: '/static/icons/icon-51.png',
|
|
|
|
|
});
|
|
|
|
|
// this.GetLocation();
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.onAggregate();
|
|
|
|
|
}, 2000);
|
|
|
|
|
try {
|
|
|
|
|
await this.model.saveProOrderResultUploadRussia(dataList);
|
|
|
|
|
if (this.model.code == '1') {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
//icon: 'success',
|
|
|
|
|
title: this.$t('message.Warehouse_Tip9') as any,
|
|
|
|
|
duration: 2000,
|
|
|
|
|
image: '/static/icons/icon-51.png',
|
|
|
|
|
});
|
|
|
|
|
// this.GetLocation();
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.onAggregate();
|
|
|
|
|
}, 2000);
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
this.disableflg = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
async onAggregate() {
|
|
|
|
|
await this.model.queryProOrder(this.model.formParams);
|
|
|
|
|
await this.model.queryProOrderResult(this.model.NEWparams);
|
|
|
|
|
if (this.model.proOrderResultList.length == 0) {
|
|
|
|
|
this.disableflg = false;
|
|
|
|
|
this.some = {};
|
|
|
|
|
this.LocationList = [];
|
|
|
|
|
this.wlCode = '';
|
|
|
|
@ -422,6 +430,7 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
this.LOCKProOrderResultListParams = this.model.proOrderResultList;
|
|
|
|
|
await this.model.lockProOrderResult(this.model.proOrderResultList);
|
|
|
|
|
this.disableflg = false;
|
|
|
|
|
this.some = {};
|
|
|
|
|
this.LocationList = [];
|
|
|
|
|
this.wlCode = '';
|
|
|
|
@ -487,6 +496,7 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
.right {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.u-th {
|
|
|
|
|
flex: auto;
|
|
|
|
|
}
|
|
|
|
@ -576,6 +586,7 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
// text-align: center;
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.single-left {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100rpx;
|
|
|
|
@ -588,6 +599,7 @@ export default class RawReceiptDetail extends BasePage {
|
|
|
|
|
line-height: 100rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.library-right {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|