石广澎
2023-12-13 3c9c1a4f8ccbf765c35e44b21c790ef428e12868
admin-web/src/views/foundation/material/index.vue
@@ -268,7 +268,7 @@
    updState(row) {
      let vm = this
      let text = row.states == 0 ? "启用" : "禁用";
      vm.$modal.confirm('确认要' + text + '"' + row.goodsName + '"吗?').then(function () {
      vm.$modal.confirm('确认要' + text + '"' + row.goodsName + '"物品吗?').then(function () {
        let params = Object.assign({}, row)
        params.states = row.states == 1 ? 0 : 1
        updStatus(params).then(res => {
@@ -282,7 +282,7 @@
    },
    del(row) {
      this.$modal
        .confirm('是否确认删除名称为"' + row.goodsName + '"的机构吗?')
        .confirm('是否确认删除名称为"' + row.goodsName + '"的物品吗?')
        .then(function () {
          delGoods({id: row.id}).then((res) => {
          });
@@ -304,7 +304,7 @@
      // }
    },
    showSpecs(row) {
      this.specsSetting.id = row.id;
      this.specsSetting.goodsTemplatesId = row.id;
      this.specsSetting.show = true;
    },
    // 查询table列表