瀏覽代碼

feat:组合商品新建

snow 1 年之前
父節點
當前提交
cf20b97609

+ 1 - 1
src/assets/js/accountList.js

@@ -8,7 +8,7 @@ const accountList = [
     },
     {
       value: '2',
-      label: '自定义比例',
+      label: '自定义比例'
     }]
   },
   {

File diff suppressed because it is too large
+ 396 - 343
src/views/goodStore/goodsCost/components/baseForm.vue


+ 501 - 0
src/views/goodStore/goodsCost/components/productListModal.vue

@@ -0,0 +1,501 @@
+<template>
+  <el-dialog
+    center
+    title="选择子商品"
+    :visible="_visible"
+    @close="handleClose"
+    :close-on-click-modal="false"
+    :append-to-body="true"
+    width="1024px"
+    top="5vh"
+    class="child-product"
+  >
+    <ex-table
+      v-loading="loading"
+      :table="table"
+      :data="tableData"
+      :columns="columns"
+      :page="pageInfo"
+      :size="size"
+      @page-curr-change="handlePageChange"
+      @page-size-change="handleSizeChange"
+      @screen-reset="
+        pageInfo.curr = 1;
+        parmValue.page = 1;
+        searchList();
+      "
+      @screen-submit="
+        pageInfo.curr = 1;
+        parmValue.page = 1;
+        searchList();
+      "
+      @selection="selectionChange"
+    >
+      <template #table-header="{}">
+        <div style="width: 100%">
+          <el-row style="padding: 0 0 10px 0px">
+            <el-col :span="6" style="width: 303px">
+              <period-date-picker
+                :type="1"
+                :width="'135px'"
+                :size="searchSize"
+                :start="parmValue.start"
+                :end="parmValue.end"
+                @timeReturned="handleTime"
+              />
+            </el-col>
+            <el-col :span="4" style="width: 135px">
+              <search-brand
+                :value="brandid"
+                :disabled="false"
+                :size="'mini'"
+                :isDetail="true"
+                :names="parmValue.supplierName"
+                :placeholder="'商品品牌'"
+                @searchChange="brandidsearchChange"
+              />
+            </el-col>
+            <el-col :span="6" style="width: 310px; padding: 0 0 0 10px">
+              <good-class
+                :value="parmValue.cat_id"
+                @handleChange="goods_class_change"
+                :disabled="false"
+                :size="searchSize"
+                :isDetail="false"
+                :placeholder="'分类'"
+              />
+            </el-col>
+
+            <el-col :span="3" class="fr" style="width: 66px; padding: 0 0 0 10px">
+              <el-button type="primary" :size="searchSize" @click="searchList">刷新</el-button>
+            </el-col>
+
+            <el-col :span="3" class="fr" style="width: 66px; padding: 0 0 0 10px">
+              <el-button type="warning" :size="searchSize" @click="restSearch">重置</el-button>
+            </el-col>
+          </el-row>
+          <el-row>
+            <!-- <el-col :span="4" style="width: 226px">
+              <el-select
+                v-model="parmValue.status"
+                filterable
+                clearable
+                :size="searchSize"
+                placeholder="状态"
+                style="width: 100%"
+                @change="
+                  pageInfo.curr = 1;
+                  parmValue.page = 1;
+                  searchList();
+                "
+              >
+                <el-option
+                  v-for="item in statusList"
+                  :key="'status' + item.code"
+                  :label="item.name"
+                  :value="item.code"
+                />
+              </el-select>
+            </el-col>-->
+            <el-col :span="4" style="width: 145px; padding: 0 0 0 0px">
+              <el-select
+                v-model="parmValue.isonline"
+                filterable
+                clearable
+                :size="searchSize"
+                placeholder="是否上线"
+                style="width: 100%"
+                @change="
+                  pageInfo.curr = 1;
+                  parmValue.page = 1;
+                  searchList();
+                "
+              >
+                <el-option
+                  v-for="item in isonlineoptions"
+                  :key="'isonline' + item.id"
+                  :label="item.name"
+                  :value="item.id"
+                />
+              </el-select>
+            </el-col>
+
+            <!-- <el-col :span="4" style="width: 135px;margin-left:10px">
+              <el-select
+                v-model="parmValue.is_stock"
+                size="mini"
+                style="width: 100%"
+                placeholder="商品类型"
+                clearable
+                @change="
+                  pageInfo.curr = 1;
+                  parmValue.page = 1;
+                  searchList();
+                "
+              >
+                <el-option
+                  v-for="opt in isStockOptions"
+                  :key="opt.value"
+                  :value="opt.value"
+                  :label="opt.label"
+                />
+              </el-select>
+            </el-col>-->
+            <el-col :span="3" style="margin: 0 10px">
+              <search-supplier
+                :size="'mini'"
+                style="width: 250px"
+                :value="supplierNo"
+                :disabled="false"
+                :placeholder="'供应商名称'"
+                :names="''"
+                :isDetail="false"
+                :noDisabled="true"
+                @searchChange="supplierChange"
+              />
+            </el-col>
+
+            <el-col :span="4" style="width: 320px">
+              <el-input
+                :size="searchSize"
+                v-model="sinput"
+                :maxlength="40"
+                @blur="
+                  pageInfo.curr = 1;
+                  parmValue.page = 1;
+                  searchList();
+                "
+                placeholder="关键字"
+              >
+                <el-select
+                  v-model="select"
+                  slot="prepend"
+                  style="width: 135px"
+                  @change="
+                    pageInfo.curr = 1;
+                    parmValue.page = 1;
+                    searchList();
+                  "
+                  placeholder="关键字类型"
+                >
+                  <el-option label="商品编号" value="1" />
+                  <el-option label="商品名称" value="2" />
+                </el-select>
+              </el-input>
+            </el-col>
+          </el-row>
+
+          <!-- <el-row style="margin-top: 10px">
+
+          </el-row>-->
+        </div>
+      </template>
+
+      <template #spuCode="{ scope }">
+        <div style="display:flex;align-items:center">
+          <p>{{scope.row.spuCode}}</p>
+        </div>
+      </template>
+
+      <template #good_thumb_img="{ scope }">
+        <div
+          v-if="scope.row.good_thumb_img"
+          style="width: 20px; height: 20px"
+          class="hover"
+          v-viewer
+        >
+          <img
+            :src="scope.row.good_thumb_img"
+            style="display: inline-block; width: 100%; height: 100%"
+            alt
+          />
+        </div>
+      </template>
+      <template #status="{ scope }">
+        <el-tag
+          :size="tablebtnSize"
+          :type="
+            (statusList.find((item) => item.code == scope.row.status) || {}).type || '--'
+          "
+          v-text="
+            (statusList.find((item) => item.code == scope.row.status) || {}).name || '--'
+          "
+        ></el-tag>
+      </template>
+      <template #has_account="{ scope }">
+        <el-tag
+          :size="tablebtnSize"
+          :type="
+            (
+              has_account_list.find((item) => item.code == scope.row.has_account + '') ||
+              {}
+            ).type || '--'
+          "
+          v-text="
+            (
+              has_account_list.find((item) => item.code == scope.row.has_account + '') ||
+              {}
+            ).name || '--'
+          "
+        ></el-tag>
+      </template>
+      <template #isonline="{ scope }">
+        <el-tag
+          :size="tablebtnSize"
+          :type="scope.row.is_online == '0' ? 'warning' : ''"
+          v-text="
+            (isonlineoptions.find((item) => item.id == scope.row.is_online) || {}).name ||
+            '--'
+          "
+        ></el-tag>
+      </template>
+      <template #is_stock="{ scope }">
+        <el-tag
+          :size="tablebtnSize"
+          :type="scope.row.is_stock == '0' ? 'warning' : ''"
+          v-text="
+            (options4.find((item) => item.id == scope.row.is_stock) || {}).name || '--'
+          "
+        ></el-tag>
+      </template>
+    </ex-table>
+
+    <div style="display:flex;justify-content:flex-end">
+      <el-button size="mini" type="primary" @click="onSave">保 存</el-button>
+    </div>
+  </el-dialog>
+</template>
+
+<script>
+import { listCol, options1, options4 } from "./../columns";
+import { has_account_list, isStockOptions } from "@/assets/js/statusList";
+import asyncRequest from "@/apis/service/goodStore/goodsCost";
+import mixinPage from "@/mixins/elPaginationHandle";
+import resToken from "@/mixins/resToken";
+
+export default {
+  name: "ProductListModal",
+  props: ["visible"],
+  mixins: [mixinPage, resToken],
+  computed: {
+    _visible: {
+      get() {
+        return this.visible;
+      },
+      set(nV) {
+        this.$emit("update:visible", nV);
+      }
+    }
+  },
+  watch: {
+    visible(v) {
+      if (!v) return;
+      this.searchList();
+    }
+  },
+  data() {
+    return {
+      table: {
+        stripe: true,
+        border: true,
+        _defaultHeader_: []
+      },
+      loading: false,
+      columns: listCol.filter(({ label }) => {
+        return !["操作"].includes(label);
+      }),
+      selected: [],
+      options1,
+      options4,
+      size: "mini",
+      searchSize: "mini",
+      tablebtnSize: "mini",
+      sinput: "",
+      select: "1",
+      parmValue: {
+        page: 1, // 页码
+        size: 10, // 每页显示条数
+        is_stock: "",
+        start: "",
+        end: "",
+        status: "",
+        good_name: "",
+        spucode: "",
+        cat_id: [],
+        brandid: "",
+        good_type: "",
+        companyNo: "",
+        supplierNo: "",
+        isonline: "",
+        company_name: "" //创建人部门
+      },
+      has_account_list,
+      isStockOptions,
+      pageInfo: {
+        size: 10,
+        curr: 1,
+        total: 0
+      },
+      isonlineoptions: [
+        { id: "0", name: "未上线" },
+        { id: "1", name: "已上线" }
+      ],
+      statusList: [
+        {
+          code: "0",
+          name: "新建待审核",
+          type: ""
+        },
+        {
+          code: "1",
+          name: "审核通过",
+          type: "success"
+        },
+        {
+          code: "2",
+          name: "基础修改待审核",
+          type: ""
+        },
+        {
+          code: "3",
+          name: "成本修改待审核",
+          type: ""
+        },
+        {
+          code: "4",
+          name: "基础修改驳回",
+          type: "danger"
+        },
+        {
+          code: "5",
+          name: "成本修改驳回",
+          type: "danger"
+        },
+        {
+          code: "6",
+          name: "新建审核驳回",
+          type: "danger"
+        },
+        {
+          code: "7",
+          name: "复制商品待编辑",
+          type: "info"
+        },
+        {
+          code: "8",
+          name: "竞价商品待编辑",
+          type: "info"
+        }
+      ],
+      tableData: []
+    };
+  },
+  methods: {
+    selectionChange(evt) {
+      const { list } = evt;
+      this.selected = list;
+    },
+    restSearch() {
+      this.select = "2";
+      this.sinput = "";
+      this.supplierNo = [];
+      this.brandid = [];
+      // 表格 - 分页
+      this.pageInfo = {
+        size: 15,
+        curr: 1,
+        total: 0
+      };
+      this.parmValue = {
+        page: 1, // 页码
+        size: 15, // 每页显示条数
+        start: "",
+        end: "",
+        status: "",
+        good_name: "",
+        company_name: "", //创建人部门
+        spucode: "",
+        cat_id: [],
+        brandid: "",
+        good_type: "",
+        isonline: "",
+        companyNo: "",
+        supplierNo: ""
+      };
+      this.searchList();
+    },
+    handleClose() {
+      this.selected = [];
+      this._visible = false;
+    },
+    proportionChange(proportion) {
+      this.ruleForm.proportion = proportion;
+    },
+    onSave() {
+      if (this.selected.length === 0 || this.selected.length > 1) {
+        const message =
+          this.selected.length === 0 ? "请选择一条商品" : "只能选择一条商品";
+        this.$message.warning(message);
+        return;
+      }
+
+      const { spuCode } = this.selected[0];
+      this.$emit("selected", spuCode);
+      this._visible = false;
+    },
+    async searchList() {
+      if (
+        (this.parmValue.start !== "" && this.parmValue.end === "") ||
+        (this.parmValue.start === "" && this.parmValue.end !== "")
+      ) {
+        this.$message.warning("时间区间不完整!");
+        return;
+      }
+      this.loading = true;
+      let item = JSON.parse(JSON.stringify(this.parmValue));
+      item.spucode = this.select === "1" ? this.sinput : "";
+      item.good_name = this.select === "2" ? this.sinput : "";
+      item.companyNo = this.select === "3" ? this.sinput : "";
+      item.supplierNo = this.select === "4" ? this.sinput : "";
+      item.company_name = this.select === "5" ? this.sinput : ""; // 部门
+      item.cat_id =
+        item.cat_id.length > 0 ? item.cat_id[item.cat_id.length - 1] : "";
+      const res = await asyncRequest.list({
+        ...item,
+        supplierNo: Array.isArray(this.supplierNo) ? this.supplierNo[0] : "",
+        needRela: true,
+        is_stock: "1",
+        status: "1"
+      });
+
+      if (res && res.code === 0 && res.data) {
+        this.tableData = res.data.list;
+        this.tableData.forEach(a => {
+          a.cat_name = "";
+          let list = a.cat_info || [];
+          list.forEach((b, i) => {
+            a.cat_name += i == 0 ? b.name : "/" + b.name;
+          });
+        });
+        this.pageInfo.total = Number(res.data.count);
+      } else if (res && res.code >= 100 && res.code <= 104) {
+        await this.logout();
+      } else {
+        this.tableData = [];
+        this.pageInfo.total = 0;
+      }
+      // this.getresultlist();
+      this.loading = false;
+    }
+  }
+};
+</script>
+
+
+<style lang="scss" scoped>
+.child-product {
+  /deep/ .el-pagination {
+    float: left !important;
+  }
+}
+</style>

+ 294 - 0
src/views/goodStore/goodsCost/components/productModal.vue

@@ -0,0 +1,294 @@
+<template>
+  <el-dialog
+    center
+    title="添加子商品"
+    :visible="_visible"
+    @close="handleClose"
+    :close-on-click-modal="false"
+    width="1024px"
+  >
+    <el-form ref="formRef" label-width="80px" size="mini" :model="ruleForm" :rules="rules">
+      <el-form-item label="子商品" prop="childNo">
+        <el-input
+          v-if="!ruleForm.childNo"
+          style="cursor: pointer"
+          placeholder="选择子商品"
+          v-model="ruleForm.childNo"
+          @focus="pVisible = true"
+        />
+
+        <div v-else style="display:flex">
+          <show-data-table :columns="basicColumns" :sitem="sitem">
+            <template slot="packing_spec">
+              <el-tag
+                size="mini"
+              >{{ ( options6.find(({id}) => id === sitem.supply_area) || {}).name || '--' }}</el-tag>
+            </template>
+
+            <template slot="is_auth">
+              <el-tag
+                size="mini"
+              >{{ ( options3.find(({id}) => id === sitem.is_auth) || {}).name || '--' }}</el-tag>
+            </template>
+
+            <template slot="good_info_img">
+              <div style="max-height: 24px; overflow: hidden">
+                <el-image
+                  style="height: 24px; width: 24px"
+                  :src="sitem.good_info_img"
+                  :preview-src-list="[sitem.good_info_img]"
+                />
+              </div>
+            </template>
+
+            <template slot="cat_info">
+              {{
+              sitem.cat_info
+              ? sitem.cat_info.map(({ name }) => name).join("_")
+              : "--"
+              }}
+            </template>
+
+            <template slot="good_name">
+              <img
+                v-if="sitem.good_thumb_img"
+                v-viewer
+                style="width: 23px; height: 23px; margin: 0 5px 0 0"
+                class="fl"
+                :src="sitem.good_thumb_img"
+                alt
+              />
+              <span>{{ sitem.good_name }}</span>
+              <span v-for="(si, i) in sitem.speclist" :key="si.spec_id + i">
+                <span v-if="i !== 0">-</span>
+                <span v-else>_</span>
+                <span>{{ si.spec_name }}[{{ si.spec_value }}]</span>
+              </span>
+              <el-popover placement="top" width="300" trigger="hover">
+                <ul>
+                  <li v-if="newTime !== '' && isDisplayPrivateField('1')">
+                    <span>商品成本编号:</span>
+                    <span>{{ sitem.spuCode }}</span>
+                  </li>
+                </ul>
+                <i slot="reference" class="el-icon-warning-outline fr" />
+              </el-popover>
+            </template>
+
+            <template slot="noble">
+              <span v-if="sitem.noble_metal">
+                {{ sitem.noble_weight ? sitem.noble_weight : "0" }}g-{{
+                sitem.noble_name
+                }}-{{ sitem.gold_price ? sitem.gold_price : "0" }}元/g-{{
+                sitem.is_gold_price + "" === "0" ? "不" : ""
+                }}启用实时金价-{{ sitem.is_diff + "" === "1" ? "有" : "无" }}工差-{{
+                sitem.config
+                }}-{{ sitem.other_config }}
+              </span>
+            </template>
+
+            <template slot="weight">{{ sitem.weight }}g</template>
+            <template slot="tax">{{ sitem.tax }}%</template>
+            <template slot="is_stock">{{ String(sitem.is_stock) === "0" ? "非库存品" : "库存品" }}</template>
+            <template slot="is_exclusive">{{ String(sitem.is_exclusive) === "0" ? "非泰康" : "泰康" }}</template>
+            <template slot="noble_weight">{{ sitem.noble_weight }}g</template>
+            <template slot="is_gold_price">
+              {{
+              String(sitem.is_gold_price) === "1" ? "是" : "否"
+              }}
+            </template>
+            <template slot="is_diff">
+              {{
+              String(sitem.is_diff) === "1" ? "有公差" : "无工差"
+              }}
+            </template>
+
+            <template slot="packing_weight">{{ sitem.packing_weight }}g</template>
+
+            <template slot="delivery_day">{{ sitem.delivery_day }}天</template>
+            <template slot="lead_time">{{ sitem.lead_time }}天</template>
+            <template slot="sample_day">{{ sitem.sample_day }}天</template>
+            <template slot="delivery_place">{{ delivery_place }}</template>
+            <template slot="origin_place">{{ origin_place }}</template>
+          </show-data-table>
+
+          <el-tooltip content="重新选择子商品" placement="top">
+            <i
+              class="el-icon-circle-close"
+              @click="resetProduct"
+              style="cursor:pointer;font-size:18px;margin-left:10px"
+            />
+          </el-tooltip>
+        </div>
+      </el-form-item>
+
+      <el-form-item label="组合比例" prop="proportion">
+        <digital-input
+          :values="ruleForm.proportion"
+          :placeholder="'组合比例'"
+          :min="0"
+          :max="100"
+          :position="'right'"
+          :precision="2"
+          :controls="false"
+          size="mini"
+          :append="''"
+          @reschange="proportionChange"
+        />
+      </el-form-item>
+
+      <el-form-item>
+        <div style="display:flex;justify-content:flex-end">
+          <el-button type="primary" @click="submit">保 存</el-button>
+        </div>
+      </el-form-item>
+    </el-form>
+
+    <product-list-modal :visible.sync="pVisible" @selected="handleProductChange" />
+  </el-dialog>
+</template>
+
+<script>
+import ProductListModal from "./productListModal.vue";
+import asyncRequest from "@/apis/service/goodStore/goodsCost";
+import privateField from "@/mixins/privateField";
+
+import {
+  basicColumns,
+  packingColumns,
+  sendColumns,
+  imageColumns,
+  ladderColumns,
+  options3,
+  options6
+} from "./../columns";
+
+export default {
+  name: "ProductModal",
+  props: ["visible", "editItem", "editIndex"],
+  components: { ProductListModal },
+  mixins: [privateField],
+  computed: {
+    _visible: {
+      get() {
+        return this.visible;
+      },
+      set(nV) {
+        this.$emit("update:visible", nV);
+      }
+    }
+  },
+  watch: {
+    editItem: {
+      handler(v) {
+        console.log(v);
+        if (!v) return;
+        const { childNo, goodType, goodName, proportion } = v;
+        this.handleProductChange(childNo);
+        this.ruleForm = {
+          childNo,
+          goodType,
+          goodName,
+          proportion
+        };
+      },
+      deep: true
+    }
+  },
+  data() {
+    return {
+      basicColumns,
+      packingColumns,
+      sendColumns,
+      imageColumns,
+      ladderColumns,
+      options3,
+      options6,
+      newTime: "",
+      loading: false,
+      pVisible: false,
+      ruleForm: {
+        childNo: "",
+        goodType: "",
+        goodName: "",
+        proportion: ""
+      },
+      sitem: null,
+      rules: {
+        childNo: [
+          {
+            required: true,
+            trigger: "change",
+            message: "请选择子商品"
+          }
+        ],
+        proportion: [
+          {
+            required: true,
+            trigger: "change",
+            message: "请输入组合比例"
+          }
+        ]
+      }
+    };
+  },
+  methods: {
+    handleClose() {
+      this.ruleForm = {
+        childNo: "",
+        goodType: "",
+        goodName: "",
+        proportion: ""
+      };
+      this._visible = false;
+    },
+    proportionChange(proportion) {
+      this.ruleForm.proportion = proportion;
+    },
+    resetProduct() {
+      this.ruleForm.childNo = "";
+      this.ruleForm.goodType = "";
+      this.ruleForm.goodName = "";
+      this.sitem = null;
+    },
+    getNewTime() {
+      this.newTime = new Date().valueOf();
+    },
+    async submit() {
+      try {
+        await this.$refs.formRef.validate();
+        console.log(this.editIndex);
+        this.$emit("save", this.ruleForm, this.editIndex);
+        this._visible = false;
+      } catch (e) {
+        console.log(e);
+      }
+    },
+    async handleProductChange(spuCode) {
+      this.loading = true;
+
+      const { code, message, data } = await asyncRequest.detail({
+        spuCode
+      });
+
+      this.loading = false;
+      if (code === 0) {
+        this.sitem = JSON.parse(JSON.stringify(data));
+
+        const { good_name, good_type, spuCode } = this.sitem;
+        this.ruleForm.childNo = spuCode;
+        this.ruleForm.goodType = good_type;
+        this.ruleForm.goodName = good_name;
+
+        this.getNewTime();
+
+        this.$nextTick(() => this.$refs.formRef.validateField("childNo"));
+      } else if (code >= 100 && code <= 104) {
+        await this.logout();
+      } else {
+        this.$message.warning(message);
+      }
+    }
+  }
+};
+</script>

+ 0 - 1
src/views/goodStore/goodsCost/detail.vue

@@ -310,7 +310,6 @@ export default {
     // 点击业务审核的保存按钮
 
     async examForm(e) {
-      console.log(e);
       if (!this.loading) {
         let type = "";
         if (e.state + "" === "1") {

+ 2 - 9
src/views/goodStore/goodsCost/index.vue

@@ -254,13 +254,6 @@
 
       <template #spuCode="{ scope }">
         <div style="display:flex;align-items:center">
-          <!-- <el-tooltip placement="top" content="查看商品详情" v-if="powers.includes('007')">
-            <i
-              class="el-icon-link"
-              @click="getRouter('goodsCostDetail', scope.row.spuCode)"
-              style="cursor:pointer;margin-right:5px;font-size:16px"
-            />
-          </el-tooltip>-->
           <p>{{scope.row.spuCode}}</p>
         </div>
       </template>
@@ -370,7 +363,6 @@
             "
           ></i>
         </el-tooltip>
-        <!-- scope.row.has_account + '' == '0' && -->
         <el-tooltip
           v-if="
             (ppowers.some((i) => i == '4') &&
@@ -480,9 +472,10 @@ import asyncRequest from "@/apis/service/goodStore/goodsCost";
 import { listCol, options1, options4 } from "./columns";
 import { has_account_list, isStockOptions } from "@/assets/js/statusList";
 import mixinPage from "@/mixins/elPaginationHandle";
+import resToken from "@/mixins/resToken";
 import companyHelper from "@/mixins/companyHelper";
 import addEdit from "./components/addEdit";
-import resToken from "@/mixins/resToken";
+
 import { mapGetters } from "vuex";
 export default {
   name: "goodsCost",

+ 40 - 47
src/views/system/setActionProcess/index.vue

@@ -1,17 +1,12 @@
 <template>
   <div class="setActionProcess">
-    <div
-      class="action_show_box"
-      v-if=" powers.some((i) => i == '001')"
-    >
+    <div class="action_show_box" v-if=" powers.some((i) => i == '001')">
       <ul class="role-list fl">
         <p class="role-list__title">流程列表</p>
         <p
           v-if="processList.length == 0"
           style="line-height: 60px; text-align: center; color: #909399"
-        >
-          暂无数据
-        </p>
+        >暂无数据</p>
         <li
           v-for="(item, index) in processList"
           :key="'role' + index"
@@ -20,7 +15,10 @@
           @click="!isBtnDisabled && switchRoleHandle(index)"
         >
           {{ item.process_name }}
-          <i v-if="isBtnDisabled && item.id == activeId" class="el-icon-loading" />
+          <i
+            v-if="isBtnDisabled && item.id == activeId"
+            class="el-icon-loading"
+          />
         </li>
       </ul>
       <div class="rule-view fr">
@@ -65,8 +63,9 @@
                           :key="'action_type' + item.value"
                           :label="item.label"
                           :value="item.value"
-                        /> </el-select
-                    ></el-col>
+                        />
+                      </el-select>
+                    </el-col>
                     <el-col :span="5" style="width: 140px; padding: 0 0 0 10px">
                       <el-select
                         v-model="parmValue.operation_type"
@@ -85,17 +84,16 @@
                           :key="'operation_type' + item.value"
                           :label="item.label"
                           :value="item.value"
-                        /> </el-select
-                    ></el-col>
+                        />
+                      </el-select>
+                    </el-col>
                     <el-col :span="3" style="width: 66px; float: right">
                       <el-button
                         type="primary"
                         :size="searchSize"
                         style="float: right"
                         @click="searchList"
-                      >
-                        刷新
-                      </el-button>
+                      >刷新</el-button>
                     </el-col>
                     <el-col
                       :span="3"
@@ -107,9 +105,7 @@
                         type="success"
                         style="float: right"
                         @click="openModal('add', false)"
-                      >
-                        添加
-                      </el-button>
+                      >添加</el-button>
                     </el-col>
                   </el-col>
                 </el-row>
@@ -184,10 +180,7 @@
                 content="详情"
                 placement="top"
               >
-                <i
-                  class="el-icon-view tb-icon"
-                  @click="openModal(scope.row.id, true)"
-                ></i>
+                <i class="el-icon-view tb-icon" @click="openModal(scope.row.id, true)"></i>
               </el-tooltip>
               <el-tooltip
                 v-if="powers.some((i) => i == '005')"
@@ -195,10 +188,7 @@
                 content="修改"
                 placement="top"
               >
-                <i
-                  class="el-icon-edit tb-icon"
-                  @click="openModal(scope.row.id, false)"
-                ></i>
+                <i class="el-icon-edit tb-icon" @click="openModal(scope.row.id, false)"></i>
               </el-tooltip>
               <el-tooltip
                 v-if="powers.some((i) => i == '004') && scope.row.status + '' === '1'"
@@ -259,7 +249,7 @@ export default {
   name: "setActionProcess",
   mixins: [mixinPage, resToken],
   components: {
-    addEdit,
+    addEdit
   },
   computed: {
     //组件SIZE设置
@@ -267,11 +257,11 @@ export default {
     powers() {
       const tran =
         this.$store.getters.btnList.find(
-          (item) => item.menu_route == "setActionProcess"
+          item => item.menu_route == "setActionProcess"
         ) || {};
       const { action } = tran ?? {};
       return action ?? [];
-    },
+    }
   },
   data() {
     return {
@@ -287,14 +277,14 @@ export default {
       // 状态
       statusOptions: [
         { id: 0, label: "禁用" },
-        { id: 1, label: "启用" },
+        { id: 1, label: "启用" }
       ],
       parmValue: {
         page: 1, // 页码
         size: 15, // 每页显示条数
         process_id: "",
         action_type: "",
-        operation_type: "",
+        operation_type: ""
       },
       // 表格 - 数据
       tableData: [],
@@ -302,18 +292,18 @@ export default {
       table: {
         stripe: true,
         border: true,
-        _defaultHeader_: ["setcol"],
+        _defaultHeader_: ["setcol"]
       },
       // 表格 - 分页
       pageInfo: {
         size: 15,
         curr: 1,
-        total: 0,
+        total: 0
       },
       // 表格 - 列参数
       columns: listCol,
       action_type_list,
-      operation_type_list,
+      operation_type_list
     };
   },
   mounted() {
@@ -329,7 +319,7 @@ export default {
         addtime_start: "",
         addtime_end: "",
         page: 1,
-        size: 10000,
+        size: 10000
       };
       const { code, data, message } = await asyncRequest.processList(model);
       if (code === 0) {
@@ -348,18 +338,18 @@ export default {
       await this.$confirm("确定要删除?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
-        type: "warning",
+        type: "warning"
       })
         .then(async () => {
           const model = {
             id,
-            is_del: "1",
+            is_del: "1"
           };
           const { code, data, message } = await asyncRequest.delete(model);
           if (code === 0) {
             this.$notify.success({
               title: "删除成功",
-              message: "",
+              message: ""
             });
             this.searchList();
           } else if (code >= 100 && code <= 104) {
@@ -391,21 +381,24 @@ export default {
      * @param {String} status 0-禁用 1-启用
      */
     async changeStatus(id, status) {
-      await this.$confirm(`确定要改为${status + '' === "1" ? "禁用" : "启用"}?`, {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
+      await this.$confirm(
+        `确定要改为${status + "" === "1" ? "禁用" : "启用"}?`,
+        {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }
+      )
         .then(async () => {
           const model = {
             id: id,
-            status: status + '' === "1" ? "0" : "1",
+            status: status + "" === "1" ? "0" : "1"
           };
           const { code, data, message } = await asyncRequest.status(model);
           if (code === 0) {
             this.$notify.success({
               title: "状态修改成功",
-              message: "",
+              message: ""
             });
             this.searchList();
           } else if (code >= 100 && code <= 104) {
@@ -435,8 +428,8 @@ export default {
         this.pageInfo.total = 0;
       }
       this.loading = false;
-    },
-  },
+    }
+  }
 };
 </script>
 

Some files were not shown because too many files changed in this diff