MaterialJmPrintForm.vue 1.67 KB
<template>
  <j-modal
    :title="title"
    :width="width"
    :visible="visible"
    switchFullscreen
    @ok="handleOk"
    okText="打印"
    @cancel="close"
    cancelText="关闭">

    <a-row>
      <a-col :span="24">
        <a-form-model-item label="供应商" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="code">
          <j-search-select-tag
            placeholder="请选择供应商"
            v-model="model.remark"
            dict="supplier,name,name"
            :pageSize="50"
            :async="true">
          </j-search-select-tag>
        </a-form-model-item>
      </a-col>
    </a-row>
  </j-modal>
</template>


<script>

import {httpAction} from '@/api/manage'

export default {
  name: 'MaterialJmPrintForm',
  components: {},
  props: {
    //表单禁用
    disabled: {
      type: Boolean,
      default: false,
      required: false
    }
  },
  data() {
    return {
      title: '',
      width: 800,
      ids:'',
      visible: false,
      disableSubmit: false,
      materialTypeList: [],
      model: {},
      labelCol: {
        xs: {span: 24},
        sm: {span: 5},
      },
      wrapperCol: {
        xs: {span: 24},
        sm: {span: 16},
      },
      confirmLoading: false,
      validatorRules: {

      }
    }
  },
  created() {


  },
  methods: {
    edit(ids) {
      this.ids=ids;
      this.visible = true;
    },
    close() {
      this.$emit('close');
      this.visible = false;
    },
    handleOk() {
      window.open(window._CONFIG['domianURL'] + "/jmreport/view/768639966038540288/?id=" + this.ids+"&remark="+this.model.remark, "newWindow", "toolbar=no,scrollbars=no,menubar=no,screenX=100,screenY=100");
    },

  }
}
</script>