haoyahui
2023-11-17 b6a04be0a4cbf5d5a44006a09b83f52a71dfce27
admin-web/src/views/stock/transfer/transferApplication/index.vue
@@ -62,9 +62,7 @@
                        <div class="box">
                          <span class="span-two">申请调拨时间:</span>{{ item.createTime | formatTime }}
                        </div>
                        <div class="box">
                          <span class="span-two">接收时间:</span>{{ item.inTime | formatTime }}
                        </div>
                        <div class="box"><span class="span-two">接收时间:</span>{{ item.inTime | formatTime }}</div>
                      </div>
                      <div class="one-hed">
                        <div class="box"><span class="span-two">调拨机构:</span>{{ item.outAgencyName }}</div>
@@ -158,24 +156,6 @@
          defaultValue: '',
        },
        {
          type: 'cascader',
          dataIndex: 'outAgencyId',
          label: '调拨机构',
          placeholder: '请选择',
          optionsConfig: { url: commonsApi.cascader_tree_fin_tenant, props: null },
          defaultValue: '',
          options: [],
        },
        {
          type: 'cascader',
          dataIndex: 'inAgencyId',
          label: '接收机构',
          placeholder: '请选择',
          optionsConfig: { url: commonsApi.cascader_tree_fin_tenant, props: null },
          defaultValue: '',
          options: [],
        },
        {
          type: 'select',
          dataIndex: 'states',
          label: '状态',
@@ -208,14 +188,13 @@
          defaultValue: '',
        },
      ],
      filterFrom:{
      }
      filterFrom: {},
    };
  },
  created() {
    this.filterFrom = {
      operatorId:this.userInfo.id
    }
      inAgencyId: this.userInfo.tenantId,
    };
    this.fetchData();
    this.items.map((v) => {
      if (v.label == '状态') {
@@ -238,33 +217,29 @@
        console.log(this.list);
      });
    },
    // 入库
    handleIncome(row) {
      this.$confirm(`您确定 单号:${row.businessFormCode}  调拨出库吗?`, '调拨出库').then(() => {
        transfeIncome({ id: row.id })
          .then((res) => {
            this.$message.success('调拨出库成功!');
            this.search(1);
          })
        transfeIncome({ id: row.id }).then((res) => {
          this.$message.success('调拨出库成功!');
          this.search(1);
        });
      });
    },
    // 导出
    handleExport(row) {
      transferExport({id:row.id}).then(res=>{
      })
      transferExport({ id: row.id }).then((res) => {});
    },
    // 撤销
    handleRevoke(row) {
      this.$confirm(`您确定撤销单号为"${row.businessFormCode}"  的数据吗?`, '撤销').then(() => {
        transferUpdStatus({ id: row.id })
          .then((res) => {
            this.$message.success('撤销成功!');
            this.search(1);
          })
        transferUpdStatus({ id: row.id }).then((res) => {
          this.$message.success('撤销成功!');
          this.search(1);
        });
      });
    },
    fifterForm(params) {