|
|
@@ -242,6 +242,11 @@
|
|
|
<input type="digit" ref="input" style="width:61.8%;text-align:center;" v-model="outAmount" :adjust-position="false" class="inp-input" />
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="inp-list-line remark-line">
|
|
|
+ <view class="line-input">
|
|
|
+ <input type="text" class="remark-input" v-model="outAmountRemark" maxlength="50" placeholder="备注(选填)" :adjust-position="false" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
</modal-module>
|
|
|
@@ -254,6 +259,11 @@
|
|
|
<input type="digit" ref="input" style="width:61.8%;text-align:center;" v-model="inAmount" :adjust-position="false" class="inp-input" />
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="inp-list-line remark-line">
|
|
|
+ <view class="line-input">
|
|
|
+ <input type="text" class="remark-input" v-model="inAmountRemark" maxlength="50" placeholder="备注(选填)" :adjust-position="false" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</template>
|
|
|
</modal-module>
|
|
|
@@ -345,6 +355,8 @@ export default {
|
|
|
version:'1.0.0',
|
|
|
inAmount:'',
|
|
|
outAmount:'',
|
|
|
+ inAmountRemark:'',
|
|
|
+ outAmountRemark:'',
|
|
|
outAmountShow:false,
|
|
|
inAmountShow:false,
|
|
|
inAmountFocus:false,
|
|
|
@@ -455,6 +467,7 @@ export default {
|
|
|
uni.makePhoneCall({ phoneNumber: phone })
|
|
|
},
|
|
|
inAmountFn(){
|
|
|
+ this.inAmountRemark = ''
|
|
|
this.inAmountShow = true
|
|
|
setTimeout(x => {
|
|
|
this.$nextTick(() => this.setInAmountFocus())
|
|
|
@@ -464,6 +477,7 @@ export default {
|
|
|
this.inAmountFocus = true
|
|
|
},
|
|
|
outAmountFn(){
|
|
|
+ this.outAmountRemark = ''
|
|
|
this.outAmountShow = true
|
|
|
setTimeout(x => {
|
|
|
this.$nextTick(() => this.setOutAmountFocus())
|
|
|
@@ -472,20 +486,30 @@ export default {
|
|
|
setOutAmountFocus(){
|
|
|
this.outAmountFocus = true
|
|
|
},
|
|
|
+ resetOutAmountForm(){
|
|
|
+ this.outAmount = ''
|
|
|
+ this.outAmountRemark = ''
|
|
|
+ },
|
|
|
+ resetInAmountForm(){
|
|
|
+ this.inAmount = ''
|
|
|
+ this.inAmountRemark = ''
|
|
|
+ },
|
|
|
outAmountConfirm(val){
|
|
|
let that=this;
|
|
|
if (val.index == 0) {
|
|
|
that.outAmountShow = false
|
|
|
+ that.resetOutAmountForm()
|
|
|
return
|
|
|
}
|
|
|
if(that.$util.isEmpty(that.outAmount) || Number(that.outAmount)<=0){
|
|
|
that.$msg('请填写金额')
|
|
|
return false
|
|
|
}
|
|
|
- outMoney({amount:that.outAmount}).then(res=>{
|
|
|
+ outMoney({amount:that.outAmount, remark: that.outAmountRemark}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
that.$msg('操作成功')
|
|
|
that.outAmountShow = false
|
|
|
+ that.resetOutAmountForm()
|
|
|
that.init()
|
|
|
}
|
|
|
})
|
|
|
@@ -494,16 +518,18 @@ export default {
|
|
|
let that=this;
|
|
|
if (val.index == 0) {
|
|
|
that.inAmountShow = false
|
|
|
+ that.resetInAmountForm()
|
|
|
return
|
|
|
}
|
|
|
if(that.$util.isEmpty(that.inAmount) || Number(that.inAmount)<=0){
|
|
|
that.$msg('请填写金额')
|
|
|
return false
|
|
|
}
|
|
|
- inMoney({amount:that.inAmount}).then(res=>{
|
|
|
+ inMoney({amount:that.inAmount, remark: that.inAmountRemark}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
that.$msg('操作成功')
|
|
|
that.inAmountShow = false
|
|
|
+ that.resetInAmountForm()
|
|
|
that.init()
|
|
|
}
|
|
|
})
|
|
|
@@ -1194,4 +1220,19 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.remark-line {
|
|
|
+ margin-top: 20upx;
|
|
|
+}
|
|
|
+
|
|
|
+.remark-input {
|
|
|
+ width: 100%;
|
|
|
+ height: 72upx;
|
|
|
+ padding: 0 20upx;
|
|
|
+ border: 1upx solid #e5e9e7;
|
|
|
+ border-radius: 14upx;
|
|
|
+ color: #111416;
|
|
|
+ font-size: 28upx;
|
|
|
+ box-sizing: border-box;
|
|
|
+}
|
|
|
</style>
|