src/views/business/materialOrderComponents/materialOrder/downFileDialog.vue
@@ -20,12 +20,10 @@
</template>
<script>
import ValueTable from "@/components/Table/value-table.vue";
export default {
  name: "downFileDialog",
  // import 引入的组件需要注入到对象中才能使用
  components: {ValueTable},
  components: {},
  props: {
    downFileDialogVisible: {
      type: Boolean,
@@ -46,6 +44,10 @@
  methods: {
    // 进厂检验报告下载
    downLoad0 () {
      if(this.downLoadInfo.enterRatifyStatus !== 1){
        this.$message.error("报告未审批或审批未通过,无法下载")
        return
      }
      let url = this.downLoadInfo.enterUrlS ? this.downLoadInfo.enterUrlS : this.downLoadInfo.enterUrl
      if(url){
        url = url.split('.')[0]+'.pdf'
@@ -58,6 +60,10 @@
    },
    // 季度检验报告下载
    downLoad1 () {
      if(this.downLoadInfo.quarterRatifyStatus !== 1){
        this.$message.error("报告未审批或审批未通过,无法下载")
        return
      }
      let url = this.downLoadInfo.quarterUrlS ? this.downLoadInfo.quarterUrlS : this.downLoadInfo.quarterUrl
      if(url){
        url = url.split('.')[0]+'.pdf'