diff --git a/src/api/model/qm.js b/src/api/model/qm.js index fbd8a112..33ade1ed 100644 --- a/src/api/model/qm.js +++ b/src/api/model/qm.js @@ -121,5 +121,47 @@ export default { } } }, + ftestwork: { + list: { + name: "列表", + req: async function(data){ + return await http.get( + `${config.API_URL}/qm/ftestwork/`, + data + ); + } + }, + item: { + name: "检验", + req: async function(id){ + return await http.get( + `${config.API_URL}/qm/ftestwork/${id}/` + ); + } + }, + update: { + name: "更新", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/qm/ftestwork/${id}/`, + data); + } + }, + create: { + name: "创建", + req: async function(data){ + return await http.post( + `${config.API_URL}/qm/ftestwork/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/qm/ftestwork/${id}/`); + } + } + }, } diff --git a/src/views/qm/first_check.vue b/src/views/qm/first_check.vue index 67432556..b330ac85 100644 --- a/src/views/qm/first_check.vue +++ b/src/views/qm/first_check.vue @@ -15,22 +15,6 @@ label-width="100px" > - - - - - - - - - - - - - - - - - - - + + - + - + - - - - - - - - - - - - - + - - + + + + + + + + + diff --git a/src/views/qm/product.vue b/src/views/qm/product.vue index 1f64fc99..3c74f509 100644 --- a/src/views/qm/product.vue +++ b/src/views/qm/product.vue @@ -26,19 +26,19 @@ :params="query" > - + - + - + - - - - - + @@ -86,13 +86,16 @@ import checkDialog from "./product_form.vue"; this.$refs.checkDialog.open("edit").setData(row); }); }, - table_del() { }, + table_del(){ }, //查看 table_show(row) { this.dialog.save = true; this.$nextTick(() => { this.$refs.saveDialog.open("show",10).setData(row); }); + }, + table_check(){ + }, handleQuery() { this.$refs.table.queryData(this.query) diff --git a/src/views/qm/productCheck.vue b/src/views/qm/productCheck.vue new file mode 100644 index 00000000..ede58402 --- /dev/null +++ b/src/views/qm/productCheck.vue @@ -0,0 +1,196 @@ + + \ No newline at end of file diff --git a/src/views/qm/product_check.vue b/src/views/qm/product_check.vue new file mode 100644 index 00000000..83bd8ddf --- /dev/null +++ b/src/views/qm/product_check.vue @@ -0,0 +1,243 @@ + + + + diff --git a/src/views/qm/product_form.vue b/src/views/qm/product_form.vue index 83bd8ddf..48737085 100644 --- a/src/views/qm/product_form.vue +++ b/src/views/qm/product_form.vue @@ -1,9 +1,9 @@