diff --git a/src/App.vue b/src/App.vue index 35895ed..2f7b353 100644 --- a/src/App.vue +++ b/src/App.vue @@ -450,4 +450,12 @@ export default { } } } +.template-form-item { + background: #fff; + padding: 20px; + border-radius: 8px; + box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1); + margin-top: 24px; + padding: 24px; +} diff --git a/src/components/Template/BaseInfoFormPcakge.vue b/src/components/Template/BaseInfoFormPcakge.vue new file mode 100644 index 0000000..3b1b55a --- /dev/null +++ b/src/components/Template/BaseInfoFormPcakge.vue @@ -0,0 +1,392 @@ + + + + + \ No newline at end of file diff --git a/src/components/Template/CustomTable.vue b/src/components/Template/CustomTable.vue new file mode 100644 index 0000000..99e043d --- /dev/null +++ b/src/components/Template/CustomTable.vue @@ -0,0 +1,163 @@ + + + + + \ No newline at end of file diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue new file mode 100644 index 0000000..ca6e0f2 --- /dev/null +++ b/src/components/Template/HandleFormItem.vue @@ -0,0 +1,200 @@ + + + + + \ No newline at end of file diff --git a/src/components/Template/Input.vue b/src/components/Template/Input.vue new file mode 100644 index 0000000..8f347de --- /dev/null +++ b/src/components/Template/Input.vue @@ -0,0 +1,258 @@ + + + + + \ No newline at end of file diff --git a/src/components/Template/LineLabel.vue b/src/components/Template/LineLabel.vue new file mode 100644 index 0000000..e77196b --- /dev/null +++ b/src/components/Template/LineLabel.vue @@ -0,0 +1,43 @@ + + + + + \ No newline at end of file diff --git a/src/components/Template/Step.vue b/src/components/Template/Step.vue new file mode 100644 index 0000000..421571d --- /dev/null +++ b/src/components/Template/Step.vue @@ -0,0 +1,357 @@ + + + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/AddSolutionStep.vue b/src/components/Template/StepComponents/AddSolutionStep.vue new file mode 100644 index 0000000..3313f85 --- /dev/null +++ b/src/components/Template/StepComponents/AddSolutionStep.vue @@ -0,0 +1,66 @@ + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/AutoWeighStep.vue b/src/components/Template/StepComponents/AutoWeighStep.vue new file mode 100644 index 0000000..e0c4f01 --- /dev/null +++ b/src/components/Template/StepComponents/AutoWeighStep.vue @@ -0,0 +1,89 @@ + + + + + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/CentrifugeStep.vue b/src/components/Template/StepComponents/CentrifugeStep.vue new file mode 100644 index 0000000..52d5b07 --- /dev/null +++ b/src/components/Template/StepComponents/CentrifugeStep.vue @@ -0,0 +1,62 @@ + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/CoatStep.vue b/src/components/Template/StepComponents/CoatStep.vue new file mode 100644 index 0000000..bc94107 --- /dev/null +++ b/src/components/Template/StepComponents/CoatStep.vue @@ -0,0 +1,152 @@ + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/ContainerStep.vue b/src/components/Template/StepComponents/ContainerStep.vue new file mode 100644 index 0000000..83a0ee4 --- /dev/null +++ b/src/components/Template/StepComponents/ContainerStep.vue @@ -0,0 +1,71 @@ + + + + + diff --git a/src/components/Template/StepComponents/FiltrationStep.vue b/src/components/Template/StepComponents/FiltrationStep.vue new file mode 100644 index 0000000..4dbf33c --- /dev/null +++ b/src/components/Template/StepComponents/FiltrationStep.vue @@ -0,0 +1,84 @@ + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/ManualWeighStep.vue b/src/components/Template/StepComponents/ManualWeighStep.vue new file mode 100644 index 0000000..cc471a5 --- /dev/null +++ b/src/components/Template/StepComponents/ManualWeighStep.vue @@ -0,0 +1,50 @@ + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/MixStep.vue b/src/components/Template/StepComponents/MixStep.vue new file mode 100644 index 0000000..305bdb0 --- /dev/null +++ b/src/components/Template/StepComponents/MixStep.vue @@ -0,0 +1,59 @@ + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/PackageStep.vue b/src/components/Template/StepComponents/PackageStep.vue new file mode 100644 index 0000000..fbf505c --- /dev/null +++ b/src/components/Template/StepComponents/PackageStep.vue @@ -0,0 +1,90 @@ + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/Seal2Step.vue b/src/components/Template/StepComponents/Seal2Step.vue new file mode 100644 index 0000000..c7b68f6 --- /dev/null +++ b/src/components/Template/StepComponents/Seal2Step.vue @@ -0,0 +1,113 @@ + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/Seal3Step.vue b/src/components/Template/StepComponents/Seal3Step.vue new file mode 100644 index 0000000..ebc9cfd --- /dev/null +++ b/src/components/Template/StepComponents/Seal3Step.vue @@ -0,0 +1,114 @@ + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/StaticEndStep.vue b/src/components/Template/StepComponents/StaticEndStep.vue new file mode 100644 index 0000000..a02c8dd --- /dev/null +++ b/src/components/Template/StepComponents/StaticEndStep.vue @@ -0,0 +1,144 @@ + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/StaticStartStep.vue b/src/components/Template/StepComponents/StaticStartStep.vue new file mode 100644 index 0000000..3957a40 --- /dev/null +++ b/src/components/Template/StepComponents/StaticStartStep.vue @@ -0,0 +1,142 @@ + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/TakePlateStep.vue b/src/components/Template/StepComponents/TakePlateStep.vue new file mode 100644 index 0000000..530065b --- /dev/null +++ b/src/components/Template/StepComponents/TakePlateStep.vue @@ -0,0 +1,147 @@ + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/UltrasoundStep.vue b/src/components/Template/StepComponents/UltrasoundStep.vue new file mode 100644 index 0000000..08eeece --- /dev/null +++ b/src/components/Template/StepComponents/UltrasoundStep.vue @@ -0,0 +1,50 @@ + + + \ No newline at end of file diff --git a/src/components/Template/StepComponents/VortexStep.vue b/src/components/Template/StepComponents/VortexStep.vue new file mode 100644 index 0000000..8fe6df6 --- /dev/null +++ b/src/components/Template/StepComponents/VortexStep.vue @@ -0,0 +1,124 @@ + + + \ No newline at end of file diff --git a/src/components/Template/Table.vue b/src/components/Template/Table.vue new file mode 100644 index 0000000..a29fb2f --- /dev/null +++ b/src/components/Template/Table.vue @@ -0,0 +1,33 @@ + + + + + \ No newline at end of file diff --git a/src/store/index.js b/src/store/index.js index 97aaef8..4817bba 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -7,6 +7,7 @@ import tagsView from './modules/tagsView' import permission from './modules/permission' import settings from './modules/settings' import getters from './getters' +import template from './modules/template' Vue.use(Vuex) @@ -17,7 +18,8 @@ const store = new Vuex.Store({ user, tagsView, permission, - settings + settings, + template }, getters }) diff --git a/src/store/modules/template.js b/src/store/modules/template.js new file mode 100644 index 0000000..9258393 --- /dev/null +++ b/src/store/modules/template.js @@ -0,0 +1,17 @@ +const template = { + namespaced: true, + state: { + templateStatus:"",//模板状态 "actFill"(实际填报) "preFill"(预填) ”qc“(qc) "detail"(详情) + }, + mutations: { + SET_TEMPLATE_STATUS: (state, status) => { + state.templateStatus = status + } + }, + actions: { + setTemplateStatus({ commit }, status) { + commit('SET_TEMPLATE_STATUS', status) + } + } +} +export default template \ No newline at end of file diff --git a/src/views/business/comps/template/TemplateTable.vue b/src/views/business/comps/template/TemplateTable.vue index 60b2d07..2ecf1f8 100644 --- a/src/views/business/comps/template/TemplateTable.vue +++ b/src/views/business/comps/template/TemplateTable.vue @@ -1,19 +1,40 @@ diff --git a/src/views/business/comps/template/comps/sp/Demo.vue b/src/views/business/comps/template/comps/sp/Demo.vue new file mode 100644 index 0000000..cabc9d3 --- /dev/null +++ b/src/views/business/comps/template/comps/sp/Demo.vue @@ -0,0 +1,297 @@ + + + + + \ No newline at end of file diff --git a/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue b/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue new file mode 100644 index 0000000..a3387ea --- /dev/null +++ b/src/views/business/comps/template/comps/sp/SWYPFXRYPZB.vue @@ -0,0 +1,263 @@ + + + + + \ No newline at end of file diff --git a/src/views/business/comps/template/mixins/templateMixin.js b/src/views/business/comps/template/mixins/templateMixin.js new file mode 100644 index 0000000..2f9519e --- /dev/null +++ b/src/views/business/comps/template/mixins/templateMixin.js @@ -0,0 +1,16 @@ +export default { + data() { + + }, + mounted() { + + this.setTemplateStatus(this.fillType) + + }, + methods: { + setTemplateStatus(status) { + this.$store.commit('template/SET_TEMPLATE_STATUS', status) + } + }, + +} diff --git a/src/views/business/template/list.vue b/src/views/business/template/list.vue index 51915d4..4bb36bc 100644 --- a/src/views/business/template/list.vue +++ b/src/views/business/template/list.vue @@ -79,7 +79,7 @@ - + diff --git a/vue.config.js b/vue.config.js index 4fb77ed..d3ce99c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -34,8 +34,8 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:8080`, - // target: `http://39.99.251.173:8080`, + // target: `http://localhost:8080`, + target: `http://39.99.251.173:8080`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''