diff --git a/anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatecheckAdd.vue b/anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatecheckAdd.vue
index e290b8666a..67269df352 100644
--- a/anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatecheckAdd.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatecheck/bicyclerebatecheckAdd.vue
@@ -39,102 +39,34 @@
-
-
- {{ scope.row.rebateTypeValue }}
-
-
-
-
- {{ scope.row.num }}
-
-
-
-
- {{ scope.row.withRebate }}
-
-
-
-
- {{ scope.row.uploadMoney }}
-
-
-
-
- {{ scope.row.stayDetermineMoney }}
-
-
-
-
- {{ scope.row.adjustmentMoney }}
-
-
-
-
- {{ scope.row.money }}
-
-
+
+
+
+
+
+
+
查看
-
+
-
-
- {{ scope.row.withholdingDate }}
-
-
-
-
- {{ scope.row.withholdingAmount }}
-
-
-
-
- {{ scope.row.withRebate }}
-
-
-
-
- {{ scope.row.uploadAmount }}
-
-
-
-
- {{ scope.row.uploadMoney }}
-
-
-
-
- {{ scope.row.stayDetermineMoney }}
-
-
-
-
- {{ scope.row.adjustmentMoney }}
-
-
-
-
- {{ scope.row.money }}
-
-
-
-
- {{ scope.row.notUploadedAmount }}
-
-
-
-
- {{ scope.row.notUploadedCost }}
-
-
+
+
+
+
+
+
+
+
+
+
@@ -284,23 +216,21 @@ export default {
this.viewTitle = '【编辑】单车返利核对审核申请'
console.log('编辑回显', row.sid)
req.fetchDetailsBySid(row.sid).then((resp) => {
- this.formobj = resp.data
- this.formobj.instanceId = resp.data.procInstId
+ if (resp.success) {
+ this.formobj = resp.data
+ this.formobj.instanceId = resp.data.procInstId
+ }
}).catch((e) => {
this.formobj = row
})
},
changeBrand(value) {
- let bb = null
- this.brand_list.forEach((e) => {
- if (e.brandName === value) {
- bb = {
- name: e.brandName,
- sid: e.sid
- }
- }
- })
- this.formobj.brandSid = bb.sid
+ const choose = this.brand_list.filter((item) => item.brandName === value)
+ if (choose !== null && choose.length > 0) {
+ this.formobj.brandSid = choose[0].sid
+ } else {
+ this.formobj.brandSid = ''
+ }
},
// 明细表添加一行数据
handleSelect() {
@@ -483,11 +413,7 @@ export default {
req.save(this.formobj).then((resp) => {
this.submitdisabled = false
if (resp.success) {
- this.$message({
- showClose: true,
- type: 'success',
- message: resp.msg
- })
+ this.$message({ showClose: true, type: 'success', message: resp.msg })
this.handleReturn('true')
}
}).catch(() => {
@@ -505,11 +431,7 @@ export default {
req.submitVehicleApply(this.formobj).then((resp) => {
this.submitdisabled = false
if (resp.success) {
- this.$message({
- showClose: true,
- type: 'success',
- message: resp.msg
- })
+ this.$message({ showClose: true, type: 'success', message: resp.msg })
this.handleReturn('true')
}
}).catch(() => {
@@ -549,13 +471,8 @@ export default {
}