1
This commit is contained in:
parent
0b05a021a7
commit
9a4290a469
@ -25,6 +25,9 @@
|
|||||||
<view v-if="addWares" @click="addNewWares" class="navigationBarIcon" style="position: absolute;right: 22px;font-size: 18px">
|
<view v-if="addWares" @click="addNewWares" class="navigationBarIcon" style="position: absolute;right: 22px;font-size: 18px">
|
||||||
新增
|
新增
|
||||||
</view>
|
</view>
|
||||||
|
<view v-if="houseAddNewWares" @click="addNewWaresHouse" class="navigationBarIcon" style="position: absolute;right: 22px;font-size: 18px">
|
||||||
|
新增配件
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<view class="navigationBarBackExtra">
|
<view class="navigationBarBackExtra">
|
||||||
<slot name="extra">
|
<slot name="extra">
|
||||||
@ -61,6 +64,10 @@ export default {
|
|||||||
addWares:{
|
addWares:{
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
houseAddNewWares:{
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -99,6 +106,9 @@ export default {
|
|||||||
},
|
},
|
||||||
addNewWares(){
|
addNewWares(){
|
||||||
this.$emit('addNewWares')
|
this.$emit('addNewWares')
|
||||||
|
},
|
||||||
|
addNewWaresHouse(){
|
||||||
|
this.$emit('addNewWaresHouse')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -139,6 +139,7 @@
|
|||||||
this.userInfo = getUserInfo()
|
this.userInfo = getUserInfo()
|
||||||
this.ticketId = data.ticketId
|
this.ticketId = data.ticketId
|
||||||
this.twId = data.twId
|
this.twId = data.twId
|
||||||
|
this.ifHouse = data.ifHouse
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.init()
|
this.init()
|
||||||
@ -176,6 +177,9 @@
|
|||||||
name: item.name
|
name: item.name
|
||||||
}
|
}
|
||||||
})]
|
})]
|
||||||
|
if(this.ifHouse){
|
||||||
|
dataObj.ifHouseAdd = true
|
||||||
|
}
|
||||||
request({
|
request({
|
||||||
url: "/admin-api/repair/twi/addTwi",
|
url: "/admin-api/repair/twi/addTwi",
|
||||||
method: 'post',
|
method: 'post',
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<VNavigationBar background-color="#fff" title="单据处理" title-color="#333"></VNavigationBar>
|
<VNavigationBar background-color="#fff" title="单据处理" title-color="#333" :houseAddNewWares="true" @addNewWaresHouse="addWares"></VNavigationBar>
|
||||||
<!-- <view class="tabs">-->
|
<!-- <view class="tabs">-->
|
||||||
<!-- <view v-for="(item, index) in tabs" :key="index" :class="{'active': item.value === active}" class="tab-item">-->
|
<!-- <view v-for="(item, index) in tabs" :key="index" :class="{'active': item.value === active}" class="tab-item">-->
|
||||||
<!-- {{ item.name }}-->
|
<!-- {{ item.name }}-->
|
||||||
@ -14,6 +14,9 @@
|
|||||||
<text @click="handleSearch">搜索</text>
|
<text @click="handleSearch">搜索</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- <view class="header">-->
|
||||||
|
<!-- <view style="float: right; color: #0174F6" @click="addWares">添加配件</view>-->
|
||||||
|
<!-- </view>-->
|
||||||
<view class="listBox">
|
<view class="listBox">
|
||||||
<view class="list">
|
<view class="list">
|
||||||
<view v-for="(item, index) in wares" :key="index" class="listItem">
|
<view v-for="(item, index) in wares" :key="index" class="listItem">
|
||||||
@ -41,7 +44,8 @@
|
|||||||
<text class="repairDesc">已领取:
|
<text class="repairDesc">已领取:
|
||||||
<text class="repairUnit">{{ item.waresAlreadyCount }}</text>
|
<text class="repairUnit">{{ item.waresAlreadyCount }}</text>
|
||||||
</text>
|
</text>
|
||||||
<view class="repairBtns"></view>
|
|
||||||
|
<view class="repairBtns"><text v-if="item.ifHouseAdd" style="color: red">仓管添加</text></view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -114,15 +118,23 @@ export default {
|
|||||||
this.twId = this.formData.id
|
this.twId = this.formData.id
|
||||||
this.ticketId = this.formData.ticketId
|
this.ticketId = this.formData.ticketId
|
||||||
this.nowStaffId = this.formData.repairId
|
this.nowStaffId = this.formData.repairId
|
||||||
this.init()
|
// this.init()
|
||||||
}
|
}
|
||||||
if (data.isToBeReviewed) {
|
if (data.isToBeReviewed) {
|
||||||
this.isToBeReviewed = JSON.parse(data.isToBeReviewed)
|
this.isToBeReviewed = JSON.parse(data.isToBeReviewed)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onShow(){
|
||||||
|
this.init()
|
||||||
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
methods: {
|
methods: {
|
||||||
|
addWares(){
|
||||||
|
//配件申请
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages-repair/apply/applyForm?twId=' + this.twId+'&ifHouse=true'
|
||||||
|
})
|
||||||
|
},
|
||||||
toInWares(){
|
toInWares(){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages-order/orderList/orderListByIn?twId=' + this.twId
|
url: '/pages-order/orderList/orderListByIn?twId=' + this.twId
|
||||||
|
Loading…
Reference in New Issue
Block a user