haoyahui
2023-11-20 025dafb9892a8ff8f8a855343660f837a0f231d3
admin-web/src/views/stock/procure/purchaseOrder/edit.vue
@@ -1,5 +1,5 @@
<template>
  <win-md class="stock-edit" :title="`${setting.title}采购入库`" @close="close" :width="'800px'">
  <win-md class="stock-edit" :title="`${setting.title}采购入库`" @close="close" :width="'800px'" :loading="loading">
    <el-form class="form" ref="ruleForm" :model="formData" :rules="rules" label-width="120px">
      <div class="main-w">
        <el-row :gutter="24" class="headerHeight">
@@ -256,7 +256,7 @@
      callback();
    };
    return {
      loading: false,
      loading: true,
      buyTypeOptions: [
        {
          label: '集采',
@@ -361,6 +361,7 @@
          return item;
        });
      }
      this.loading = false;
    },
    // 获取入库仓库列表
@@ -502,8 +503,8 @@
    handleSubmit() {
      this.$refs['ruleForm'].validate((valid) => {
        if (valid) {
          this.loading = true;
          console.log('formData', this.formData);
          debugger;
          if (!this.setting.id) {
            procureAdd(this.formData)
              .then((res) => {
@@ -513,6 +514,7 @@
              })
              .catch((err) => {
                console.log('create err', err);
                this.loading = false;
                this.$message.error('保存失败');
              });
          } else {
@@ -524,6 +526,7 @@
              })
              .catch((err) => {
                console.log('edit err', err);
                this.loading = false;
                this.$message.error('保存失败');
              });
          }