|
|
@@ -348,8 +348,7 @@
|
|
|
:type="type"
|
|
|
:source="source"
|
|
|
obtain="仓库"
|
|
|
-
|
|
|
- :is-after-sales="true"
|
|
|
+ :is-after-sales="true"
|
|
|
v-if="form.part == 1 && isPurchaseNeed"
|
|
|
/>
|
|
|
<div class="after_sales_target" v-if="salesShow">
|
|
|
@@ -892,6 +891,12 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters(['getDictValue']),
|
|
|
+ sxtValueLabelMap() {
|
|
|
+ return this.sxtList.reduce((map, item) => {
|
|
|
+ map[item.value] = item.label;
|
|
|
+ return map;
|
|
|
+ }, {});
|
|
|
+ },
|
|
|
salesShow() {
|
|
|
if (this.form.associationType == '1') {
|
|
|
return true;
|
|
|
@@ -996,10 +1001,21 @@ export default {
|
|
|
slot: 'expand'
|
|
|
},
|
|
|
{
|
|
|
- prop: 'productCategoryName',
|
|
|
+ prop: 'componentAttribute',
|
|
|
label: '类型',
|
|
|
align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ width: 200,
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
+ if (!Array.isArray(cellValue) || cellValue.length === 0) {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+ return cellValue
|
|
|
+ .map((value) => {
|
|
|
+ return this.sxtValueLabelMap[value] || value;
|
|
|
+ })
|
|
|
+ .join(', ');
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
prop: 'categoryCode',
|
|
|
@@ -1246,6 +1262,25 @@ export default {
|
|
|
{ label: '保养', value: '2' },
|
|
|
{ label: '安装', value: '3' }
|
|
|
],
|
|
|
+
|
|
|
+ sxtList: [
|
|
|
+ {
|
|
|
+ label: '自制件',
|
|
|
+ value: 1
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '采购件',
|
|
|
+ value: 2
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '外协件',
|
|
|
+ value: 3
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '受托件',
|
|
|
+ value: 4
|
|
|
+ }
|
|
|
+ ],
|
|
|
form: {
|
|
|
contractInfo: {},
|
|
|
tableList: [],
|
|
|
@@ -1327,6 +1362,7 @@ export default {
|
|
|
},
|
|
|
// 初始化数据
|
|
|
async init(res) {
|
|
|
+
|
|
|
let productDetail = res.productDetail ? res.productDetail : [];
|
|
|
this.$set(this.form, 'tableList', productDetail);
|
|
|
this.$set(this.form, 'orderCode', res.orderCode);
|