智慧农业后台管理页面
guoshilong
2022-08-24 41dc8bedbfee679decb94d2df35c10fc003e258a
二级菜单添加返回功能
3 files modified
29 ■■■■■ changed files
src/views/soldrecord/soldrecord.vue 11 ●●●●● patch | view | raw | blame | history
src/views/stock/stockout.vue 4 ●●●● patch | view | raw | blame | history
src/views/stockrecord/stockrecord.vue 14 ●●●●● patch | view | raw | blame | history
src/views/soldrecord/soldrecord.vue
@@ -20,6 +20,12 @@
            @refresh-change="refreshChange"
            @on-load="onLoad"
        >
            <template slot-scope="" slot="menuLeft">
                    <el-button type="primary"
                    icon="el-icon-back"
                    size="small"
                    @click="prev">返回</el-button>
            </template>
            <template slot="menuLeft">
                <el-button
                    type="danger"
@@ -64,6 +70,8 @@
                align: "center",
                menu: false,
                dialogClickModal: false,
                refreshBtn:false,
                columnBtn:false,
                column: [
                    {
                        label: "农资",
@@ -157,6 +165,9 @@
      this.farm.id = this.$farmId
    },
    methods: {
        prev(){
            this.$router.go(-1)
        },
        rowSave (row, done, loading) {
            add(row).then(() => {
                this.onLoad(this.page)
src/views/stock/stockout.vue
@@ -3,6 +3,7 @@
    <div class="search">
      <div style="float: left">
        <div style="float: left">
          <el-button style="margin-right:20px" type="primary" size="small" icon="el-icon-back" @click="prev">返回</el-button>
          <el-select
            v-model="formInline.stype"
            placeholder="全部分类"
@@ -197,6 +198,9 @@
        query: item
      });
    },
    prev(){
      this.$router.go(-1)
    },
    //退回提交
    submitO(row, done, loading) {
      //退回数量大于入库数量
src/views/stockrecord/stockrecord.vue
@@ -18,6 +18,12 @@
               @size-change="sizeChange"
               @refresh-change="refreshChange"
               @on-load="onLoad">
            <template slot-scope="" slot="menuLeft">
                    <el-button type="primary"
                    icon="el-icon-back"
                    size="small"
                    @click="prev">返回</el-button>
            </template>
      <template slot="menuLeft">
        <el-button type="danger"
                   size="small"
@@ -58,9 +64,12 @@
          index: true,
          viewBtn: true,
          align: "center",
          excelBtn:true,
          selection: true,
          dialogClickModal: false,
          refreshBtn:false,
          columnBtn:false,
          searchShowBtn:false,
          excelBtn:true,
          column: [
            {
              label: "农资",
@@ -165,6 +174,9 @@
      //     window.console.log(error);
      //   });
      // },
      prev(){
        this.$router.go(-1)
      },
      rowUpdate(row, index, done, loading) {
        update(row).then(() => {
          this.onLoad(this.page);