haoyahui
2023-11-17 b6a04be0a4cbf5d5a44006a09b83f52a71dfce27
admin-web/src/views/foundation/material/index.vue
@@ -164,7 +164,7 @@
          {title: '分类', field: 'categoryName', align: 'center'},
          {title: '类别', field: 'classification', align: 'center'},
          // {title: '采购类型', field: 'categoryId', align: 'center'},
          {title: '所属机构', field: '', align: 'center'},
          {title: '所属机构', field: 'agencyName', align: 'center'},
          {
            title: '创建时间',
            field: 'createDate',
@@ -258,13 +258,13 @@
    },
    updState(row) {
      let vm = this
      let text = row.status == 0 ? "启用" : "禁用";
      let text = row.states == 0 ? "启用" : "禁用";
      vm.$modal.confirm('确认要' + text + '"' + row.goodsName + '"吗?').then(function () {
        let params = Object.assign({}, row)
        params.status = row.status == 1 ? 0 : 1
        finsystenant.editcode(params).then(res => {
        params.states = row.states == 1 ? 0 : 1
        finsystenant.upcode(params).then(res => {
          if (res) {
            row.status = row.status === 1 ? 0 : 1
            row.states = row.states === 1 ? 0 : 1
            vm.$modal.msgSuccess(text + "成功");
            vm.search()
          }