|
|
@@ -19,16 +19,16 @@
|
|
|
</receiptInfo>
|
|
|
</div>
|
|
|
<div v-if="item.key == 'inoutBound'">
|
|
|
- <add ref="modalRefs" :form="form" :sourceBizNo="form.receiveNo" :saleProductList="form.productList"
|
|
|
+ <add ref="inoutBoundRef" :form="form" :sourceBizNo="form.receiveNo" :saleProductList="form.productList"
|
|
|
:bizType="2" :detailProductList="detailData.productList"></add>
|
|
|
</div>
|
|
|
<div v-if="item.key == 'inoutBoundView'">
|
|
|
- <detailDialog ref="modalRefs" :bizType="2" :businessId="form.receiveNo" :isUpload="isUpload">
|
|
|
+ <detailDialog ref="inoutBoundViewRef" :bizType="2" :businessId="form.receiveNo" :isUpload="isUpload">
|
|
|
</detailDialog>
|
|
|
</div>
|
|
|
<div v-if="item.key == 'inoutBoundEdit'">
|
|
|
<procurementWarehousing :businessId="form.receiveNo" :qualityInspectionItems="qualityInspectionItems"
|
|
|
- ref="modalRefs">
|
|
|
+ ref="inoutBoundEditRef">
|
|
|
</procurementWarehousing>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -181,7 +181,7 @@ export default {
|
|
|
// }
|
|
|
},
|
|
|
save(data) {
|
|
|
- this.$refs.modalRefs[1].handleSave(data);
|
|
|
+ this.$refs.inoutBoundRef?.[0].handleSave(data);
|
|
|
},
|
|
|
success() {
|
|
|
// this.$parent.handleClose()
|
|
|
@@ -192,22 +192,22 @@ export default {
|
|
|
// 判断质检状态是否全部已检
|
|
|
allListChecked() {
|
|
|
return (
|
|
|
- this.$refs.modalRefs[3] &&
|
|
|
- this.$refs.modalRefs[3].getStatus()
|
|
|
+ this.$refs.inoutBoundEditRef?.[0] &&
|
|
|
+ this.$refs.inoutBoundEditRef[0].getStatus()
|
|
|
);
|
|
|
},
|
|
|
async getTableValue() {
|
|
|
- console.log(this.$refs.modalRefs[1], 'aaaaaaaad')
|
|
|
+ console.log(this.$refs)
|
|
|
return {
|
|
|
form: this.form,
|
|
|
- returnStorageData: this.$refs.modalRefs[1].getReturnStorage(),
|
|
|
+ returnStorageData: this.$refs.inoutBoundRef?.[0]&&this.$refs.inoutBoundRef[0].getReturnStorage(),
|
|
|
isAllChecked:
|
|
|
- this.$refs.modalRefs[3] &&
|
|
|
- (await this.$refs.modalRefs[3].getStatus()),
|
|
|
+ this.$refs.inoutBoundEditRef?.[0] &&
|
|
|
+ (await this.$refs.inoutBoundEditRef[0].getStatus()),
|
|
|
|
|
|
qualityInspector:
|
|
|
- (this.$refs.modalRefs[2] &&
|
|
|
- this.$refs.modalRefs[2].getQualityFile()) ||
|
|
|
+ (this.$refs.inoutBoundViewRef?.[0] &&
|
|
|
+ this.$refs.inoutBoundViewRef[0].getQualityFile()) ||
|
|
|
{}
|
|
|
// qualityInspector:
|
|
|
// (this.$refs.detailDialog &&
|