|
@@ -1,51 +1,27 @@
|
|
|
<template>
|
|
|
<div style="width: 100%; padding: 0px 15px">
|
|
|
- <byForm
|
|
|
- :formConfig="formConfig"
|
|
|
- :formOption="formOption"
|
|
|
- v-model="formData.data"
|
|
|
- :rules="rules"
|
|
|
- ref="submit"
|
|
|
- >
|
|
|
+ <byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.data" :rules="rules" ref="submit">
|
|
|
<template #seller>
|
|
|
<div style="width: 100%">
|
|
|
<el-form-item prop="sellCorporationId">
|
|
|
- <el-select
|
|
|
- v-model="formData.data.sellCorporationId"
|
|
|
- style="width: 100%"
|
|
|
- filterable
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in corporationList"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
+ <el-select v-model="formData.data.sellCorporationId" style="width: 100%" filterable>
|
|
|
+ <el-option v-for="item in corporationList" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-row style="margin-top: 20px; width: 100%">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="地址" prop="sellCountryName">
|
|
|
- <el-input
|
|
|
- v-model="formData.data.sellCountryName"
|
|
|
- placeholder="请输入国家"
|
|
|
- />
|
|
|
+ <el-input v-model="formData.data.sellCountryName" placeholder="请输入国家" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label=" " prop="sellProvinceName">
|
|
|
- <el-input
|
|
|
- v-model="formData.data.sellProvinceName"
|
|
|
- placeholder="请输入省/州"
|
|
|
- />
|
|
|
+ <el-input v-model="formData.data.sellProvinceName" placeholder="请输入省/州" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label=" " prop="sellCityName">
|
|
|
- <el-input
|
|
|
- v-model="formData.data.sellCityName"
|
|
|
- placeholder="请输入城市"
|
|
|
- />
|
|
|
+ <el-input v-model="formData.data.sellCityName" placeholder="请输入城市" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -60,18 +36,12 @@
|
|
|
<el-row style="margin-top: 20px; width: 100%">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="联系人" prop="sellContactName">
|
|
|
- <el-input
|
|
|
- v-model="formData.data.sellContactName"
|
|
|
- placeholder="请输入联系人"
|
|
|
- />
|
|
|
+ <el-input v-model="formData.data.sellContactName" placeholder="请输入联系人" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="16">
|
|
|
<el-form-item label=" " prop="sellContactNumber">
|
|
|
- <el-input
|
|
|
- v-model="formData.data.sellContactNumber"
|
|
|
- placeholder="请输入联系人电话"
|
|
|
- />
|
|
|
+ <el-input v-model="formData.data.sellContactNumber" placeholder="请输入联系人电话" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -95,87 +65,42 @@
|
|
|
</el-select>
|
|
|
</el-form-item> -->
|
|
|
<el-form-item prop="buyCorporationId">
|
|
|
- <el-select
|
|
|
- v-model="formData.data.buyCorporationId"
|
|
|
- filterable
|
|
|
- remote
|
|
|
- reserve-keyword
|
|
|
- placeholder="请输入关键字"
|
|
|
- remote-show-suffix
|
|
|
- :remote-method="remoteMethod"
|
|
|
- :loading="loadingSearch"
|
|
|
- @input="remoteMethod"
|
|
|
- style="width: 100%"
|
|
|
- @change="changeCustomer"
|
|
|
- v-if="
|
|
|
+ <el-select v-model="formData.data.buyCorporationId" filterable remote reserve-keyword placeholder="请输入关键字" remote-show-suffix
|
|
|
+ :remote-method="remoteMethod" :loading="loadingSearch" @input="remoteMethod" style="width: 100%" @change="changeCustomer"
|
|
|
+ v-if="
|
|
|
[30].includes(route.query.processType) ||
|
|
|
!route.query.processType
|
|
|
- "
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in customerList"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
+ ">
|
|
|
+ <el-option v-for="item in customerList" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
- <el-select
|
|
|
- v-model="formData.data.buyCorporationName"
|
|
|
- disabled
|
|
|
- v-else
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
+ <el-select v-model="formData.data.buyCorporationName" disabled v-else style="width: 100%">
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-row style="margin-top: 20px; width: 100%">
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="地址" prop="countryId">
|
|
|
- <el-select
|
|
|
- v-model="formData.data.countryId"
|
|
|
- placeholder="国家"
|
|
|
- filterable
|
|
|
- @change="(val) => getCityData(val, '20', true)"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in countryData"
|
|
|
- :label="item.name"
|
|
|
- :value="item.id"
|
|
|
- >
|
|
|
+ <el-select v-model="formData.data.countryId" placeholder="国家" filterable @change="(val) => getCityData(val, '20', true)">
|
|
|
+ <el-option v-for="item in countryData" :label="item.name" :value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label=" " prop="provinceName">
|
|
|
- <selectCity
|
|
|
- placeholder="省/洲"
|
|
|
- @change="(val) => getCityData(val, '30', true)"
|
|
|
- addressId="provinceId"
|
|
|
- addressName="provinceName"
|
|
|
- v-model="formData.data"
|
|
|
- :data="provinceData"
|
|
|
- >
|
|
|
+ <selectCity placeholder="省/洲" @change="(val) => getCityData(val, '30', true)" addressId="provinceId" addressName="provinceName"
|
|
|
+ v-model="formData.data" :data="provinceData">
|
|
|
</selectCity>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label=" " prop="cityName">
|
|
|
- <selectCity
|
|
|
- placeholder="城市"
|
|
|
- addressId="cityId"
|
|
|
- addressName="cityName"
|
|
|
- v-model="formData.data"
|
|
|
- :data="cityData"
|
|
|
- >
|
|
|
+ <selectCity placeholder="城市" addressId="cityId" addressName="cityName" v-model="formData.data" :data="cityData">
|
|
|
</selectCity>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label=" " prop="buyPostalCode">
|
|
|
- <el-input
|
|
|
- v-model="formData.data.buyPostalCode"
|
|
|
- placeholder="请输入邮编"
|
|
|
- />
|
|
|
+ <el-input v-model="formData.data.buyPostalCode" placeholder="请输入邮编" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -190,23 +115,14 @@
|
|
|
<el-row style="margin-top: 20px; width: 100%">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="联系人" prop="buyContactName">
|
|
|
- <el-autocomplete
|
|
|
- v-model="formData.data.buyContactName"
|
|
|
- :fetch-suggestions="querySearchPerson"
|
|
|
- clearable
|
|
|
- class="inline-input w-50"
|
|
|
- placeholder="请输入联系人"
|
|
|
- @select="handlePerson"
|
|
|
- >
|
|
|
+ <el-autocomplete v-model="formData.data.buyContactName" :fetch-suggestions="querySearchPerson" clearable class="inline-input w-50"
|
|
|
+ placeholder="请输入联系人" @select="handlePerson">
|
|
|
</el-autocomplete>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="16">
|
|
|
<el-form-item label=" " prop="buyContactNumber">
|
|
|
- <el-input
|
|
|
- v-model="formData.data.buyContactNumber"
|
|
|
- placeholder="请输入联系人电话"
|
|
|
- />
|
|
|
+ <el-input v-model="formData.data.buyContactNumber" placeholder="请输入联系人电话" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -218,94 +134,45 @@
|
|
|
<el-row style="margin-top: 20px; width: 100%">
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="币种" prop="currency">
|
|
|
- <el-select
|
|
|
- v-model="formData.data.currency"
|
|
|
- placeholder="请选择币种"
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in accountCurrency"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
+ <el-select v-model="formData.data.currency" placeholder="请选择币种" style="width: 100%">
|
|
|
+ <el-option v-for="item in accountCurrency" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="汇率" prop="rate">
|
|
|
- <el-input-number
|
|
|
- onmousewheel="return false;"
|
|
|
- v-model="formData.data.rate"
|
|
|
- placeholder="请输入汇率"
|
|
|
- style="width: 100%"
|
|
|
- :precision="4"
|
|
|
- :controls="false"
|
|
|
- :min="0"
|
|
|
- :max="100"
|
|
|
- />
|
|
|
+ <el-input-number onmousewheel="return false;" v-model="formData.data.rate" placeholder="请输入汇率" style="width: 100%" :precision="4"
|
|
|
+ :controls="false" :min="0" :max="100" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row style="margin-top: 20px; width: 100%">
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="付款方式" prop="paymentMethod">
|
|
|
- <el-select
|
|
|
- v-model="formData.data.paymentMethod"
|
|
|
- placeholder="请选择付款方式"
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in fundsPaymentMethod"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
+ <el-select v-model="formData.data.paymentMethod" placeholder="请选择付款方式" style="width: 100%">
|
|
|
+ <el-option v-for="item in fundsPaymentMethod" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="预付比例 (%)" prop="advanceRatio">
|
|
|
- <el-input-number
|
|
|
- onmousewheel="return false;"
|
|
|
- v-model="formData.data.advanceRatio"
|
|
|
- placeholder="请输入预付比例"
|
|
|
- style="width: 100%"
|
|
|
- :precision="2"
|
|
|
- :controls="false"
|
|
|
- :min="0"
|
|
|
- :max="100"
|
|
|
- />
|
|
|
+ <el-input-number onmousewheel="return false;" v-model="formData.data.advanceRatio" placeholder="请输入预付比例" style="width: 100%"
|
|
|
+ :precision="2" :controls="false" :min="0" :max="100" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row style="margin-top: 20px; width: 100%">
|
|
|
<el-col :span="18">
|
|
|
<el-form-item label="付款条件" prop="remark">
|
|
|
- <el-input
|
|
|
- v-model="formData.data.remark"
|
|
|
- :rows="2"
|
|
|
- type="textarea"
|
|
|
- placeholder="请输入付款条件"
|
|
|
- />
|
|
|
+ <el-input v-model="formData.data.remark" :rows="2" type="textarea" placeholder="请输入付款条件" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row style="margin-top: 20px; width: 100%">
|
|
|
<el-col :span="9">
|
|
|
<el-form-item label="收款账号" prop="shroffAccountId">
|
|
|
- <el-select
|
|
|
- v-model="formData.data.shroffAccountId"
|
|
|
- placeholder="请选择收款账号"
|
|
|
- style="width: 100%"
|
|
|
- @change="changeShroffAccount"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in accountList"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
+ <el-select v-model="formData.data.shroffAccountId" placeholder="请选择收款账号" style="width: 100%" @change="changeShroffAccount">
|
|
|
+ <el-option v-for="item in accountList" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -323,62 +190,29 @@
|
|
|
<el-collapse-item title="" name="1">
|
|
|
<el-row style="width: 100%">
|
|
|
<el-col :span="9">
|
|
|
- <el-form-item
|
|
|
- label="Beneficiary Name"
|
|
|
- prop="beneficiaryName"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="formData.data.beneficiaryName"
|
|
|
- placeholder="请输入Beneficiary Name"
|
|
|
- />
|
|
|
+ <el-form-item label="Beneficiary Name" prop="beneficiaryName">
|
|
|
+ <el-input v-model="formData.data.beneficiaryName" placeholder="请输入Beneficiary Name" />
|
|
|
</el-form-item>
|
|
|
<div style="height: 20px"></div>
|
|
|
- <el-form-item
|
|
|
- label="Beneficiary Bank"
|
|
|
- prop="beneficiaryBank"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="formData.data.beneficiaryBank"
|
|
|
- placeholder="请输入Beneficiary Bank"
|
|
|
- />
|
|
|
+ <el-form-item label="Beneficiary Bank" prop="beneficiaryBank">
|
|
|
+ <el-input v-model="formData.data.beneficiaryBank" placeholder="请输入Beneficiary Bank" />
|
|
|
</el-form-item>
|
|
|
<div style="height: 20px"></div>
|
|
|
- <el-form-item
|
|
|
- label="Beneficiary Bank Address"
|
|
|
- prop="beneficiaryBankAddress"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="formData.data.beneficiaryBankAddress"
|
|
|
- placeholder="请输入Beneficiary Bank Address"
|
|
|
- />
|
|
|
+ <el-form-item label="Beneficiary Bank Address" prop="beneficiaryBankAddress">
|
|
|
+ <el-input v-model="formData.data.beneficiaryBankAddress" placeholder="请输入Beneficiary Bank Address" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="9">
|
|
|
- <el-form-item
|
|
|
- label="Beneficiary Account Number"
|
|
|
- prop="beneficiaryAccountNumber"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="formData.data.beneficiaryAccountNumber"
|
|
|
- placeholder="请输入Beneficiary Account Number"
|
|
|
- />
|
|
|
+ <el-form-item label="Beneficiary Account Number" prop="beneficiaryAccountNumber">
|
|
|
+ <el-input v-model="formData.data.beneficiaryAccountNumber" placeholder="请输入Beneficiary Account Number" />
|
|
|
</el-form-item>
|
|
|
<div style="height: 20px"></div>
|
|
|
<el-form-item label="Swift Code" prop="swiftCode">
|
|
|
- <el-input
|
|
|
- v-model="formData.data.swiftCode"
|
|
|
- placeholder="请输入Swift Code"
|
|
|
- />
|
|
|
+ <el-input v-model="formData.data.swiftCode" placeholder="请输入Swift Code" />
|
|
|
</el-form-item>
|
|
|
<div style="height: 20px"></div>
|
|
|
- <el-form-item
|
|
|
- label="Beneficiary Address"
|
|
|
- prop="beneficiaryAddress"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="formData.data.beneficiaryAddress"
|
|
|
- placeholder="请输入Beneficiary Address"
|
|
|
- />
|
|
|
+ <el-form-item label="Beneficiary Address" prop="beneficiaryAddress">
|
|
|
+ <el-input v-model="formData.data.beneficiaryAddress" placeholder="请输入Beneficiary Address" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -392,49 +226,25 @@
|
|
|
<el-row style="margin-top: 20px; width: 100%">
|
|
|
<el-col :span="6" v-show="showAllData">
|
|
|
<el-form-item label="报价有效期 (天)" prop="effective">
|
|
|
- <el-input-number
|
|
|
- onmousewheel="return false;"
|
|
|
- v-model="formData.data.effective"
|
|
|
- placeholder="请输入有效期"
|
|
|
- style="width: 100%"
|
|
|
- :precision="0"
|
|
|
- :controls="false"
|
|
|
- :min="0"
|
|
|
- />
|
|
|
+ <el-input-number onmousewheel="return false;" v-model="formData.data.effective" placeholder="请输入有效期" style="width: 100%"
|
|
|
+ :precision="0" :controls="false" :min="0" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="交货期限" prop="deliveryTime">
|
|
|
- <el-date-picker
|
|
|
- v-model="formData.data.deliveryTime"
|
|
|
- type="date"
|
|
|
- placeholder="请选择交货期限"
|
|
|
- value-format="YYYY-MM-DD"
|
|
|
- />
|
|
|
+ <el-date-picker v-model="formData.data.deliveryTime" type="date" placeholder="请选择交货期限" value-format="YYYY-MM-DD" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="运输方式" prop="transportMethod">
|
|
|
- <el-select
|
|
|
- v-model="formData.data.transportMethod"
|
|
|
- placeholder="请选择运输方式"
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in shippingMethod"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
+ <el-select v-model="formData.data.transportMethod" placeholder="请选择运输方式" style="width: 100%">
|
|
|
+ <el-option v-for="item in shippingMethod" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="运输说明" prop="transportRemark">
|
|
|
- <el-input
|
|
|
- v-model="formData.data.transportRemark"
|
|
|
- placeholder="请输入运输说明"
|
|
|
- />
|
|
|
+ <el-input v-model="formData.data.transportRemark" placeholder="请输入运输说明" />
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -442,46 +252,24 @@
|
|
|
</template>
|
|
|
<template #commodity>
|
|
|
<div style="width: 100%">
|
|
|
- <el-button type="primary" @click="openProductCompany = true" plain
|
|
|
- >标准产品库</el-button
|
|
|
- >
|
|
|
- <el-button type="primary" @click="clickCustomerProduct()" plain
|
|
|
- >客户产品库</el-button
|
|
|
- >
|
|
|
- <el-table
|
|
|
- :data="formData.data.sampleProductList"
|
|
|
- style="width: 100%; margin-top: 16px"
|
|
|
- >
|
|
|
+ <el-button type="primary" @click="openProductCompany = true" plain>标准产品库</el-button>
|
|
|
+ <el-button type="primary" @click="clickCustomerProduct()" plain>客户产品库</el-button>
|
|
|
+ <el-table :data="formData.data.sampleProductList" style="width: 100%; margin-top: 16px">
|
|
|
<el-table-column label="商品图片" width="80">
|
|
|
<template #default="{ row }">
|
|
|
<div v-if="row.fileUrl">
|
|
|
- <img
|
|
|
- :src="row.fileUrl"
|
|
|
- class="pic"
|
|
|
- @click="onPicture(row.fileUrl)"
|
|
|
- />
|
|
|
+ <img :src="row.fileUrl" class="pic" @click="onPicture(row.fileUrl)" />
|
|
|
</div>
|
|
|
<div v-else></div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="productCnName"
|
|
|
- label="商品中文名"
|
|
|
- min-width="130"
|
|
|
- />
|
|
|
+ <el-table-column prop="productCnName" label="商品中文名" min-width="130" />
|
|
|
<el-table-column label="商品英文名" min-width="180">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width: 100%">
|
|
|
- <el-form-item
|
|
|
- :prop="'sampleProductList.' + $index + '.productName'"
|
|
|
- :rules="rules.productName"
|
|
|
- :inline-message="true"
|
|
|
- class="shrinkPadding"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="row.productName"
|
|
|
- placeholder="请输入商品名称"
|
|
|
- />
|
|
|
+ <el-form-item :prop="'sampleProductList.' + $index + '.productName'" :rules="rules.productName" :inline-message="true"
|
|
|
+ class="shrinkPadding">
|
|
|
+ <el-input v-model="row.productName" placeholder="请输入商品名称" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -489,12 +277,8 @@
|
|
|
<el-table-column label="尺寸 cm*cm*cm" width="140">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width: 100%">
|
|
|
- <el-form-item
|
|
|
- :prop="'sampleProductList.' + $index + '.productModel'"
|
|
|
- :rules="rules.productModel"
|
|
|
- :inline-message="true"
|
|
|
- class="shrinkPadding"
|
|
|
- >
|
|
|
+ <el-form-item :prop="'sampleProductList.' + $index + '.productModel'" :rules="rules.productModel" :inline-message="true"
|
|
|
+ class="shrinkPadding">
|
|
|
<el-input v-model="row.productModel" placeholder="请输入" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
@@ -503,22 +287,10 @@
|
|
|
<el-table-column label="数量" width="130">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width: 100%">
|
|
|
- <el-form-item
|
|
|
- :prop="'sampleProductList.' + $index + '.quantity'"
|
|
|
- :rules="rules.quantity"
|
|
|
- :inline-message="true"
|
|
|
- class="shrinkPadding"
|
|
|
- >
|
|
|
- <el-input-number
|
|
|
- onmousewheel="return false;"
|
|
|
- v-model="row.quantity"
|
|
|
- placeholder="请输入"
|
|
|
- style="width: 100%"
|
|
|
- :precision="0"
|
|
|
- :controls="false"
|
|
|
- :min="0"
|
|
|
- @change="calculationAmount('quantity')"
|
|
|
- />
|
|
|
+ <el-form-item :prop="'sampleProductList.' + $index + '.quantity'" :rules="rules.quantity" :inline-message="true"
|
|
|
+ class="shrinkPadding">
|
|
|
+ <el-input-number onmousewheel="return false;" v-model="row.quantity" placeholder="请输入" style="width: 100%" :precision="0"
|
|
|
+ :controls="false" :min="0" @change="calculationAmount('quantity')" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -526,22 +298,9 @@
|
|
|
<el-table-column label="单价" width="140" v-if="showAllData">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width: 100%">
|
|
|
- <el-form-item
|
|
|
- :prop="'sampleProductList.' + $index + '.price'"
|
|
|
- :rules="rules.price"
|
|
|
- :inline-message="true"
|
|
|
- class="shrinkPadding"
|
|
|
- >
|
|
|
- <el-input-number
|
|
|
- onmousewheel="return false;"
|
|
|
- v-model="row.price"
|
|
|
- placeholder="请输入"
|
|
|
- style="width: 100%"
|
|
|
- :precision="2"
|
|
|
- :controls="false"
|
|
|
- :min="0"
|
|
|
- @change="calculationAmount()"
|
|
|
- />
|
|
|
+ <el-form-item :prop="'sampleProductList.' + $index + '.price'" :rules="rules.price" :inline-message="true" class="shrinkPadding">
|
|
|
+ <el-input-number onmousewheel="return false;" v-model="row.price" placeholder="请输入" style="width: 100%" :precision="2"
|
|
|
+ :controls="false" :min="0" @change="calculationAmount()" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -549,23 +308,10 @@
|
|
|
<el-table-column label="贸易方式" width="140" v-if="showAllData">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width: 100%">
|
|
|
- <el-form-item
|
|
|
- :prop="'sampleProductList.' + $index + '.tradeMethods'"
|
|
|
- :rules="rules.tradeMethods"
|
|
|
- :inline-message="true"
|
|
|
- class="shrinkPadding"
|
|
|
- >
|
|
|
- <el-select
|
|
|
- v-model="row.tradeMethods"
|
|
|
- placeholder="请选择"
|
|
|
- style="width: 100%"
|
|
|
- >
|
|
|
- <el-option
|
|
|
- v-for="item in tradeMethods"
|
|
|
- :key="item.value"
|
|
|
- :label="item.label"
|
|
|
- :value="item.value"
|
|
|
- />
|
|
|
+ <el-form-item :prop="'sampleProductList.' + $index + '.tradeMethods'" :rules="rules.tradeMethods" :inline-message="true"
|
|
|
+ class="shrinkPadding">
|
|
|
+ <el-select v-model="row.tradeMethods" placeholder="请选择" style="width: 100%">
|
|
|
+ <el-option v-for="item in tradeMethods" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</div>
|
|
@@ -574,36 +320,17 @@
|
|
|
<el-table-column label="包装方式" width="180">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width: 100%">
|
|
|
- <el-form-item
|
|
|
- :prop="'sampleProductList.' + $index + '.packMethod'"
|
|
|
- :rules="rules.packMethod"
|
|
|
- :inline-message="true"
|
|
|
- class="shrinkPadding"
|
|
|
- >
|
|
|
+ <el-form-item :prop="'sampleProductList.' + $index + '.packMethod'" :rules="rules.packMethod" :inline-message="true"
|
|
|
+ class="shrinkPadding">
|
|
|
<el-input v-model="row.packMethod" placeholder="请输入" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="amount"
|
|
|
- :label="'金额 ( ' + formData.data.currency + ' )'"
|
|
|
- width="130"
|
|
|
- v-if="showAllData"
|
|
|
- />
|
|
|
- <el-table-column
|
|
|
- label="操作"
|
|
|
- width="60"
|
|
|
- align="center"
|
|
|
- fixed="right"
|
|
|
- >
|
|
|
+ <el-table-column prop="amount" :label="'金额 ( ' + formData.data.currency + ' )'" width="130" v-if="showAllData" />
|
|
|
+ <el-table-column label="操作" width="60" align="center" fixed="right">
|
|
|
<template #default="{ row, $index }">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- link
|
|
|
- @click="handleRemove($index, row)"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
+ <el-button type="primary" link @click="handleRemove($index, row)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -611,30 +338,17 @@
|
|
|
</template>
|
|
|
<template #file>
|
|
|
<div style="width: 100%">
|
|
|
- <el-upload
|
|
|
- v-model:fileList="formData.data.fileList"
|
|
|
- action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
|
|
|
- :data="uploadData"
|
|
|
- multiple
|
|
|
- :before-upload="uploadFile"
|
|
|
- :on-success="handleSuccess"
|
|
|
- :on-preview="onPreviewFile"
|
|
|
- >
|
|
|
+ <el-upload v-model:fileList="formData.data.fileList" action="https://winfaster.obs.cn-south-1.myhuaweicloud.com" :data="uploadData" multiple
|
|
|
+ :before-upload="uploadFile" :on-success="handleSuccess" :on-preview="onPreviewFile">
|
|
|
<el-button type="primary" plain>选择</el-button>
|
|
|
</el-upload>
|
|
|
</div>
|
|
|
</template>
|
|
|
<template #indication>
|
|
|
<div style="width: 100%">
|
|
|
- <el-upload
|
|
|
- v-model:fileList="formData.data.packageFileList"
|
|
|
- action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
|
|
|
- :data="indicationUploadData"
|
|
|
- multiple
|
|
|
- :before-upload="indicationUploadFile"
|
|
|
- :on-success="handleSuccess"
|
|
|
- :on-preview="onPreviewFile"
|
|
|
- >
|
|
|
+ <el-upload v-model:fileList="formData.data.packageFileList" action="https://winfaster.obs.cn-south-1.myhuaweicloud.com"
|
|
|
+ :data="indicationUploadData" multiple :before-upload="indicationUploadFile" :on-success="handleSuccess"
|
|
|
+ :on-preview="onPreviewFile">
|
|
|
<el-button type="primary" plain>选择</el-button>
|
|
|
</el-upload>
|
|
|
</div>
|
|
@@ -642,25 +356,13 @@
|
|
|
<template #otherCharge>
|
|
|
<div style="width: 100%">
|
|
|
<el-button type="primary" @click="clickAdd()">添加行</el-button>
|
|
|
- <el-table
|
|
|
- :data="formData.data.sampleProjectList"
|
|
|
- style="width: 100%; margin-top: 16px"
|
|
|
- >
|
|
|
+ <el-table :data="formData.data.sampleProjectList" style="width: 100%; margin-top: 16px">
|
|
|
<el-table-column label="收费项目" width="220">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width: 100%">
|
|
|
- <el-form-item
|
|
|
- :prop="'sampleProjectList.' + $index + '.payName'"
|
|
|
- :rules="rules.payName"
|
|
|
- :inline-message="true"
|
|
|
- >
|
|
|
- <el-autocomplete
|
|
|
- v-model="row.payName"
|
|
|
- :fetch-suggestions="querySearch"
|
|
|
- clearable
|
|
|
- class="inline-input w-50"
|
|
|
- placeholder="请输入收费项目"
|
|
|
- />
|
|
|
+ <el-form-item :prop="'sampleProjectList.' + $index + '.payName'" :rules="rules.payName" :inline-message="true">
|
|
|
+ <el-autocomplete v-model="row.payName" :fetch-suggestions="querySearch" clearable class="inline-input w-50"
|
|
|
+ placeholder="请输入收费项目" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -668,50 +370,25 @@
|
|
|
<el-table-column label="备注">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width: 100%">
|
|
|
- <el-form-item
|
|
|
- :prop="'sampleProjectList.' + $index + '.remark'"
|
|
|
- >
|
|
|
+ <el-form-item :prop="'sampleProjectList.' + $index + '.remark'">
|
|
|
<el-input v-model="row.remark" placeholder="请输入备注" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- :label="'金额 ( ' + formData.data.currency + ' )'"
|
|
|
- width="130"
|
|
|
- >
|
|
|
+ <el-table-column :label="'金额 ( ' + formData.data.currency + ' )'" width="130">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width: 100%">
|
|
|
- <el-form-item
|
|
|
- :prop="'sampleProjectList.' + $index + '.amount'"
|
|
|
- :rules="rules.amount"
|
|
|
- :inline-message="true"
|
|
|
- class="shrinkPadding"
|
|
|
- >
|
|
|
- <el-input-number
|
|
|
- onmousewheel="return false;"
|
|
|
- v-model="row.amount"
|
|
|
- placeholder="请输入金额"
|
|
|
- style="width: 100%"
|
|
|
- :precision="2"
|
|
|
- :controls="false"
|
|
|
- :min="0"
|
|
|
- @change="totalAmount()"
|
|
|
- />
|
|
|
+ <el-form-item :prop="'sampleProjectList.' + $index + '.amount'" :rules="rules.amount" :inline-message="true" class="shrinkPadding">
|
|
|
+ <el-input-number onmousewheel="return false;" v-model="row.amount" placeholder="请输入金额" style="width: 100%" :precision="2"
|
|
|
+ :controls="false" :min="0" @change="totalAmount()" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- label="操作"
|
|
|
- width="60"
|
|
|
- align="center"
|
|
|
- fixed="right"
|
|
|
- >
|
|
|
+ <el-table-column label="操作" width="60" align="center" fixed="right">
|
|
|
<template #default="{ $index }">
|
|
|
- <el-button type="primary" link @click="handleDelete($index)"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
+ <el-button type="primary" link @click="handleDelete($index)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -721,16 +398,8 @@
|
|
|
<div style="width: 100%; display: flex">
|
|
|
<div style="width: calc(100% - 190px)"></div>
|
|
|
<div style="width: 130px; padding: 0 12px">
|
|
|
- <el-form-item
|
|
|
- label="合同总金额"
|
|
|
- prop="amount"
|
|
|
- class="shrinkPadding"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- v-model="formData.data.amount"
|
|
|
- placeholder="合同总金额"
|
|
|
- disabled
|
|
|
- />
|
|
|
+ <el-form-item label="合同总金额" prop="amount" class="shrinkPadding">
|
|
|
+ <el-input v-model="formData.data.amount" placeholder="合同总金额" disabled />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -804,38 +473,18 @@
|
|
|
<el-row>
|
|
|
<el-col :span="10" style="border: 1px solid #ebeef5; padding: 10px">
|
|
|
<el-form-item label="出货日期" required>
|
|
|
- <el-date-picker
|
|
|
- v-model="formData.data.shipmentTime"
|
|
|
- type="date"
|
|
|
- placeholder="请选择出货日期"
|
|
|
- value-format="YYYY-MM-DD"
|
|
|
- />
|
|
|
+ <el-date-picker v-model="formData.data.shipmentTime" type="date" placeholder="请选择出货日期" value-format="YYYY-MM-DD" />
|
|
|
</el-form-item>
|
|
|
- <el-table
|
|
|
- :data="formData.data.sampleWaitShipmentList"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
- ref="tableDom"
|
|
|
- style="margin: 15px 0"
|
|
|
- >
|
|
|
+ <el-table :data="formData.data.sampleWaitShipmentList" @selection-change="handleSelectionChange" ref="tableDom" style="margin: 15px 0">
|
|
|
<el-table-column type="selection" width="55" />
|
|
|
<el-table-column prop="productCode" label="商品编号" />
|
|
|
<el-table-column prop="productName" label="商品名称" />
|
|
|
<el-table-column label="出货数量" width="160">
|
|
|
<template #default="{ row, $index }">
|
|
|
<div style="width: 100%">
|
|
|
- <el-form-item
|
|
|
- :prop="'sampleWaitShipmentList.' + $index + '.quantity'"
|
|
|
- :inline-message="true"
|
|
|
- >
|
|
|
- <el-input-number
|
|
|
- onmousewheel="return false;"
|
|
|
- v-model="row.quantity"
|
|
|
- placeholder="请输入数量"
|
|
|
- style="width: 100%"
|
|
|
- :precision="0"
|
|
|
- :controls="false"
|
|
|
- :min="0"
|
|
|
- />
|
|
|
+ <el-form-item :prop="'sampleWaitShipmentList.' + $index + '.quantity'" :inline-message="true">
|
|
|
+ <el-input-number onmousewheel="return false;" v-model="row.quantity" placeholder="请输入数量" style="width: 100%" :precision="0"
|
|
|
+ :controls="false" :min="0" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -843,40 +492,21 @@
|
|
|
<el-table-column prop="waitQuantity" label="剩余数量" />
|
|
|
</el-table>
|
|
|
<div style="text-align: center">
|
|
|
- <el-button type="primary" @click="handleAddShipment"
|
|
|
- >添加</el-button
|
|
|
- >
|
|
|
+ <el-button type="primary" @click="handleAddShipment">添加</el-button>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="14">
|
|
|
<div style="padding: 10px; margin-top: 77px">
|
|
|
- <el-table
|
|
|
- :data="formData.data.sampleShipmentList"
|
|
|
- :span-method="objectSpanMethod"
|
|
|
- >
|
|
|
- <el-table-column
|
|
|
- prop="shipmentTime"
|
|
|
- label="出货日期"
|
|
|
- width="155"
|
|
|
- >
|
|
|
+ <el-table :data="formData.data.sampleShipmentList" :span-method="objectSpanMethod">
|
|
|
+ <el-table-column prop="shipmentTime" label="出货日期" width="155">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="productCode" label="商品编码" />
|
|
|
<el-table-column prop="productName" label="商品名称" />
|
|
|
<el-table-column prop="quantity" label="出货数量" width="160">
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- align="center"
|
|
|
- label="操作"
|
|
|
- width="80"
|
|
|
- fixed="right"
|
|
|
- >
|
|
|
+ <el-table-column align="center" label="操作" width="80" fixed="right">
|
|
|
<template #default="{ row, $index }">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- link
|
|
|
- @click="clickDelete($index)"
|
|
|
- >删除</el-button
|
|
|
- >
|
|
|
+ <el-button type="primary" link @click="clickDelete($index)">删除</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -887,31 +517,12 @@
|
|
|
</template>
|
|
|
</byForm>
|
|
|
|
|
|
- <el-dialog
|
|
|
- v-if="openProductCompany"
|
|
|
- v-model="openProductCompany"
|
|
|
- title="公司产品库"
|
|
|
- width="90%"
|
|
|
- append-to-body
|
|
|
- >
|
|
|
- <CompanyProduct
|
|
|
- :selectStatus="true"
|
|
|
- @selectProduct="selectProduct"
|
|
|
- ></CompanyProduct>
|
|
|
+ <el-dialog v-if="openProductCompany" v-model="openProductCompany" title="公司产品库" width="90%" append-to-body>
|
|
|
+ <CompanyProduct :selectStatus="true" @selectProduct="selectProduct"></CompanyProduct>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog
|
|
|
- v-if="openProductCustomer"
|
|
|
- v-model="openProductCustomer"
|
|
|
- title="客户产品库"
|
|
|
- width="90%"
|
|
|
- append-to-body
|
|
|
- >
|
|
|
- <CustomerProduct
|
|
|
- :selectStatus="true"
|
|
|
- :buyCorporationId="formData.data.buyCorporationId"
|
|
|
- @selectProduct="selectProduct"
|
|
|
- ></CustomerProduct>
|
|
|
+ <el-dialog v-if="openProductCustomer" v-model="openProductCustomer" title="客户产品库" width="90%" append-to-body>
|
|
|
+ <CustomerProduct :selectStatus="true" :buyCorporationId="formData.data.buyCorporationId" @selectProduct="selectProduct"></CustomerProduct>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -1018,20 +629,36 @@ const formConfig = computed(() => {
|
|
|
isShow: showAllData.value,
|
|
|
},
|
|
|
{
|
|
|
+ type: "title",
|
|
|
+ title: "付款信息",
|
|
|
+ haveLine: true,
|
|
|
+ isShow: showAllData.value,
|
|
|
+ },
|
|
|
+ {
|
|
|
type: "slot",
|
|
|
slotName: "payment",
|
|
|
- label: "付款信息",
|
|
|
+ label: "",
|
|
|
isShow: showAllData.value,
|
|
|
},
|
|
|
{
|
|
|
+ type: "title",
|
|
|
+ title: "交付信息",
|
|
|
+ haveLine: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
type: "slot",
|
|
|
slotName: "delivery",
|
|
|
- label: "交付信息",
|
|
|
+ label: "",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "title",
|
|
|
+ title: "商品信息",
|
|
|
+ haveLine: true,
|
|
|
},
|
|
|
{
|
|
|
type: "slot",
|
|
|
slotName: "commodity",
|
|
|
- label: "商品信息",
|
|
|
+ label: "",
|
|
|
},
|
|
|
{
|
|
|
type: "slot",
|
|
@@ -1044,9 +671,15 @@ const formConfig = computed(() => {
|
|
|
label: "包装指示",
|
|
|
},
|
|
|
{
|
|
|
+ type: "title",
|
|
|
+ title: "其他收费项目",
|
|
|
+ haveLine: true,
|
|
|
+ isShow: showAllData.value,
|
|
|
+ },
|
|
|
+ {
|
|
|
type: "slot",
|
|
|
slotName: "otherCharge",
|
|
|
- label: "其他收费项目",
|
|
|
+ label: "",
|
|
|
isShow: showAllData.value,
|
|
|
},
|
|
|
{
|
|
@@ -1055,9 +688,14 @@ const formConfig = computed(() => {
|
|
|
isShow: showAllData.value,
|
|
|
},
|
|
|
{
|
|
|
+ type: "title",
|
|
|
+ title: "出货计划",
|
|
|
+ haveLine: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
type: "slot",
|
|
|
slotName: "shipment",
|
|
|
- label: "出货计划",
|
|
|
+ label: "",
|
|
|
},
|
|
|
// {
|
|
|
// type: "select",
|