|
@@ -601,7 +601,8 @@ export default {
|
|
|
/** 申请变更按钮 是否显示 */
|
|
|
applyButtonFlag: false,
|
|
|
/** dvpType system:系统DVP,components:零部件DVP */
|
|
|
- dvpType: "components"
|
|
|
+ dvpType: "components",
|
|
|
+ cpacId: this.$store.getters.cpacId
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -638,8 +639,9 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
_that.pagination.total = res.data.total;
|
|
|
+ _that.cpacId = res.data.data[0].cpacId;
|
|
|
if (res.data.data) {
|
|
|
- _that.getFndCodeList(null,res.data.data[0].cpacId);
|
|
|
+ _that.getFndCodeList();
|
|
|
}
|
|
|
} else {
|
|
|
_that.$message.error(res.message,1);
|
|
@@ -705,12 +707,13 @@ export default {
|
|
|
let _that = this;
|
|
|
_that.$api.getFndInfoList({
|
|
|
fndCode: fndCode ? fndCode.toString() : '',
|
|
|
- cpacId: cpacId
|
|
|
+ fndCn: fndCode ? fndCode.toString() : '',
|
|
|
+ cpacId: _that.cpacId
|
|
|
}).then(res => {
|
|
|
if (res.flag) {
|
|
|
_that.fndCodeList = res.data || [];
|
|
|
_that.fndCodeList.forEach(item => {
|
|
|
- item.fndValue = item.id + '-' + item.fndCode;
|
|
|
+ item.fndValue = item.id + '-' + item.fndCode + item.fndCn;
|
|
|
});
|
|
|
} else {
|
|
|
_that.$notification.error({message: res.message});
|