zouyu
2024-03-06 6ac64fea29fa0df01f9d0e70372e086de9725aa1
src/views/equipment/mould/index.vue
@@ -2,7 +2,9 @@
  <div class="mod-config">
      <basic-container>
        <ttable
        @handleSelectionChange="handleSelectionChange"
        :table="table"
        :uploadInfo="uploadInfo"
        :ajaxFun="ajaxFun"
        :prelang="prelang"
        :options="options"
@@ -40,6 +42,7 @@
export default {
  data(){
      return {
          diaPrintTab: false,
          editRules: {
            code: [{required:true,message:'请输入模具编号',trigger:'blur'}],
            name: [{required:true,message:'请输入模具名称',trigger:'blur'}]
@@ -48,9 +51,17 @@
            code: null,
            name: null,
          },
          uploadInfo: {
            // 是否展示上传EXCEL以及对应的url
            isShow: true,
            url: '/mes/mould/upload',
            download: true,
            fileName: '模具统计表'
          },
          dialogVisible: false,
          ajaxFun: fetchList,
          prelang: 'moudle',
          multipleSelection: [],
          dataListLoading: false,
          options: {
              height: 300, // 默认高度-为了表头固定
@@ -132,7 +143,6 @@
  },
  components: {
    ttable,
    TableForm
  },
  watch: {
    dialogVisible(newVal){
@@ -152,13 +162,6 @@
            fun: this.addOrUpdateHandle
        })
    }
    if(this.permissions.equipment_mould_lableprint){
        this.table.toolbar.push({
            text: '标签打印',
            type: 'primary',
            fun: this.lableprint
        })
    }
    if(this.permissions.equipment_mould_del){
        this.table.operator = [{
            text: '删除',
@@ -171,6 +174,9 @@
  },
  methods: {
    handleSelectionChange(val) {
      this.multipleSelection = val
    },
    deleteHandle(row){
        this.$confirm('是否确认删除模具名称为' + row.name, '提示', {
          confirmButtonText: '确定',
@@ -184,9 +190,6 @@
            this.$message.success('删除成功')
            this.getData()
          })
    },
    lableprint(){
    },
    confirmSaveOrUpdateMould(){
        this.$refs.editForm.validate(valid=>{