|
@@ -3,6 +3,8 @@
|
|
|
import {EXIST} from "@/api/business/purchase/catalogue";
|
|
|
import {ITEM, SAVE} 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 {
|
|
@@ -56,6 +58,7 @@
|
|
|
tabName: tabName,
|
|
|
TabColumns: TabColumns,
|
|
|
TableColumns: TableColumns,
|
|
|
+ delDemandItemList: [],
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -246,13 +249,26 @@
|
|
|
},
|
|
|
//
|
|
|
async onRowRemove(prop, scope) {
|
|
|
- const {
|
|
|
- row: {$index},
|
|
|
- } = scope;
|
|
|
- this.params[prop] = this.params[prop].map((item, index) => ({
|
|
|
- ...item,
|
|
|
- delFlag: index === $index ? "2" : item.delFlag,
|
|
|
- }));
|
|
|
+ console.log('prop', prop)
|
|
|
+ console.log('scope', scope)
|
|
|
+ // const {
|
|
|
+ // row: {$index},
|
|
|
+ // } = scope;
|
|
|
+ // this.params[prop] = this.params[prop].map((item, index) => ({
|
|
|
+ // ...item,
|
|
|
+ // delFlag: index === $index ? "2" : item.delFlag,
|
|
|
+ // }));
|
|
|
+ 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)
|
|
|
+ console.log('删除的数组',this.delDemandItemList)
|
|
|
+ console.log('this.params[prop]', this.params[prop])
|
|
|
},
|
|
|
//
|
|
|
async useSubmit(prop) {
|
|
@@ -261,14 +277,21 @@
|
|
|
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
|
|
|
);
|
|
|
- const {msg, code} = await SAVE(this.params);
|
|
|
+ // 深拷贝一下参数对象
|
|
|
+ let param = JSON.parse(JSON.stringify(this.params))
|
|
|
+ console.log('深拷贝对象',param);
|
|
|
+ param.priceApplyItems = list
|
|
|
+ const {msg, code} = await SAVE(param);
|
|
|
if (code === 200) {
|
|
|
this.onHide();
|
|
|
this.$emit("success");
|
|
|
this.$notify.success(msg);
|
|
|
+ this.delDemandItemList = []
|
|
|
}
|
|
|
} catch (err) {
|
|
|
// catch
|
|
@@ -282,6 +305,359 @@
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ // 粘贴
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ })
|
|
|
+ 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) {
|
|
|
+ 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.$refs.table.doLayout()
|
|
|
+ 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();
|
|
|
+ }
|
|
|
+ } else if(scope.column.property == 'supplierName') {
|
|
|
+ console.log('复制内容:', rows)
|
|
|
+ let newLine = []
|
|
|
+ const {TabColumns} = this;
|
|
|
+ const {TableColumns} = TabColumns.find(
|
|
|
+ ({item: {key}}) => key === prop
|
|
|
+ );
|
|
|
+ if(this.params[prop].length <= 1) {
|
|
|
+ for (let i = 0; i<rows.length; i++) {
|
|
|
+ let line = {...this.$init.params(TableColumns)}
|
|
|
+ line.supplierName = rows[i]
|
|
|
+ newLine.push(line)
|
|
|
+ }
|
|
|
+ // 删除指定下标
|
|
|
+ this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
+ this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
+ // this.$refs.table.doLayout()
|
|
|
+ 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.$refs.table.doLayout()
|
|
|
+ console.log(this.params[prop])
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ }
|
|
|
+ } else if(scope.column.property == 'bidPrice') {
|
|
|
+ console.log('复制内容:', rows)
|
|
|
+ let newLine = []
|
|
|
+ const {TabColumns} = this;
|
|
|
+ const {TableColumns} = TabColumns.find(
|
|
|
+ ({item: {key}}) => key === prop
|
|
|
+ );
|
|
|
+ if(this.params[prop].length <= 1) {
|
|
|
+ for (let i = 0; i<rows.length; i++) {
|
|
|
+ let line = {...this.$init.params(TableColumns)}
|
|
|
+ line.bidPrice = rows[i]
|
|
|
+ newLine.push(line)
|
|
|
+ }
|
|
|
+ // 删除指定下标
|
|
|
+ this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
+ this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
+ // this.$refs.table.doLayout()
|
|
|
+ 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.$refs.table.doLayout()
|
|
|
+ console.log(this.params[prop])
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ }
|
|
|
+ } else if(scope.column.property == 'unitPrice') {
|
|
|
+ console.log('复制内容:', rows)
|
|
|
+ let newLine = []
|
|
|
+ const {TabColumns} = this;
|
|
|
+ const {TableColumns} = TabColumns.find(
|
|
|
+ ({item: {key}}) => key === prop
|
|
|
+ );
|
|
|
+ if(this.params[prop].length <= 1) {
|
|
|
+ for (let i = 0; i<rows.length; i++) {
|
|
|
+ let line = {...this.$init.params(TableColumns)}
|
|
|
+ line.unitPrice = rows[i]
|
|
|
+ newLine.push(line)
|
|
|
+ }
|
|
|
+ // 删除指定下标
|
|
|
+ this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
+ this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
+ // this.$refs.table.doLayout()
|
|
|
+ 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.$refs.table.doLayout()
|
|
|
+ console.log(this.params[prop])
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ }
|
|
|
+ } else if(scope.column.property == 'supplierName1') {
|
|
|
+ console.log('复制内容:', rows)
|
|
|
+ let newLine = []
|
|
|
+ const {TabColumns} = this;
|
|
|
+ const {TableColumns} = TabColumns.find(
|
|
|
+ ({item: {key}}) => key === prop
|
|
|
+ );
|
|
|
+ if(this.params[prop].length <= 1) {
|
|
|
+ for (let i = 0; i<rows.length; i++) {
|
|
|
+ let line = {...this.$init.params(TableColumns)}
|
|
|
+ line.supplierName1 = rows[i]
|
|
|
+ newLine.push(line)
|
|
|
+ }
|
|
|
+ // 删除指定下标
|
|
|
+ this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
+ this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
+ // this.$refs.table.doLayout()
|
|
|
+ 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.$refs.table.doLayout()
|
|
|
+ console.log(this.params[prop])
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ }
|
|
|
+ } else if(scope.column.property == 'bidPrice1') {
|
|
|
+ console.log('复制内容:', rows)
|
|
|
+ let newLine = []
|
|
|
+ const {TabColumns} = this;
|
|
|
+ const {TableColumns} = TabColumns.find(
|
|
|
+ ({item: {key}}) => key === prop
|
|
|
+ );
|
|
|
+ if(this.params[prop].length <= 1) {
|
|
|
+ for (let i = 0; i<rows.length; i++) {
|
|
|
+ let line = {...this.$init.params(TableColumns)}
|
|
|
+ line.bidPrice1 = rows[i]
|
|
|
+ newLine.push(line)
|
|
|
+ }
|
|
|
+ // 删除指定下标
|
|
|
+ this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
+ this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
+ // this.$refs.table.doLayout()
|
|
|
+ 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.$refs.table.doLayout()
|
|
|
+ console.log(this.params[prop])
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ }
|
|
|
+ } else if(scope.column.property == 'unitPrice1') {
|
|
|
+ console.log('复制内容:', rows)
|
|
|
+ let newLine = []
|
|
|
+ const {TabColumns} = this;
|
|
|
+ const {TableColumns} = TabColumns.find(
|
|
|
+ ({item: {key}}) => key === prop
|
|
|
+ );
|
|
|
+ if(this.params[prop].length <= 1) {
|
|
|
+ for (let i = 0; i<rows.length; i++) {
|
|
|
+ let line = {...this.$init.params(TableColumns)}
|
|
|
+ line.unitPrice1 = rows[i]
|
|
|
+ newLine.push(line)
|
|
|
+ }
|
|
|
+ // 删除指定下标
|
|
|
+ this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
+ this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
+ // this.$refs.table.doLayout()
|
|
|
+ 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.$refs.table.doLayout()
|
|
|
+ console.log(this.params[prop])
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ }
|
|
|
+ } else if(scope.column.property == 'supplierName2') {
|
|
|
+ console.log('复制内容:', rows)
|
|
|
+ let newLine = []
|
|
|
+ const {TabColumns} = this;
|
|
|
+ const {TableColumns} = TabColumns.find(
|
|
|
+ ({item: {key}}) => key === prop
|
|
|
+ );
|
|
|
+ if(this.params[prop].length <= 1) {
|
|
|
+ for (let i = 0; i<rows.length; i++) {
|
|
|
+ let line = {...this.$init.params(TableColumns)}
|
|
|
+ line.supplierName2 = rows[i]
|
|
|
+ newLine.push(line)
|
|
|
+ }
|
|
|
+ // 删除指定下标
|
|
|
+ this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
+ this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
+ // this.$refs.table.doLayout()
|
|
|
+ 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.$refs.table.doLayout()
|
|
|
+ console.log(this.params[prop])
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ }
|
|
|
+ } else if(scope.column.property == 'bidPrice2') {
|
|
|
+ console.log('复制内容:', rows)
|
|
|
+ let newLine = []
|
|
|
+ const {TabColumns} = this;
|
|
|
+ const {TableColumns} = TabColumns.find(
|
|
|
+ ({item: {key}}) => key === prop
|
|
|
+ );
|
|
|
+ if(this.params[prop].length <= 1) {
|
|
|
+ for (let i = 0; i<rows.length; i++) {
|
|
|
+ let line = {...this.$init.params(TableColumns)}
|
|
|
+ line.bidPrice2 = rows[i]
|
|
|
+ newLine.push(line)
|
|
|
+ }
|
|
|
+ // 删除指定下标
|
|
|
+ this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
+ this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
+ // this.$refs.table.doLayout()
|
|
|
+ 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.$refs.table.doLayout()
|
|
|
+ console.log(this.params[prop])
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ }
|
|
|
+ } else if(scope.column.property == 'unitPrice2') {
|
|
|
+ console.log('复制内容:', rows)
|
|
|
+ let newLine = []
|
|
|
+ const {TabColumns} = this;
|
|
|
+ const {TableColumns} = TabColumns.find(
|
|
|
+ ({item: {key}}) => key === prop
|
|
|
+ );
|
|
|
+ if(this.params[prop].length <= 1) {
|
|
|
+ for (let i = 0; i<rows.length; i++) {
|
|
|
+ let line = {...this.$init.params(TableColumns)}
|
|
|
+ line.unitPrice2 = rows[i]
|
|
|
+ newLine.push(line)
|
|
|
+ }
|
|
|
+ // 删除指定下标
|
|
|
+ this.params[prop].splice(index,this.params[prop].length - index,...newLine)
|
|
|
+ this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
+ // this.$refs.table.doLayout()
|
|
|
+ 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.$refs.table.doLayout()
|
|
|
+ console.log(this.params[prop])
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.$modal.notifyWarning("复制长度不能超过100!");
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
created() {
|
|
|
},
|
|
@@ -361,6 +737,116 @@
|
|
|
>
|
|
|
</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"
|
|
|
+ @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"
|