|
@@ -1,204 +1,210 @@
|
|
|
<template>
|
|
|
- <div class="box">
|
|
|
- <div class="topbox">
|
|
|
- {{ $t("message.ProductInquiry") }}
|
|
|
- </div>
|
|
|
- <div class="contentbox">
|
|
|
- <div class="topcontentbox">
|
|
|
- <p>
|
|
|
- <!-- Tips -->
|
|
|
- {{ $t("inquiry.Tips") }}
|
|
|
- </p>
|
|
|
- <p>
|
|
|
- <!-- Please leave us a message if you have any questions about our products. We will contact you within 24 hours by email. -->
|
|
|
- {{ $t("inquiry.PleaseLeave") }}
|
|
|
- </p>
|
|
|
+ <div class="content">
|
|
|
+ <banner></banner>
|
|
|
+ <div class="box">
|
|
|
+ <div class="topbox">
|
|
|
+ {{ $t("message.ProductInquiry") }}
|
|
|
</div>
|
|
|
+ <div class="contentbox">
|
|
|
+ <div class="topcontentbox">
|
|
|
+ <p>
|
|
|
+ <!-- Tips -->
|
|
|
+ {{ $t("inquiry.Tips") }}
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <!-- Please leave us a message if you have any questions about our products. We will contact you within 24 hours by email. -->
|
|
|
+ {{ $t("inquiry.PleaseLeave") }}
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="bottomcontentbox_b">
|
|
|
- <p>
|
|
|
- <!-- Product Information -->
|
|
|
- {{ $t("inquiry.ProductInformation") }}
|
|
|
- </p>
|
|
|
- <div class="bottomcontentbox">
|
|
|
- <el-form :inline="true">
|
|
|
- <el-form-item>
|
|
|
- <div class="input_box">
|
|
|
- <span>
|
|
|
- <!-- Quick Add -->
|
|
|
- {{ $t("inquiry.QuickAdd") }}:
|
|
|
- </span>
|
|
|
- <el-input
|
|
|
- class="catalogInput"
|
|
|
- v-model="catalog"
|
|
|
- placeholder=""
|
|
|
- ></el-input>
|
|
|
- <span @click="searchByCatalog">{{
|
|
|
- $t("button.addQuoteForm")
|
|
|
- }}</span>
|
|
|
- </div>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <div class="sample_info">
|
|
|
- <el-form :inline="true">
|
|
|
- <el-form-item>
|
|
|
- <span style="color:#E50113">{{
|
|
|
- $t("inquiry.getFreeSampleInfo1")
|
|
|
- }}</span>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <span style="color:#606266">{{
|
|
|
- $t("inquiry.getFreeSampleInfo2")
|
|
|
- }}</span>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- <el-table
|
|
|
- :data="from.inquiryDetailList"
|
|
|
- style="width: 100%; margin-bottom:2rem;"
|
|
|
- :empty-text="$t('table.notable')"
|
|
|
- >
|
|
|
- <el-table-column
|
|
|
- prop="catalog"
|
|
|
- :label="$t('table.catalog')"
|
|
|
- style="width:20% color:red;"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="productName"
|
|
|
- :label="$t('table.productName')"
|
|
|
- style="width:20%"
|
|
|
- >
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="date"
|
|
|
- :label="$t('table.size')"
|
|
|
- style="width:20%"
|
|
|
- >
|
|
|
- <template slot-scope="scope">
|
|
|
- <div class="size_data">
|
|
|
+ <div class="bottomcontentbox_b">
|
|
|
+ <p>
|
|
|
+ <!-- Product Information -->
|
|
|
+ {{ $t("inquiry.ProductInformation") }}
|
|
|
+ </p>
|
|
|
+ <div class="bottomcontentbox">
|
|
|
+ <el-form :inline="true">
|
|
|
+ <el-form-item>
|
|
|
+ <div class="input_box">
|
|
|
+ <span>
|
|
|
+ <!-- Quick Add -->
|
|
|
+ {{ $t("inquiry.QuickAdd") }}:
|
|
|
+ </span>
|
|
|
<el-input
|
|
|
- class="size_q"
|
|
|
- v-model="size"
|
|
|
+ class="catalogInput"
|
|
|
+ v-model="catalog"
|
|
|
placeholder=""
|
|
|
></el-input>
|
|
|
- <el-select v-model="scope.row.unit" placeholder="">
|
|
|
- <el-option
|
|
|
- v-if="scope.row.unit == 'vial'"
|
|
|
- v-for="item in options"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
- <el-option
|
|
|
- v-if="scope.row.unit !== 'vial'"
|
|
|
- v-for="item in option"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- >
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+ <span @click="searchByCatalog">{{
|
|
|
+ $t("button.addQuoteForm")
|
|
|
+ }}</span>
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <div class="sample_info">
|
|
|
+ <el-form :inline="true">
|
|
|
+ <el-form-item>
|
|
|
+ <span style="color:#E50113">{{
|
|
|
+ $t("inquiry.getFreeSampleInfo1")
|
|
|
+ }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <span style="color:#606266">{{
|
|
|
+ $t("inquiry.getFreeSampleInfo2")
|
|
|
+ }}</span>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
</div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="date"
|
|
|
- :label="$t('table.quantity')"
|
|
|
- style="width:20%"
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <el-table
|
|
|
+ :data="from.inquiryDetailList"
|
|
|
+ style="width: 100%; margin-bottom:2rem;"
|
|
|
+ :empty-text="$t('table.notable')"
|
|
|
>
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-input-number
|
|
|
- v-model="scope.row.quantity"
|
|
|
- @change="handleChange"
|
|
|
- :min="1"
|
|
|
- label="描述文字"
|
|
|
- ></el-input-number>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column :label="$t('table.delete')" style="width:20%">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button type="text" size="small"
|
|
|
- ><img
|
|
|
- style="width:24px;"
|
|
|
- src="@/assets/img/delete.png"
|
|
|
- alt=""
|
|
|
- @click="deleteList(scope.$index)"
|
|
|
- /></el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
+ <el-table-column
|
|
|
+ prop="catalog"
|
|
|
+ :label="$t('table.catalog')"
|
|
|
+ style="width:20% color:red;"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="productName"
|
|
|
+ :label="$t('table.productName')"
|
|
|
+ style="width:20%"
|
|
|
+ >
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="date"
|
|
|
+ :label="$t('table.size')"
|
|
|
+ style="width:20%"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div class="size_data">
|
|
|
+ <el-input
|
|
|
+ class="size_q"
|
|
|
+ v-model="size"
|
|
|
+ placeholder=""
|
|
|
+ ></el-input>
|
|
|
+ <el-select v-model="scope.row.unit" placeholder="">
|
|
|
+ <el-option
|
|
|
+ v-if="scope.row.unit == 'vial'"
|
|
|
+ v-for="item in options"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ <el-option
|
|
|
+ v-if="scope.row.unit !== 'vial'"
|
|
|
+ v-for="item in option"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column
|
|
|
+ prop="date"
|
|
|
+ :label="$t('table.quantity')"
|
|
|
+ style="width:20%"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input-number
|
|
|
+ v-model="scope.row.quantity"
|
|
|
+ @change="handleChange"
|
|
|
+ :min="1"
|
|
|
+ label="描述文字"
|
|
|
+ ></el-input-number>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column :label="$t('table.delete')" style="width:20%">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="text" size="small"
|
|
|
+ ><img
|
|
|
+ style="width:24px;"
|
|
|
+ src="@/assets/img/delete.png"
|
|
|
+ alt=""
|
|
|
+ @click="deleteList(scope.$index)"
|
|
|
+ /></el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
- <div class="footerbox_b">
|
|
|
- <p>
|
|
|
- <!-- Your Information -->
|
|
|
- {{ $t("inquiry.YourInformation") }}
|
|
|
- </p>
|
|
|
- <div class="footerbox">
|
|
|
- <div>
|
|
|
- <el-input
|
|
|
- class="inputbox"
|
|
|
- v-model="from.name"
|
|
|
- :placeholder="$t('input.fullname')"
|
|
|
- ></el-input>
|
|
|
- <div class="red-t">*</div>
|
|
|
+ <div class="footerbox_b">
|
|
|
+ <p>
|
|
|
+ <!-- Your Information -->
|
|
|
+ {{ $t("inquiry.YourInformation") }}
|
|
|
+ </p>
|
|
|
+ <div class="footerbox">
|
|
|
+ <div>
|
|
|
+ <el-input
|
|
|
+ class="inputbox"
|
|
|
+ v-model="from.name"
|
|
|
+ :placeholder="$t('input.fullname')"
|
|
|
+ ></el-input>
|
|
|
+ <div class="red-t">*</div>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-input
|
|
|
+ class="inputbox"
|
|
|
+ v-model="from.region"
|
|
|
+ :placeholder="$t('input.country')"
|
|
|
+ ></el-input>
|
|
|
+ <!-- <div class="red-t">*</div> -->
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-input
|
|
|
+ class="inputbox"
|
|
|
+ v-model="from.company"
|
|
|
+ :placeholder="$t('input.companyInstitution')"
|
|
|
+ ></el-input>
|
|
|
+ <div class="red-t">*</div>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-input
|
|
|
+ class="inputbox"
|
|
|
+ v-model="from.email"
|
|
|
+ :placeholder="$t('input.email')"
|
|
|
+ ></el-input>
|
|
|
+ <div class="red-t">*</div>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-input
|
|
|
+ class="inputbox"
|
|
|
+ v-model="from.phone"
|
|
|
+ :placeholder="$t('input.tel')"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <el-input
|
|
|
+ class="inputbox"
|
|
|
+ type="textarea"
|
|
|
+ :autosize="{ minRows: 4, maxRows: 6 }"
|
|
|
+ v-model="from.message"
|
|
|
+ :placeholder="$t('input.telFor')"
|
|
|
+ ></el-input>
|
|
|
+ </div>
|
|
|
+ <el-button class="buttonbox" type="primary" @click="postsubmit">{{
|
|
|
+ $t("button.submit")
|
|
|
+ }}</el-button>
|
|
|
</div>
|
|
|
- <div>
|
|
|
- <el-input
|
|
|
- class="inputbox"
|
|
|
- v-model="from.region"
|
|
|
- :placeholder="$t('input.country')"
|
|
|
- ></el-input>
|
|
|
- <!-- <div class="red-t">*</div> -->
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <el-input
|
|
|
- class="inputbox"
|
|
|
- v-model="from.company"
|
|
|
- :placeholder="$t('input.companyInstitution')"
|
|
|
- ></el-input>
|
|
|
- <div class="red-t">*</div>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <el-input
|
|
|
- class="inputbox"
|
|
|
- v-model="from.email"
|
|
|
- :placeholder="$t('input.email')"
|
|
|
- ></el-input>
|
|
|
- <div class="red-t">*</div>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <el-input
|
|
|
- class="inputbox"
|
|
|
- v-model="from.phone"
|
|
|
- :placeholder="$t('input.tel')"
|
|
|
- ></el-input>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <el-input
|
|
|
- class="inputbox"
|
|
|
- type="textarea"
|
|
|
- :autosize="{ minRows: 4, maxRows: 6 }"
|
|
|
- v-model="from.message"
|
|
|
- :placeholder="$t('input.telFor')"
|
|
|
- ></el-input>
|
|
|
- </div>
|
|
|
- <el-button class="buttonbox" type="primary" @click="postsubmit">{{
|
|
|
- $t("button.submit")
|
|
|
- }}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import banner from "@/components/banner";
|
|
|
export default {
|
|
|
- components: {},
|
|
|
+ components: {
|
|
|
+ banner
|
|
|
+ },
|
|
|
name: "inquiry",
|
|
|
data() {
|
|
|
return {
|
|
@@ -356,6 +362,10 @@ export default {
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
@media screen and (min-width: 751px) and (max-width: 9999px) {
|
|
|
+ .box{
|
|
|
+ width: 1200px;
|
|
|
+ margin: 40px auto 0;
|
|
|
+ }
|
|
|
.sample_info span {
|
|
|
font-size: 16px;
|
|
|
}
|