|
|
@@ -152,7 +152,7 @@
|
|
|
v-if="['1', '3', '4'].includes(scope.row.orderStatus)">报价单预览</el-button>
|
|
|
<el-button link type="danger" @click="deleteOrder(scope.row.orderNo)"
|
|
|
v-if="scope.row.orderStatus === '6' || scope.row.orderStatus === '8'">删除订单</el-button>
|
|
|
- <!-- <el-dropdown trigger="click" class="ml-[12px] align-middle" v-if="scope.row.orderStatus === '5'">
|
|
|
+ <el-dropdown trigger="click" class="ml-[12px] align-middle" v-if="scope.row.orderStatus === '5'">
|
|
|
<el-button link type="primary">
|
|
|
订单批改
|
|
|
<el-icon class="el-icon--right">
|
|
|
@@ -165,7 +165,7 @@
|
|
|
<el-dropdown-item @click="onClick(0, scope.row)">整单退保</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</template>
|
|
|
- </el-dropdown>-->
|
|
|
+ </el-dropdown>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -791,7 +791,33 @@ const getStateText = (d: any, v: any) => {
|
|
|
let label = d.find((item: any) => item.value == v)?.label;
|
|
|
return label || '--';
|
|
|
};
|
|
|
-
|
|
|
+const onClick = (type: any, row: any) => {
|
|
|
+ console.log(type, row)
|
|
|
+ api.insurancePolicyApi.adjustAdd({
|
|
|
+ type: type,
|
|
|
+ orderNo: row.orderNo,
|
|
|
+ }).then((res: any) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ formData.value = {
|
|
|
+ ...row,
|
|
|
+ orderNo: row.orderNo,
|
|
|
+ adjustId: res.data.id,
|
|
|
+ tableList: type === 1 ? res.data.changeInfoVosList : res.data.infoVosList
|
|
|
+ };
|
|
|
+ if (type === 1) {
|
|
|
+ isEditVisible.value = true;
|
|
|
+ }
|
|
|
+ if (type === 0) {
|
|
|
+ isCancelVisible.value = true;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ ElMessage({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
// 批改记录
|
|
|
const openDetail = (e: any) => {
|
|
|
window.open(`/#/insurancePolicy/record?orderNo=${e.orderNo}`, '_blank');
|