Bladeren bron

意向金

LAPTOP-FO2T5SIU\35838 8 maanden geleden
bovenliggende
commit
700fdce1f7

+ 22 - 3
src/views/customerManagement/intentionalDeposit/addIntentionalDeposit.vue

@@ -67,7 +67,7 @@
             </el-row>
             <el-row>
               <el-col :span="3" class="col-txt"><span>附件</span></el-col>
-              <el-col :span="21" class="col-input">
+              <el-col :span="15" class="col-input">
                 <el-form-item>
                   <el-upload
                     class="upload-demo"
@@ -89,6 +89,17 @@
                   </el-upload>
                 </el-form-item>
               </el-col>
+              <el-col :span="6" class="col-input">
+                <el-button type="text" style="float: right">意向金收据下载</el-button>
+              </el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="3" class="col-txt"><span>经办时间</span></el-col>
+              <el-col :span="3" class="col-input"><span>{{ dateStr }}</span></el-col>
+            </el-row>
+            <el-row>
+              <el-col :span="3" class="col-txt"><span>经办人</span></el-col>
+              <el-col :span="3" class="col-input"><span>{{ username }}</span></el-col>
             </el-row>
           </el-card>
         </el-col>
@@ -126,11 +137,17 @@ export default {
             addLoading: false,
             serialNumber: '',
             fileList: [],
-            customerManagementId: ''
+            customerManagementId: '',
+            dateStr: '',
+            username: ''
         }
     },
     mounted() {
-
+        const myDate = new Date()
+        const dateStr = myDate.getFullYear() + '-' + (myDate.getMonth() + 1) + '-' + myDate.getDate()
+        const username = this.$common.currUser().username
+        this.dateStr = dateStr
+        this.username = username
     },
     methods: {
         initData(data) {
@@ -154,6 +171,8 @@ export default {
                     if (this.form.fileList) {
                         this.fileList = JSON.parse(this.form.fileList)
                     }
+                    this.dateStr = this.form.createdAt
+                    this.username = this.form.createdName
                 } else {
                     this.getSerialNumber(val)
                     this.getFQById(val)

+ 8 - 2
src/views/customerManagement/numberManagement/addCustomer.vue

@@ -112,7 +112,7 @@
     </el-form>
     <div style="text-align: right">
       <el-button @click="cancel">取 消</el-button>
-      <el-button type="primary" @click="confirmSubmit()">提 交</el-button>
+      <el-button v-if="!isView" type="primary" @click="confirmSubmit()">提 交</el-button>
     </div>
 
   </div>
@@ -145,7 +145,8 @@ export default {
 
             },
             addLoading: false,
-            options: []
+            options: [],
+            isView: false
         }
     },
     mounted() {
@@ -153,6 +154,11 @@ export default {
     },
     methods: {
         initData(data) {
+            if(data.isView){
+                this.isView = true
+            }else {
+                this.isView = false
+            }
             this.initDict(this.dc_key).then(res => {
                 this.getById(data.id)
             })

+ 7 - 2
src/views/customerManagement/numberManagement/index.vue

@@ -372,8 +372,13 @@ export default {
                 this.$refs.addIntentionalDeposit.initData(val)
             })
         },
-        handleView() {
-
+        handleView(val) {
+            val.isView = true
+            this.dialogAddVisible = true
+            // 新vue时调用的方法
+            this.$nextTick(() => {
+                this.$refs.addCustomer.initData(val)
+            })
         },
         downLoad() {