|
@@ -10,16 +10,19 @@
|
|
|
<view class="material ">
|
|
<view class="material ">
|
|
|
|
|
|
|
|
<view class='content_table' v-for="(item,index) in palletList" :key='index'>
|
|
<view class='content_table' v-for="(item,index) in palletList" :key='index'>
|
|
|
|
|
+ <view class="item">
|
|
|
|
|
+ <view class="lable rx-cc">编码</view>
|
|
|
|
|
+ <view class="content ">
|
|
|
|
|
+ {{item.code}}
|
|
|
|
|
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
|
|
|
<view class="item">
|
|
<view class="item">
|
|
|
<view class="lable rx-cc">舟皿名称</view>
|
|
<view class="lable rx-cc">舟皿名称</view>
|
|
|
<view class="content ">
|
|
<view class="content ">
|
|
|
- <zxz-uni-data-select :localdata="boatList" v-model="item.categoryId" dataValue='id'
|
|
|
|
|
- format='{name}-{code}' dataKey="code" filterable :clear='false'
|
|
|
|
|
- @change='inputChange'></zxz-uni-data-select>
|
|
|
|
|
|
|
+ {{item.name}}
|
|
|
|
|
|
|
|
- <view v-if="isDetails">{{item.code }} </view>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
@@ -31,19 +34,15 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="item">
|
|
<view class="item">
|
|
|
- <view class="lable rx-cc">舟皿数量</view>
|
|
|
|
|
|
|
+ <view class="lable rx-cc">数量</view>
|
|
|
<view class="content content_num">
|
|
<view class="content content_num">
|
|
|
- <input class="uni-input" v-model="item.quantity " type='digit' :disabled="isDetails"></input>
|
|
|
|
|
|
|
+ <input class="uni-input" v-model="item.extInfo.formedNum " type='digit'
|
|
|
|
|
+ :disabled="isDetails"></input>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
- <view class="item" v-if="item.hideKc">
|
|
|
|
|
- <view class="lable rx-cc">库存</view>
|
|
|
|
|
- <view class="content content_num">
|
|
|
|
|
- {{ packingCountBase }} {{item.unit}}
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
@@ -58,7 +57,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import {
|
|
import {
|
|
|
|
|
|
|
|
- realTimeInventory,
|
|
|
|
|
|
|
+
|
|
|
} from '@/api/pda/workOrder.js'
|
|
} from '@/api/pda/workOrder.js'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -83,54 +82,17 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
created() {
|
|
created() {
|
|
|
- this.getInventoryList()
|
|
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
- getInventoryList() {
|
|
|
|
|
- let param = {
|
|
|
|
|
- categoryLevelId: 8,
|
|
|
|
|
- dimension: 1,
|
|
|
|
|
- pageNum: 1,
|
|
|
|
|
- size: -1,
|
|
|
|
|
- }
|
|
|
|
|
- realTimeInventory(param).then(res => {
|
|
|
|
|
- this.boatList = res.list
|
|
|
|
|
- })
|
|
|
|
|
- },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- inputChange(e) {
|
|
|
|
|
- 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- if (Object.prototype.hasOwnProperty.call(e, 'packingCountBase')) {
|
|
|
|
|
- this.packingCountBase = e.packingCountBase
|
|
|
|
|
- this.$set(this.palletList[0], 'hideKc', true)
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- this.$forceUpdate()
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- },
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|