Forráskód Böngészése

销售合同银行名称添加

zhangxiaojun 2 hete%!(EXTRA string=óta)
szülő
commit
3952d5f079

+ 4 - 7
src/views/myTrade/purchaseAndSaleContract/salesContract/components/Basic.vue

@@ -83,14 +83,14 @@
           />
         </el-select>
       </el-form-item>
-      <el-form-item label="起运港" prop="portDeparture">
+      <el-form-item label="起运港(英文)" prop="portDeparture">
         <el-input
           v-model="ruleForm.portDeparture"
           :disabled="disabled"
           placeholder="请输入起运港"
         />
       </el-form-item>
-      <el-form-item label="目的港" prop="portDestination">
+      <el-form-item label="目的港(英文)" prop="portDestination">
         <el-input
           v-model="ruleForm.portDestination"
           :disabled="disabled"
@@ -114,7 +114,7 @@
       <el-form-item v-if="ruleForm.templateType === 'N'" label="签署日期" prop="signDate">
         <el-date-picker v-model="ruleForm.signDate" value-format="yyyy-MM-dd" type="date" placeholder="选择签署日期" style="width: 100%;" />
       </el-form-item>
-      <el-form-item label="成交汇率 (美元)" prop="exchangeRate">
+      <el-form-item label="成交汇率 (美元)" prop="exchangeRate" :rules="[{ required: ruleForm.exportType === 'proxy_export' && enterpriseInfo.proxyDistrictCode === 'CN_MAINLAND', message: '请输入成交汇率', trigger: 'blur' }]">
         <el-input
           v-model="ruleForm.exchangeRate"
           placeholder="请输入成交汇率 (美元)"
@@ -190,9 +190,6 @@ export default {
         ],
         signDate: [
           { required: true, message: '请选择签署日期', trigger: 'blur' }
-        ],
-        exchangeRate: [
-          { required: true, message: '请输入成交汇率', trigger: 'blur' }
         ]
       },
       platformList: [], // 代理商
@@ -201,7 +198,7 @@ export default {
   },
   computed: {
     ...mapGetters([
-      'constant'
+      'constant', 'enterpriseInfo'
     ])
   },
   watch: {

+ 13 - 0
src/views/myTrade/purchaseAndSaleContract/salesContract/components/Terms.vue

@@ -84,6 +84,13 @@
           placeholder="请输入开户行"
         />
       </el-form-item>
+      <el-form-item label="银行名称" prop="bankName">
+        <el-input
+          v-model="ruleForm.bankName"
+          :disabled="disabled"
+          placeholder="请输入银行名称"
+        />
+      </el-form-item>
       <el-form-item label="Swift Code" prop="swiftCode">
         <el-input
           v-model="ruleForm.swiftCode"
@@ -163,6 +170,7 @@ export default {
         accountName: '',
         accountNumber: '',
         openingBank: '',
+        bankName: '',
         swiftCode: '',
         remark: ''
       },
@@ -185,6 +193,9 @@ export default {
         openingBank: [
           { required: true, message: `请输入开户行`, trigger: 'blur' }
         ],
+        bankName: [
+          { required: true, message: `请输入银行名称`, trigger: 'blur' }
+        ],
         swiftCode: [
           { required: true, validator: validateSwiftCode, trigger: 'blur' }
         ]
@@ -360,6 +371,7 @@ export default {
             accountName,
             accountNumber,
             openingBank,
+            bankName,
             swiftCode,
             remark,
             titleInfo,
@@ -372,6 +384,7 @@ export default {
             accountName,
             accountNumber,
             openingBank,
+            bankName,
             swiftCode,
             remark
           }