|
@@ -196,6 +196,10 @@ export default {
|
|
|
form.sparePartsSn = this.nowData.sparePartsSn
|
|
|
form.sparePartsNo = this.nowData.sparePartsNo
|
|
|
form.supplierSn = this.nowData.supplierSn
|
|
|
+ if (!_this.itemSn) {
|
|
|
+ delete form.id
|
|
|
+ delete form.sparePartsDetailSn
|
|
|
+ }
|
|
|
_this.spinning = true
|
|
|
sparePartsSaveDetail(form).then(res => {
|
|
|
if (res.status == 200) {
|