|
|
@ -353,7 +353,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<!--添加单据类型弹窗---->
|
|
|
|
<!--添加单据类型弹窗---->
|
|
|
|
<!--添加单据类型弹窗-->
|
|
|
|
<!--添加单据类型弹窗-->
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
@ -388,7 +388,7 @@
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
@ -1103,9 +1103,9 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$message.success("操作成功");
|
|
|
|
this.$message.success("操作成功");
|
|
|
|
this.formVisible = false;
|
|
|
|
this.formVisible = false;
|
|
|
|
|
|
|
|
|
|
|
|
if (this.formName !== "edit") {
|
|
|
|
if (this.formName !== "edit") {
|
|
|
|
|
|
|
|
|
|
|
|
if (response.data && response.data.id) {
|
|
|
|
if (response.data && response.data.id) {
|
|
|
|
data.id = response.data.id;
|
|
|
|
data.id = response.data.id;
|
|
|
|
if (this.pidData) {
|
|
|
|
if (this.pidData) {
|
|
|
@ -1144,7 +1144,6 @@ export default {
|
|
|
|
this.subFormVisible = false;
|
|
|
|
this.subFormVisible = false;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.subFormVisible = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
this.subFormVisible = false;
|
|
|
|
this.subFormVisible = false;
|
|
|
@ -1309,6 +1308,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
changeLevel(row) {
|
|
|
|
changeLevel(row) {
|
|
|
|
this.formData.pcode = null;
|
|
|
|
this.formData.pcode = null;
|
|
|
|
|
|
|
|
this.formData.spUse = false;
|
|
|
|
//TODO
|
|
|
|
//TODO
|
|
|
|
this.getParentInv(this.formData.level);
|
|
|
|
this.getParentInv(this.formData.level);
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -1439,7 +1439,7 @@ export default {
|
|
|
|
var action=obj.toString();
|
|
|
|
var action=obj.toString();
|
|
|
|
this.bussinessTypeQuery.ids=action;
|
|
|
|
this.bussinessTypeQuery.ids=action;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.bussinessTypeQuery.code=this.busQuery.code;
|
|
|
|
this.bussinessTypeQuery.code=this.busQuery.code;
|
|
|
|
getJoinBussinessType(this.bussinessTypeQuery).then((res) => {
|
|
|
|
getJoinBussinessType(this.bussinessTypeQuery).then((res) => {
|
|
|
|
this.selectBussinessTypeList = [];
|
|
|
|
this.selectBussinessTypeList = [];
|
|
|
@ -1540,12 +1540,16 @@ export default {
|
|
|
|
this.getBussinessType(1,action);
|
|
|
|
this.getBussinessType(1,action);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selsectBussinessType(row){
|
|
|
|
selsectBussinessType(row){
|
|
|
|
|
|
|
|
if (this.currentRow.id !== row.id) {
|
|
|
|
|
|
|
|
this.$message.error("请先选择需要操作的分库!");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
var busQuery = {
|
|
|
|
var busQuery = {
|
|
|
|
code: this.currentCode,
|
|
|
|
code: this.currentCode,
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 50
|
|
|
|
limit: 50
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
warehouseBussinessTypeList(busQuery).then((res) => {
|
|
|
|
warehouseBussinessTypeList(busQuery).then((res) => {
|
|
|
|
this.userBussinessTypeList = res.data.list;
|
|
|
|
this.userBussinessTypeList = res.data.list;
|
|
|
|
}).catch((error) => {
|
|
|
|
}).catch((error) => {
|
|
|
@ -1596,7 +1600,7 @@ export default {
|
|
|
|
limit: 50
|
|
|
|
limit: 50
|
|
|
|
}
|
|
|
|
}
|
|
|
|
warehouseBussinessTypeList(busQuery).then((res) => {
|
|
|
|
warehouseBussinessTypeList(busQuery).then((res) => {
|
|
|
|
|
|
|
|
|
|
|
|
this.userBussinessTypeList = res.data.list || [];
|
|
|
|
this.userBussinessTypeList = res.data.list || [];
|
|
|
|
}).catch((error) => {
|
|
|
|
}).catch((error) => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|