123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828 |
- <script>
- import useColumns from "./columns";
- import { EXIST } from "@/api/business/purchase/catalogue";
- import { ITEM, SAVE, PRICE, BATCHPRICE } from "@/api/business/purchase/apply";
- import { tax, unit, currency } from "@/components/popover-select-v2/fetch";
- // 用于回显参照框数据
- import { getRefer } from "@/api/purchase/basic.js";
- const fetchExist = async (prop) => {
- try {
- // try
- const { code, data } = await EXIST(prop);
- if (code === 200) return data;
- } catch (err) {
- // catch
- console.error(err);
- } finally {
- // finally
- }
- };
- export default {
- name: "CopyDrawer",
- props: {
- dict: {
- type: Object,
- },
- selectData: {
- type: [Array],
- require: true,
- },
- },
- components: {
- ElSuperForm: () => import("@/components/super-form/index.vue"),
- ElSuperTable: () => import("@/components/super-table/index.vue"),
- ElSuperUxTable: () => import("@/components/super-ux-table/index.vue"),
- ElPopoverSelectV2: () => import("@/components/popover-select-v2/index.vue"),
- },
- data() {
- const {
- TabColumns,
- TableColumns,
- TabColumns: [
- {
- item: { key: tabName },
- },
- ],
- } = useColumns();
- const rules = this.$init.rules([...TabColumns, ...TableColumns]);
- const params = this.$init.params([...TabColumns, ...TableColumns]);
- return {
- title: "复 制",
- width: "100%",
- visible: false,
- loading: false,
- rules: rules,
- params: params,
- tabName: tabName,
- TabColumns: TabColumns,
- TableColumns: TableColumns,
- delDemandItemList: [],
- };
- },
- computed: {
- disabled: {
- get() {
- const {
- selectData: { length },
- } = this.$props;
- if (length !== 1) {
- return true;
- }
- },
- set() {},
- },
- },
- watch: {},
- methods: {
- //
- async changeMaterialName(prop) {
- const { selectData } = prop;
- const {
- puOrg,
- customer,
- supplier,
- currency,
- currencyCode,
- currencyName,
- } = this.params;
- const { nickName: createByName } = this.$store.state.user;
- if (selectData.length) {
- this.params[this.tabName].splice(-1);
- }
- for (const item of selectData) {
- this.loading = true;
- const { tax: taxName, unitName, code: materialCode } = item;
- // task 1
- const { ntaxrate } = await tax(taxName);
- // task 2
- const {
- id: puUnit,
- code: puUnitCode,
- name: puUnitName,
- } = await unit(unitName);
- // task 3
- const {
- recentlyPrice = "0",
- isApprovalFirst = "N",
- purchasequantity,
- recentlyPriceDate,
- } = await fetchExist({
- puOrg,
- customer,
- supplier,
- materialCode,
- priceType: prop.row.priceType,
- });
- this.loading = false;
- await this.onRowAdd(this.tabName, {
- ...item,
- currency: currency,
- currencyCode: currencyCode,
- currencyName: currencyName,
- unit: puUnit,
- unitCode: puUnitCode,
- unitName: puUnitName,
- puUnit: puUnit,
- puUnitCode: puUnitCode,
- puUnitName: puUnitName,
- recentlyPrice,
- recentlyPriceDate: recentlyPriceDate,
- isApprovalFirst,
- yPurchaseQuantity: purchasequantity,
- tax: Number(ntaxrate === "0E-8" ? 0 : ntaxrate),
- createByName: createByName,
- updateByName: createByName,
- id: null,
- });
- }
- },
- //
- async changeCustomerName(prop) {
- console.log("prop", prop);
- const { puOrg, supplier, currency, currencyCode, currencyName } =
- this.params;
- const {
- recentlyPrice,
- isApprovalFirst,
- purchasequantity,
- recentlyPriceDate,
- } = await fetchExist({
- puOrg,
- supplier,
- materialCode: prop.row.materialCode,
- customer: prop.row.customerName ? prop.row.customer : "",
- customerName: prop.row.customerName,
- priceType: prop.row.priceType,
- });
- prop.row.yPurchaseQuantity = purchasequantity;
- prop.row.recentlyPrice = recentlyPrice;
- prop.row.isApprovalFirst = isApprovalFirst;
- prop.row.recentlyPriceDate = recentlyPriceDate;
- },
- //
- async fetchItem(prop) {
- try {
- // try
- this.loading = true;
- const { tabName, TabColumns } = this;
- const { TableColumns } = TabColumns.find(
- ({ item: { key } }) => key === tabName
- );
- console.log("看看prop", prop);
- const { code, data } = await ITEM(prop, true);
- if (code === 200) {
- this.params = data;
- this.params.priceApplyItems = data.priceApplyItems.map((item) => ({
- ...this.$init.params(TableColumns),
- ...item,
- id: null,
- }));
- this.params.id = null;
- } else {
- this.visible = false;
- }
- } catch (err) {
- // catch
- console.error(err);
- this.visible = false;
- } finally {
- // finally
- this.loading = false;
- }
- },
- //
- async onOpen() {
- this.visible = true;
- const {
- selectData: [{ id }],
- } = this.$props;
- this.params.id = null;
- this.params.createBy = null;
- this.params.priceCode = null;
- this.params.createByName = null;
- this.params.effectiveDate = null;
- this.params.priceApplyOrgs = [];
- this.params.priceApplyItems = this.params.priceApplyItems.map((item) => ({
- ...item,
- id: null,
- applyId: null,
- createByName: null,
- updateByName: null,
- delFlag: 0,
- }));
- await this.fetchItem(id);
- },
- //
- async onHide() {
- const { TabColumns, TableColumns } = useColumns();
- this.visible = false;
- this.params = this.$init.params([...TabColumns, ...TableColumns]);
- this.$emit("success");
- this.delDemandItemList = [];
- },
- //
- async onRowAdd(prop, pushParams = {}) {
- this.$refs.superForm.validate(async (valid) => {
- if (valid) {
- const { TabColumns } = this;
- const { TableColumns } = TabColumns.find(
- ({ item: { key } }) => key === prop
- );
- this.params[prop].push({
- delFlag: "0",
- ...this.$init.params(TableColumns),
- ...pushParams,
- });
- }
- });
- },
- //
- async onRowRemove(prop, scope) {
- // const {$index} = scope;
- // this.params[prop].splice($index, 1);
- scope.row.delFlag = "2";
- let delList = [];
- delList = this.params[prop].filter((item) => {
- return item.delFlag == "2";
- });
- this.params[prop] = this.params[prop].filter((item) => {
- return item.delFlag == "0";
- });
- this.delDemandItemList.push(...delList);
- },
- //
- async useSubmit(prop) {
- this.$refs[prop].validate(async (valid) => {
- console.log(this.params);
- if (valid) {
- try {
- this.loading = true;
- let list = [];
- list.push(
- ...this.params.priceApplyItems,
- ...this.delDemandItemList
- );
- this.params.priceApplyItems = this.params.priceApplyItems.filter(
- (item) => item.materialName
- );
- // 深拷贝一下参数对象
- let param = JSON.parse(JSON.stringify(this.params));
- // console.log('深拷贝对象',param);
- param.priceApplyItems = list;
- param.priceApplyItems.forEach((item, index) => {
- item.$index = index;
- });
- let tishi = param.priceApplyItems.filter((item) => {
- return (
- item.priceDiffer &&
- item.delFlag == "0" &&
- item.priceDiffer !== 0
- );
- });
- console.log("筛选", tishi);
- let tishiMsg = tishi.map((item) => {
- return `第${item.$index + 1}行为价格调整`;
- });
- console.log(tishiMsg);
- if (tishiMsg.length !== 0) {
- this.$modal
- .confirm(tishiMsg + "请核对后再次提交")
- .then(async () => {
- const { msg, code } = await SAVE(param);
- if (code === 200) {
- this.onHide();
- this.$emit("success");
- this.$notify.success(msg);
- this.delDemandItemList = [];
- }
- })
- .catch(() => {});
- } else {
- const { msg, code } = await SAVE(param);
- if (code === 200) {
- this.onHide();
- this.$emit("success");
- this.$notify.success(msg);
- this.delDemandItemList = [];
- }
- }
- } catch (err) {
- // catch
- console.error(err);
- } finally {
- // finally
- this.loading = false;
- }
- } else {
- return false;
- }
- });
- },
- // 粘贴
- async pasteMe(e, scope, index, prop) {
- this.$modal.loading("正在处理数据...");
- e.preventDefault(); //阻止默认粘贴事件
- let source = e.clipboardData.getData("Text");
- console.log("scope", scope.column.property);
- console.log("index", index);
- // 首先对源头进行解析
- let rows = source.split("\r\n"); // 拆成一个数组
- // 数组去除空字符串
- rows = rows.filter((item) => {
- return item && item.trim();
- });
- if (rows.length < 100) {
- if (scope.column.property == "materialCode") {
- let rowList = [];
- let newLine = [];
- await getRefer({ type: "MATERIAL_PARAM", materialCodeList: rows })
- .then((res) => {
- if (res.code === 200) {
- rowList = res.rows;
- }
- })
- .catch((err) => {
- this.$modal.closeLoading();
- });
- const {
- puOrg,
- customer,
- customerName,
- supplier,
- currency,
- currencyCode,
- currencyName,
- } = this.params;
- const { TabColumns } = this;
- const { TableColumns } = TabColumns.find(
- ({ item: { key } }) => key === prop
- );
- // console.log('kk', TableColumns)
- // console.log('this.$init.params(TableColumns)', this.$init.params(TableColumns))
- for (let i = 0; i < rowList.length; i++) {
- let line = { ...this.$init.params(TableColumns) };
- console.log("line", line);
- const { nickName: createByName } = this.$store.state.user;
- const { ntaxrate } = await tax(rowList[i].materialRateName);
- // task 2
- const {
- id: puUnit,
- code: puUnitCode,
- name: puUnitName,
- } = await unit(rowList[i].unitIdName);
- // task 3
- const {
- recentlyPrice = "0",
- isApprovalFirst = "N",
- purchasequantity,
- recentlyPriceDate,
- } = await fetchExist({
- puOrg,
- customer,
- supplier,
- materialCode: rowList[i].code,
- customerName: "",
- priceType: line.priceType,
- });
- line.delFlag = "0";
- line.materialCode = rowList[i].code;
- line.material = rowList[i].id;
- line.materialName = rowList[i].name;
- line.specification = rowList[i].specification;
- line.model = rowList[i].model;
- line.manufacturerName = rowList[i].manufacturerIdName;
- (line.unit = puUnit),
- (line.unitCode = puUnitCode),
- (line.unitName = puUnitName),
- (line.puUnit = puUnit),
- (line.puUnitCode = puUnitCode),
- (line.puUnitName = puUnitName),
- (line.recentlyPrice = recentlyPrice);
- line.isApprovalFirst = isApprovalFirst;
- (line.recentlyPriceDate = recentlyPriceDate),
- (line.yPurchaseQuantity = purchasequantity),
- (line.tax = Number(ntaxrate === "0E-8" ? 0 : ntaxrate)),
- (line.createByName = createByName),
- (line.updateByName = createByName),
- (line.currency = currency);
- line.currencyCode = currencyCode;
- line.currencyName = currencyName;
- newLine.push(line);
- console.log("临时数组", newLine);
- }
- // 删除指定下标
- this.params[prop].splice(
- index,
- this.params[prop].length - index,
- ...newLine
- );
- this.$modal.closeLoading();
- this.$modal.notifySuccess("共粘贴" + rowList.length + "条数据");
- } else if (scope.column.property == "taxPrice") {
- console.log("复制内容:", rows);
- // let newLine = []
- // const {TabColumns} = this;
- // const {TableColumns} = TabColumns.find(
- // ({item: {key}}) => key === prop
- // );
- if (this.params[prop].length <= 1) {
- this.params[prop][index].taxPrice = rows[0];
- // for (let i = 0; i<rows.length; i++) {
- // let line = {...this.$init.params(TableColumns)}
- // line.taxPrice = rows[i]
- // newLine.push(line)
- // }
- // // 删除指定下标
- // this.params[prop].splice(index,this.params[prop].length - index,...newLine)
- // this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
- this.$modal.closeLoading();
- } else {
- for (let i = index, j = 0; i < this.params[prop].length; i++, j++) {
- this.params[prop][i].taxPrice = rows[j];
- }
- // this.$refs.table.doLayout()
- // console.log(this.params[prop])
- this.$modal.closeLoading();
- }
- await this.batchPrice(this.params.priceApplyItems);
- } else if (scope.column.property == "supplierName") {
- if (this.params[prop].length <= 1) {
- this.params[prop][index].supplierName = rows[0];
- this.$modal.closeLoading();
- } else {
- for (let i = index, j = 0; i < this.params[prop].length; i++, j++) {
- this.params[prop][i].supplierName = rows[j];
- }
- this.$modal.closeLoading();
- }
- } else if (scope.column.property == "bidPrice") {
- if (this.params[prop].length <= 1) {
- this.params[prop][index].bidPrice = rows[0];
- this.$modal.closeLoading();
- } else {
- for (let i = index, j = 0; i < this.params[prop].length; i++, j++) {
- this.params[prop][i].bidPrice = rows[j];
- }
- this.$modal.closeLoading();
- }
- } else if (scope.column.property == "unitPrice") {
- if (this.params[prop].length <= 1) {
- this.params[prop][index].unitPrice = rows[0];
- this.$modal.closeLoading();
- } else {
- for (let i = index, j = 0; i < this.params[prop].length; i++, j++) {
- this.params[prop][i].unitPrice = rows[j];
- }
- this.$modal.closeLoading();
- }
- } else if (scope.column.property == "supplierName1") {
- if (this.params[prop].length <= 1) {
- this.params[prop][index].supplierName1 = rows[0];
- this.$modal.closeLoading();
- } else {
- for (let i = index, j = 0; i < this.params[prop].length; i++, j++) {
- this.params[prop][i].supplierName1 = rows[j];
- }
- this.$modal.closeLoading();
- }
- } else if (scope.column.property == "bidPrice1") {
- if (this.params[prop].length <= 1) {
- this.params[prop][index].bidPrice1 = rows[0];
- this.$modal.closeLoading();
- } else {
- for (let i = index, j = 0; i < this.params[prop].length; i++, j++) {
- this.params[prop][i].bidPrice1 = rows[j];
- }
- this.$modal.closeLoading();
- }
- } else if (scope.column.property == "unitPrice1") {
- if (this.params[prop].length <= 1) {
- this.params[prop][index].unitPrice1 = rows[0];
- this.$modal.closeLoading();
- } else {
- for (let i = index, j = 0; i < this.params[prop].length; i++, j++) {
- this.params[prop][i].unitPrice1 = rows[j];
- }
- this.$modal.closeLoading();
- }
- } else if (scope.column.property == "supplierName2") {
- if (this.params[prop].length <= 1) {
- this.params[prop][index].supplierName2 = rows[0];
- this.$modal.closeLoading();
- } else {
- for (let i = index, j = 0; i < this.params[prop].length; i++, j++) {
- this.params[prop][i].supplierName2 = rows[j];
- }
- this.$modal.closeLoading();
- }
- } else if (scope.column.property == "bidPrice2") {
- if (this.params[prop].length <= 1) {
- this.params[prop][index].bidPrice2 = rows[0];
- this.$modal.closeLoading();
- } else {
- for (let i = index, j = 0; i < this.params[prop].length; i++, j++) {
- this.params[prop][i].bidPrice2 = rows[j];
- }
- this.$modal.closeLoading();
- }
- } else if (scope.column.property == "unitPrice2") {
- if (this.params[prop].length <= 1) {
- this.params[prop][index].unitPrice2 = rows[0];
- this.$modal.closeLoading();
- } else {
- for (let i = index, j = 0; i < this.params[prop].length; i++, j++) {
- this.params[prop][i].unitPrice2 = rows[j];
- }
- this.$modal.closeLoading();
- }
- }
- } else {
- this.$modal.notifyWarning("复制长度不能超过100!");
- this.$modal.closeLoading();
- }
- },
- // 复制含税单价,查询价格
- async batchPrice(prop) {
- try {
- this.loading = true;
- let { code, data } = await BATCHPRICE(prop);
- if (code === 200) {
- this.params.priceApplyItems = data;
- }
- } catch (error) {
- } finally {
- this.loading = false;
- }
- },
- // 含税单价
- async changeTaxPrice(val, prop) {
- try {
- this.loading = true;
- let { taxPrice, tax, recentlyPrice, yPurchaseQuantity } = prop;
- let { code, data } = await PRICE({
- taxPrice,
- tax,
- recentlyPrice,
- yPurchaseQuantity,
- });
- if (code === 200) {
- prop.price = data.price;
- prop.isPriceAdjustment = data.isPriceAdjustment;
- prop.increase = data.increase;
- prop.priceDiffer = data.priceDiffer;
- prop.yAffectedAmount = data.yAffectedAmount;
- prop.yPurchaseVolume = data.yPurchaseVolume;
- }
- } catch (error) {
- } finally {
- this.loading = false;
- }
- },
- },
- created() {},
- mounted() {},
- destroyed() {},
- };
- </script>
- <template>
- <el-button
- v-bind="$attrs"
- v-on="$listeners"
- :disabled="disabled"
- @click="onOpen"
- >
- {{ title }}
- <el-drawer
- :show-close="false"
- :size="width"
- :title="title"
- :visible.sync="visible"
- append-to-body
- destroy-on-close
- @close="onHide"
- >
- <template slot="title">
- <span>{{ title }}</span>
- <el-button
- type="primary"
- :size="$attrs.size"
- :loading="loading"
- @click="useSubmit('superForm')"
- >
- 确 认
- </el-button>
- <el-button :size="$attrs.size" :loading="loading" @click="onHide">
- 取 消
- </el-button>
- </template>
- <el-super-form
- v-model="params"
- :dict="dict"
- :rules="rules"
- :size="$attrs.size"
- :columns="TableColumns"
- ref="superForm"
- label-width="auto"
- label-position="right"
- style="padding: 18px"
- >
- </el-super-form>
- <el-tabs v-model="tabName" style="padding: 0 18px 18px">
- <el-tab-pane
- v-for="({ item, TableColumns: columns }, index) in TabColumns"
- :key="index"
- :label="item.title"
- :name="item.key"
- lazy
- >
- <div v-loading="loading" style="height: 250px; display: flex">
- <el-super-ux-table
- index
- v-model="params[item.key]"
- :dict="dict"
- :ref="tabName"
- height="250"
- :columns="columns"
- :size="$attrs.size"
- >
- <template slot="materialName" slot-scope="scope">
- <component
- v-bind="scope.attr"
- v-model="scope.row[scope.item.key]"
- :size="$attrs.size"
- :source.sync="scope.row"
- @change="changeMaterialName({ ...scope, selectData: $event })"
- >
- </component>
- </template>
- <template slot="materialCode" slot-scope="scope">
- <component
- v-bind="scope.attr"
- v-model="scope.row[scope.item.key]"
- :size="$attrs.size"
- :source.sync="scope.row"
- @paste.native="
- pasteMe($event, scope, scope.rowIndex, tabName)
- "
- >
- </component>
- </template>
- <template slot="taxPrice" slot-scope="scope">
- <component
- v-bind="scope.attr"
- v-model="scope.row[scope.item.key]"
- :size="$attrs.size"
- :source.sync="scope.row"
- @change="(val) => changeTaxPrice(val, scope.row)"
- @paste.native="
- pasteMe($event, scope, scope.rowIndex, tabName)
- "
- >
- </component>
- </template>
- <template slot="supplierName" slot-scope="scope">
- <component
- v-bind="scope.attr"
- v-model="scope.row[scope.item.key]"
- :size="$attrs.size"
- :source.sync="scope.row"
- @paste.native="
- pasteMe($event, scope, scope.rowIndex, tabName)
- "
- >
- </component>
- </template>
- <template slot="bidPrice" slot-scope="scope">
- <component
- v-bind="scope.attr"
- v-model="scope.row[scope.item.key]"
- :size="$attrs.size"
- :source.sync="scope.row"
- @paste.native="
- pasteMe($event, scope, scope.rowIndex, tabName)
- "
- >
- </component>
- </template>
- <template slot="unitPrice" slot-scope="scope">
- <component
- v-bind="scope.attr"
- v-model="scope.row[scope.item.key]"
- :size="$attrs.size"
- :source.sync="scope.row"
- @paste.native="
- pasteMe($event, scope, scope.rowIndex, tabName)
- "
- >
- </component>
- </template>
- <template slot="supplierName1" slot-scope="scope">
- <component
- v-bind="scope.attr"
- v-model="scope.row[scope.item.key]"
- :size="$attrs.size"
- :source.sync="scope.row"
- @paste.native="
- pasteMe($event, scope, scope.rowIndex, tabName)
- "
- >
- </component>
- </template>
- <template slot="bidPrice1" slot-scope="scope">
- <component
- v-bind="scope.attr"
- v-model="scope.row[scope.item.key]"
- :size="$attrs.size"
- :source.sync="scope.row"
- @paste.native="
- pasteMe($event, scope, scope.rowIndex, tabName)
- "
- >
- </component>
- </template>
- <template slot="unitPrice1" slot-scope="scope">
- <component
- v-bind="scope.attr"
- v-model="scope.row[scope.item.key]"
- :size="$attrs.size"
- :source.sync="scope.row"
- @paste.native="
- pasteMe($event, scope, scope.rowIndex, tabName)
- "
- >
- </component>
- </template>
- <template slot="supplierName2" slot-scope="scope">
- <component
- v-bind="scope.attr"
- v-model="scope.row[scope.item.key]"
- :size="$attrs.size"
- :source.sync="scope.row"
- @paste.native="
- pasteMe($event, scope, scope.rowIndex, tabName)
- "
- >
- </component>
- </template>
- <template slot="bidPrice2" slot-scope="scope">
- <component
- v-bind="scope.attr"
- v-model="scope.row[scope.item.key]"
- :size="$attrs.size"
- :source.sync="scope.row"
- @paste.native="
- pasteMe($event, scope, scope.rowIndex, tabName)
- "
- >
- </component>
- </template>
- <template slot="unitPrice2" slot-scope="scope">
- <component
- v-bind="scope.attr"
- v-model="scope.row[scope.item.key]"
- :size="$attrs.size"
- :source.sync="scope.row"
- @paste.native="
- pasteMe($event, scope, scope.rowIndex, tabName)
- "
- >
- </component>
- </template>
- <template slot="customerName" slot-scope="scope">
- <component
- v-bind="scope.attr"
- v-model="scope.row[scope.item.key]"
- :size="$attrs.size"
- :source.sync="scope.row"
- @input="changeCustomerName({ ...scope, selectData: $event })"
- >
- </component>
- </template>
- <ux-table-column fixed="right" label="操作" width="100">
- <template slot="header" slot-scope="scope">
- <el-button :size="$attrs.size" @click="onRowAdd(tabName)">
- 新增
- </el-button>
- </template>
- <template slot-scope="scope">
- <el-button
- :size="$attrs.size"
- @click.native.prevent="onRowRemove(tabName, scope)"
- >
- 删除
- </el-button>
- </template>
- </ux-table-column>
- </el-super-ux-table>
- </div>
- </el-tab-pane>
- </el-tabs>
- </el-drawer>
- </el-button>
- </template>
- <style scoped></style>
|