Browse Source

Merge remote-tracking branch 'origin/master'

master
God 8 months ago
parent
commit
99160c1244
  1. 1
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanpushfundhistory/LoanPushFundHistoryMapper.java
  2. 7
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanpushfundhistory/LoanPushFundHistoryMapper.xml
  3. 3
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanpushfundhistory/LoanPushFundHistoryService.java
  4. 5
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymenthistory/LoanRepaymentHistoryMapper.xml
  5. 63
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentschedule/LoanRepaymentScheduleService.java
  6. 67
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatedistributionAdd.vue
  7. 4
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatedistributionInfo.vue
  8. 10
      anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatetobeallocatedAdd.vue
  9. 4
      anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanlifenpeiFlow/zhuanxiangfanlifenpeiDaiBanInfo.vue
  10. 69
      anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanlifenpeiFlow/zhuanxiangfanlifenpeiEdit.vue
  11. 4
      anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanlifenpeiFlow/zhuanxiangfanlifenpeiYiBanInfo.vue
  12. 24
      yxt-as-ui/src/views/storage/oldpPartStocktakingLoss/index.vue
  13. 12
      yxt-as-ui/src/views/storage/oldpPartStocktakingLoss/oldpPartStocktakingLossAdd.vue
  14. 6
      yxt-as-ui/src/views/storage/oldpPartStocktakingSurplus/index.vue
  15. 10
      yxt-as-ui/src/views/storage/oldpPartStocktakingSurplus/oldpPartStocktakingSurplusAdd.vue
  16. 24
      yxt-as-ui/src/views/storage/stocktakingLoss/index.vue
  17. 9
      yxt-as-ui/src/views/storage/stocktakingLoss/stocktakingLossAdd.vue
  18. 6
      yxt-as-ui/src/views/storage/stocktakingSurplus/index.vue
  19. 10
      yxt-as-ui/src/views/storage/stocktakingSurplus/stocktakingSurplusAdd.vue

1
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanpushfundhistory/LoanPushFundHistoryMapper.java

@ -20,6 +20,7 @@ public interface LoanPushFundHistoryMapper extends BaseMapper<LoanPushFundHistor
int saveLists(@Param("list") List<LoanPushFundHistory> list); int saveLists(@Param("list") List<LoanPushFundHistory> list);
int saveList(@Param("list") List<LoanPushFundHistory> list);
String getLastDateByBusVinSid(@Param("busVinSid") String busVinSid); String getLastDateByBusVinSid(@Param("busVinSid") String busVinSid);

7
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanpushfundhistory/LoanPushFundHistoryMapper.xml

@ -10,6 +10,13 @@
(#{item.sid},#{item.busVinSid},#{item.useOrgSid},#{item.useOrgName},#{item.fund},#{item.lastAccrualDate}) (#{item.sid},#{item.busVinSid},#{item.useOrgSid},#{item.useOrgName},#{item.fund},#{item.lastAccrualDate})
</foreach> </foreach>
</insert> </insert>
<insert id="saveList" parameterType="java.util.List">
insert into loan_push_fund_history(sid,isEnable,busVinSid,useOrgSid,useOrgName,fund,lastAccrualDate)
values
<foreach collection="list" item="item" index="index" separator=",">
(#{item.sid},#{item.isEnable},#{item.busVinSid},#{item.useOrgSid},#{item.useOrgName},#{item.fund},#{item.lastAccrualDate})
</foreach>
</insert>
<select id="getLastDateByBusVinSid" resultType="java.lang.String"> <select id="getLastDateByBusVinSid" resultType="java.lang.String">
SELECT SELECT
createTime createTime

3
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanpushfundhistory/LoanPushFundHistoryService.java

@ -52,6 +52,9 @@ public class LoanPushFundHistoryService extends MybatisBaseService<LoanPushFundH
public int saveLists(List<LoanPushFundHistory> list) { public int saveLists(List<LoanPushFundHistory> list) {
return baseMapper.saveLists(list); return baseMapper.saveLists(list);
} }
public int saveList(List<LoanPushFundHistory> list) {
return baseMapper.saveList(list);
}
public PagerVo<LoanPushFundHistoryVo> listPage(PagerQuery<LoanPushFundHistoryQuery> pq) { public PagerVo<LoanPushFundHistoryVo> listPage(PagerQuery<LoanPushFundHistoryQuery> pq) {
LoanPushFundHistoryQuery pagerQuery = pq.getParams(); LoanPushFundHistoryQuery pagerQuery = pq.getParams();

5
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymenthistory/LoanRepaymentHistoryMapper.xml

@ -806,6 +806,11 @@
WHERE WHERE
s.receivablesName = '资金占用费' s.receivablesName = '资金占用费'
OR s.receivablesName = '资方逾期利息' OR s.receivablesName = '资方逾期利息'
OR s.receivablesName = '资方退还垫款'
OR s.receivablesName = '其他费用'
OR s.receivablesName = '合同违约金'
OR s.receivablesName = '名义价'
OR s.receivablesName = '结清时资方逾期利息'
AND s.auditState = 3 AND s.auditState = 3
) AS a,( ) AS a,(
SELECT SELECT

63
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentschedule/LoanRepaymentScheduleService.java

@ -37,6 +37,7 @@ import com.yxt.anrui.riskcenter.api.loanfinbank.LoanFinBank;
import com.yxt.anrui.riskcenter.api.loanfinotherPolicy.LoanFinOtherPolicy; import com.yxt.anrui.riskcenter.api.loanfinotherPolicy.LoanFinOtherPolicy;
import com.yxt.anrui.riskcenter.api.loanfinpolicy.LoanFinPolicy; import com.yxt.anrui.riskcenter.api.loanfinpolicy.LoanFinPolicy;
import com.yxt.anrui.riskcenter.api.loanfundday.LoanFundDay; import com.yxt.anrui.riskcenter.api.loanfundday.LoanFundDay;
import com.yxt.anrui.riskcenter.api.loanpushfundhistory.LoanPushFundHistory;
import com.yxt.anrui.riskcenter.api.loanrepaymenthistory.LoanRepaymentHistory; import com.yxt.anrui.riskcenter.api.loanrepaymenthistory.LoanRepaymentHistory;
import com.yxt.anrui.riskcenter.api.loanrepaymentplandetails.LoanRepaymentPlanDetails; import com.yxt.anrui.riskcenter.api.loanrepaymentplandetails.LoanRepaymentPlanDetails;
import com.yxt.anrui.riskcenter.api.loanrepaymentplandetails.LoanRepaymentPlanDetailsDto; import com.yxt.anrui.riskcenter.api.loanrepaymentplandetails.LoanRepaymentPlanDetailsDto;
@ -53,6 +54,7 @@ import com.yxt.anrui.riskcenter.biz.loanfinbank.LoanFinBankService;
import com.yxt.anrui.riskcenter.biz.loanfinotherPolicy.LoanFinOtherPolicyService; import com.yxt.anrui.riskcenter.biz.loanfinotherPolicy.LoanFinOtherPolicyService;
import com.yxt.anrui.riskcenter.biz.loanfinpolicy.LoanFinPolicyService; import com.yxt.anrui.riskcenter.biz.loanfinpolicy.LoanFinPolicyService;
import com.yxt.anrui.riskcenter.biz.loanfundday.LoanFundDayService; import com.yxt.anrui.riskcenter.biz.loanfundday.LoanFundDayService;
import com.yxt.anrui.riskcenter.biz.loanpushfundhistory.LoanPushFundHistoryService;
import com.yxt.anrui.riskcenter.biz.loanrepaymenthistory.LoanRepaymentHistoryService; import com.yxt.anrui.riskcenter.biz.loanrepaymenthistory.LoanRepaymentHistoryService;
import com.yxt.anrui.riskcenter.biz.loanrepaymentplandetails.LoanRepaymentPlanDetailsService; import com.yxt.anrui.riskcenter.biz.loanrepaymentplandetails.LoanRepaymentPlanDetailsService;
import com.yxt.anrui.riskcenter.biz.loansolutions.LoanSolutionsService; import com.yxt.anrui.riskcenter.biz.loansolutions.LoanSolutionsService;
@ -155,7 +157,8 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme
private LoanFundDayService loanFundDayService; private LoanFundDayService loanFundDayService;
@Autowired @Autowired
private FinUncollectedReceivablesDetailedJRFeign finUncollectedReceivablesDetailedJRFeign; private FinUncollectedReceivablesDetailedJRFeign finUncollectedReceivablesDetailedJRFeign;
@Autowired
private LoanPushFundHistoryService loanPushFundHistoryService;
/** /**
* 根据销售订单SID生成还款计划表回显 * 根据销售订单SID生成还款计划表回显
* *
@ -5955,6 +5958,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme
List<LoanRepaymentHistory> histories = new ArrayList<>();//还款记录 List<LoanRepaymentHistory> histories = new ArrayList<>();//还款记录
List<FinUncollectedReceivablesDetailedJR> jrList = new ArrayList<>();//金融应收 List<FinUncollectedReceivablesDetailedJR> jrList = new ArrayList<>();//金融应收
List<LoanFundDay> loanFundDays = new ArrayList<>();//资金占用费生成记录 List<LoanFundDay> loanFundDays = new ArrayList<>();//资金占用费生成记录
List<LoanPushFundHistory> pushFundHistories = new ArrayList<>();//资金占用费计提记录
for (LoanRepaymentSchedule schedule : data) { for (LoanRepaymentSchedule schedule : data) {
BigDecimal Q = BigDecimal.ZERO; //累欠金额 BigDecimal Q = BigDecimal.ZERO; //累欠金额
BigDecimal T = BigDecimal.ZERO; //其中公司垫还资方金额 BigDecimal T = BigDecimal.ZERO; //其中公司垫还资方金额
@ -6069,6 +6073,15 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme
fundDay.setBusSid(plan.getSid()); fundDay.setBusSid(plan.getSid());
fundDay.setIsEnable(3); fundDay.setIsEnable(3);
loanFundDays.add(fundDay); loanFundDays.add(fundDay);
//生成资金占用费计提记录
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory();
pushFundHistory.setCreateBySid(userSid);
pushFundHistory.setFund(B);
pushFundHistory.setBusVinSid(plan.getBusVinSid());
pushFundHistory.setIsEnable(3);
pushFundHistory.setUseOrgSid(plan.getUseOrgSid());
pushFundHistory.setUseOrgName(plan.getUseOrgName());
pushFundHistories.add(pushFundHistory);
} }
if (pd) { if (pd) {
planDetails.add(plan); planDetails.add(plan);
@ -6195,6 +6208,15 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme
fundDay.setFund(B1); fundDay.setFund(B1);
fundDay.setBusSid(p.getSid()); fundDay.setBusSid(p.getSid());
loanFundDays.add(fundDay); loanFundDays.add(fundDay);
//生成资金占用费计提记录
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory();
pushFundHistory.setCreateBySid(userSid);
pushFundHistory.setFund(B1);
pushFundHistory.setBusVinSid(p.getBusVinSid());
pushFundHistory.setIsEnable(3);
pushFundHistory.setUseOrgSid(p.getUseOrgSid());
pushFundHistory.setUseOrgName(p.getUseOrgName());
pushFundHistories.add(pushFundHistory);
} }
Q1 = Q1.subtract(temp); Q1 = Q1.subtract(temp);
} else if (Q1.compareTo(BigDecimal.ZERO) == 0) { } else if (Q1.compareTo(BigDecimal.ZERO) == 0) {
@ -6314,6 +6336,15 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme
fundDay.setFund(B1); fundDay.setFund(B1);
fundDay.setBusSid(p.getSid()); fundDay.setBusSid(p.getSid());
loanFundDays.add(fundDay); loanFundDays.add(fundDay);
//生成资金占用费计提记录
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory();
pushFundHistory.setCreateBySid(userSid);
pushFundHistory.setFund(B1);
pushFundHistory.setBusVinSid(p.getBusVinSid());
pushFundHistory.setIsEnable(3);
pushFundHistory.setUseOrgSid(p.getUseOrgSid());
pushFundHistory.setUseOrgName(p.getUseOrgName());
pushFundHistories.add(pushFundHistory);
} }
Q1 = Q1.subtract(temp); Q1 = Q1.subtract(temp);
} else if (Q1.compareTo(BigDecimal.ZERO) == 0) { } else if (Q1.compareTo(BigDecimal.ZERO) == 0) {
@ -6402,6 +6433,15 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme
fundDay.setFund(B); fundDay.setFund(B);
fundDay.setBusSid(plan.getSid()); fundDay.setBusSid(plan.getSid());
loanFundDays.add(fundDay); loanFundDays.add(fundDay);
//生成资金占用费计提记录
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory();
pushFundHistory.setCreateBySid(userSid);
pushFundHistory.setFund(B);
pushFundHistory.setBusVinSid(plan.getBusVinSid());
pushFundHistory.setIsEnable(3);
pushFundHistory.setUseOrgSid(plan.getUseOrgSid());
pushFundHistory.setUseOrgName(plan.getUseOrgName());
pushFundHistories.add(pushFundHistory);
} }
if (pd) { if (pd) {
planDetails.add(plan); planDetails.add(plan);
@ -6546,6 +6586,15 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme
fundDay.setFund(B1); fundDay.setFund(B1);
fundDay.setBusSid(p.getSid()); fundDay.setBusSid(p.getSid());
loanFundDays.add(fundDay); loanFundDays.add(fundDay);
//生成资金占用费计提记录
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory();
pushFundHistory.setCreateBySid(userSid);
pushFundHistory.setFund(B1);
pushFundHistory.setBusVinSid(p.getBusVinSid());
pushFundHistory.setIsEnable(3);
pushFundHistory.setUseOrgSid(p.getUseOrgSid());
pushFundHistory.setUseOrgName(p.getUseOrgName());
pushFundHistories.add(pushFundHistory);
} }
Q1 = Q1.subtract(temp); Q1 = Q1.subtract(temp);
} else if (Q1.compareTo(BigDecimal.ZERO) == 0) { } else if (Q1.compareTo(BigDecimal.ZERO) == 0) {
@ -6665,6 +6714,15 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme
fundDay.setFund(B1); fundDay.setFund(B1);
fundDay.setBusSid(p.getSid()); fundDay.setBusSid(p.getSid());
loanFundDays.add(fundDay); loanFundDays.add(fundDay);
//生成资金占用费计提记录
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory();
pushFundHistory.setCreateBySid(userSid);
pushFundHistory.setFund(B1);
pushFundHistory.setBusVinSid(p.getBusVinSid());
pushFundHistory.setIsEnable(3);
pushFundHistory.setUseOrgSid(p.getUseOrgSid());
pushFundHistory.setUseOrgName(p.getUseOrgName());
pushFundHistories.add(pushFundHistory);
} }
Q1 = Q1.subtract(temp); Q1 = Q1.subtract(temp);
} else if (Q1.compareTo(BigDecimal.ZERO) == 0) { } else if (Q1.compareTo(BigDecimal.ZERO) == 0) {
@ -6705,6 +6763,9 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme
if (loanFundDays.size() > 0 && !loanFundDays.isEmpty()) { if (loanFundDays.size() > 0 && !loanFundDays.isEmpty()) {
loanFundDayService.saveList(loanFundDays); loanFundDayService.saveList(loanFundDays);
} }
if (pushFundHistories.size() > 0 && !pushFundHistories.isEmpty()) {
loanPushFundHistoryService.saveList(pushFundHistories);
}
if (jrList.size() > 0 && !jrList.isEmpty()) { if (jrList.size() > 0 && !jrList.isEmpty()) {
finUncollectedReceivablesDetailedJRFeign.saveList(jrList); finUncollectedReceivablesDetailedJRFeign.saveList(jrList);
} }

67
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatedistributionAdd.vue

@ -173,8 +173,10 @@ export default {
this.viewTitle = '【编辑】专项返利分配申请' this.viewTitle = '【编辑】专项返利分配申请'
console.log('编辑回显', row.sid) console.log('编辑回显', row.sid)
req.fetchDetailsBySid(row.sid).then((resp) => { req.fetchDetailsBySid(row.sid).then((resp) => {
this.formobj = resp.data if (resp.success) {
this.formobj.instanceId = resp.data.procInstId this.formobj = resp.data
this.formobj.instanceId = resp.data.procInstId
}
}).catch((e) => { }).catch((e) => {
this.formobj = row this.formobj = row
}) })
@ -233,36 +235,31 @@ export default {
estimateRebate: e.estimateRebate, estimateRebate: e.estimateRebate,
uploadMoney: e.uploadMoney, uploadMoney: e.uploadMoney,
disNum: e.disNum, disNum: e.disNum,
unitSetAllocationMoney: (parseInt(e.uploadMoney)) / (parseInt(e.disNum)) unitSetAllocationMoney: Math.round((parseFloat(e.uploadMoney) / parseFloat(e.disNum)) * 100) / 100
}) })
}) })
} }
}, },
changeBrand(value) { changeBrand(value) {
let bb = null const choose = this.brand_list.filter((item) => item.brandName === value)
this.brand_list.forEach((e) => { if (choose !== null && choose.length > 0) {
if (e.brandName === value) { this.formobj.brandSid = choose[0].sid
bb = { } else {
name: e.brandName, this.formobj.brandSid = ''
sid: e.sid }
}
}
})
this.formobj.brandSid = bb.sid
}, },
saveOrUpdate() { saveOrUpdate() {
console.log(this.formobj)
this.$refs['form_obj'].validate((valid) => { this.$refs['form_obj'].validate((valid) => {
if (valid) { if (valid) {
if (this.formobj.scmSpecialrebatedistributedetails.length === 0) {
this.$message({ showClose: true, type: 'error', message: '专项返利分配申请列表不能为空' })
return
}
this.submitdisabled = true this.submitdisabled = true
req.saveOrUpdate(this.formobj).then((resp) => { req.saveOrUpdate(this.formobj).then((resp) => {
this.submitdisabled = false this.submitdisabled = false
if (resp.success) { if (resp.success) {
this.$message({ this.$message({ showClose: true, type: 'success', message: resp.msg })
showClose: true,
type: 'success',
message: resp.msg
})
this.handleReturn('true') this.handleReturn('true')
} }
}).catch(() => { }).catch(() => {
@ -274,24 +271,24 @@ export default {
}) })
}, },
submitVehicleApply() { submitVehicleApply() {
if (this.formobj.scmSpecialrebatedistributedetails.length === 0) { this.$refs['form_obj'].validate((valid) => {
this.$message({ showClose: true, type: 'error', message: '专项返利分配申请列表不能为空' }) if (valid) {
return if (this.formobj.scmSpecialrebatedistributedetails.length === 0) {
} this.$message({ showClose: true, type: 'error', message: '专项返利分配申请列表不能为空' })
req.submitVehicleApply(this.formobj).then((res) => { return
if (res.success) { }
this.$message({ this.submitdisabled = true
showClose: true, req.submitVehicleApply(this.formobj).then((resp) => {
type: 'success', this.submitdisabled = false
message: '提交成功' if (resp.success) {
this.$message({ showClose: true, type: 'success', message: resp.msg })
this.handleReturn('true')
}
}).catch(() => {
this.submitdisabled = false
}) })
this.handleReturn('true')
} else { } else {
this.$message({ return false
showClose: true,
type: 'error',
message: '提交失败'
})
} }
}) })
}, },

4
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatedistributionInfo.vue

@ -100,7 +100,9 @@ export default {
this.viewTitle = '专项返利分配申请详情' this.viewTitle = '专项返利分配申请详情'
console.log('编辑回显', row.sid) console.log('编辑回显', row.sid)
req.fetchDetailsBySid(row.sid).then((resp) => { req.fetchDetailsBySid(row.sid).then((resp) => {
this.formobj = resp.data if (resp.success) {
this.formobj = resp.data
}
}).catch((e) => { }).catch((e) => {
this.formobj = row this.formobj = row
}) })

10
anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatedistribution/specialrebatetobeallocatedAdd.vue

@ -104,7 +104,7 @@ import req from '@/api/specialrebate/specialrebatedistribution'
import selectvehicle from './relation/selectvehicle.vue' import selectvehicle from './relation/selectvehicle.vue'
export default { export default {
name: 'specialrebatetobeallocatedAdd', name: 'SpecialrebatetobeallocatedAdd',
components: { components: {
selectvehicle selectvehicle
}, },
@ -162,7 +162,7 @@ export default {
this.viewState = 1 this.viewState = 1
if (value.length > 0) { if (value.length > 0) {
this.formobj.setNumber = value.length this.formobj.setNumber = value.length
this.formobj.unitSetAllocationMoney = (parseInt(this.formobj.allocationMoney)) / (parseInt(this.formobj.setNumber)) this.formobj.unitSetAllocationMoney = Math.round((parseFloat(this.formobj.allocationMoney) / parseFloat(this.formobj.setNumber)) * 100) / 100
value.forEach((e) => { value.forEach((e) => {
this.formobj.scmSpecialrebateVehsVehSidAndVinNos.push({ this.formobj.scmSpecialrebateVehsVehSidAndVinNos.push({
modelName: e.modelName, modelName: e.modelName,
@ -184,11 +184,7 @@ export default {
req.save(this.formobj).then((resp) => { req.save(this.formobj).then((resp) => {
this.submitdisabled = false this.submitdisabled = false
if (resp.success) { if (resp.success) {
this.$message({ this.$message({ showClose: true, type: 'success', message: resp.msg })
showClose: true,
type: 'success',
message: resp.msg
})
this.handleReturn('true') this.handleReturn('true')
} }
}).catch(() => { }).catch(() => {

4
anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanlifenpeiFlow/zhuanxiangfanlifenpeiDaiBanInfo.vue

@ -173,7 +173,9 @@ export default {
this.viewTitle = '专项返利分配申请详情' this.viewTitle = '专项返利分配申请详情'
console.log('编辑回显', sid) console.log('编辑回显', sid)
req.fetchDetailsBySid(sid).then((resp) => { req.fetchDetailsBySid(sid).then((resp) => {
this.formobj = resp.data if (resp.success) {
this.formobj = resp.data
}
}).catch((e) => { }).catch((e) => {
this.formobj = {} this.formobj = {}
}) })

69
anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanlifenpeiFlow/zhuanxiangfanlifenpeiEdit.vue

@ -153,8 +153,10 @@ export default {
this.viewTitle = '【编辑】专项返利分配申请' this.viewTitle = '【编辑】专项返利分配申请'
console.log('编辑回显', sid) console.log('编辑回显', sid)
req.fetchDetailsBySid(sid).then((resp) => { req.fetchDetailsBySid(sid).then((resp) => {
this.formobj = resp.data if (resp.success) {
this.formobj.instanceId = resp.data.procInstId this.formobj = resp.data
this.formobj.instanceId = resp.data.procInstId
}
}).catch((e) => { }).catch((e) => {
this.formobj = {} this.formobj = {}
}) })
@ -213,36 +215,27 @@ export default {
estimateRebate: e.estimateRebate, estimateRebate: e.estimateRebate,
uploadMoney: e.uploadMoney, uploadMoney: e.uploadMoney,
disNum: e.disNum, disNum: e.disNum,
unitSetAllocationMoney: (parseInt(e.uploadMoney)) / (parseInt(e.disNum)) unitSetAllocationMoney: Math.round((parseInt(e.uploadMoney) / parseInt(e.disNum)) * 100) / 100
}) })
}) })
} }
}, },
changeBrand(value) { changeBrand(value) {
let bb = null const choose = this.brand_list.filter((item) => item.brandName === value)
this.brand_list.forEach((e) => { if (choose !== null && choose.length > 0) {
if (e.brandName === value) { this.formobj.brandSid = choose[0].sid
bb = { } else {
name: e.brandName, this.formobj.brandSid = ''
sid: e.sid }
}
}
})
this.formobj.brandSid = bb.sid
}, },
saveOrUpdate() { saveOrUpdate() {
console.log(this.formobj)
this.$refs['form_obj'].validate((valid) => { this.$refs['form_obj'].validate((valid) => {
if (valid) { if (valid) {
this.submitdisabled = true this.submitdisabled = true
req.saveOrUpdate(this.formobj).then((resp) => { req.saveOrUpdate(this.formobj).then((resp) => {
this.submitdisabled = false this.submitdisabled = false
if (resp.success) { if (resp.success) {
this.$message({ this.$message({ showClose: true, type: 'success', message: resp.msg })
showClose: true,
type: 'success',
message: resp.msg
})
// () // ()
window.parent.postMessage({ window.parent.postMessage({
cmd: 'returnHeight', cmd: 'returnHeight',
@ -261,27 +254,27 @@ export default {
}) })
}, },
submitVehicleApply() { submitVehicleApply() {
req.submitVehicleApply(this.formobj).then((res) => { this.$refs['form_obj'].validate((valid) => {
if (res.success) { if (valid) {
this.$message({ this.submitdisabled = true
showClose: true, req.submitVehicleApply(this.formobj).then((resp) => {
type: 'success', this.submitdisabled = false
message: '提交成功' if (resp.success) {
}) this.$message({ showClose: true, type: 'success', message: resp.msg })
// () // ()
window.parent.postMessage({ window.parent.postMessage({
cmd: 'returnHeight', cmd: 'returnHeight',
params: { params: {
// //
code: 1 code: 1
}
}, '*')
} }
}, '*') }).catch(() => {
} else { this.submitdisabled = false
this.$message({
showClose: true,
type: 'error',
message: '提交失败'
}) })
} else {
return false
} }
}) })
}, },

4
anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanlifenpeiFlow/zhuanxiangfanlifenpeiYiBanInfo.vue

@ -136,7 +136,9 @@ export default {
this.viewTitle = '专项返利分配申请详情' this.viewTitle = '专项返利分配申请详情'
console.log('编辑回显', sid) console.log('编辑回显', sid)
req.fetchDetailsBySid(sid).then((resp) => { req.fetchDetailsBySid(sid).then((resp) => {
this.formobj = resp.data if (resp.success) {
this.formobj = resp.data
}
}).catch((e) => { }).catch((e) => {
this.formobj = {} this.formobj = {}
}) })

24
yxt-as-ui/src/views/storage/oldpPartStocktakingLoss/index.vue

@ -148,7 +148,8 @@
"sourceBillNo": "", "sourceBillNo": "",
"userSid": "", "userSid": "",
"orgPath": "", "orgPath": "",
"menuUrl": "" "menuUrl": "",
'warehouseTypeKey': "02"
} }
}, },
sids: [], sids: [],
@ -286,15 +287,18 @@
size: 10, size: 10,
total: 0, total: 0,
params: { params: {
name: '', "deptNmae": "",
billNo: "", "createByName": "",
sourceBillNo: "", "billNo": "",
createTimestart: '', "createStartTime": "",
createTimeEnd: '', "createEndTime": "",
billstate: '', "finishStartTime": "",
menuUrl: '', "finishEndTime": "",
orgPath: '', "sourceBillNo": "",
usersid: "" "userSid": "",
"orgPath": "",
"menuUrl": "",
'warehouseTypeKey': "02"
} }
} }
this.loadList() this.loadList()

12
yxt-as-ui/src/views/storage/oldpPartStocktakingLoss/oldpPartStocktakingLossAdd.vue

@ -130,7 +130,9 @@
"businessKey": "14", "businessKey": "14",
"businessValue": "盘亏出库", "businessValue": "盘亏出库",
"remarks": "", "remarks": "",
"goodsList": [] "warehouseTypeKey": "02",
"warehouseTypeValue": "旧件库",
"goodsList": [],
}, },
hideUploadBtn: false, hideUploadBtn: false,
sourceBillNoList: [], sourceBillNoList: [],
@ -170,7 +172,8 @@
}) })
req.getSourceBillNoBySid({ req.getSourceBillNoBySid({
deptSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem( deptSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem(
'defaultOrgPath').lastIndexOf('/') + 1) 'defaultOrgPath').lastIndexOf('/') + 1),
warehouseTypeKey: "02"
}).then((resp) => { }).then((resp) => {
if (resp.success) { if (resp.success) {
this.sourceBillNoList = resp.data this.sourceBillNoList = resp.data
@ -269,6 +272,8 @@
"businessKey": "14", "businessKey": "14",
"businessValue": "盘亏出库", "businessValue": "盘亏出库",
"remarks": "", "remarks": "",
"warehouseTypeKey": "02",
"warehouseTypeValue": "旧件库",
"goodsList": [] "goodsList": []
} }
this.submitdisabled = false this.submitdisabled = false
@ -298,6 +303,9 @@
.sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1) .sessionStorage.getItem('defaultOrgPathName').lastIndexOf('/') + 1)
this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage
.getItem('defaultOrgPath').lastIndexOf('/') + 1) .getItem('defaultOrgPath').lastIndexOf('/') + 1)
this.formobj.warehouseTypeKey = "02"
this.formobj.warehouswarehouseTypeValueeTypeKey = "旧件库"
} }
}) })

6
yxt-as-ui/src/views/storage/oldpPartStocktakingSurplus/index.vue

@ -149,7 +149,8 @@
"sourceBillNo": "", "sourceBillNo": "",
"userSid": "", "userSid": "",
"orgPath": "", "orgPath": "",
"menuUrl": "" "menuUrl": "",
'warehouseTypeKey': "02"
} }
}, },
sids: [], sids: [],
@ -293,7 +294,8 @@
"sourceBillNo": "", "sourceBillNo": "",
"userSid": "", "userSid": "",
"orgPath": "", "orgPath": "",
"menuUrl": "" "menuUrl": "",
'warehouseTypeKey': "02"
} }
} }
this.loadList() this.loadList()

10
yxt-as-ui/src/views/storage/oldpPartStocktakingSurplus/oldpPartStocktakingSurplusAdd.vue

@ -144,6 +144,8 @@
"businessKey": "04", "businessKey": "04",
"businessValue": "盘盈入库", "businessValue": "盘盈入库",
"remarks": "", "remarks": "",
"warehouseTypeKey": "02",
"warehouseTypeValue": "旧件库",
"goodsList": [] "goodsList": []
}, },
hideUploadBtn: false, hideUploadBtn: false,
@ -195,7 +197,8 @@
req.getSourceBillNoBySid({ req.getSourceBillNoBySid({
deptSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem( deptSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem(
'defaultOrgPath').lastIndexOf('/') + 1) 'defaultOrgPath').lastIndexOf('/') + 1),
warehouseTypeKey: "02"
}).then((resp) => { }).then((resp) => {
if (resp.success) { if (resp.success) {
this.sourceBillNoList = resp.data this.sourceBillNoList = resp.data
@ -313,6 +316,8 @@
"businessKey": "04", "businessKey": "04",
"businessValue": "盘盈入库", "businessValue": "盘盈入库",
"remarks": "", "remarks": "",
"warehouseTypeKey": "02",
"warehouseTypeValue": "旧件库",
"goodsList": [] "goodsList": []
} }
this.submitdisabled = false this.submitdisabled = false
@ -343,6 +348,9 @@
this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage
.getItem('defaultOrgPath').lastIndexOf('/') + 1) .getItem('defaultOrgPath').lastIndexOf('/') + 1)
this.formobj.warehouseTypeKey = "02"
this.formobj.warehouswarehouseTypeValueeTypeKey = "旧件库"
} }
}) })
.catch(e => { .catch(e => {

24
yxt-as-ui/src/views/storage/stocktakingLoss/index.vue

@ -148,7 +148,8 @@
"sourceBillNo": "", "sourceBillNo": "",
"userSid": "", "userSid": "",
"orgPath": "", "orgPath": "",
"menuUrl": "" "menuUrl": "",
"warehouseTypeKey": "01"
} }
}, },
sids: [], sids: [],
@ -286,15 +287,18 @@
size: 10, size: 10,
total: 0, total: 0,
params: { params: {
name: '', "deptNmae": "",
billNo: "", "createByName": "",
sourceBillNo: "", "billNo": "",
createTimestart: '', "createStartTime": "",
createTimeEnd: '', "createEndTime": "",
billstate: '', "finishStartTime": "",
menuUrl: '', "finishEndTime": "",
orgPath: '', "sourceBillNo": "",
usersid: "" "userSid": "",
"orgPath": "",
"menuUrl": "",
"warehouseTypeKey": "01"
} }
} }
this.loadList() this.loadList()

9
yxt-as-ui/src/views/storage/stocktakingLoss/stocktakingLossAdd.vue

@ -130,6 +130,8 @@
"businessKey": "14", "businessKey": "14",
"businessValue": "盘亏出库", "businessValue": "盘亏出库",
"remarks": "", "remarks": "",
"warehouseTypeKey": "01",
"warehouseTypeValue": "配件库",
"goodsList": [] "goodsList": []
}, },
hideUploadBtn: false, hideUploadBtn: false,
@ -170,7 +172,8 @@
}) })
req.getSourceBillNoBySid({ req.getSourceBillNoBySid({
deptSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem( deptSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem(
'defaultOrgPath').lastIndexOf('/') + 1) 'defaultOrgPath').lastIndexOf('/') + 1),
warehouseTypeKey: "01"
}).then((resp) => { }).then((resp) => {
if (resp.success) { if (resp.success) {
this.sourceBillNoList = resp.data this.sourceBillNoList = resp.data
@ -269,6 +272,8 @@
"businessKey": "14", "businessKey": "14",
"businessValue": "盘亏出库", "businessValue": "盘亏出库",
"remarks": "", "remarks": "",
"warehouseTypeKey": "01",
"warehouseTypeValue": "配件库",
"goodsList": [] "goodsList": []
} }
this.submitdisabled = false this.submitdisabled = false
@ -299,6 +304,8 @@
this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage
.getItem('defaultOrgPath').lastIndexOf('/') + 1) .getItem('defaultOrgPath').lastIndexOf('/') + 1)
this.formobj.warehouseTypeKey = "01"
this.formobj.warehouswarehouseTypeValueeTypeKey = "配件库"
} }
}) })
.catch(e => { .catch(e => {

6
yxt-as-ui/src/views/storage/stocktakingSurplus/index.vue

@ -149,7 +149,8 @@
"sourceBillNo": "", "sourceBillNo": "",
"userSid": "", "userSid": "",
"orgPath": "", "orgPath": "",
"menuUrl": "" "menuUrl": "",
"warehouseTypeKey": "01"
} }
}, },
sids: [], sids: [],
@ -293,7 +294,8 @@
"sourceBillNo": "", "sourceBillNo": "",
"userSid": "", "userSid": "",
"orgPath": "", "orgPath": "",
"menuUrl": "" "menuUrl": "",
"warehouseTypeKey": "01"
} }
} }
this.loadList() this.loadList()

10
yxt-as-ui/src/views/storage/stocktakingSurplus/stocktakingSurplusAdd.vue

@ -144,6 +144,8 @@
"businessKey": "04", "businessKey": "04",
"businessValue": "盘盈入库", "businessValue": "盘盈入库",
"remarks": "", "remarks": "",
"warehouseTypeKey": "01",
"warehouseTypeValue": "配件库",
"goodsList": [] "goodsList": []
}, },
hideUploadBtn: false, hideUploadBtn: false,
@ -195,7 +197,8 @@
req.getSourceBillNoBySid({ req.getSourceBillNoBySid({
deptSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem( deptSid: window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem(
'defaultOrgPath').lastIndexOf('/') + 1) 'defaultOrgPath').lastIndexOf('/') + 1),
warehouseTypeKey: "01"
}).then((resp) => { }).then((resp) => {
if (resp.success) { if (resp.success) {
this.sourceBillNoList = resp.data this.sourceBillNoList = resp.data
@ -313,6 +316,8 @@
"businessKey": "04", "businessKey": "04",
"businessValue": "盘盈入库", "businessValue": "盘盈入库",
"remarks": "", "remarks": "",
"warehouseTypeKey": "01",
"warehouseTypeValue": "配件库",
"goodsList": [] "goodsList": []
} }
this.submitdisabled = false this.submitdisabled = false
@ -343,6 +348,9 @@
this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage this.formobj.deptSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage
.getItem('defaultOrgPath').lastIndexOf('/') + 1) .getItem('defaultOrgPath').lastIndexOf('/') + 1)
this.formobj.warehouseTypeKey = "01"
this.formobj.warehouswarehouseTypeValueeTypeKey = "配件库"
} }
}) })
.catch(e => { .catch(e => {

Loading…
Cancel
Save