Fixiaobai
2023-08-30 5cd744dcc854a9203234fc95d55521c8caa8dd6d
委托查询信息
已修改4个文件
22 ■■■■ 文件已修改
.env.development 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/inspection/commisioninspection.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/CNAS/satisfactionSurveys/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/inspectionManagement/commissionInspection/addCommision.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.development
@@ -2,4 +2,4 @@
ENV = 'development'
# base api
VUE_APP_BASE_API =  'http://192.168.137.138:1234/'
VUE_APP_BASE_API =  'http://localhost:1234/'
src/api/inspection/commisioninspection.js
@@ -25,6 +25,14 @@
  })
}
//
export function getContractsSampleInfo(params){
  return request({
    url: 'link-basic/getContractsSampleInfo',
    method: 'get',
    params
  })
}
//规格型号
export function getModelSpecification(params){
  return request({
src/views/CNAS/satisfactionSurveys/index.vue
@@ -224,7 +224,7 @@
      otherSupplements: "无",
      improvementRequirements: "无",
      dialogVisible2: false,
      path: 'http://192.168.110.254:1234/cnasSatisfactionSurvey/uploadFile',
      path: 'http://localhost:1234/cnasSatisfactionSurvey/uploadFile',
      ruleForm: {
        surveyDate: '',
        userUnit: '',
@@ -263,7 +263,7 @@
    }
  },
  created() {
      // this.path=process.env.VUE_APP_BASE_API+"cnasSatisfactionSurvey/uploadFile"
  },
  mounted() {
    this.getData()
src/views/inspectionManagement/commissionInspection/addCommision.vue
@@ -229,7 +229,8 @@
        getModelSpecification,
        getlink,
        addInspection,
        isIfViewUUID
        isIfViewUUID,
        getContractsSampleInfo
    } from '@/api/inspection/commisioninspection'
    export default {
        data() {
@@ -324,6 +325,7 @@
            this.viewId = this.$route.params.viewId
            this.$store.commit('settings/SAVE_LINK', this.viewId)
            this.getlink(this.$route.params.viewId)
            this.getContractsSampleInfo(this.$route.params.viewId)
        },
        mounted() {
            this.getSampleName()
@@ -344,6 +346,10 @@
                    }
                })
            },
            async getContractsSampleInfo(viewId){
                let res=await getContractsSampleInfo({viewId})
                console.log(res.data);
            },
            async getSampleName() {
                const res = await getSampleName()
                this.sampleoptions = res.data.map((item) => {