diff --git a/src/views/repair/Components/OtherChoose.vue b/src/views/repair/Components/OtherChoose.vue index 15f5469..cbc1309 100644 --- a/src/views/repair/Components/OtherChoose.vue +++ b/src/views/repair/Components/OtherChoose.vue @@ -8,7 +8,20 @@ {{ scope.$index + 1 }} - + + + + {{ scope.$index + 1 }} - + + + + + @@ -79,13 +93,19 @@ export default { ], queryParams: { pageNo: 1, - pageSize: 10 + pageSize: 10, + name:undefined }, total: 2, loading: true } }, mounted() { + this.queryParams={ + pageNo: 1, + pageSize: 10, + name:undefined + } this.listPart() }, methods: { diff --git a/src/views/repair/Components/ProjectChoose.vue b/src/views/repair/Components/ProjectChoose.vue index d80c932..e2b901a 100644 --- a/src/views/repair/Components/ProjectChoose.vue +++ b/src/views/repair/Components/ProjectChoose.vue @@ -8,7 +8,21 @@ {{ scope.$index + 1 }} - + + + + + @@ -32,11 +46,17 @@ export default { total: 0, queryParams:{ pageNo: 1, - pageSize: 10 + pageSize: 10, + name:undefined } } }, mounted() { + this.queryParams={ + pageNo: 1, + pageSize: 10, + name:undefined + } this.listPage() }, methods: { diff --git a/src/views/repair/project/form/RepairProjectForm.vue b/src/views/repair/project/form/RepairProjectForm.vue index 948d30c..9059373 100644 --- a/src/views/repair/project/form/RepairProjectForm.vue +++ b/src/views/repair/project/form/RepairProjectForm.vue @@ -201,10 +201,10 @@ export default { return; } // 添加的提交 - await RepairProjectApi.createRepairProject(data); + const res = await RepairProjectApi.createRepairProject(data); this.$modal.msgSuccess("新增成功"); this.dialogVisible = false; - this.$emit('success'); + this.$emit('success',res.data); } finally { this.formLoading = false; } diff --git a/src/views/repair/tickets/Components/TicketItem.vue b/src/views/repair/tickets/Components/TicketItem.vue index 703ebec..380a41b 100644 --- a/src/views/repair/tickets/Components/TicketItem.vue +++ b/src/views/repair/tickets/Components/TicketItem.vue @@ -113,7 +113,7 @@ - + @@ -333,11 +333,12 @@ export default { break } }, - returnProject() { - // console.log("新增项目回调") + returnProject(row) { + // this.list.push(row) + }, - returnPart() { - // console.log("新增配件回调") + returnPart(row) { + // this.list.push(row) }, returnOther() { diff --git a/src/views/repair/wares/WaresForm.vue b/src/views/repair/wares/WaresForm.vue index b259585..3e21010 100644 --- a/src/views/repair/wares/WaresForm.vue +++ b/src/views/repair/wares/WaresForm.vue @@ -216,7 +216,6 @@ export default { // 表单校验 formRules: { name: [{required: true, message: '商品名称不能为空', trigger: 'blur'}], - barCode: [{required: true, message: '条形码不能为空', trigger: 'blur'}], price: [{required: true, message: '销售价格不能为空', trigger: 'blur'}], unit: [{required: true, message: '计量单位不能为空', trigger: 'blur'}], type: [{required: true, message: '所属分类不能为空', trigger: 'blur'}], @@ -295,10 +294,10 @@ export default { return; } // 添加的提交 - await WaresApi.createWares(data); + const res = await WaresApi.createWares(data); this.$modal.msgSuccess("新增成功"); this.dialogVisible = false; - this.$emit('success'); + this.$emit('success',res.data); } finally { this.formLoading = false; }