fan0987 3 месяцев назад
Родитель
Сommit
ab52ba9ce1
2 измененных файлов с 20 добавлено и 15 удалено
  1. 11 6
      bidding-ui/src/views/mine/bankinfo.vue
  2. 9 9
      ruoyi-ui/src/views/purchase/otb/insert.vue

+ 11 - 6
bidding-ui/src/views/mine/bankinfo.vue

@@ -5,37 +5,42 @@
     <el-alert v-if="bankinfoStatus == 3" :title="bankinfoStatusMap[bankinfoStatus]" type="error" center></el-alert>
     <el-form :model="form" ref="ruleForm" label-width="120px" :rules="rules" style="margin-top: 10px;">
       <el-row>
+        <el-col :span="12">
+          <el-form-item label="账户名称" prop="hName">
+            <el-input type="text" v-model="supplier.hName" :disabled="true" />
+          </el-form-item>
+        </el-col>
         <el-col :span="12">
           <el-form-item label="纳税人识别号" prop="hEncode">
             <el-input type="text" v-model="form.hEncode" :disabled="!isEdit" />
           </el-form-item>
         </el-col>
+      </el-row>
+      <el-row>
         <el-col :span="12">
           <el-form-item label="开户行" prop="hBank">
             <el-input type="text" v-model="form.hBank" :disabled="!isEdit" />
           </el-form-item>
         </el-col>
-      </el-row>
-      <el-row>
         <el-col :span="12">
           <el-form-item label="银行账号" prop="hAccount">
             <el-input type="text" v-model="form.hAccount" :disabled="!isEdit" />
           </el-form-item>
         </el-col>
+      </el-row>
+      <el-row>
         <el-col :span="12">
           <el-form-item label="开票地址" prop="hBankAddress">
             <el-input type="text" v-model="form.hBankAddress" :disabled="!isEdit" />
           </el-form-item>
         </el-col>
-      </el-row>
-      <el-row>
-        <el-col :span="24">
+        <el-col :span="12">
           <el-form-item label="开户许可证" prop="hProve">
             <el-input v-show="false" v-model="form.hProve" :disabled="!isEdit" />
             <file-upload-json v-if="isEdit" @input="handleUpload" :limit="1" :value="fjAnnex.uploadFiles"
               :file-size="50" :file-type="['pdf']" />
             <div v-if="!isEdit">
-              <div v-for="(item, index) in fjAnnex.uploadFiles">
+              <div v-for="(item, index) in fjAnnex.uploadFiles" :key="index">
                 <a :href="item.url" style="color: blue;" target="_blank">{{ item.name }}</a>
               </div>
             </div>

+ 9 - 9
ruoyi-ui/src/views/purchase/otb/insert.vue

@@ -46,11 +46,8 @@
             </el-form-item>
           </el-col>
           <el-col :span="8">
-            <el-form-item label="报价方式" prop="quoteMode">
-              <el-select style="width: 100%" v-model="form.quoteMode" placeholder="请选择报价方式">
-                <el-option v-for="dict in dict.type.quote_mode" :key="dict.value" :label="dict.label"
-                  :value="dict.value"></el-option>
-              </el-select>
+            <el-form-item label="投标保证金" prop="earnestMoney">
+              <el-input-number v-model="form.earnestMoney" label="请输入投标保证金" :min="0"></el-input-number>
             </el-form-item>
           </el-col>
           <el-col :span="8">
@@ -69,8 +66,11 @@
             </el-form-item>
           </el-col>
           <el-col :span="8">
-            <el-form-item label="投标保证金" prop="earnestMoney">
-              <el-input-number v-model="form.earnestMoney" label="请输入投标保证金" :min="0"></el-input-number>
+            <el-form-item label="报价方式" prop="quoteMode">
+              <el-select style="width: 100%" v-model="form.quoteMode" placeholder="请选择报价方式">
+                <el-option v-for="dict in dict.type.quote_mode" :key="dict.value" :label="dict.label"
+                  :value="dict.value" :disabled="form.buyingMode == 3 ? dict.label != '一次' : false"></el-option>
+              </el-select>
             </el-form-item>
           </el-col>
           <el-col :span="8">
@@ -389,6 +389,7 @@ export default {
     changeBuyingMode () {
       if (this.form.buyingMode == 3) {
         this.form.allowTenderAmount = 2
+        this.form.quoteMode = ''
       } else {
         this.form.allowTenderAmount = 3
       }
@@ -546,9 +547,9 @@ export default {
       this.$tab.closePage()
     },
     handleSavePlan () {
-      this.fullscreenLoading = true;
       this.$refs['form'].validate(valid => {
         if (valid) {
+          this.fullscreenLoading = true;
           if (this.form.aid) {
             updatePlan(this.form).then(res => {
               this.$message.success("修改成功");
@@ -568,7 +569,6 @@ export default {
               this.fullscreenLoading = false;
             })
           }
-
         } else {
           window.scrollTo({
             top: 0,