haoxuan
2023-08-25 db64fc3d6ff2809ec6b5d8cc42a21c67746df209
src/views/purchaseManage/purchase/index.vue
@@ -23,7 +23,7 @@
          <template slot="tableButton">
            <el-table-column label="操作" width="120" fixed="right">
              <template slot-scope="scope">
                <el-button type="text"  size="small" @click="editClick"  style="margin-right: 5px"
                <el-button type="text"  size="small" @click="editClick(scope.row)"  style="margin-right: 5px"
                  >编辑</el-button
                >
                <el-button  @click="submitClick(scope.row)" type="text" size="small">提交</el-button>
@@ -41,18 +41,24 @@
    <!-- <AddSalesLeadDialog v-if="editSalesLeadConfig.visible" :edit-rightContent-config="editSalesLeadConfig" /> -->
    <!-- 详情 -->
    <DetailSupplier v-if="commonDetail.visible" :common-detail="commonDetail" @submitClick="submitClick" />
    <AddPurchase2 ref="add"  :editRow="editRow" @shutdown="getData" />
    <!-- 新建/编辑 -->
    <AddPurchase v-if="editConfig.visible" :edit-common-config="editConfig" />
  </div>
</template>
<script>
import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
import { getSalesLeadsList, getDeleteSalesLeads } from "@/api/client/salesLead"
import {
  getSalesLeadsList, getDeleteSalesLeads
} from "@/api/purchaseManage/purchase";
import DetailSupplier from "@/views/purchaseManage/purchase/DetailSupplier"
import AddPurchase2 from "@/views/purchaseManage/purchase/components/AddPurchase2"
import AddPurchase from "@/views/purchaseManage/purchase/components/AddPurchase"
export default {
  name: "SupplierManage",
  props: {},
  components: { DetailSupplier },
  components: { DetailSupplier,AddPurchase2,AddPurchase },
  mixins: [pageMixin],
  computed: {},
  data() {
@@ -63,7 +69,13 @@
        visible: false,
        infomation: {}
      },
      search_map: {}
      search_map: {},
      editRow:{},
      editConfig: {
        visible: false,
        title: "创建",
        infomation: {}
      },
    }
  },
  created() {
@@ -125,10 +137,21 @@
      this.getData()
    },
    // 新建
    addBtnClick() {},
    addBtnClick() {
      // this.editRow = {};
      // this.$refs.add.islook = true;
      this.editConfig.visible = true
      this.editConfig.title = "创建"
      this.editConfig.infomation = { }
    },
    // 编辑
    editClick(){
    editClick(row){
      // this.editRow = row;
      // this.$refs.add.islook = true;
      this.editConfig.visible = true
      this.editConfig.title = "编辑"
      this.editConfig.infomation = { ...row }
    },
    // 确认发货
    submitClick() {