|
@@ -231,6 +231,13 @@ import zjDialogPicker from "@/components/zj-dialog/zj-dialog-picker.vue";
|
|
|
|
|
|
submitData() {
|
|
|
if (this.rpMaterialOrderItemList.length < 1) return this.$toast('请选择');
|
|
|
+ for (var item of this.rpMaterialOrderItemList) {
|
|
|
+ if(!item.repairFlag) return this.$toast('维修标识不能为空');
|
|
|
+ if(!item.oldPartsNumber) return this.$toast('旧配件编号不能为空');
|
|
|
+ if(!item.oldPartsName) return this.$toast('旧配件名称不能为空');
|
|
|
+ if(!item.goodsName) return this.$toast('新配件名称不能为空');
|
|
|
+ if(!item.goodsCode) return this.$toast('新配件编号不能为空');
|
|
|
+ }
|
|
|
if(!this.orderNo) return this.$toast('请填写工单号');
|
|
|
this.$setStorage('materialSaleDataZhiFu', {
|
|
|
type: this.type,
|