|
@@ -42,7 +42,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
- import { getDeviceList } from '@/api/productionPlan/order';
|
|
|
|
|
|
|
+ import { getDeviceList , getPlanDeviceList } from '@/api/productionPlan/order';
|
|
|
export default {
|
|
export default {
|
|
|
props: ['produceVersionId'],
|
|
props: ['produceVersionId'],
|
|
|
data () {
|
|
data () {
|
|
@@ -115,11 +115,12 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- open (list = []) {
|
|
|
|
|
|
|
+ open (val,list = []) {
|
|
|
|
|
+ console.log('val',val)
|
|
|
this.memoList = list;
|
|
this.memoList = list;
|
|
|
this.isSingle = false;
|
|
this.isSingle = false;
|
|
|
this.visible = true;
|
|
this.visible = true;
|
|
|
- this._getList();
|
|
|
|
|
|
|
+ this._getList(val);
|
|
|
},
|
|
},
|
|
|
openSingle (list = [], callback) {
|
|
openSingle (list = [], callback) {
|
|
|
this.memoList = list;
|
|
this.memoList = list;
|
|
@@ -144,8 +145,9 @@
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- async _getList () {
|
|
|
|
|
- const data = await getDeviceList({
|
|
|
|
|
|
|
+ async _getList (val) {
|
|
|
|
|
+ const fn = val?getPlanDeviceList:getDeviceList
|
|
|
|
|
+ const data = await fn({
|
|
|
name: this.name,
|
|
name: this.name,
|
|
|
productionId: this.produceVersionId
|
|
productionId: this.produceVersionId
|
|
|
});
|
|
});
|