|
@@ -9,6 +9,7 @@
|
|
|
max-height="500px"
|
|
max-height="500px"
|
|
|
:datasource="form.datasource"
|
|
:datasource="form.datasource"
|
|
|
class="time-form"
|
|
class="time-form"
|
|
|
|
|
+ :selection.sync="selection"
|
|
|
>
|
|
>
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
@@ -24,6 +25,13 @@
|
|
|
>
|
|
>
|
|
|
新增
|
|
新增
|
|
|
</el-button>
|
|
</el-button>
|
|
|
|
|
+ <setAllValue
|
|
|
|
|
+ :disabled="!selection.length"
|
|
|
|
|
+ inputType="number"
|
|
|
|
|
+ title="税率"
|
|
|
|
|
+ valueKey="taxRate"
|
|
|
|
|
+ @success="setAllTaxRateChange"
|
|
|
|
|
+ />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -647,6 +655,7 @@
|
|
|
import { getGoodsPriceByCondition } from '@/api/goodsManage/index';
|
|
import { getGoodsPriceByCondition } from '@/api/goodsManage/index';
|
|
|
import { changeCount, getAllPrice, getAllDiscountPrice, formatPrice } from '@/BIZComponents/setProduct.js';
|
|
import { changeCount, getAllPrice, getAllDiscountPrice, formatPrice } from '@/BIZComponents/setProduct.js';
|
|
|
import { queryHistoricalUnitPrice } from '@/api/purchasingManage/purchaseOrder';
|
|
import { queryHistoricalUnitPrice } from '@/api/purchasingManage/purchaseOrder';
|
|
|
|
|
+ import setAllValue from '@/BIZComponents/setAllValue.vue'; //批量修改
|
|
|
const dayjs = require('dayjs');
|
|
const dayjs = require('dayjs');
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -677,7 +686,8 @@
|
|
|
// fileMain,
|
|
// fileMain,
|
|
|
productList,
|
|
productList,
|
|
|
billDetailDialog,
|
|
billDetailDialog,
|
|
|
- headList
|
|
|
|
|
|
|
+ headList,
|
|
|
|
|
+ setAllValue
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
canHandl() {
|
|
canHandl() {
|
|
@@ -701,6 +711,7 @@
|
|
|
quoteWay: 1
|
|
quoteWay: 1
|
|
|
};
|
|
};
|
|
|
return {
|
|
return {
|
|
|
|
|
+ selection: [],
|
|
|
quoteTypeOp,
|
|
quoteTypeOp,
|
|
|
levelList,
|
|
levelList,
|
|
|
pricingWayList,
|
|
pricingWayList,
|
|
@@ -719,6 +730,14 @@
|
|
|
billDetailDialogFlag: false,
|
|
billDetailDialogFlag: false,
|
|
|
taskinstanceDialogFlag: false,
|
|
taskinstanceDialogFlag: false,
|
|
|
columns: [
|
|
columns: [
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '选择',
|
|
|
|
|
+ width: 45,
|
|
|
|
|
+ type: 'selection',
|
|
|
|
|
+ columnKey: 'selection',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ fixed: 'left'
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
width: 45,
|
|
width: 45,
|
|
|
type: 'index',
|
|
type: 'index',
|
|
@@ -1152,6 +1171,14 @@
|
|
|
this.requestDict('商品价格类型');
|
|
this.requestDict('商品价格类型');
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ //批量设置税率
|
|
|
|
|
+ setAllTaxRateChange({ key, value }) {
|
|
|
|
|
+ let indexS = this.selection.map((item) => item.key - 1);
|
|
|
|
|
+ indexS.forEach((i) => {
|
|
|
|
|
+ this.$set(this.form.datasource[i], key, value);
|
|
|
|
|
+ this.getNotaxSinglePrice();
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
formatPrice,
|
|
formatPrice,
|
|
|
async getPurchaseSinglePrice(row) {
|
|
async getPurchaseSinglePrice(row) {
|
|
|
this.purchaseSinglePriceData = [];
|
|
this.purchaseSinglePriceData = [];
|