|
@@ -289,6 +289,7 @@ export default {
|
|
item.orderId = item.id;
|
|
item.orderId = item.id;
|
|
})
|
|
})
|
|
this.goodsList = data.orders;
|
|
this.goodsList = data.orders;
|
|
|
|
+ this.screenForm.type = data.mainId;
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|
|
@@ -457,6 +458,9 @@ export default {
|
|
clickSubmitForm(status) {
|
|
clickSubmitForm(status) {
|
|
this.$refs.mainForm.validate((valid) => {
|
|
this.$refs.mainForm.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
+ if(this.goodsList.length < 1) {
|
|
|
|
+ return this.$errorMsg('请添加引用');
|
|
|
|
+ }
|
|
for(let i=0; i<this.goodsList.length; i++) {
|
|
for(let i=0; i<this.goodsList.length; i++) {
|
|
if(!this.goodsList[i].invoiceNum) {
|
|
if(!this.goodsList[i].invoiceNum) {
|
|
this.$errorMsg('请输入申请数量');
|
|
this.$errorMsg('请输入申请数量');
|