|
|
@@ -30,6 +30,7 @@
|
|
|
<label class="listBox rx-bs">
|
|
|
|
|
|
<view class="listBox-sel">
|
|
|
+
|
|
|
<checkbox :value="item.code" color="#fff" :disabled="item.disabled"
|
|
|
:checked="item.checked" />
|
|
|
</view>
|
|
|
@@ -60,15 +61,15 @@
|
|
|
</checkbox-group>
|
|
|
|
|
|
|
|
|
-
|
|
|
- <view v-if='list.length == 0' style='margin-top: 20vh;' >
|
|
|
+
|
|
|
+ <view v-if='list.length == 0' style='margin-top: 20vh;'>
|
|
|
<u-empty iconSize='150' textSize='32' text='暂无数据'>
|
|
|
</u-empty>
|
|
|
</view>
|
|
|
|
|
|
</u-list>
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
</view>
|
|
|
|
|
|
@@ -88,8 +89,8 @@
|
|
|
|
|
|
<ba-tree-picker ref="treePicker" key="verify" :multiple="false" @select-change="confirm" title="选择分类"
|
|
|
:localdata="classificationList" valueKey="id" textKey="name" childrenKey="children" />
|
|
|
-
|
|
|
- <matterPop v-if='matterShow' @close='close'></matterPop>
|
|
|
+
|
|
|
+ <matterPop v-if='matterShow' :matterId='matterId' @close='close'></matterPop>
|
|
|
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -118,17 +119,18 @@
|
|
|
classificationList: [],
|
|
|
treePickerShow: false,
|
|
|
list: [],
|
|
|
-
|
|
|
+
|
|
|
|
|
|
seletedAll: false, //全选状态
|
|
|
memoList: [],
|
|
|
-
|
|
|
+
|
|
|
isType: null,
|
|
|
|
|
|
pid: null, // 上个页面id
|
|
|
storageKey: null,
|
|
|
-
|
|
|
- matterShow: false
|
|
|
+
|
|
|
+ matterShow: false, //物料 左弹框
|
|
|
+ matterId: null
|
|
|
}
|
|
|
},
|
|
|
|
|
|
@@ -214,7 +216,7 @@
|
|
|
this.getList()
|
|
|
},
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
getList() {
|
|
|
let param = {
|
|
|
@@ -222,67 +224,67 @@
|
|
|
keyWord: this.keyWord,
|
|
|
pageNum: 1,
|
|
|
size: -1,
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
this.list = []
|
|
|
- if(this.isType == 'pick') {
|
|
|
- param.dimension = 1
|
|
|
+ if (this.isType == 'pick') {
|
|
|
+ param.dimension = 1
|
|
|
pageeLedgerMain(param).then(res => {
|
|
|
this.list.push(
|
|
|
...res.list.map(i => {
|
|
|
const checked =
|
|
|
this.memoList.findIndex(itm => itm.id === i.id) > -1
|
|
|
-
|
|
|
- const warehouseId = i.pathIds && i.pathIds.split(',')[0]
|
|
|
-
|
|
|
+
|
|
|
+ const warehouseId = i.pathIds && i.pathIds.split(',')[0]
|
|
|
+
|
|
|
return {
|
|
|
checked,
|
|
|
warehouseId,
|
|
|
...i,
|
|
|
instanceId: i.id,
|
|
|
categoryId: i.assetId,
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
)
|
|
|
})
|
|
|
-
|
|
|
- } else if(this.isType == 'feed') {
|
|
|
+
|
|
|
+ } else if (this.isType == 'feed') {
|
|
|
assetPage(param).then(res => {
|
|
|
this.list.push(
|
|
|
...res.list.map(i => {
|
|
|
const checked =
|
|
|
this.memoList.findIndex(itm => itm.id === i.id) > -1
|
|
|
-
|
|
|
- const warehouseId = i.pathIds && i.pathIds.split(',')[0]
|
|
|
-
|
|
|
+
|
|
|
+ const warehouseId = i.pathIds && i.pathIds.split(',')[0]
|
|
|
+
|
|
|
return {
|
|
|
checked,
|
|
|
warehouseId,
|
|
|
...i,
|
|
|
instanceId: i.id,
|
|
|
categoryId: i.assetId,
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
)
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
|
|
|
//勾选
|
|
|
selectVal(e, val, index) {
|
|
|
- if(this.isType == 'pick') {
|
|
|
+ if (this.isType == 'pick') {
|
|
|
this.list[index].checked = !this.list[index].checked
|
|
|
-
|
|
|
+
|
|
|
this.seletedAll = !this.list.some(item => !item.checked)
|
|
|
-
|
|
|
+
|
|
|
const idx = this.memoList.findIndex(
|
|
|
item => item.id === this.list[index].id
|
|
|
)
|
|
|
-
|
|
|
+
|
|
|
if (this.list[index].checked) {
|
|
|
if (idx === -1) {
|
|
|
this.memoList.push(this.list[index])
|
|
|
@@ -292,15 +294,16 @@
|
|
|
this.memoList.splice(idx, 1)
|
|
|
}
|
|
|
}
|
|
|
- } else if(this.isType == 'feed') {
|
|
|
+ } else if (this.isType == 'feed') {
|
|
|
+ this.matterId = val.id
|
|
|
this.matterShow = true
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
close() {
|
|
|
this.matterShow = false
|
|
|
},
|