|
@@ -61,7 +61,7 @@
|
|
|
<view class="row">
|
|
|
<view class="left">经办人</view>
|
|
|
<view @click='show6=true'>{{detailData.agent}}</view>
|
|
|
- <u-picker :range="handlerList" range-key="name" @confirm='handlerPicker($event)' v-model="show6"
|
|
|
+ <u-picker :range="handlerList" range-key="staffName" @confirm='handlerPicker($event)' v-model="show6"
|
|
|
mode="selector">
|
|
|
</u-picker>
|
|
|
</view>
|
|
@@ -209,7 +209,6 @@
|
|
|
},
|
|
|
inOutDate1: "",
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.id = options.id
|
|
@@ -219,8 +218,7 @@
|
|
|
//出库类型
|
|
|
this.outWarehouse()
|
|
|
//经办人
|
|
|
- //this.handler()
|
|
|
- //
|
|
|
+ this.handler()
|
|
|
},
|
|
|
methods: {
|
|
|
outWarehouse(){
|
|
@@ -233,9 +231,9 @@
|
|
|
handler(){
|
|
|
this.$api.doRequest('get', '/staff/query/getStaffListByCompIdAndWarehouseId', {
|
|
|
compId:helper.erpWarehouse.compId,
|
|
|
-
|
|
|
+ warehouseId:helper.erpWarehouse.warehouseId
|
|
|
}).then(res => {
|
|
|
- this.warehousingTypeList = res.data.data
|
|
|
+ this.handlerList = res.data.data
|
|
|
})
|
|
|
},
|
|
|
contractNopicker(e) {
|
|
@@ -248,16 +246,14 @@
|
|
|
this.detailData.grade = this.pjList[e].type
|
|
|
},
|
|
|
handlerPicker(e) {
|
|
|
- this.detailData.agent = this.handlerList[e].name
|
|
|
+ this.detailData.agent = this.handlerList[e].staffName
|
|
|
},
|
|
|
dateChange(e) {
|
|
|
- // console.log(e,"时间")
|
|
|
this.detailData.inOutDate = e.year + "-" + e.month + "-" + e.day
|
|
|
this.inOutDate1 = e.year + "-" + e.month + "-" + e.day + "-" + e.hour + "-" + e.minute + "-" + e.second
|
|
|
},
|
|
|
warehousingTypePicker(e) {
|
|
|
this.detailData.inOutType = this.warehousingTypeList[e].constValue
|
|
|
- console.log(e)
|
|
|
},
|
|
|
filterFileType(index, lists) {
|
|
|
if (lists[index].fileType != 'jpg' && lists[index].fileType != 'png' && lists[index].fileType != 'gif') {
|
|
@@ -294,7 +290,6 @@
|
|
|
id: this.id
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
- console.log(res)
|
|
|
this.detailData = res.data.data
|
|
|
}
|
|
|
})
|
|
@@ -336,7 +331,6 @@
|
|
|
return
|
|
|
}
|
|
|
this.detailData.compId = helper.erpWarehouse.compId
|
|
|
- console.log(this.detailData.compId)
|
|
|
let title = ""
|
|
|
if(num == 1 ){
|
|
|
this.detailData.inOutFlag = 1
|