diff --git a/src/i18n/zh-CN.js b/src/i18n/zh-CN.js index ad89c51..9cced19 100644 --- a/src/i18n/zh-CN.js +++ b/src/i18n/zh-CN.js @@ -575,6 +575,7 @@ t.gage.repeatabilityAndReproducibility = '重复性和再现性(R&R)' t.gage.partVariation = '零件变差(TV)' t.gage.decide = '综合判定' t.gage.tabularComputations = '表格计算' +t.gage.tabularComputationsAdd = '表格计算新增' t.gage.fabrication = '制作' @@ -700,7 +701,6 @@ t.researchquality.registrationDate = '登记日期' t.researchquality.changeSource = '变更来源' t.researchquality.owner = '所有者' t.researchquality.category = 'Category' -t.researchquality.title = '标题' t.researchquality.currentStage = '当前阶段' t.researchquality.productName = '产品名称' t.researchquality.qualityChangeStatus = '状态' diff --git a/src/views/modules/customerquality/components/baseConfig-add.vue b/src/views/modules/customerquality/components/baseConfig-add.vue index 07178a4..ef895f2 100644 --- a/src/views/modules/customerquality/components/baseConfig-add.vue +++ b/src/views/modules/customerquality/components/baseConfig-add.vue @@ -1,14 +1,14 @@ - + @@ -101,7 +101,7 @@ export default { }) }, handleClose() { - this.innerDrawer = true + this.innerDrawer = false this.$refs.dataForm.resetFields() }, getInfo() { diff --git a/src/views/modules/customerquality/components/customerQualityProjectList-add.vue b/src/views/modules/customerquality/components/customerQualityProjectList-add.vue index e8e900a..fd8dd1a 100644 --- a/src/views/modules/customerquality/components/customerQualityProjectList-add.vue +++ b/src/views/modules/customerquality/components/customerQualityProjectList-add.vue @@ -1,12 +1,12 @@ - + @@ -137,7 +137,9 @@ export default { urlOptions: { getDataListURL: "/customerquality/qmsCustomerQualityProjectList/page", deleteURL: "/customerquality/qmsCustomerQualityProjectList", - exportURL: '/customerquality/qmsCustomerQualityProjectList/export' + exportURL: '/customerquality/qmsCustomerQualityProjectList/export', + getProductURL: '/basic/qmsProduct/page', + getCustomerURL: '/basic/qmsCustomer/page' }, tableData:[], productData: {}, @@ -156,6 +158,56 @@ export default { productOrUpdateVisible: false, qualityProjectListShow:false, formConfig: [ + { + type: 'select', + label: i18n.t('basic.productName'), + placeholder: i18n.t('basic.productName'), + selectOptions: [], + param: 'productId' + }, + { + type: 'select', + label: i18n.t('customerquality.customerName'), + placeholder: i18n.t('customerquality.customerName'), + selectOptions: [], + param: 'customerId' + }, + { + type: 'select', + label: i18n.t('customerquality.status'), + placeholder: i18n.t('customerquality.status'), + selectOptions: [ + { + id: '0', + name: '待审核' + }, + { + id: '1', + name: '已完成' + }, + { + id: '2', + name: '交付退回' + }, + { + id: '3', + name: '审核拒绝' + } + ], + param: 'status' + }, + { + type: 'datePicker', + label: i18n.t('time'), + dateType: 'datetimerange', + format: 'yyyy-MM-dd HH:mm:ss', + valueFormat: 'yyyy-MM-ddTHH:mm:ss', + rangeSeparator: '-', + startPlaceholder: '开始时间', + endPlaceholder: '结束时间', + param: 'timeSlot', + width: 350 + }, { type: "button", btnName: i18n.t('search'), @@ -179,7 +231,8 @@ export default { // baseConfig }, mounted () { - this.getDataList(); + this.getDataList() + this.getDict() }, methods: { //search-bar点击 @@ -203,6 +256,42 @@ export default { this.dataListLoading = false; }) }, + getDict() { + this.$http + .get(this.urlOptions.getProductURL, { + params: { + limit: 999, + page: 1, + } + }) + .then(({ data: res }) => { + // this.dataListLoading = false; + if (res.code === 0) { + this.formConfig[0].selectOptions = res.data.list.map((item) => { + return { + id: item.id, + name:item.productName + } + }) + } + }) + this.$http + .get(this.urlOptions.getCustomerURL, { + params: { + limit: 999, + page: 1, + } + }) + .then(({ data: res }) => { + // this.dataListLoading = false; + this.formConfig[1].selectOptions = res.data.list.map((item) => { + return { + id: item.id, + name: item.customerName + } + }) + }) + }, handleProductCancel() { this.productOrUpdateVisible = false; this.productOrEditTitle = ""; @@ -318,6 +407,11 @@ export default { case "search": // this.listQuery.paramCode = val.paramCode; // console.log(i18n); + this.listQuery.status = val.status ? val.status : null + this.listQuery.productId = val.productId ? val.productId : null + this.listQuery.customerId = val.customerId ? val.customerId : null + this.listQuery.startTime = val.timeSlot ? val.timeSlot[0] : null + this.listQuery.endTime = val.timeSlot ? val.timeSlot[1] : null this.listQuery.page = 1 this.getDataList() break; diff --git a/src/views/modules/gage/components/gageGrs-add.vue b/src/views/modules/gage/components/gageGrs-add.vue index 8dd143e..d5982d0 100644 --- a/src/views/modules/gage/components/gageGrs-add.vue +++ b/src/views/modules/gage/components/gageGrs-add.vue @@ -1,139 +1,159 @@ - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ $t('cancel') }} + {{ $t('confirm') }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ $t('gage.tabularComputations') }} - - + + + + {{ $t('gage.tabularComputations') }} + {{ $t('gage.tabularComputationsAdd') }} + + + + + + + + + diff --git a/src/views/modules/gage/components/tabularComputations-add.vue b/src/views/modules/gage/components/tabularComputations-add.vue new file mode 100644 index 0000000..0983c7c --- /dev/null +++ b/src/views/modules/gage/components/tabularComputations-add.vue @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ $t('cancel') }} + {{ $t('confirm') }} + + + + + + diff --git a/src/views/modules/gage/qmsGageGrr.vue b/src/views/modules/gage/qmsGageGrr.vue index 7a8b630..eb0feed 100644 --- a/src/views/modules/gage/qmsGageGrr.vue +++ b/src/views/modules/gage/qmsGageGrr.vue @@ -1,7 +1,7 @@ @@ -20,11 +20,11 @@ - - + --> @@ -34,7 +34,7 @@ {{ $t("close") }} {{ $t("reset") - }} + }} {{ $t("search") }} @@ -42,6 +42,8 @@ + + @@ -52,6 +54,7 @@ import gapeGrsAdd from "./components/gageGrs-add" import reportShow from "./components/report-show" import gageSearch from "./components/gageSearch" import basicSearch from "@/mixins/basic-search" + import { timeFormatter } from '@/filters' import i18n from "@/i18n" const tableProps = [ @@ -160,6 +163,7 @@ export default { deleteURL: "/gage/qmsGageGrr", exportUrl: '/gage/qmsGageGrr/export' }, + gapeGrsAddShow:false, grrReportData:{}, dialogTableVisible:false, tableProps, @@ -295,11 +299,11 @@ export default { }) .catch(() => { }); } else if (val.type === 'edit') { - this.addOrUpdateVisible = true - this.addOrEditTitle = this.$t('edit') + this.gapeGrsAddShow = true + // this.addOrEditTitle = this.$t('edit') this.$nextTick(() => { - this.$refs.addOrUpdate.init(val.data.id); - }); + this.$refs.gapeGrsAddOrUpdate.init(val.data.id); + }) } else if (val.type === 'parameter') { this.$router.push({ name: 'gage-qmsGageTypeDifferenceParameter', @@ -332,9 +336,11 @@ export default { this.exportHandle(); break; case "add": - this.addOrEditTitle = '新增' - this.addOrUpdateVisible = true; - this.addOrUpdateHandle() + this.gapeGrsAddShow = true + // this.addOrEditTitle = this.$t('edit') + this.$nextTick(() => { + this.$refs.gapeGrsAddOrUpdate.init() + }) break; default: console.log(val) diff --git a/src/views/modules/researchquality/qmsQualityChange.vue b/src/views/modules/researchquality/qmsQualityChange.vue index 59a562a..07cd40b 100644 --- a/src/views/modules/researchquality/qmsQualityChange.vue +++ b/src/views/modules/researchquality/qmsQualityChange.vue @@ -1,7 +1,7 @@ @@ -9,9 +9,9 @@ - + @@ -27,32 +27,14 @@ - - - - - - - {{ $t("close") }} - - {{ - $t("reset") - }} - - {{ $t("search") }} - - - -