|
|
@@ -37,7 +37,7 @@
|
|
|
<view class="rx ww55 ">
|
|
|
<view class="lable lable150 rx-cc ">合格品数量</view>
|
|
|
<view class="content content_num">
|
|
|
- <input class="uni-input" v-model="item.demandQuantity" type="digit"></input>
|
|
|
+ <input class="uni-input" v-model="item.workReportInfo.formedNum" type="digit"></input>
|
|
|
<view class="unit">{{item.unit}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -45,7 +45,7 @@
|
|
|
<view class="rx ww45">
|
|
|
<view class="lable rx-cc ww80">重量</view>
|
|
|
<view class="content content_num">
|
|
|
- <input class="uni-input" v-model="item.demandQuantity" type="digit"></input>
|
|
|
+ <input class="uni-input" v-model="item.workReportInfo.formedWeight" type="digit"></input>
|
|
|
<view class="unit">{{item.weightUnit}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -59,7 +59,7 @@
|
|
|
<view class="rx ww55 ">
|
|
|
<view class="lable lable150 rx-cc ">不合格数量</view>
|
|
|
<view class="content content_num">
|
|
|
- <input class="uni-input" v-model="item.demandQuantity" type="digit"></input>
|
|
|
+ <input class="uni-input" v-model="item.workReportInfo.notFormedNum" type="digit"></input>
|
|
|
<view class="unit">{{item.unit}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -67,7 +67,7 @@
|
|
|
<view class="rx ww45">
|
|
|
<view class="lable rx-cc ww80">重量</view>
|
|
|
<view class="content content_num">
|
|
|
- <input class="uni-input" v-model="item.demandQuantity" type="digit"></input>
|
|
|
+ <input class="uni-input" v-model="item.workReportInfo.notFormedWeight" type="digit"></input>
|
|
|
<view class="unit">{{item.weightUnit}}</view>
|
|
|
<view class="penalize">处置</view>
|
|
|
</view>
|
|
|
@@ -75,10 +75,22 @@
|
|
|
|
|
|
</view>
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class='content_table' v-for="(item,index) in palletList" :key='index'>
|
|
|
<view class="item" @click="handleType">
|
|
|
<view class="lable rx-cc">舟皿类型</view>
|
|
|
<view class="content content_num">
|
|
|
- <input class="uni-input" v-model="obj.typeName"></input>
|
|
|
+ <input class="uni-input" v-model="item.categoryLevelName"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -87,31 +99,27 @@
|
|
|
<view class="item">
|
|
|
<view class="lable rx-cc">舟皿名称</view>
|
|
|
<view class="content ">
|
|
|
- <zxz-uni-data-select :localdata="boatList" v-model="obj.name" dataValue='id' format='{name}-{code}'
|
|
|
- :clear='false' @change='inputChange'></zxz-uni-data-select>
|
|
|
+ <zxz-uni-data-select :localdata="boatList" v-model="item.categoryId" dataValue='id'
|
|
|
+ format='{name}-{code}' :clear='false' @change='inputChange'></zxz-uni-data-select>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="item">
|
|
|
<view class="lable rx-cc">舟皿型号</view>
|
|
|
<view class="content">
|
|
|
- {{obj.modelType}}
|
|
|
+ {{item.modelType}}
|
|
|
</view>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
<view class="item">
|
|
|
<view class="lable rx-cc">舟皿数量</view>
|
|
|
- <view class="content content_num">
|
|
|
- <input class="uni-input" v-model="obj.num" type='digit'></input>
|
|
|
- </view>
|
|
|
+ <view class="content content_num">
|
|
|
+ <input class="uni-input" v-model="item.quantity" type='digit'></input>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
|
|
|
<ba-tree-picker ref="treePicker" key="verify" :multiple="false" @select-change="confirm" title="选择分类"
|
|
|
@@ -136,6 +144,11 @@
|
|
|
isDetails: {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
+ },
|
|
|
+
|
|
|
+ palletList: {
|
|
|
+ type: Array,
|
|
|
+ default: () => []
|
|
|
}
|
|
|
|
|
|
},
|
|
|
@@ -143,13 +156,12 @@
|
|
|
return {
|
|
|
classificationList: [],
|
|
|
boatList: [],
|
|
|
- obj: {
|
|
|
- typeName: '',
|
|
|
- modelType: ''
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+
|
|
|
+
|
|
|
this.getTreeList()
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -160,14 +172,17 @@
|
|
|
}
|
|
|
treeByPid(params).then(res => {
|
|
|
this.classificationList = res
|
|
|
- this.confirm([res[0].id], res[0].name, res[0].rootCategoryLevelId)
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
|
|
|
confirm(id, name, rootCategoryLevelId) {
|
|
|
- this.obj.typeName = name
|
|
|
- // this.obj.modelType = ''
|
|
|
-
|
|
|
+ this.$set(this.palletList[0], 'categoryLevelId', id[0])
|
|
|
+ this.$set(this.palletList[0], 'categoryLevelName', name)
|
|
|
+ this.$set(this.palletList[0], 'rootCategoryLevelId', rootCategoryLevelId)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
let param = {
|
|
|
categoryLevelId: id,
|
|
|
@@ -178,13 +193,21 @@
|
|
|
this.boatList = res.list
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
inputChange(e) {
|
|
|
- this.obj.modelType = 55
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ this.$set(this.palletList[0], 'categoryId', e.id)
|
|
|
+ this.$set(this.palletList[0], 'code', e.code)
|
|
|
+ this.$set(this.palletList[0], 'name', e.name)
|
|
|
+ this.$set(this.palletList[0], 'specification', e.specification)
|
|
|
+ this.$set(this.palletList[0], 'categoryId', e.id)
|
|
|
+ this.$set(this.palletList[0], 'brandNum', e.brandNum)
|
|
|
+ this.$set(this.palletList[0], 'modelType', e.modelType)
|
|
|
+ this.$set(this.palletList[0], 'quantity', e.quantity)
|
|
|
+ this.$set(this.palletList[0], 'unit', e.unit)
|
|
|
+ this.$forceUpdate()
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
|
|
|
handleType() {
|