|
@@ -89,13 +89,11 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</template>
|
|
</template>
|
|
|
- <!-- 单据名称插槽:新增详情按钮(选择单据后显示) -->
|
|
|
|
|
<template
|
|
<template
|
|
|
v-slot:linkName="{ row, $index }"
|
|
v-slot:linkName="{ row, $index }"
|
|
|
v-if="dialogType !== 'view'"
|
|
v-if="dialogType !== 'view'"
|
|
|
>
|
|
>
|
|
|
<el-form-item :prop="'datasource.' + $index + '.linkName'">
|
|
<el-form-item :prop="'datasource.' + $index + '.linkName'">
|
|
|
- <!-- 用flex布局使输入框和详情按钮对齐 -->
|
|
|
|
|
<div
|
|
<div
|
|
|
style="display: flex; align-items: center; gap: 8px; width: 100%"
|
|
style="display: flex; align-items: center; gap: 8px; width: 100%"
|
|
|
>
|
|
>
|
|
@@ -105,7 +103,6 @@
|
|
|
clearable
|
|
clearable
|
|
|
style="flex: 1"
|
|
style="flex: 1"
|
|
|
></el-input>
|
|
></el-input>
|
|
|
- <!-- 详情按钮:仅当选择单据(linkId存在)时显示 -->
|
|
|
|
|
<el-button
|
|
<el-button
|
|
|
v-if="row.linkId"
|
|
v-if="row.linkId"
|
|
|
size="mini"
|
|
size="mini"
|
|
@@ -178,6 +175,10 @@
|
|
|
ref="purchaseOrderListDialogRef"
|
|
ref="purchaseOrderListDialogRef"
|
|
|
@changeParent="getOrderData"
|
|
@changeParent="getOrderData"
|
|
|
></purchase-order-list-dialog>
|
|
></purchase-order-list-dialog>
|
|
|
|
|
+ <!-- 选择售后工单 -->
|
|
|
|
|
+ <SHGDListDialog
|
|
|
|
|
+ ref="SHGDListDialogRef"
|
|
|
|
|
+ @changeParent="getSHGDData"></SHGDListDialog>
|
|
|
<!--商机-->
|
|
<!--商机-->
|
|
|
<opportunity-dialog
|
|
<opportunity-dialog
|
|
|
ref="opportunityDialogRef"
|
|
ref="opportunityDialogRef"
|
|
@@ -216,6 +217,7 @@
|
|
|
<CGJHdetailDialog ref="CGJHdetailDialogRef"></CGJHdetailDialog>
|
|
<CGJHdetailDialog ref="CGJHdetailDialogRef"></CGJHdetailDialog>
|
|
|
|
|
|
|
|
<CGDDdetailDialog ref="CGDDdetailDialogRef"></CGDDdetailDialog>
|
|
<CGDDdetailDialog ref="CGDDdetailDialogRef"></CGDDdetailDialog>
|
|
|
|
|
+ <declarationDialog ref="declarationDialogRef"></declarationDialog>
|
|
|
<KHdrawer ref="KHdrawerRef"></KHdrawer>
|
|
<KHdrawer ref="KHdrawerRef"></KHdrawer>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -225,6 +227,7 @@ import contractListDialog from '@/views/financialManage/components/contractListD
|
|
|
import customerListDialog from '@/views/financialManage/components/customerListDialog.vue';
|
|
import customerListDialog from '@/views/financialManage/components/customerListDialog.vue';
|
|
|
import saleOrderListDialog from '@/views/saleManage/saleOrder/invoice/components/orderListDialog.vue';
|
|
import saleOrderListDialog from '@/views/saleManage/saleOrder/invoice/components/orderListDialog.vue';
|
|
|
import purchaseOrderListDialog from '@/views/purchasingManage/purchaseOrder/invoice/components/orderListDialog.vue';
|
|
import purchaseOrderListDialog from '@/views/purchasingManage/purchaseOrder/invoice/components/orderListDialog.vue';
|
|
|
|
|
+import SHGDListDialog from '@/views/salesServiceManagement/workOrder/components/drawer.vue';
|
|
|
import opportunityDialog from '@/views/financialManage/components/opportunityDialog.vue';
|
|
import opportunityDialog from '@/views/financialManage/components/opportunityDialog.vue';
|
|
|
import accountStatementDialog from '@/views/financialManage/components/accountstatementDialog.vue';
|
|
import accountStatementDialog from '@/views/financialManage/components/accountstatementDialog.vue';
|
|
|
import planDialog from '@/views/financialManage/components/planDialog.vue';
|
|
import planDialog from '@/views/financialManage/components/planDialog.vue';
|
|
@@ -242,6 +245,7 @@ import XSDZDdetailDialog from '@/views/saleManage/saleOrder/accountstatement/com
|
|
|
import ContactDetailDialog from '@/views/purchasingManage/producerManage/components/contactDetailDialog.vue';
|
|
import ContactDetailDialog from '@/views/purchasingManage/producerManage/components/contactDetailDialog.vue';
|
|
|
import CGJHdetailDialog from '@/views/purchasingManage/purchasePlanManage/components/detailDialog.vue';
|
|
import CGJHdetailDialog from '@/views/purchasingManage/purchasePlanManage/components/detailDialog.vue';
|
|
|
import CGDDdetailDialog from '@/views/purchasingManage/purchaseOrder/components/detailDialog.vue';
|
|
import CGDDdetailDialog from '@/views/purchasingManage/purchaseOrder/components/detailDialog.vue';
|
|
|
|
|
+import declarationDialog from '@/views/salesServiceManagement/workOrder/components/declarationDialog.vue';
|
|
|
// import fileMain from '@/components/addDoc/index.vue';
|
|
// import fileMain from '@/components/addDoc/index.vue';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -250,6 +254,7 @@ export default {
|
|
|
// fileMain,
|
|
// fileMain,
|
|
|
fileUpload,
|
|
fileUpload,
|
|
|
purchaseOrderListDialog,
|
|
purchaseOrderListDialog,
|
|
|
|
|
+ SHGDListDialog,
|
|
|
saleOrderListDialog,
|
|
saleOrderListDialog,
|
|
|
customerListDialog,
|
|
customerListDialog,
|
|
|
contractListDialog,
|
|
contractListDialog,
|
|
@@ -263,6 +268,7 @@ export default {
|
|
|
ContactDetailDialog,
|
|
ContactDetailDialog,
|
|
|
CGJHdetailDialog,
|
|
CGJHdetailDialog,
|
|
|
CGDDdetailDialog,
|
|
CGDDdetailDialog,
|
|
|
|
|
+ declarationDialog,
|
|
|
KHdrawer
|
|
KHdrawer
|
|
|
},
|
|
},
|
|
|
props: {
|
|
props: {
|
|
@@ -447,6 +453,7 @@ export default {
|
|
|
row.linkCode = '';
|
|
row.linkCode = '';
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log(row.linkType)
|
|
|
switch (row.linkType) {
|
|
switch (row.linkType) {
|
|
|
case '100': //客户
|
|
case '100': //客户
|
|
|
this.handleSelectContact(row);
|
|
this.handleSelectContact(row);
|
|
@@ -482,8 +489,8 @@ export default {
|
|
|
this.accountType = 2;
|
|
this.accountType = 2;
|
|
|
this.handleSelectAccount(row);
|
|
this.handleSelectAccount(row);
|
|
|
break;
|
|
break;
|
|
|
- case '900': //项目
|
|
|
|
|
- //this.handleSelectPurchaseOrder(row);
|
|
|
|
|
|
|
+ case '1010': //售后工单
|
|
|
|
|
+ this.handleSelectSHGDListDialog(row);
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -642,6 +649,10 @@ export default {
|
|
|
handleSelectPurchaseOrder(val) {
|
|
handleSelectPurchaseOrder(val) {
|
|
|
this.$refs.purchaseOrderListDialogRef.open();
|
|
this.$refs.purchaseOrderListDialogRef.open();
|
|
|
},
|
|
},
|
|
|
|
|
+ //选择售后工单
|
|
|
|
|
+ handleSelectSHGDListDialog(val) {
|
|
|
|
|
+ this.$refs.SHGDListDialogRef.open();
|
|
|
|
|
+ },
|
|
|
//获取采购/销售订单数据
|
|
//获取采购/销售订单数据
|
|
|
getOrderData(params) {
|
|
getOrderData(params) {
|
|
|
let row = {
|
|
let row = {
|
|
@@ -652,6 +663,19 @@ export default {
|
|
|
};
|
|
};
|
|
|
this.setSelectData(row);
|
|
this.setSelectData(row);
|
|
|
},
|
|
},
|
|
|
|
|
+ //获取售后工单数据
|
|
|
|
|
+ getSHGDData(params){
|
|
|
|
|
+ console.log(params)
|
|
|
|
|
+
|
|
|
|
|
+ let row = {
|
|
|
|
|
+ ...params,
|
|
|
|
|
+ id: params.id,
|
|
|
|
|
+ name: params.code,
|
|
|
|
|
+ code: params.code,
|
|
|
|
|
+ amount: params.payAmount
|
|
|
|
|
+ };
|
|
|
|
|
+ this.setSelectData(row);
|
|
|
|
|
+ },
|
|
|
handleViewDetail(row) {
|
|
handleViewDetail(row) {
|
|
|
let rowL = {
|
|
let rowL = {
|
|
|
...row,
|
|
...row,
|
|
@@ -694,6 +718,9 @@ export default {
|
|
|
this.xsdDialogFlag = true;
|
|
this.xsdDialogFlag = true;
|
|
|
this.$refs.XSDZDdetailDialogRef.open('view', rowL, '1');
|
|
this.$refs.XSDZDdetailDialogRef.open('view', rowL, '1');
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case '1010': //售后工单
|
|
|
|
|
+ this.$refs.declarationDialogRef.open(rowL);
|
|
|
|
|
+ break;
|
|
|
case '900': //项目
|
|
case '900': //项目
|
|
|
//this.handleSelectPurchaseOrder(row);
|
|
//this.handleSelectPurchaseOrder(row);
|
|
|
break;
|
|
break;
|