|
@@ -1,7 +1,13 @@
|
|
|
<script>
|
|
|
import useColumns from "./columns";
|
|
|
import { EXIST } from "@/api/business/purchase/catalogue";
|
|
|
-import { ITEM, SAVE, PRICE, BATCHPRICE,BATCHPRICEISEXIST } from "@/api/business/purchase/apply";
|
|
|
+import {
|
|
|
+ ITEM,
|
|
|
+ SAVE,
|
|
|
+ PRICE,
|
|
|
+ BATCHPRICE,
|
|
|
+ BATCHPRICEISEXIST,
|
|
|
+} from "@/api/business/purchase/apply";
|
|
|
import { tax, unit, currency } from "@/components/popover-select-v2/fetch";
|
|
|
// 用于回显参照框数据
|
|
|
import { getRefer } from "@/api/purchase/basic.js";
|
|
@@ -173,7 +179,7 @@ export default {
|
|
|
console.log("看看prop", prop);
|
|
|
const { code, data } = await ITEM(prop, true);
|
|
|
if (code === 200) {
|
|
|
- this.params = data;
|
|
|
+ this.params = { ...data, file: null };
|
|
|
this.params.priceApplyItems = data.priceApplyItems.map((item) => ({
|
|
|
...this.$init.params(TableColumns),
|
|
|
...item,
|
|
@@ -653,7 +659,7 @@ export default {
|
|
|
label-position="right"
|
|
|
style="padding: 18px"
|
|
|
>
|
|
|
- <template slot="supplierName" slot-scope="scope">
|
|
|
+ <template slot="supplierName" slot-scope="scope">
|
|
|
<component
|
|
|
v-bind="scope.attr"
|
|
|
v-model="scope.row[scope.item.key]"
|
|
@@ -837,12 +843,17 @@ export default {
|
|
|
</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
|
|
|
+ type="text"
|
|
|
+ :size="$attrs.size"
|
|
|
+ @click="onRowAdd(tabName)"
|
|
|
+ >
|
|
|
新增
|
|
|
</el-button>
|
|
|
</template>
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|
|
|
+ type="text"
|
|
|
:size="$attrs.size"
|
|
|
@click.native.prevent="onRowRemove(tabName, scope)"
|
|
|
>
|