|
|
|
@ -136,8 +136,8 @@ export default {
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
userCodes: this.userCodes,
|
|
|
|
|
userNames: this.userNames,
|
|
|
|
|
userCodes: null,
|
|
|
|
|
userNames: null,
|
|
|
|
|
itemId: null,
|
|
|
|
|
itemCode: null,
|
|
|
|
|
materialName: null,
|
|
|
|
@ -165,8 +165,8 @@ export default {
|
|
|
|
|
leftLength: null,
|
|
|
|
|
leftQueryParams: {
|
|
|
|
|
materialName: null,
|
|
|
|
|
userCodes: this.userCodes,
|
|
|
|
|
userNames: this.userNames,
|
|
|
|
|
userCodes: null,
|
|
|
|
|
userNames: null,
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
},
|
|
|
|
@ -179,8 +179,8 @@ export default {
|
|
|
|
|
RNextPage: null,
|
|
|
|
|
rightQueryParams: {
|
|
|
|
|
materialName: null,
|
|
|
|
|
userCodes: this.userCodes,
|
|
|
|
|
userNames: this.userNames,
|
|
|
|
|
userCodes: null,
|
|
|
|
|
userNames: null,
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 20,
|
|
|
|
|
},
|
|
|
|
@ -226,6 +226,7 @@ export default {
|
|
|
|
|
/** 查询未分配产品列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
this.leftQueryParams.userCodes = this.userCodes;
|
|
|
|
|
getListProduct(this.leftQueryParams).then((response) => {
|
|
|
|
|
this.LPages = Math.ceil(response.total / this.LPageSize);
|
|
|
|
|
this.leftList = response.rows;
|
|
|
|
@ -253,6 +254,7 @@ export default {
|
|
|
|
|
/** 查询已分配产品列表 -------------------------------*/
|
|
|
|
|
getRightListFun() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
this.rightQueryParams.userCodes = this.userCodes;
|
|
|
|
|
getRightList(this.rightQueryParams).then((response) => {
|
|
|
|
|
this.RPages = Math.ceil(response.total / this.RPageSize);
|
|
|
|
|
|
|
|
|
@ -290,8 +292,8 @@ export default {
|
|
|
|
|
reset() {
|
|
|
|
|
this.form = {
|
|
|
|
|
recordId: null,
|
|
|
|
|
userCode: this.userCodes,
|
|
|
|
|
userName: this.userNames,
|
|
|
|
|
userCode: null,
|
|
|
|
|
userName: null,
|
|
|
|
|
itemId: null,
|
|
|
|
|
itemCode: null,
|
|
|
|
|
materialName: null,
|
|
|
|
@ -310,7 +312,9 @@ export default {
|
|
|
|
|
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
handleChange(value, direction, movedKeys) {
|
|
|
|
|
if (this.queryParams.userCodes != null) {
|
|
|
|
|
this.queryParams.userCodes = this.userCodes;
|
|
|
|
|
this.queryParams.userNames = this.userNames;
|
|
|
|
|
if (this.queryParams.userCodes !== null) {
|
|
|
|
|
this.queryParams.selectedValues = value;
|
|
|
|
|
addProduct(this.queryParams).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess("关联成功");
|
|
|
|
|