|
|
|
@ -92,6 +92,7 @@ import { session } from '@/store/modules/session';
|
|
|
|
|
import model from './model';
|
|
|
|
|
import LocationDetail from './model.location';
|
|
|
|
|
import { headers } from './config';
|
|
|
|
|
import { url } from '@/utils/url';
|
|
|
|
|
@Component({
|
|
|
|
|
components: {
|
|
|
|
|
jPicker,
|
|
|
|
@ -400,7 +401,28 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
await this.model.submitOrderInEnter(this.DNReceivingList);
|
|
|
|
|
if (this.model.SubmitCode == '1') {
|
|
|
|
|
const ServeUrl = JSON.parse(localStorage.getItem('__GWMS_APP_STATE_DATA__'));
|
|
|
|
|
uni.request({
|
|
|
|
|
url: ServeUrl.server.address + url.material.DNorderin.ImportInfo,
|
|
|
|
|
method: 'POST',
|
|
|
|
|
data: {
|
|
|
|
|
dnNo: this.form.documentNo,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
},
|
|
|
|
|
success: (res: any) => {
|
|
|
|
|
console.log(res.data);
|
|
|
|
|
if (res.data.code != '0' && res.data.list != null) {
|
|
|
|
|
// this.empty();
|
|
|
|
|
this.resetForm();
|
|
|
|
|
} else if (res.data.code == '0' && res.data.list == null) {
|
|
|
|
|
this.empty();
|
|
|
|
|
this.form.documentNo = '';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
async bill() {
|
|
|
|
|
if (this.form.documentNo == '') {
|
|
|
|
|