|
|
@@ -64,8 +64,15 @@
|
|
|
v-model="row.productName"
|
|
|
placeholder="请输入"
|
|
|
style="width: 60%; margin-right: 10px"
|
|
|
- :disabled="!!row.productCode"
|
|
|
+ v-if="!row.productCode"
|
|
|
></el-input>
|
|
|
+ <div
|
|
|
+ v-else
|
|
|
+ style="width: 60%; margin-right: 10px"
|
|
|
+ class="ellipsis-single"
|
|
|
+ :title="row.productName"
|
|
|
+ >{{ row.productName }}</div
|
|
|
+ >
|
|
|
<el-button
|
|
|
size="small"
|
|
|
type="primary"
|
|
|
@@ -79,22 +86,15 @@
|
|
|
<el-input v-model="scope.row.batchNo" v-no-chinese></el-input>
|
|
|
</el-form-item>
|
|
|
</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">
|
|
|
+
|
|
|
+ <!-- <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> -->
|
|
|
<template v-slot:totalCount="scope">
|
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
|
@@ -118,12 +118,11 @@
|
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
|
:prop="'datasource.' + scope.$index + '.productBrand'"
|
|
|
+ v-if="!scope.row.productCode"
|
|
|
>
|
|
|
- <el-input
|
|
|
- v-model="scope.row.productBrand"
|
|
|
- :disabled="!!scope.row.productCode"
|
|
|
- ></el-input>
|
|
|
+ <el-input v-model="scope.row.productBrand"></el-input>
|
|
|
</el-form-item>
|
|
|
+ <div v-else>{{ scope.row.productBrand }}</div>
|
|
|
</template>
|
|
|
<template v-slot:brand="scope">
|
|
|
<el-form-item
|
|
|
@@ -138,36 +137,35 @@
|
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
|
:prop="'datasource.' + scope.$index + '.modelType'"
|
|
|
+ v-if="!scope.row.productCode"
|
|
|
>
|
|
|
- <el-input
|
|
|
- v-model="scope.row.modelType"
|
|
|
- :disabled="!!scope.row.productCode"
|
|
|
- ></el-input>
|
|
|
+ <el-input v-model="scope.row.modelType"></el-input>
|
|
|
</el-form-item>
|
|
|
+ <div v-else>{{ scope.row.modelType }}</div>
|
|
|
</template>
|
|
|
|
|
|
<template v-slot:specification="scope">
|
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
|
:prop="'datasource.' + scope.$index + '.specification'"
|
|
|
+ v-if="!scope.row.productCode"
|
|
|
>
|
|
|
- <el-input
|
|
|
- v-model="scope.row.specification"
|
|
|
- :disabled="!!scope.row.productCode"
|
|
|
- ></el-input>
|
|
|
+ <el-input v-model="scope.row.specification"></el-input>
|
|
|
</el-form-item>
|
|
|
+ <div v-else>{{ scope.row.specification }}</div>
|
|
|
</template>
|
|
|
<template v-slot:measuringUnit="scope">
|
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
|
:prop="'datasource.' + scope.$index + '.measuringUnit'"
|
|
|
+ v-if="!scope.row.productCode"
|
|
|
>
|
|
|
<el-input
|
|
|
v-model="scope.row.measuringUnit"
|
|
|
placeholder="请输入"
|
|
|
- :disabled="!!scope.row.productCode"
|
|
|
></el-input>
|
|
|
</el-form-item>
|
|
|
+ <div v-else>{{ scope.row.measuringUnit }}</div>
|
|
|
</template>
|
|
|
<template v-slot:remark="scope">
|
|
|
<el-form-item
|
|
|
@@ -310,23 +308,7 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
- <template v-slot:singleWeight="scope">
|
|
|
- <el-form-item
|
|
|
- style="margin-bottom: 20px"
|
|
|
- :rules="{
|
|
|
- required: false,
|
|
|
- trigger: 'change'
|
|
|
- }"
|
|
|
- :prop="'datasource.' + scope.$index + '.singleWeight'"
|
|
|
- >
|
|
|
- <el-input
|
|
|
- :disabled="isContractId"
|
|
|
- v-model="scope.row.singleWeight"
|
|
|
- @input="changeCount(scope.row, scope.$index)"
|
|
|
- placeholder="请输入"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- </template>
|
|
|
+
|
|
|
<template v-slot:supplierName="scope">
|
|
|
<el-form-item
|
|
|
style="margin-bottom: 20px"
|
|
|
@@ -355,6 +337,7 @@
|
|
|
clearable
|
|
|
v-model="scope.row.provenance"
|
|
|
multiple
|
|
|
+ :isOne="scope.$index==0"
|
|
|
>
|
|
|
</DictSelection>
|
|
|
</el-form-item>
|
|
|
@@ -598,14 +581,16 @@
|
|
|
width: 150,
|
|
|
prop: 'productCategoryName',
|
|
|
label: '分类',
|
|
|
- slot: 'productCategoryName',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
width: 140,
|
|
|
prop: 'productCode',
|
|
|
label: '编码',
|
|
|
- slot: 'productCode',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
@@ -614,6 +599,8 @@
|
|
|
label: '名称',
|
|
|
slot: 'productName',
|
|
|
headerSlot: 'headerProductName',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
@@ -621,12 +608,14 @@
|
|
|
prop: 'taskName',
|
|
|
label: '工序',
|
|
|
slot: 'taskName',
|
|
|
+ showOverflowTooltip: true,
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
width: 110,
|
|
|
prop: 'batchNo',
|
|
|
label: '批次号',
|
|
|
+ showOverflowTooltip: true,
|
|
|
slot: 'batchNo',
|
|
|
align: 'center'
|
|
|
},
|
|
|
@@ -642,11 +631,13 @@
|
|
|
width: 150,
|
|
|
prop: 'reqTotalCount',
|
|
|
label: '需求数量',
|
|
|
+ showOverflowTooltip: true,
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
width: 150,
|
|
|
prop: 'purchaseCount',
|
|
|
+ showOverflowTooltip: true,
|
|
|
label: '数量',
|
|
|
slot: 'purchaseCount',
|
|
|
headerSlot: 'headerTotalCount',
|
|
|
@@ -655,6 +646,7 @@
|
|
|
{
|
|
|
width: 150,
|
|
|
prop: 'purchaseUnit',
|
|
|
+ showOverflowTooltip: true,
|
|
|
label: '单位',
|
|
|
slot: 'purchaseUnit',
|
|
|
align: 'center'
|
|
|
@@ -670,13 +662,14 @@
|
|
|
width: 90,
|
|
|
prop: 'totalCount',
|
|
|
label: '计量数量',
|
|
|
- // slot: 'totalCount',
|
|
|
- // headerSlot: 'headerTotalCount',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
width: 100,
|
|
|
prop: 'measuringUnit',
|
|
|
+ showOverflowTooltip: true,
|
|
|
label: '计量单位',
|
|
|
slot: 'measuringUnit',
|
|
|
align: 'center'
|
|
|
@@ -685,6 +678,7 @@
|
|
|
{
|
|
|
minWidth: 120,
|
|
|
prop: 'goodsLevel',
|
|
|
+ showOverflowTooltip: true,
|
|
|
label: '物品级别',
|
|
|
slot: 'goodsLevel',
|
|
|
align: 'center'
|
|
|
@@ -693,6 +687,7 @@
|
|
|
width: 200,
|
|
|
prop: 'warehouseId',
|
|
|
label: '入库仓库',
|
|
|
+ showOverflowTooltip: true,
|
|
|
slot: 'warehouseId',
|
|
|
headerSlot: 'headerWarehouseId',
|
|
|
align: 'center'
|
|
|
@@ -700,6 +695,7 @@
|
|
|
{
|
|
|
width: 80,
|
|
|
prop: 'availableCountBase',
|
|
|
+ showOverflowTooltip: true,
|
|
|
label: '库存数量',
|
|
|
slot: 'availableCountBase',
|
|
|
align: 'center'
|
|
|
@@ -714,6 +710,7 @@
|
|
|
{
|
|
|
width: 120,
|
|
|
prop: 'totalWeight',
|
|
|
+ showOverflowTooltip: true,
|
|
|
label: '重量',
|
|
|
slot: 'totalWeight',
|
|
|
align: 'center'
|
|
|
@@ -722,6 +719,7 @@
|
|
|
width: 160,
|
|
|
prop: 'arrivalWay',
|
|
|
label: '到货方式',
|
|
|
+ showOverflowTooltip: true,
|
|
|
slot: 'arrivalWay',
|
|
|
headerSlot: 'headerArrivalWay',
|
|
|
align: 'center'
|
|
|
@@ -730,6 +728,7 @@
|
|
|
width: 170,
|
|
|
prop: 'expectReceiveDate',
|
|
|
label: '到货日期',
|
|
|
+ showOverflowTooltip: true,
|
|
|
slot: 'expectReceiveDate',
|
|
|
headerSlot: 'headerExpectReceiveDate',
|
|
|
align: 'center'
|
|
|
@@ -739,6 +738,7 @@
|
|
|
width: 180,
|
|
|
prop: 'supplierName',
|
|
|
label: '供应商',
|
|
|
+ showOverflowTooltip: true,
|
|
|
slot: 'supplierName',
|
|
|
// headerSlot: 'headerSupplierName',
|
|
|
align: 'center'
|
|
|
@@ -747,6 +747,7 @@
|
|
|
{
|
|
|
width: 130,
|
|
|
prop: 'brand',
|
|
|
+ showOverflowTooltip: true,
|
|
|
label: '品牌',
|
|
|
slot: 'brand',
|
|
|
align: 'center'
|
|
|
@@ -756,24 +757,28 @@
|
|
|
width: 160,
|
|
|
prop: 'technicalDrawings',
|
|
|
label: '图纸附件',
|
|
|
+ showOverflowTooltip: true,
|
|
|
slot: 'technicalDrawings'
|
|
|
},
|
|
|
{
|
|
|
width: 160,
|
|
|
prop: 'files',
|
|
|
label: '附件',
|
|
|
+ showOverflowTooltip: true,
|
|
|
slot: 'files'
|
|
|
},
|
|
|
{
|
|
|
width: 150,
|
|
|
prop: 'productBrand',
|
|
|
label: '牌号',
|
|
|
+ showOverflowTooltip: true,
|
|
|
slot: 'productBrand',
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
width: 130,
|
|
|
prop: 'modelType',
|
|
|
+ showOverflowTooltip: true,
|
|
|
label: '型号',
|
|
|
slot: 'modelType',
|
|
|
align: 'center'
|
|
|
@@ -783,6 +788,7 @@
|
|
|
width: 120,
|
|
|
prop: 'specification',
|
|
|
label: '规格',
|
|
|
+ showOverflowTooltip: true,
|
|
|
slot: 'specification',
|
|
|
align: 'center'
|
|
|
},
|
|
|
@@ -790,11 +796,13 @@
|
|
|
width: 160,
|
|
|
prop: 'modelKey',
|
|
|
label: '机型',
|
|
|
+ showOverflowTooltip: true,
|
|
|
slot: 'modelKey',
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
width: 160,
|
|
|
+ showOverflowTooltip: true,
|
|
|
prop: 'colorKey',
|
|
|
label: '颜色',
|
|
|
slot: 'colorKey',
|
|
|
@@ -828,6 +836,7 @@
|
|
|
width: 220,
|
|
|
prop: 'remark',
|
|
|
label: '备注',
|
|
|
+ showOverflowTooltip: true,
|
|
|
slot: 'remark',
|
|
|
align: 'center'
|
|
|
},
|
|
|
@@ -1329,4 +1338,10 @@
|
|
|
::v-deep .time-form .el-table tr {
|
|
|
background-color: #ffffff;
|
|
|
}
|
|
|
+ .ellipsis-single {
|
|
|
+ white-space: nowrap;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ display: inline-block;
|
|
|
+ }
|
|
|
</style>
|