|
@@ -79,7 +79,10 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:productName="{ row, $index }">
|
|
<template v-slot:productName="{ row, $index }">
|
|
|
- <el-form-item
|
|
|
|
|
|
|
+ <span @click.native="handParent(row, $index)">
|
|
|
|
|
+ {{ row.productName }}
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <!-- <el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
style="margin-bottom: 20px"
|
|
|
:prop="'datasource.' + $index + '.productName'"
|
|
:prop="'datasource.' + $index + '.productName'"
|
|
|
:rules="{
|
|
:rules="{
|
|
@@ -93,24 +96,24 @@
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
@click.native="handParent(row, $index)"
|
|
@click.native="handParent(row, $index)"
|
|
|
></el-input>
|
|
></el-input>
|
|
|
- </el-form-item>
|
|
|
|
|
|
|
+ </el-form-item> -->
|
|
|
</template>
|
|
</template>
|
|
|
- <template v-slot:productCode="scope">
|
|
|
|
|
|
|
+ <!-- <template v-slot:productCode="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
style="margin-bottom: 20px"
|
|
|
:prop="'datasource.' + scope.$index + '.productCode'"
|
|
:prop="'datasource.' + scope.$index + '.productCode'"
|
|
|
>
|
|
>
|
|
|
<el-input v-model="scope.row.productCode" disabled></el-input>
|
|
<el-input v-model="scope.row.productCode" disabled></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- </template>
|
|
|
|
|
- <template v-slot:productCategoryName="scope">
|
|
|
|
|
|
|
+ </template> -->
|
|
|
|
|
+ <!-- <template v-slot:productCategoryName="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
style="margin-bottom: 20px"
|
|
|
:prop="'datasource.' + scope.$index + '.productCategoryName'"
|
|
:prop="'datasource.' + scope.$index + '.productCategoryName'"
|
|
|
>
|
|
>
|
|
|
<el-input v-model="scope.row.productCategoryName" disabled></el-input>
|
|
<el-input v-model="scope.row.productCategoryName" disabled></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- </template>
|
|
|
|
|
|
|
+ </template> -->
|
|
|
<template v-slot:taxRate="scope">
|
|
<template v-slot:taxRate="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
style="margin-bottom: 20px"
|
|
@@ -148,23 +151,23 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
- <template v-slot:productBrand="scope">
|
|
|
|
|
|
|
+ <!-- <template v-slot:productBrand="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
style="margin-bottom: 20px"
|
|
|
:prop="'datasource.' + scope.$index + '.productBrand'"
|
|
:prop="'datasource.' + scope.$index + '.productBrand'"
|
|
|
>
|
|
>
|
|
|
<el-input v-model="scope.row.productBrand" disabled></el-input>
|
|
<el-input v-model="scope.row.productBrand" disabled></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- </template>
|
|
|
|
|
|
|
+ </template> -->
|
|
|
|
|
|
|
|
- <template v-slot:modelType="scope">
|
|
|
|
|
|
|
+ <!-- <template v-slot:modelType="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
style="margin-bottom: 20px"
|
|
|
:prop="'datasource.' + scope.$index + '.modelType'"
|
|
:prop="'datasource.' + scope.$index + '.modelType'"
|
|
|
>
|
|
>
|
|
|
<el-input v-model="scope.row.modelType" disabled></el-input>
|
|
<el-input v-model="scope.row.modelType" disabled></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- </template>
|
|
|
|
|
|
|
+ </template> -->
|
|
|
<template v-slot:specification="scope">
|
|
<template v-slot:specification="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
style="margin-bottom: 20px"
|
|
@@ -173,7 +176,7 @@
|
|
|
<el-input v-model="scope.row.specification"></el-input>
|
|
<el-input v-model="scope.row.specification"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
- <template v-slot:deliveryDays="scope">
|
|
|
|
|
|
|
+ <!-- <template v-slot:deliveryDays="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
style="margin-bottom: 20px"
|
|
|
:prop="'datasource.' + scope.$index + '.deliveryDays'"
|
|
:prop="'datasource.' + scope.$index + '.deliveryDays'"
|
|
@@ -189,7 +192,7 @@
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- </template>
|
|
|
|
|
|
|
+ </template> -->
|
|
|
<template v-slot:guaranteePeriod="scope">
|
|
<template v-slot:guaranteePeriod="scope">
|
|
|
<div class="period">
|
|
<div class="period">
|
|
|
<div class="borderleftnone">
|
|
<div class="borderleftnone">
|
|
@@ -232,9 +235,10 @@
|
|
|
>
|
|
>
|
|
|
<el-input
|
|
<el-input
|
|
|
v-model="scope.row.measuringUnit"
|
|
v-model="scope.row.measuringUnit"
|
|
|
- :disabled="!!scope.row.productCode"
|
|
|
|
|
|
|
+ v-if="!scope.row.productCode"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
></el-input>
|
|
></el-input>
|
|
|
|
|
+ <span v-else>{{ scope.row.measuringUnit }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:remark="scope">
|
|
<template v-slot:remark="scope">
|
|
@@ -260,29 +264,33 @@
|
|
|
trigger: 'change'
|
|
trigger: 'change'
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
- <el-input
|
|
|
|
|
|
|
+ <!-- <el-input
|
|
|
v-model="scope.row.singlePrice"
|
|
v-model="scope.row.singlePrice"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
@input="changeCount(scope.row, scope.$index)"
|
|
@input="changeCount(scope.row, scope.$index)"
|
|
|
>
|
|
>
|
|
|
<template slot="append">元</template>
|
|
<template slot="append">元</template>
|
|
|
- </el-input>
|
|
|
|
|
- <!-- <el-popover placement="right" width="600" trigger="click">
|
|
|
|
|
- <el-table >
|
|
|
|
|
|
|
+ </el-input> -->
|
|
|
|
|
+ <el-popover
|
|
|
|
|
+ placement="right"
|
|
|
|
|
+ width="600"
|
|
|
|
|
+ trigger="click"
|
|
|
|
|
+ @show="getPurchaseSinglePrice(scope.row)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-table :data="purchaseSinglePriceData">
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
width="300"
|
|
width="300"
|
|
|
- property="date"
|
|
|
|
|
|
|
+ property="supplierName"
|
|
|
label="供应商"
|
|
label="供应商"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- width="150"
|
|
|
|
|
- property="name"
|
|
|
|
|
- label="最近采购价格"
|
|
|
|
|
|
|
+ width="160"
|
|
|
|
|
+ property="purchaseDate"
|
|
|
|
|
+ label=" 采购日期"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
- width="150"
|
|
|
|
|
- property="address"
|
|
|
|
|
- label="历史采购价格"
|
|
|
|
|
|
|
+ property="singlePrice"
|
|
|
|
|
+ label="采购价格"
|
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<el-input
|
|
<el-input
|
|
@@ -293,7 +301,7 @@
|
|
|
>
|
|
>
|
|
|
<template slot="append">元</template>
|
|
<template slot="append">元</template>
|
|
|
</el-input>
|
|
</el-input>
|
|
|
- </el-popover> -->
|
|
|
|
|
|
|
+ </el-popover>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:goodsPriceType="{ row, $index }">
|
|
<template v-slot:goodsPriceType="{ row, $index }">
|
|
@@ -594,7 +602,7 @@
|
|
|
import { levelList } from '@/enum/dict.js';
|
|
import { levelList } from '@/enum/dict.js';
|
|
|
import { getGoodsPriceByCondition } from '@/api/goodsManage/index';
|
|
import { getGoodsPriceByCondition } from '@/api/goodsManage/index';
|
|
|
import { changeCount, getAllPrice } from '@/BIZComponents/setProduct.js';
|
|
import { changeCount, getAllPrice } from '@/BIZComponents/setProduct.js';
|
|
|
-
|
|
|
|
|
|
|
+ import { queryHistoricalUnitPrice } from '@/api/purchasingManage/purchaseOrder';
|
|
|
const dayjs = require('dayjs');
|
|
const dayjs = require('dayjs');
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -615,7 +623,7 @@
|
|
|
detailType: {
|
|
detailType: {
|
|
|
default: 0
|
|
default: 0
|
|
|
},
|
|
},
|
|
|
- cacheKeyUrl:'eos-purchasingManage-purchaseOrder-inventoryTable'
|
|
|
|
|
|
|
+ cacheKeyUrl: 'eos-purchasingManage-purchaseOrder-inventoryTable'
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
|
taskinstanceDialog,
|
|
taskinstanceDialog,
|
|
@@ -1047,7 +1055,8 @@
|
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
}
|
|
}
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
|
|
+ purchaseSinglePriceData:[]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
@@ -1055,6 +1064,12 @@
|
|
|
this.requestDict('商品价格类型');
|
|
this.requestDict('商品价格类型');
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ async getPurchaseSinglePrice(row) {
|
|
|
|
|
+ this.purchaseSinglePriceData = [];
|
|
|
|
|
+ this.purchaseSinglePriceData = await queryHistoricalUnitPrice(
|
|
|
|
|
+ row.productId
|
|
|
|
|
+ );
|
|
|
|
|
+ },
|
|
|
handleGetBillDetail(row, type) {
|
|
handleGetBillDetail(row, type) {
|
|
|
this.billDetailDialogFlag = true;
|
|
this.billDetailDialogFlag = true;
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|