@@ -218,6 +218,13 @@ export default class RawReceiptDetail extends BasePage {
});
}
async onSubmit() {
+ if (this.List.length == 0) {
+ uni.showToast({
+ title: this.$t('message.Pi_tip4') as any,
+ image: '/static/icons/icon-52.png',
+ });
+ return;
+ }
this.List.forEach((item: any) => {
item.factoryCode = this.session.factoryCode;
item.loginName = this.session.loginName;