zxz 1 年之前
父節點
當前提交
fb23ed4b27
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      pages/reimbursement/request_funds.vue

+ 2 - 2
pages/reimbursement/request_funds.vue

@@ -320,6 +320,8 @@
 			}
 		},
 		onLoad(options) {
+			this.detailData.payerHeader = uni.getStorageSync('compName1').company
+			this.$forceUpdate()
 			this.reType = options.reType
 			this.expensesType = options.expensesType
 			if (this.reType == 2 || this.expensesType == 2) {
@@ -335,8 +337,6 @@
 			}
 		},
 		onShow() {
-			this.detailData.payerHeader = uni.getStorageSync('compName1').company
-			this.$forceUpdate()
 			this.warehouseInfo = uni.getStorageSync('theWarehouse');
 			if (this.warehouseInfo && this.detailData.purpose == "库点费用") {
 				this.detailData.warehouseName = this.warehouseInfo.warehouseName