|
@@ -1346,23 +1346,23 @@ export default {
|
|
|
this.findObject(this.optionContactsBack.column, "goodsId").dicData = res.data.data
|
|
|
})
|
|
|
},
|
|
|
- 'form.orderItemsList.length'(newformContacts, oldformContacts) {
|
|
|
- console.log(this.formContacts);
|
|
|
- console.log(this.form.orderItemsList);
|
|
|
- // for (let i = 0; i < this.form.orderItemsList.length - 1; i++) {
|
|
|
- // const currentItem = this.form.orderItemsList[i];
|
|
|
- // const nextItem = this.form.orderItemsList[i + 1];
|
|
|
-
|
|
|
- // if (currentItem.sharedCompanyId !== nextItem.sharedCompanyId) {
|
|
|
- // console.log('不能添加');
|
|
|
- // }
|
|
|
- // }
|
|
|
- if (this.form.orderItemsList.length) {
|
|
|
- this.findObject(this.optionForm.column, 'storageId').disabled = true
|
|
|
- } else {
|
|
|
- this.findObject(this.optionForm.column, 'storageId').disabled = false
|
|
|
- }
|
|
|
- },
|
|
|
+ // 'form.orderItemsList.length'(newformContacts, oldformContacts) {
|
|
|
+ // console.log(this.formContacts);
|
|
|
+ // console.log(this.form.orderItemsList);
|
|
|
+ // // for (let i = 0; i < this.form.orderItemsList.length - 1; i++) {
|
|
|
+ // // const currentItem = this.form.orderItemsList[i];
|
|
|
+ // // const nextItem = this.form.orderItemsList[i + 1];
|
|
|
+
|
|
|
+ // // if (currentItem.sharedCompanyId !== nextItem.sharedCompanyId) {
|
|
|
+ // // console.log('不能添加');
|
|
|
+ // // }
|
|
|
+ // // }
|
|
|
+ // if (this.form.orderItemsList.length) {
|
|
|
+ // this.findObject(this.optionForm.column, 'storageId').disabled = true
|
|
|
+ // } else {
|
|
|
+ // this.findObject(this.optionForm.column, 'storageId').disabled = false
|
|
|
+ // }
|
|
|
+ // },
|
|
|
'form.sharedCompanyId'(newSharedCompanyId, oldSharedCompanyId) {
|
|
|
console.log(newSharedCompanyId, oldSharedCompanyId);
|
|
|
if (newSharedCompanyId != oldSharedCompanyId) {
|