|
@@ -29,46 +29,68 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template v-slot:requirementTotalCount="{ row, $index }">
|
|
<template v-slot:requirementTotalCount="{ row, $index }">
|
|
|
- <el-button type="text" @click="handleGetBillDetail(row, 1)">{{
|
|
|
|
|
- row.purchaseCount
|
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ @click="handleGetBillDetail(row, 1)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ row.purchaseCount }}
|
|
|
|
|
+ </el-link>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:planTotalCount="{ row, $index }">
|
|
<template v-slot:planTotalCount="{ row, $index }">
|
|
|
- <el-button type="text" @click="handleGetBillDetail(row, 2)">{{
|
|
|
|
|
- row.planTotalCount
|
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ @click="handleGetBillDetail(row, 2)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ row.planTotalCount }}
|
|
|
|
|
+ </el-link>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:inquiryTotalCount="{ row, $index }">
|
|
<template v-slot:inquiryTotalCount="{ row, $index }">
|
|
|
- <el-button type="text" @click="handleGetBillDetail(row, 3)">{{
|
|
|
|
|
- row.inquiryTotalCount
|
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ @click="handleGetBillDetail(row, 3)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ row.inquiryTotalCount }}
|
|
|
|
|
+ </el-link>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:contractTotalCount="{ row, $index }">
|
|
<template v-slot:contractTotalCount="{ row, $index }">
|
|
|
- <el-button type="text" @click="handleGetBillDetail(row, 4)">{{
|
|
|
|
|
- row.contractTotalCount
|
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ @click="handleGetBillDetail(row, 4)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ row.contractTotalCount }}
|
|
|
|
|
+ </el-link>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:doneTotalCount="{ row, $index }">
|
|
<template v-slot:doneTotalCount="{ row, $index }">
|
|
|
- <el-button type="text" @click="handleGetBillDetail(row, 5)">{{
|
|
|
|
|
- row.doneTotalCount
|
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ @click="handleGetBillDetail(row, 5)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ row.doneTotalCount }}
|
|
|
|
|
+ </el-link>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:waitTotalCount="{ row, $index }">
|
|
<template v-slot:waitTotalCount="{ row, $index }">
|
|
|
- <el-button type="text" @click="handleGetBillDetail(row, 6)">{{
|
|
|
|
|
- row.waitTotalCount
|
|
|
|
|
- }}</el-button>
|
|
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ @click="handleGetBillDetail(row, 6)"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ row.waitTotalCount }}
|
|
|
|
|
+ </el-link>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:taskName="scope">
|
|
<template v-slot:taskName="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
style="margin-bottom: 20px"
|
|
|
:prop="'datasource.' + scope.$index + '.taskName'"
|
|
:prop="'datasource.' + scope.$index + '.taskName'"
|
|
|
>
|
|
>
|
|
|
- <el-input
|
|
|
|
|
- v-model="scope.row.taskName"
|
|
|
|
|
- placeholder="请选择"
|
|
|
|
|
- style="width: 60%; margin-right: 10px"
|
|
|
|
|
- disabled
|
|
|
|
|
- ></el-input>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <span>
|
|
|
|
|
+ {{ scope.row.taskName }}
|
|
|
|
|
+ </span>
|
|
|
<el-button
|
|
<el-button
|
|
|
v-if="scope.row.productCode"
|
|
v-if="scope.row.productCode"
|
|
|
size="small"
|
|
size="small"
|
|
@@ -79,41 +101,12 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:productName="{ row, $index }">
|
|
<template v-slot:productName="{ row, $index }">
|
|
|
- <span @click.native="handParent(row, $index)">
|
|
|
|
|
|
|
+ <div @click="handParent(row, $index)">
|
|
|
{{ row.productName }}
|
|
{{ row.productName }}
|
|
|
- </span>
|
|
|
|
|
- <!-- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + $index + '.productName'"
|
|
|
|
|
- :rules="{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入',
|
|
|
|
|
- trigger: 'change'
|
|
|
|
|
- }"
|
|
|
|
|
- >
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="row.productName"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- @click.native="handParent(row, $index)"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item> -->
|
|
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
</template>
|
|
</template>
|
|
|
- <!-- <template v-slot:productCode="scope">
|
|
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.productCode'"
|
|
|
|
|
- >
|
|
|
|
|
- <el-input v-model="scope.row.productCode" disabled></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </template> -->
|
|
|
|
|
- <!-- <template v-slot:productCategoryName="scope">
|
|
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.productCategoryName'"
|
|
|
|
|
- >
|
|
|
|
|
- <el-input v-model="scope.row.productCategoryName" disabled></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </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"
|
|
@@ -124,24 +117,7 @@
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
- <!-- <template v-slot:totalCount="scope">
|
|
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.totalCount'"
|
|
|
|
|
- :rules="{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请输入',
|
|
|
|
|
- trigger: 'blur'
|
|
|
|
|
- }"
|
|
|
|
|
- >
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="scope.row.totalCount"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- @input="changeCount(scope.row, scope.$index)"
|
|
|
|
|
- type="number"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </template> -->
|
|
|
|
|
|
|
+
|
|
|
<template v-slot:totalPrice="scope">
|
|
<template v-slot:totalPrice="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
style="margin-bottom: 20px"
|
|
@@ -151,23 +127,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
- <!-- <template v-slot:productBrand="scope">
|
|
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.productBrand'"
|
|
|
|
|
- >
|
|
|
|
|
- <el-input v-model="scope.row.productBrand" disabled></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </template> -->
|
|
|
|
|
-
|
|
|
|
|
- <!-- <template v-slot:modelType="scope">
|
|
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.modelType'"
|
|
|
|
|
- >
|
|
|
|
|
- <el-input v-model="scope.row.modelType" disabled></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </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"
|
|
@@ -176,23 +136,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">
|
|
|
|
|
- <el-form-item
|
|
|
|
|
- style="margin-bottom: 20px"
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.deliveryDays'"
|
|
|
|
|
- :rules="{
|
|
|
|
|
- pattern: numberReg,
|
|
|
|
|
- message: '请输入数字',
|
|
|
|
|
- trigger: 'blur'
|
|
|
|
|
- }"
|
|
|
|
|
- >
|
|
|
|
|
- <el-input
|
|
|
|
|
- v-model="scope.row.deliveryDays"
|
|
|
|
|
- @change="setDeliveryDays(scope.row, scope.$index, 'deliveryDays')"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </template> -->
|
|
|
|
|
|
|
+
|
|
|
<template v-slot:guaranteePeriod="scope">
|
|
<template v-slot:guaranteePeriod="scope">
|
|
|
<div class="period">
|
|
<div class="period">
|
|
|
<div class="borderleftnone">
|
|
<div class="borderleftnone">
|
|
@@ -219,6 +163,7 @@
|
|
|
dictName="质保期单位"
|
|
dictName="质保期单位"
|
|
|
clearable
|
|
clearable
|
|
|
v-model="scope.row.guaranteePeriodUnitCode"
|
|
v-model="scope.row.guaranteePeriodUnitCode"
|
|
|
|
|
+ :isOne="scope.$index === 0"
|
|
|
@change="
|
|
@change="
|
|
|
setDeliveryDays(scope.row, scope.$index, 'guaranteePeriod')
|
|
setDeliveryDays(scope.row, scope.$index, 'guaranteePeriod')
|
|
|
"
|
|
"
|
|
@@ -227,7 +172,6 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
- <!-- <template v-slot:guaranteePeriodUnitCode="scope"> </template> -->
|
|
|
|
|
<template v-slot:measuringUnit="scope">
|
|
<template v-slot:measuringUnit="scope">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
style="margin-bottom: 20px"
|
|
@@ -259,18 +203,11 @@
|
|
|
:prop="'datasource.' + scope.$index + '.singlePrice'"
|
|
:prop="'datasource.' + scope.$index + '.singlePrice'"
|
|
|
:rules="{
|
|
:rules="{
|
|
|
required: true,
|
|
required: true,
|
|
|
- pattern: numberReg,
|
|
|
|
|
message: '请输入正确的单价',
|
|
message: '请输入正确的单价',
|
|
|
trigger: 'change'
|
|
trigger: 'change'
|
|
|
}"
|
|
}"
|
|
|
>
|
|
>
|
|
|
- <!-- <el-input
|
|
|
|
|
- v-model="scope.row.singlePrice"
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- @input="changeCount(scope.row, scope.$index)"
|
|
|
|
|
- >
|
|
|
|
|
- <template slot="append">元</template>
|
|
|
|
|
- </el-input> -->
|
|
|
|
|
|
|
+
|
|
|
<el-popover
|
|
<el-popover
|
|
|
placement="right"
|
|
placement="right"
|
|
|
width="600"
|
|
width="600"
|
|
@@ -296,6 +233,7 @@
|
|
|
<el-input
|
|
<el-input
|
|
|
slot="reference"
|
|
slot="reference"
|
|
|
v-model="scope.row.singlePrice"
|
|
v-model="scope.row.singlePrice"
|
|
|
|
|
+ type="number"
|
|
|
placeholder="请输入"
|
|
placeholder="请输入"
|
|
|
@input="changeCount(scope.row, scope.$index)"
|
|
@input="changeCount(scope.row, scope.$index)"
|
|
|
>
|
|
>
|
|
@@ -310,6 +248,7 @@
|
|
|
dictName="商品价格类型"
|
|
dictName="商品价格类型"
|
|
|
clearable
|
|
clearable
|
|
|
v-model="row.goodsPriceType"
|
|
v-model="row.goodsPriceType"
|
|
|
|
|
+ :isOne="$index === 0"
|
|
|
@change="goodsPriceTypeChange(row, $index)"
|
|
@change="goodsPriceTypeChange(row, $index)"
|
|
|
>
|
|
>
|
|
|
</DictSelection>
|
|
</DictSelection>
|
|
@@ -423,6 +362,7 @@
|
|
|
clearable
|
|
clearable
|
|
|
v-model="scope.row.provenance"
|
|
v-model="scope.row.provenance"
|
|
|
multiple
|
|
multiple
|
|
|
|
|
+ :isOne="scope.$index === 0"
|
|
|
>
|
|
>
|
|
|
</DictSelection>
|
|
</DictSelection>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -499,27 +439,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-popconfirm>
|
|
</el-popconfirm>
|
|
|
</template>
|
|
</template>
|
|
|
- <!-- <template v-slot:pricingWay="scope">
|
|
|
|
|
- <el-form-item
|
|
|
|
|
- :prop="'datasource.' + scope.$index + '.pricingWay'"
|
|
|
|
|
- :rules="{
|
|
|
|
|
- required: true,
|
|
|
|
|
- message: '请选择计价方式',
|
|
|
|
|
- trigger: 'change'
|
|
|
|
|
- }"
|
|
|
|
|
- >
|
|
|
|
|
- <el-select v-model="scope.row.pricingWay" placeholder="请选择">
|
|
|
|
|
- <el-option
|
|
|
|
|
- v-for="item in pricingWayList"
|
|
|
|
|
- :key="item.id"
|
|
|
|
|
- :label="item.name"
|
|
|
|
|
- :value="item.id"
|
|
|
|
|
- @click.native="changeCount(scope.row, scope.$index)"
|
|
|
|
|
- >
|
|
|
|
|
- </el-option>
|
|
|
|
|
- </el-select>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </template> -->
|
|
|
|
|
|
|
+
|
|
|
<template v-slot:headerPricingWay="{ column }">
|
|
<template v-slot:headerPricingWay="{ column }">
|
|
|
<span class="is-required">{{ column.label }}</span>
|
|
<span class="is-required">{{ column.label }}</span>
|
|
|
</template>
|
|
</template>
|
|
@@ -623,7 +543,9 @@
|
|
|
detailType: {
|
|
detailType: {
|
|
|
default: 0
|
|
default: 0
|
|
|
},
|
|
},
|
|
|
- cacheKeyUrl: 'eos-purchasingManage-purchaseOrder-inventoryTable'
|
|
|
|
|
|
|
+ cacheKeyUrl:{
|
|
|
|
|
+ default: 'eos-purchasingManage-purchaseOrder-inventoryTable'
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
|
taskinstanceDialog,
|
|
taskinstanceDialog,
|
|
@@ -1056,7 +978,7 @@
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
- purchaseSinglePriceData:[]
|
|
|
|
|
|
|
+ purchaseSinglePriceData: []
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|