cy
2023-11-25 e65e3c1a492714364483b892bd3fa01adb643191
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>
@@ -131,6 +129,7 @@
import listPage from '../../../mixins/listPage';
import transfer from '../../../mixins/transfer';
import { commonsApi } from '@/api/commonsApi';
import SettingIplatform from '@/utils/settingIplatform';
export default {
  name: 'index',
@@ -151,29 +150,17 @@
          defaultValue: '',
        },
        {
          type: 'text',
          dataIndex: 'goodsTemplateName',
          type: 'select',
          dataIndex: 'goodsTemplateId',
          label: '物品名称',
          placeholder: '可模糊搜索',
          defaultValue: '',
        },
        {
          type: 'cascader',
          dataIndex: 'outAgencyId',
          label: '调拨机构',
          placeholder: '请选择',
          optionsConfig: { url: commonsApi.cascader_tree_fin_tenant, props: null },
          placeholder: '请输入',
          defaultValue: '',
          options: [],
        },
        {
          type: 'cascader',
          dataIndex: 'inAgencyId',
          label: '接收机构',
          placeholder: '请选择',
          optionsConfig: { url: commonsApi.cascader_tree_fin_tenant, props: null },
          defaultValue: '',
          options: [],
          optionsConfig: {
            label: 'goodsName',
            value: 'id',
            url: SettingIplatform.apiBaseURL + '/pc/base/goods/template/query/goodsTemplate',
          },
        },
        {
          type: 'select',
@@ -208,14 +195,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 +224,43 @@
        console.log(this.list);
      });
    },
    // 入库
    handleIncome(row) {
      this.$confirm(`您确定 单号:${row.businessFormCode}  调拨出库吗?`, '调拨出库').then(() => {
        transfeIncome({ id: row.id })
          .then((res) => {
            this.$message.success('调拨出库成功!');
            this.search(1);
          })
      this.$confirm(`您确定 单号:${row.businessFormCode}  接收入库吗?`, '接收入库', {
        beforeClose: (action, instance, done) => {
          if (action == 'confirm') {
            instance.confirmButtonLoading = true;
            instance.confirmButtonText = '执行中...';
            transfeIncome({ id: row.id })
              .then((res) => {
                this.$message.success('接收入库成功!');
                done();
                instance.confirmButtonLoading = false;
                this.search(1);
              })
              .catch(() => {
                done();
              });
          } else {
            done();
          }
        },
      });
    },
    // 导出
    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) {