|
@@ -69,7 +69,7 @@
|
|
<view class="row">
|
|
<view class="row">
|
|
<view class="left">经办人</view>
|
|
<view class="left">经办人</view>
|
|
<view @click='show6=true'>{{detailData.agent}}</view>
|
|
<view @click='show6=true'>{{detailData.agent}}</view>
|
|
- <u-picker :range="handlerList" range-key="agent" @confirm='handlerPicker($event)' v-model="show6" mode="selector">
|
|
|
|
|
|
+ <u-picker :range="handlerList" range-key="staffName" @confirm='handlerPicker($event)' v-model="show6" mode="selector">
|
|
</u-picker>
|
|
</u-picker>
|
|
</view>
|
|
</view>
|
|
<view class="row">
|
|
<view class="row">
|
|
@@ -93,15 +93,15 @@
|
|
</view>
|
|
</view>
|
|
<view class="row row-bottom has-btn">
|
|
<view class="row row-bottom has-btn">
|
|
<view class="left">成本(元/吨)</view>
|
|
<view class="left">成本(元/吨)</view>
|
|
- <input @input='' v-model='detailData.grossWeight' class="right-bottom"
|
|
|
|
- placeholder="自动获取" disabled="isEditCB"></input>
|
|
|
|
- <u-button class="edit-btn" @click="edit">编辑</u-button>
|
|
|
|
|
|
+ <input @input='' v-model='detailData.cost' class="right-bottom"
|
|
|
|
+ placeholder="自动获取" :disabled="isEditCB"></input>
|
|
|
|
+ <u-button class="edit-btn" hover-class="none" @click="editCB">编辑</u-button>
|
|
</view>
|
|
</view>
|
|
<view class="row row-bottom has-btn">
|
|
<view class="row row-bottom has-btn">
|
|
<view class="left">运费(元/吨)</view>
|
|
<view class="left">运费(元/吨)</view>
|
|
- <input @input='' v-model='detailData.grossWeight' disabled="isEditYF" class="right-bottom"
|
|
|
|
|
|
+ <input @input='' v-model='detailData.freight' :disabled="isEditYF" class="right-bottom"
|
|
placeholder="自动获取"></input>
|
|
placeholder="自动获取"></input>
|
|
- <u-button class="edit-btn">编辑</u-button>
|
|
|
|
|
|
+ <u-button class="edit-btn" hover-class="none" @click="editYF">编辑</u-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="content2">
|
|
<view class="content2">
|
|
@@ -116,36 +116,36 @@
|
|
</view>
|
|
</view>
|
|
<view class="row row-bottom">
|
|
<view class="row row-bottom">
|
|
<view class="left">质检员</view>
|
|
<view class="left">质检员</view>
|
|
- <input @input='calculate' v-model='detailData.grossWeight' class="right-bottom"
|
|
|
|
|
|
+ <input @input='calculate' v-model='detailData.qualityInspector' class="right-bottom"
|
|
placeholder="输入质检员姓名"></input>
|
|
placeholder="输入质检员姓名"></input>
|
|
</view>
|
|
</view>
|
|
<view class="row row-bottom">
|
|
<view class="row row-bottom">
|
|
<view class="left">水分(%)</view>
|
|
<view class="left">水分(%)</view>
|
|
- <input @input='calculate' v-model='detailData.grossWeight' class="right-bottom"
|
|
|
|
|
|
+ <input @input='calculate' v-model='detailData.waterContent' class="right-bottom"
|
|
placeholder="输入水分占比"></input>
|
|
placeholder="输入水分占比"></input>
|
|
</view>
|
|
</view>
|
|
<view class="row row-bottom" style="border: 0;">
|
|
<view class="row row-bottom" style="border: 0;">
|
|
<view class="left">容重(克/升)</view>
|
|
<view class="left">容重(克/升)</view>
|
|
- <input v-model='detailData.netWeight' class="right-bottom" disabled placeholder="输入容重"></input>
|
|
|
|
|
|
+ <input v-model='detailData.bulkDensity' class="right-bottom" disabled placeholder="输入容重"></input>
|
|
</view>
|
|
</view>
|
|
<view class="row row-bottom">
|
|
<view class="row row-bottom">
|
|
<view class="left">热损伤(%)</view>
|
|
<view class="left">热损伤(%)</view>
|
|
- <input @input='calculate' v-model='detailData.grossWeight' class="right-bottom"
|
|
|
|
|
|
+ <input @input='calculate' v-model='detailData.jiaorenli' class="right-bottom"
|
|
placeholder="输入热损伤占比"></input>
|
|
placeholder="输入热损伤占比"></input>
|
|
</view>
|
|
</view>
|
|
<view class="row row-bottom">
|
|
<view class="row row-bottom">
|
|
<view class="left">杂质(%)</view>
|
|
<view class="left">杂质(%)</view>
|
|
- <input @input='calculate' v-model='detailData.grossWeight' class="right-bottom"
|
|
|
|
|
|
+ <input @input='calculate' v-model='detailData.impurity' class="right-bottom"
|
|
placeholder="输入杂质占比"></input>
|
|
placeholder="输入杂质占比"></input>
|
|
</view>
|
|
</view>
|
|
<view class="row row-bottom">
|
|
<view class="row row-bottom">
|
|
<view class="left">霉变粒(%)</view>
|
|
<view class="left">霉变粒(%)</view>
|
|
- <input @input='calculate' v-model='detailData.grossWeight' class="right-bottom"
|
|
|
|
|
|
+ <input @input='calculate' v-model='detailData.mildewGrain' class="right-bottom"
|
|
placeholder="输入霉变粒占比"></input>
|
|
placeholder="输入霉变粒占比"></input>
|
|
</view>
|
|
</view>
|
|
<view class="row row-bottom">
|
|
<view class="row row-bottom">
|
|
<view class="left">不完善粒(%)</view>
|
|
<view class="left">不完善粒(%)</view>
|
|
- <input @input='calculate' v-model='detailData.grossWeight' class="right-bottom"
|
|
|
|
|
|
+ <input @input='calculate' v-model='detailData.imperfectGrain' class="right-bottom"
|
|
placeholder="输入不完善粒占比"></input>
|
|
placeholder="输入不完善粒占比"></input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -233,7 +233,7 @@
|
|
goodsName: "123",
|
|
goodsName: "123",
|
|
inOutDate:'请输入入库日期',
|
|
inOutDate:'请输入入库日期',
|
|
grade:"一等品",
|
|
grade:"一等品",
|
|
- agent:'张三',
|
|
|
|
|
|
+ agent:'请选择经办人',
|
|
inOutType:'请选择入库类型',
|
|
inOutType:'请选择入库类型',
|
|
qualityInspectionManagement: {}
|
|
qualityInspectionManagement: {}
|
|
}
|
|
}
|
|
@@ -243,8 +243,6 @@
|
|
this.binNumber = helper.erpWarehouse.binNumber
|
|
this.binNumber = helper.erpWarehouse.binNumber
|
|
this.warehouseName = helper.erpWarehouse.warehouseName
|
|
this.warehouseName = helper.erpWarehouse.warehouseName
|
|
this.compId = helper.erpWarehouse.compId
|
|
this.compId = helper.erpWarehouse.compId
|
|
- //获取经办人
|
|
|
|
- // this.detailData.agent = helper.erpWarehouse.agent
|
|
|
|
console.log(helper.erpWarehouse)
|
|
console.log(helper.erpWarehouse)
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
@@ -258,9 +256,18 @@
|
|
}
|
|
}
|
|
// 获取入库类型
|
|
// 获取入库类型
|
|
this.getrkType()
|
|
this.getrkType()
|
|
|
|
+ //获取经办人
|
|
|
|
+ this.getPerson()
|
|
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getPerson(){
|
|
|
|
+ this.$api.doRequest('get', '/staff/query/getStaffListByCompId', {
|
|
|
|
+ compId: this.compId
|
|
|
|
+ }).then(res => {
|
|
|
|
+ this.handlerList = res.data.data
|
|
|
|
+ })
|
|
|
|
+ },
|
|
getrkType(){
|
|
getrkType(){
|
|
this.$api.doRequest('get', '/commonSysParameter/getInfo', {
|
|
this.$api.doRequest('get', '/commonSysParameter/getInfo', {
|
|
constId: 'CON5'
|
|
constId: 'CON5'
|
|
@@ -280,6 +287,7 @@
|
|
},
|
|
},
|
|
handlerPicker(e) {
|
|
handlerPicker(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
|
|
+ this.detailData.agent = this.handlerList[e].staffName
|
|
},
|
|
},
|
|
dateChange(e){
|
|
dateChange(e){
|
|
console.log(e)
|
|
console.log(e)
|
|
@@ -349,6 +357,12 @@
|
|
console.log(e)
|
|
console.log(e)
|
|
},
|
|
},
|
|
onRemove(index) {},
|
|
onRemove(index) {},
|
|
|
|
+ editCB(){
|
|
|
|
+ this.isEditCB = false
|
|
|
|
+ },
|
|
|
|
+ editYF(){
|
|
|
|
+ this.isEditYF = false
|
|
|
|
+ },
|
|
submit() {
|
|
submit() {
|
|
if (!this.detailData.grossWeight) {
|
|
if (!this.detailData.grossWeight) {
|
|
this.$api.msg('毛重不能为空')
|
|
this.$api.msg('毛重不能为空')
|