@@ -19,7 +19,7 @@ export async function saveOrUpdate(data) {
// 根据父级id查分类树
export async function getTreeByPid(parentId) {
- const res = await request.get(`/main/categoryLevel/getTreeByPid/${parentId}`);
+ const res = await request.get(`/main/getTreeByPid/${parentId}`);
if (res.data.code == 0) {
return res.data;
}
@@ -372,9 +372,12 @@
this.visible = true;
},
inputValue() {
- this.form.total =
+ if(!this.form.qualityPlanId) {
+ this.form.total =
Number(this.form.qualifiedNumber) +
Number(this.form.noQualifiedNumber);
+ }
+
addProduct() {
this.$refs.equipmentRefs.open();