jinlin
2023-11-15 a4928bd09a4b5034290985ce21304e9fed56732c
web/src/views/modules/project/SoftwareTestOrder-AddOrUpdate.vue
@@ -4,7 +4,7 @@
             class="weiTuoDanAuto">
      <div class="DManageForm">
        <el-form-item readonly label-width="60px" label="编号:" style="width: 99% ;margin-bottom:-5px">
          <span>{{ dataForm.project.code }}</span>
          <span>{{ dataForm.softwareTestOrder.code}}</span>
        </el-form-item>
      </div>
      <div style="border: 1px solid rgba(0,0,0,.2)">
@@ -231,7 +231,7 @@
                  <div class="el-border-left" style="width: 98%;">
                    <el-form-item label="是否盖CNAS章" label-width="130px" style="padding-left:5%;margin-bottom:0">
                      <zt-dict v-model="dataForm.softwareTestOrder.otherRequire" :radio="true"
                               dict="is_or_not"></zt-dict>
                               dict="is_stamp"></zt-dict>
                    </el-form-item>
                  </div>
                </div>
@@ -402,7 +402,8 @@
</template>
<script>
  import Cookies from 'js-cookie'
  import qs from 'qs'
export default {
  data() {
    return {
@@ -412,6 +413,7 @@
        id: null,
        projectId: null,
        softwareTestOrder: {
          code:'',
          optEnviron:'',
          programLang:'',
          testBasis:'',
@@ -516,8 +518,12 @@
      // console.log(this.dataForm, "this.dataForm")
    },
    async print(){
      let res = await this.$http.get(`/project/SoftwareTestOrder/exportWord/${this.dataForm.id}`)
      console.log(res.data)
      var params = qs.stringify({
        token: Cookies.get('token'),
        id:this.dataForm.id
      })
      let apiURL = `/project/SoftwareTestOrder/exportWord/`
      window.location.href = `${window.SITE_CONFIG['apiURL']}${apiURL}?${params}`
    },
    // 表单提交
    async formSubmit() {