|
|
|
@ -96,7 +96,8 @@
|
|
|
|
|
<el-row type="flex" justify="end">
|
|
|
|
|
<el-button-group style="display: flex">
|
|
|
|
|
<el-button-group style="display: flex;margin-bottom: 15px; margin-right: 50px">
|
|
|
|
|
<el-button type="primary" @click.native.stop="selectProductFunction()" :loading="loading">产品录入</el-button>
|
|
|
|
|
<el-button type="primary" @click.native.stop="selectProductFunction()" :loading="loading">产品录入
|
|
|
|
|
</el-button>
|
|
|
|
|
<!-- <el-button type="primary" :loading="loading" @click.native.stop="selectApply()">选入计划单</el-button>-->
|
|
|
|
|
</el-button-group>
|
|
|
|
|
</el-button-group>
|
|
|
|
@ -358,18 +359,24 @@ export default {
|
|
|
|
|
this.formData.targetDeptCode = this.subInvList.find(item => item.code == obj).parentId;
|
|
|
|
|
},
|
|
|
|
|
selectProductFunction() {
|
|
|
|
|
this.$nextTick(res => {
|
|
|
|
|
//当父id为空的时候生成id
|
|
|
|
|
if (this.pId == null) {
|
|
|
|
|
addApplyId().then(response => {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.pId = response.data
|
|
|
|
|
console.log("生成id:")
|
|
|
|
|
console.log(this.pId)
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
this.thisData.stockOrderLists = this.codeArray;
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.selectProductVisible = true;
|
|
|
|
|
//当父id为空的时候生成id
|
|
|
|
|
if (this.pId == null) {
|
|
|
|
|
addApplyId().then(response => {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.pId = response.data
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
this.thisData.stockOrderLists = this.codeArray;
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
closeDialogC2(rData) {
|
|
|
|
|
this.selectProductVisible = false;
|
|
|
|
@ -399,7 +406,7 @@ export default {
|
|
|
|
|
tableCountChange(row) {
|
|
|
|
|
if (this.$isNotBlank(row)) {
|
|
|
|
|
updateDetail(this.currentRow);
|
|
|
|
|
this.selectedIndex=""
|
|
|
|
|
this.selectedIndex = ""
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tableRowClassName({row, rowIndex}) {
|
|
|
|
@ -515,6 +522,21 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.$nextTick(res => {
|
|
|
|
|
//当父id为空的时候生成id
|
|
|
|
|
if (this.pId == null) {
|
|
|
|
|
addApplyId().then(response => {
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.pId = response.data
|
|
|
|
|
console.log("最初生成id:")
|
|
|
|
|
console.log(this.pId)
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.loading = false;
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
if (this.$isNotBlank(this.idQuery.id)) {
|
|
|
|
|
this.query.limit = 100;
|
|
|
|
|
this.pId = this.idQuery.id;
|
|
|
|
|