|
@@ -103,53 +103,54 @@
|
|
|
|
|
|
<!-- 子表单区域 -->
|
|
|
<a-tabs v-model:activeKey="activeKey" animated style=" padding: 24px;padding-top: 0px;">
|
|
|
- <a-tab-pane tab="销售询价单 - 船明细(ship details)" key="saleInquiryFormShip" :forceRender="true">
|
|
|
- <a-button type="primary" @click="selectShip"> 选择船(select ship)</a-button>
|
|
|
+ <a-tab-pane tab="销售询价单 - 产品明细(product details)" key="saleInquiryFormProduct" :forceRender="true">
|
|
|
+ <a-button type="primary" @click="selectProducts" style="margin-right: 1%;margin-bottom: 1%;"> 选择产品(select product)</a-button>
|
|
|
+ <a-button type="primary" @click="setNeed" style="margin-right: 1%;"> 设置需要船检证书(set need ship inspection certificate)</a-button>
|
|
|
+ <a-button type="primary" @click="setNotNeed"> 设置不需要船检证书(set need not ship inspection certificate)</a-button>
|
|
|
<j-vxe-table
|
|
|
:keep-source="true"
|
|
|
resizable
|
|
|
- ref="saleInquiryFormShipTableRef"
|
|
|
- :loading="saleInquiryFormShipTable.loading"
|
|
|
- :columns="saleInquiryFormShipTable.columns"
|
|
|
- :dataSource="saleInquiryFormShipTable.dataSource"
|
|
|
+ ref="saleInquiryFormProductTableRef"
|
|
|
+ :loading="saleInquiryFormProductTable.loading"
|
|
|
+ :columns="saleInquiryFormProductTable.columns"
|
|
|
+ :dataSource="saleInquiryFormProductTable.dataSource"
|
|
|
:height="340"
|
|
|
:disabled="disabled"
|
|
|
:rowNumber="true"
|
|
|
:rowSelection="true"
|
|
|
+ asyncRemove
|
|
|
>
|
|
|
- <template #action="props" >
|
|
|
- <a @click="viewAccessory(props)" >查看配件信息(view accessory information)</a>
|
|
|
- <a-divider type="vertical"/>
|
|
|
- <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)">
|
|
|
+ <template #action="props">
|
|
|
+ <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)">
|
|
|
<a>删除(delete)</a>
|
|
|
</a-popconfirm>
|
|
|
</template>
|
|
|
</j-vxe-table>
|
|
|
</a-tab-pane>
|
|
|
- <a-tab-pane tab="销售询价单 - 产品明细(product details)" key="saleInquiryFormProduct" :forceRender="true">
|
|
|
- <a-button type="primary" @click="selectProducts" style="margin-right: 1%;margin-bottom: 1%;"> 选择产品(select product)</a-button>
|
|
|
- <a-button type="primary" @click="setNeed" style="margin-right: 1%;"> 设置需要船检证书(set need ship inspection certificate)</a-button>
|
|
|
- <a-button type="primary" @click="setNotNeed"> 设置不需要船检证书(set need not ship inspection certificate)</a-button>
|
|
|
+ <a-tab-pane tab="销售询价单 - 船明细(ship details)" key="saleInquiryFormShip" :forceRender="true">
|
|
|
+ <a-button type="primary" @click="selectShip"> 选择船(select ship)</a-button>
|
|
|
<j-vxe-table
|
|
|
:keep-source="true"
|
|
|
resizable
|
|
|
- ref="saleInquiryFormProductTableRef"
|
|
|
- :loading="saleInquiryFormProductTable.loading"
|
|
|
- :columns="saleInquiryFormProductTable.columns"
|
|
|
- :dataSource="saleInquiryFormProductTable.dataSource"
|
|
|
+ ref="saleInquiryFormShipTableRef"
|
|
|
+ :loading="saleInquiryFormShipTable.loading"
|
|
|
+ :columns="saleInquiryFormShipTable.columns"
|
|
|
+ :dataSource="saleInquiryFormShipTable.dataSource"
|
|
|
:height="340"
|
|
|
:disabled="disabled"
|
|
|
:rowNumber="true"
|
|
|
:rowSelection="true"
|
|
|
- asyncRemove
|
|
|
>
|
|
|
- <template #action="props">
|
|
|
- <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)">
|
|
|
+ <template #action="props" >
|
|
|
+ <a @click="viewAccessory(props)" >查看配件信息(view accessory information)</a>
|
|
|
+ <a-divider type="vertical"/>
|
|
|
+ <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)">
|
|
|
<a>删除(delete)</a>
|
|
|
</a-popconfirm>
|
|
|
</template>
|
|
|
</j-vxe-table>
|
|
|
</a-tab-pane>
|
|
|
+
|
|
|
</a-tabs>
|
|
|
<SelectShipSModal ref="SelectShipSModalRef" @select="addShip"></SelectShipSModal>
|
|
|
<BaseShipArchiveAccessoriesModal ref="BaseShipArchiveAccessoriesListRef"></BaseShipArchiveAccessoriesModal>
|
|
@@ -222,7 +223,7 @@
|
|
|
});
|
|
|
var SelectShipSModalRef = ref();
|
|
|
var BaseShipArchiveAccessoriesListRef = ref();
|
|
|
- const activeKey = ref('saleInquiryFormShip');
|
|
|
+ const activeKey = ref('saleInquiryFormProduct');
|
|
|
var classOption = ref([]);
|
|
|
var customerOption =ref([]);
|
|
|
const formData = reactive<Record<string, any>>({
|
|
@@ -281,7 +282,7 @@
|
|
|
resetFields();
|
|
|
saleInquiryFormShipTable.dataSource = [];
|
|
|
saleInquiryFormProductTable.dataSource = [];
|
|
|
- activeKey.value = 'saleInquiryFormShip'
|
|
|
+ activeKey.value = 'saleInquiryFormProduct'
|
|
|
getOptiom()
|
|
|
getCustomerOptions()
|
|
|
inquiryPeriod.value = []
|