Browse Source

联调

master
邓宏 2 years ago
parent
commit
b90f284626
  1. 9
      pages/home/my.vue
  2. 2
      pages/purchase/apply.vue
  3. 2
      pages/purchase/newSpecs.vue
  4. 1
      pages/purchase/specs.vue
  5. 8
      uni_modules/d-picker/components/d-picker/d-picker.vue

9
pages/home/my.vue

@ -62,6 +62,15 @@
<view class="item" @click="$u.route({url:'pages/home/personalInfo'})">
<text class="plant-gerenzhongxinwode"/> <text>个人信息</text> <text class="plant-youbian"/>
</view>
<view class="item" @click="$u.route({url:'pages/home/personalInfo'})">
<text class="plant-gerenzhongxinwode"/> <text>修改密码</text> <text class="plant-youbian"/>
</view>
<view class="item" @click="$u.route({url:'pages/home/personalInfo'})">
<text class="plant-gerenzhongxinwode"/> <text>采购记录</text> <text class="plant-youbian"/>
</view>
<view class="item" @click="$u.route({url:'pages/home/personalInfo'})">
<text class="plant-gerenzhongxinwode"/> <text>领用记录</text> <text class="plant-youbian"/>
</view>
<view class="item">
<text class="plant-tuichu"/> <text>退出</text> <text class="plant-youbian"/>
</view>

2
pages/purchase/apply.vue

@ -175,7 +175,7 @@ export default {
body: this.formData
})
if(res.statu){
uni.showToast({title:"保存成功!",icon:"success"})
}else{
uni.showModal({
title:"提示",

2
pages/purchase/newSpecs.vue

@ -74,7 +74,7 @@
keyName="label"
@close="show=false"
@cancel="show=false"
@confirm="formData.dressingUnit=$event;show=false"/>
@confirm="formData.dressingUnit=$event.value[0].value;show=false"/>
</view>
</template>
<script>

1
pages/purchase/specs.vue

@ -212,6 +212,7 @@ export default{
}
},
async setGoodsVal(val){
console.log(val,'----------setGoodsVal-----------------')
this.purchaseId=val.id
this.formData.goodsName=val.goodsName
this.formData.detailedType=val.detailedType

8
uni_modules/d-picker/components/d-picker/d-picker.vue

@ -62,7 +62,7 @@
<u-popup class="dPicker" :show="show" @close="show=false">
<view class="btns">
<button class="cu-btn sm" @click="show=false">取消</button>
<button class="cu-btn sm bg-green" @click="$emit('select',list[changeVal||value]);show=false">确定</button>
<button class="cu-btn sm bg-green" @click="$emit('select',list[sureVal]);show=false">确定</button>
</view>
<picker-view :value="[value]" indicator-style="height:90rpx;" @change="changeVal=$event.detail.value[0]">
<picker-view-column>
@ -75,6 +75,7 @@
</u-popup>
</template>
<script>
import {dataType} from 'black-knight/lib/config/tools'
export default{
props:{
list:{
@ -92,6 +93,11 @@
changeVal:null,
}
},
computed:{
sureVal(){
return dataType(this.changeVal,'number')?this.changeVal:this.value
}
},
watch:{
show(n){
if(!n){

Loading…
Cancel
Save