submit
This commit is contained in:
parent
624367eabf
commit
5411bd7850
@ -134,30 +134,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="wrap2">添加</div>
|
<div class="wrap2">添加</div>
|
||||||
</div>
|
</div>
|
||||||
<u-popup :round="15" :show="show_2" mode="bottom" @open="()=>{show_2=true}">
|
|
||||||
<div class="poup1" >
|
|
||||||
<div class="content1">
|
|
||||||
<div class="wrap1">更换您的寄存地址</div>
|
|
||||||
<div @click="show_2=false" class="wrap2">
|
|
||||||
<image
|
|
||||||
src="https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/d84593b3-10a8-4d86-be8c-b048b03b22c7.png"></image>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="content2"></div>
|
|
||||||
<div class="content3">
|
|
||||||
<div v-for="(itemaddress,index1) of addressList" @click="selectAddress(itemaddress,index)"
|
|
||||||
:class="[listPaintings[index].warehouseID===itemaddress.ID?'active':'']" :key="index1" class="wrap1">
|
|
||||||
<div class="wrap1_1">{{ itemaddress.address }}</div>
|
|
||||||
<div class="wrap1_2">*剩余{{ itemaddress.leftNum }}位置</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="content2"></div>
|
|
||||||
<div class="content6" @click="confirmAddress">
|
|
||||||
<div class="wrap1">确定</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</u-popup>
|
|
||||||
<u-picker v-if="show_1" :show="show_1" ref="uPicker" :columns="columns" @confirm="(e)=>{confirmDate(e,index)}" @cancel="closeClick" @change="(e)=>{changeHandler(e,index)}"></u-picker>
|
|
||||||
</div>
|
</div>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<div class="content5" @click="expand1">
|
<div class="content5" @click="expand1">
|
||||||
@ -176,6 +154,30 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="wrap2" @click.stop="signContract">确认金额并签署合同</div>
|
<div class="wrap2" @click.stop="signContract">确认金额并签署合同</div>
|
||||||
</div>
|
</div>
|
||||||
|
<u-popup :round="15" :show="show_2" mode="bottom" @open="()=>{show_2=true}">
|
||||||
|
<div class="poup1" >
|
||||||
|
<div class="content1">
|
||||||
|
<div class="wrap1">更换您的寄存地址</div>
|
||||||
|
<div @click="show_2=false" class="wrap2">
|
||||||
|
<image
|
||||||
|
src="https://cdns.fontree.cn/fonchain-main/prod/image/default/artwork/d84593b3-10a8-4d86-be8c-b048b03b22c7.png"></image>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="content2"></div>
|
||||||
|
<div class="content3">
|
||||||
|
<div v-for="(itemaddress,index1) of addressList" @click="selectAddress(itemaddress)"
|
||||||
|
:class="[listPaintings[currentIndex].warehouseID===itemaddress.ID?'active':'']" :key="index1" class="wrap1">
|
||||||
|
<div class="wrap1_1">{{ itemaddress.address }}</div>
|
||||||
|
<div class="wrap1_2">*剩余{{ itemaddress.leftNum }}位置</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="content2"></div>
|
||||||
|
<div class="content6" @click="confirmAddress">
|
||||||
|
<div class="wrap1">确定</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</u-popup>
|
||||||
|
<u-picker v-if="show_1" :show="show_1" ref="uPicker" :columns="columns" @confirm="(e)=>{confirmDate(e)}" @cancel="closeClick" @change="(e)=>{changeHandler(e)}"></u-picker>
|
||||||
<u-loading-page bgColor="rgba(0,0,0,0.5)" :loading="loading" loading-text="正在进入法大大签署..."></u-loading-page>
|
<u-loading-page bgColor="rgba(0,0,0,0.5)" :loading="loading" loading-text="正在进入法大大签署..."></u-loading-page>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -193,7 +195,7 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
[180],
|
[180],
|
||||||
['*'],
|
['*'],
|
||||||
[1,2,3,4,5],
|
[1,2,3,4,5,6,7,8,9,10,11],
|
||||||
['='],
|
['='],
|
||||||
[180]
|
[180]
|
||||||
],
|
],
|
||||||
@ -279,7 +281,14 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
inputConfirm: _.debounce(function (event,index) {
|
inputConfirm: _.debounce(function (event,index) {
|
||||||
|
this.listPaintings[index].artworkSquareSize=event.target.value.replace(/\D/g, '')
|
||||||
|
let number = parseInt(this.listPaintings[index].artworkSquareSize, 10);
|
||||||
|
if (isNaN(number) || number <= 0) {
|
||||||
|
this.listPaintings[index].artworkSquareSize=''
|
||||||
|
}else {
|
||||||
this.obtainAmount(index)
|
this.obtainAmount(index)
|
||||||
|
}
|
||||||
|
|
||||||
}, 1000),
|
}, 1000),
|
||||||
addDaysToCurrentDate(days) {
|
addDaysToCurrentDate(days) {
|
||||||
return dayjs().add(days, 'day').format('YYYY-MM-DD');
|
return dayjs().add(days, 'day').format('YYYY-MM-DD');
|
||||||
@ -330,7 +339,7 @@ export default {
|
|||||||
picker = this.$refs.uPicker
|
picker = this.$refs.uPicker
|
||||||
} = e
|
} = e
|
||||||
if (columnIndex === 2) {
|
if (columnIndex === 2) {
|
||||||
picker[this.currentIndex].setColumnValues(this.columns.length-1, [this.columns[2][e.index]*this.columns[0][0]])
|
picker.setColumnValues(this.columns.length-1, [this.columns[2][e.index]*this.columns[0][0]])
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
itemDelete(index){
|
itemDelete(index){
|
||||||
@ -499,6 +508,7 @@ export default {
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!item[check.value]) {
|
if (!item[check.value]) {
|
||||||
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@ -507,6 +517,15 @@ export default {
|
|||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (check.value==='artworkSquareSize'){
|
||||||
|
if (Number(item[check.value])<1){
|
||||||
|
uni.showToast({
|
||||||
|
title: `第${index+1}条数据的${check.message}应大于0`,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.loading=true
|
this.loading=true
|
||||||
@ -576,7 +595,7 @@ export default {
|
|||||||
confirmAddress() {
|
confirmAddress() {
|
||||||
this.show_2 = false
|
this.show_2 = false
|
||||||
},
|
},
|
||||||
selectAddress(item,index) {
|
selectAddress(item) {
|
||||||
this.listPaintings[this.currentIndex].warehouseID = item.ID
|
this.listPaintings[this.currentIndex].warehouseID = item.ID
|
||||||
if (this.currentIndex===0){
|
if (this.currentIndex===0){
|
||||||
this.listPaintings.forEach((x)=>{
|
this.listPaintings.forEach((x)=>{
|
||||||
|
Loading…
Reference in New Issue
Block a user