|
@@ -340,7 +340,11 @@ export default {
|
|
|
|
|
|
storeChange(e, row) {
|
|
|
console.log(e, row);
|
|
|
-
|
|
|
+ this.deliverList.forEach(item => {
|
|
|
+ if (item.invoiceId === row.invoiceId) {
|
|
|
+ this.$set(item,'warehouseFlag',e)
|
|
|
+ }
|
|
|
+ })
|
|
|
if (e == 0) {
|
|
|
if (!(row.orderType === 'TRADE' || row.orderType === 'HOME')) {
|
|
|
if ((row.receivingName && row.phone && row.address)) {
|
|
@@ -630,8 +634,14 @@ export default {
|
|
|
// let correspondName = this.warehouseList.find(o => o.id == this.mainForm.warehouse).name;
|
|
|
|
|
|
let orderList = []
|
|
|
-
|
|
|
+ for (let i = 0; i <this.tableSelection.length; i++) {
|
|
|
+ if (this.tableSelection[i].warehouseFlag == null || this.tableSelection[i].warehouseFlag == '') {
|
|
|
+ this.$errorMsg('仓库必选')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
this.tableSelection.forEach(item => {
|
|
|
+
|
|
|
if (!(item.orderType === 'TRADE' || item.orderType === 'HOME')) {
|
|
|
|
|
|
} else {
|