Browse Source

Merge remote-tracking branch 'origin/master'

master
hp 3 years ago
parent
commit
2f9d6d0266
  1. 4
      anrui-base/anrui-base-api/src/main/java/com/yxt/anrui/base/api/baseaccadjapply/BaseAccadjApplyVo.java
  2. 4
      anrui-base/anrui-base-api/src/main/java/com/yxt/anrui/base/api/baseshuntinginvoicingapply/BaseShuntingInvoicingApplyVo.java
  3. 65
      anrui-base/anrui-base-biz/src/main/java/com/yxt/anrui/base/biz/baseoutsourcingapplication/BaseOutsourcingApplicationService.java
  4. 21
      anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finaccountnum/finaccountnumAdd.vue
  5. 4
      anrui-scm/anrui-scm-ui/.env.development
  6. 2
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplication.vue
  7. 15
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue
  8. 4
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationInfo.vue
  9. 1
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue
  10. 21
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue
  11. 4
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationInfo.vue
  12. 77
      anrui-scm/anrui-scm-ui/src/views/kucunguanli/changjiatuiku/changjiatuikuguanli/changjiatuikuAdd.vue
  13. 43
      anrui-scm/anrui-scm-ui/src/views/kucunguanli/changjiatuiku/changjiatuikuguanli/changjiatuikuInfo.vue
  14. 10
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue
  15. 60
      anrui-scm/anrui-scm-ui/src/views/workFlow/caigoutuikuFlow/caigoutuiku.vue
  16. 4
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanDaiBanInfo.vue
  17. 10
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanEdit.vue

4
anrui-base/anrui-base-api/src/main/java/com/yxt/anrui/base/api/baseaccadjapply/BaseAccadjApplyVo.java

@ -61,4 +61,8 @@ public class BaseAccadjApplyVo implements Vo {
private String callInOrgName; // 调入分公司名称
@ApiModelProperty("流程状态")
private String nodeState; // 流程状态
@ApiModelProperty("流程定义的id")
private String procDefId; // 流程定义的id
@ApiModelProperty("流程实例的sid")
private String procInstId; // 流程实例的sid
}

4
anrui-base/anrui-base-api/src/main/java/com/yxt/anrui/base/api/baseshuntinginvoicingapply/BaseShuntingInvoicingApplyVo.java

@ -61,4 +61,8 @@ public class BaseShuntingInvoicingApplyVo implements Vo {
private String callInOrgName; // 调入分公司名称
@ApiModelProperty("流程状态")
private String nodeState; // 流程状态
@ApiModelProperty("流程定义的id")
private String procDefId; // 流程定义的id
@ApiModelProperty("流程实例的sid")
private String procInstId; // 流程实例的sid
}

65
anrui-base/anrui-base-biz/src/main/java/com/yxt/anrui/base/biz/baseoutsourcingapplication/BaseOutsourcingApplicationService.java

@ -180,7 +180,7 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
ResultBean rb = ResultBean.fireFail();
BaseOutsourcingApplication entity = new BaseOutsourcingApplication();
List<BaseOutsourcingApplicationVehicleDto> baseOutsourcingApplicationVehicleDtos = dto.getBaseOutsourcingApplicationVehicleDtos();
CommonAppendix contract = dto.getContract();
CommonAppendix contract = dto.getContract();
String sid1 = entity.getSid();
String sid = dto.getSid();
if (StringUtils.isBlank(sid)) {//新增
@ -220,10 +220,10 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
baseOutsourcingApplicationVehicle.setOutAppSid(sid1);
baseOutsourcingApplicationVehicleService.save(baseOutsourcingApplicationVehicle);
}
if(contract!=null&& com.yxt.common.base.utils.StringUtils.isNotBlank(contract.getFilePath())){
if (contract != null && com.yxt.common.base.utils.StringUtils.isNotBlank(contract.getFilePath())) {
contract.setLinkSid(entity.getSid());
contract.setFileType( contract.getFileName().substring(
contract.getFileName().lastIndexOf("."),contract.getFileName().length()));
contract.setFileType(contract.getFileName().substring(
contract.getFileName().lastIndexOf("."), contract.getFileName().length()));
contract.setName(dto.getCreateByName());
contract.setAttachType(CommonAttachTypeEnum.OUTSOURCINGAPPLY.getAttachType());
commonAppendixService.save(contract);
@ -238,6 +238,15 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
baseOutsourcingApplicationVehicle.setOutAppSid(sid);
baseOutsourcingApplicationVehicleService.save(baseOutsourcingApplicationVehicle);
}
commonAppendixService.deleteFiles(sid);
if (contract != null && com.yxt.common.base.utils.StringUtils.isNotBlank(contract.getFilePath())) {
contract.setLinkSid(sid);
contract.setFileType(contract.getFileName().substring(
contract.getFileName().lastIndexOf("."), contract.getFileName().length()));
contract.setName(dto.getCreateByName());
contract.setAttachType(CommonAttachTypeEnum.OUTSOURCINGAPPLY.getAttachType());
commonAppendixService.save(contract);
}
return rb.success().setMsg("修改成功").setData(sid);
}
@ -258,8 +267,8 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
List<BaseOutsourcingApplicationVehicleVo> baseOutsourcingApplicationVehicleVos = baseOutsourcingApplicationVehicleService.fetchByOutAppSid(sid);
baseOutsourcingApplicationDetailsVo.setBaseOutsourcingApplicationVehicleVos(baseOutsourcingApplicationVehicleVos);
List<CommonAppendixVo> commonAppendixVos = commonAppendixService.selByLinkSid( sid);
if(commonAppendixVos!=null&&commonAppendixVos.size()>0){
List<CommonAppendixVo> commonAppendixVos = commonAppendixService.selByLinkSid(sid);
if (commonAppendixVos != null && commonAppendixVos.size() > 0) {
baseOutsourcingApplicationDetailsVo.setContract(commonAppendixVos.get(0));
}
@ -355,7 +364,7 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
bv.setOrgSidPath(orgSidPath);
bv.setBusinessSid(businessSid);
bv.setUserSid(dto.getUserSid());
// variables.put("businessSid", businessSid);
// variables.put("businessSid", businessSid);
bv.setFormVariables(variables);
bv.setModelId(ProcDefEnum.BASEOUTSOURCINGAPPLICATION.getProDefId());
//如果taskid从业务的数据库中查询出来,那这个taskid 和当前的关系是什么 如果数据库中查询出来的taskid是第四个环节的id,但是目前是做的第一次的提交操作。
@ -367,12 +376,12 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
updateFlowFiled(BeanUtil.beanToMap(uff));
return resultBean1;
}
ResultBean rb = submitBusinessData(dto, busSid,orgSidPath);
ResultBean rb = submitBusinessData(dto, busSid, orgSidPath);
return rb;
}
private synchronized ResultBean submitBusinessData(SubmitBaseOutSourcingApplicationDto dto,
String businessSid,String orgSidPath) {
String businessSid, String orgSidPath) {
Map<String, Object> variables = BeanUtil.beanToMap(dto);
BaseOutsourcingApplicationDto booad = baseMapper.getBySid(businessSid);
String businessTaskid = booad.getTaskId();
@ -381,12 +390,12 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
bv.setOrgSidPath(orgSidPath);
bv.setBusinessSid(businessSid);
bv.setUserSid(dto.getUserSid());
// variables.put("businessSid", businessSid);
// variables.put("businessSid", businessSid);
bv.setFormVariables(variables);
bv.setModelId(ProcDefEnum.BASEOUTSOURCINGAPPLICATION.getProDefId());
if (StringUtils.isBlank(businessTaskid) && StringUtils.isBlank(dto.getTaskId())) {
// 新提交 taskid都是空的
saveOrUpdateDto(dto);//update
saveOrUpdateDto(dto);//update
ResultBean<UpdateFlowFieldVo> resultBean1 = flowableFeign.startProcess(bv);
UpdateFlowFieldVo uff = resultBean1.getData();
updateFlowFiled(BeanUtil.beanToMap(uff));
@ -399,10 +408,11 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
Map<String, Object> stringObjectMap = BeanUtil.beanToMap(rb.getData());
updateFlowFiled(stringObjectMap);
return rb;
}else{
} else {
return ResultBean.fireFail().setMsg("操作失败,提交的数据不一致!");
}
}
/**
* 检查用户是否设置部门
*
@ -434,13 +444,13 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
updateFlowFiled(stringObjectMap);
if ("Event_end".equals(taskDefKey)) {
BigDecimal deposit = booad.getDeposit();
if(deposit!=null){
if(deposit.doubleValue()>0){
if (deposit != null) {
if (deposit.doubleValue() > 0) {
// 推送 传达款的数据
sendFinPaymentrecord(bv, booad);
}
}
for (int i=0;i<booad.getNum();i++) {
for (int i = 0; i < booad.getNum(); i++) {
//验车业务模块的数据推送
ResultBean<String> resultBean1 = sendScmVehicleExamine(booad);
if (!resultBean1.getSuccess()) {
@ -461,6 +471,7 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
/**
* 验车单业务模块的数据推送
*
* @param resultBean1
* @return
*/
@ -473,6 +484,7 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
/**
* 验车业务模块的数据推送
*
* @param booad
* @return
*/
@ -497,6 +509,7 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
/**
* 推送 传达款的数据
*
* @param bv
* @param booad
*/
@ -509,10 +522,10 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
finPaymentrecordDto.setPayType(1);
finPaymentrecordDto.setCreateOrgSid(booad.getUseOrgSid());
finPaymentrecordDto.setUseOrgSid(booad.getUseOrgSid());
//款项名称,数据字典 车款
finPaymentrecordDto.setCostTitleKey("1");
//款项名称,数据字典
finPaymentrecordDto.setCostTitleValue("车款");
finPaymentrecordDto.setCostTitleKey("2");
//款项名称,数据字典
finPaymentrecordDto.setCostTitleValue("订金");
//款项类别 外采
finPaymentrecordDto.setCostTypeValue(ManPurOrderType.ManOrderType.WC_ORDER.getRemarks());
//款项类别
@ -521,8 +534,8 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
finPaymentrecordDto.setReceiveCompany(booad.getPurchasingUnitName());
//收款银行账号
finPaymentrecordDto.setReceiveBankAccount(booad.getBankAccount());
finPaymentrecordDto.setCost(booad.getTotalExpenseAmount().intValue());
//金额
finPaymentrecordDto.setCost(booad.getDeposit().intValue());
//业务编号
finPaymentrecordDto.setBusSid("");
finPaymentrecordFeign.save(finPaymentrecordDto);
@ -544,7 +557,7 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
* @param flowTaskVo
* @return
*/
public ResultBean revokeProcess( FlowTaskVo flowTaskVo) {
public ResultBean revokeProcess(FlowTaskVo flowTaskVo) {
BaseOutsourcingApplicationDto booad = baseMapper.getBySid(flowTaskVo.getBusinessSid());
String businessTaskid = booad.getTaskId();
com.yxt.anrui.flowable.api.flowtask.FlowTaskVo fl = new com.yxt.anrui.flowable.api.flowtask.FlowTaskVo();
@ -553,13 +566,13 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
fl.setBusinessSid(flowTaskVo.getBusinessSid());
fl.setUserSid(flowTaskVo.getUserSid());
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.revokeProcess(fl);
if(!resultBean.getSuccess()){
if (!resultBean.getSuccess()) {
return ResultBean.fireFail().setMsg(resultBean.getMsg());
}
Map<String, Object> stringObjectMap = BeanUtil.beanToMap(resultBean.getData());
updateFlowFiled(stringObjectMap);
return resultBean;
}else{
} else {
return ResultBean.fireFail().setMsg("操作失败,提交的数据不一致!");
}
}
@ -586,7 +599,7 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
stringObjectMap.put("nodeState", data.getNodeState());
updateFlowFiled(stringObjectMap);
return resultBean;
}else{
} else {
return ResultBean.fireFail().setMsg("操作失败,提交的数据不一致!");
}
}
@ -597,7 +610,7 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
* @param flowTaskVo
* @return
*/
public ResultBean breakProcess( FlowTaskVo flowTaskVo) {
public ResultBean breakProcess(FlowTaskVo flowTaskVo) {
com.yxt.anrui.flowable.api.flowtask.FlowTaskVo fl = new com.yxt.anrui.flowable.api.flowtask.FlowTaskVo();
BaseOutsourcingApplicationDto booad = baseMapper.getBySid(flowTaskVo.getBusinessSid());
String businessTaskid = booad.getTaskId();
@ -607,7 +620,7 @@ public class BaseOutsourcingApplicationService extends MybatisBaseService<BaseOu
ResultBean<UpdateFlowFieldVo> resultBean = flowableFeign.breakProcess(fl);
updateFlowFiled(BeanUtil.beanToMap(resultBean.getData()));
return resultBean;
}else{
} else {
return ResultBean.fireFail().setMsg("操作失败,提交的数据不一致!");
}
}

21
anrui-buscenter/anrui-finmanage-ui/src/views/anruifinmanagement/finaccountnum/finaccountnumAdd.vue

@ -117,7 +117,7 @@
</template>
<script>
import {getPathSidByUserSid, typeValues} from "@/api/jichuxinxi/dictcommons";
import {getPathSidByUserSid, typeValues, getListOrg} from "@/api/jichuxinxi/dictcommons";
import {fetchDetailsBySid, save} from "@/api/anruifinmanagement/finaccountnum";
export default {
@ -127,6 +127,7 @@ export default {
viewState: '',
dialogStatus: '',
receiptBank_list: [],
org_list:[],
FormLoading: false,
temp: {
country: '中国',
@ -140,6 +141,8 @@ export default {
swiftCode: '',
currency: '人民币',
remarks: '',
useOrgSid:'',
useOrgName:''
},
rules: {
@ -156,11 +159,21 @@ export default {
}
})
},
getOrg(){
getListOrg().then((response) => {
if (response.success) {
this.org_list = response.data
this.getPathSid()
}
})
},
getPathSid() {
const userSid = window.sessionStorage.getItem('userSid')
getPathSidByUserSid({userSid: userSid}).then((res) => {
if (res.code === '200') {
this.temp.useOrgSid = res.data
const choosetItem = this.org_list.filter((item) => item.sid == this.temp.useOrgSid)
this.temp.useOrgName = choosetItem[0].name
}
})
},
@ -175,7 +188,8 @@ export default {
this.dialogStatus = 'add'
this.viewState = '【新增】公司开户行信息'
this.getType()
this.getPathSid()
this.getOrg()
// this.getPathSid()
},
showEdit(sid) {
this.dialogStatus = 'edit'
@ -186,7 +200,8 @@ export default {
}
})
this.getType()
this.getPathSid()
this.getOrg()
// this.getPathSid()
},
handleCreate() {
this.$refs['dataForm'].validate((valid) => {

4
anrui-scm/anrui-scm-ui/.env.development

@ -6,6 +6,6 @@ VUE_APP_BASE_API = '/api'
## 配置测试和本地开发时的 接口地址
##VUE_APP_URL = "http://26077a35f5.wicp.vip"
##VUE_APP_URL = "http://120.46.131.15:8111"
VUE_APP_URL = "http://192.168.1.109:8111"
##VUE_APP_URL = "http://192.168.1.116:8111"
VUE_APP_URL = "http://120.46.172.184:8111"
##VUE_APP_URL = "http://1mn7264414.qicp.vip"

2
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplication.vue

@ -224,7 +224,7 @@ export default {
this.centerDialogVisible = false
},
setIframeHeight(iframe) {
iframe.height = this.dialogHeight;//iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
iframe.height ='610px'; //this.dialogHeight;//iframeWin.document.documentElement.scrollHeight || iframeWin.document.body.scrollHeight;
},
flowRecord(row){
this.centerDialogVisible = true

15
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue

@ -359,6 +359,7 @@ export default {
//sid
nextUserSid: '',
sid: '',
insideCode:"",
userSid: '',
staffSid: window.sessionStorage.getItem('staffSid'),
applicationCode: '', //
@ -560,16 +561,20 @@ export default {
if (resp.success) {
const vdata = resp.data
_this.fileList = []
_this.fileList.push({
name: vdata.contract.fileName,
url: vdata.contract.filePath
}) /*
if(vdata.contract!=null){
_this.fileList.push({
name: vdata.contract.fileName,
url: vdata.contract.filePath
})
}
/*
this.formobj.contract={
sourceFileName : vdata.contract.fileName ,
filePath: vdata.contract.filePath,
fileSize: vdata.contract.fileSize
}*/
_this.formobj.remarks = vdata.remarks
_this.formobj.insideCode = vdata.insideCode
_this.formobj.businessSid = row.sid
_this.formobj.taskId = vdata.taskId
_this.formobj.instanceId = vdata.procInstSid
@ -601,7 +606,7 @@ export default {
}
})
.catch(e => {
this.formobj = row.sid
console.log(e)
})
},
handleClose() {

4
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationInfo.vue

@ -144,7 +144,7 @@
</el-col>
<el-col :span="21">
<el-form-item>
<span v-show="formobj.contract !== null"
<span v-if="formobj.contract != null"
class="bluezi" @click="handleDown(formobj.contract)">{{ formobj.contract.fileName }}</span>
</el-form-item>
</el-col>
@ -173,6 +173,7 @@ export default {
return {
formobj: {
remarks: '',
insideCode: '',
useOrgName: '',
depositBankName: '',
bankAccount: '',
@ -238,6 +239,7 @@ export default {
.then(resp => {
if (resp.success) {
const vdata = resp.data
_this.formobj.insideCode = vdata.insideCode
_this.formobj.remarks = vdata.remarks
_this.formobj.useOrgName = vdata.useOrgName
_this.formobj.contract = vdata.contract

1
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue

@ -264,6 +264,7 @@ export default {
bankAccount:"",
contract:{},
sid: '',
insideCode:"",
comment:'',
applicationCode: '123456', //
createByName: window.sessionStorage.getItem('name'), //

21
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationAdd.vue

@ -216,6 +216,7 @@
:action="uploadAction"
:data="requestData"
:headers="accessToken"
:on-remove="handleRemoveAttachment"
:accept="filType"
:multiple="false"
:on-success="uploadSuccessHetong"
@ -312,6 +313,7 @@ export default {
bankAccount : "",
contract : {},
sid: '',
insideCode: '',
staffSid: window.sessionStorage.getItem('staffSid'),
applicationCode: '', //
createByName: window.sessionStorage.getItem('name'), //
@ -395,7 +397,12 @@ export default {
}, '*')
},
methods: {
//
//
handleRemoveAttachment (file, files) {
this.formobj.fileList =
this.formobj.fileList.filter(item => item.uid !== file.uid)
},
//
handleDown(row) {
console.log(row);
var xhr=new XMLHttpRequest();
@ -520,6 +527,7 @@ export default {
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj.id = ''
this.formobj.insideCode = ''
this.formobj.sid = '' // SID
this.applicationCode = '' //
this.createByName = '' //
@ -565,12 +573,15 @@ export default {
if (resp.success) {
const vdata = resp.data
_this.fileList=[]
_this.fileList.push({
name: vdata.contract.fileName ,
url: vdata.contract.filePath
})
if(vdata.contract!=null){
_this.fileList.push({
name: vdata.contract.fileName,
url: vdata.contract.filePath
})
}
/* _this.fileList[0] = vdata.contract*/
_this.formobj.taskId = vdata.taskId
_this.formobj.insideCode = vdata.insideCode
_this.formobj.instanceId = vdata.procInstSid
_this.formobj.modelId = vdata.procDefId
_this.formobj.remarks = vdata.remarks

4
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplicationInfo.vue

@ -143,7 +143,7 @@
</el-col>
<el-col :span="21">
<el-form-item>
<span v-show="formobj.contract !== null"
<span v-if="formobj.contract !== null"
class="bluezi" @click="handleDown(formobj.contract)">{{ formobj.contract.fileName }}</span>
</el-form-item>
</el-col>
@ -190,6 +190,7 @@ export default {
configName: '', //
configSid: '', // sid
purchasePrice: '', //
insideCode: '', //
guidedPrice: '', //
manufactorSettlementPrice: '', //
num: '0', //
@ -302,6 +303,7 @@ export default {
if (resp.success) {
const vdata = resp.data
_this.formobj.contract = vdata.contract
_this.formobj.insideCode = vdata.insideCode
_this.formobj.remarks = vdata.remarks
_this.formobj.useOrgName = vdata.useOrgName
_this.formobj.depositBankName = vdata.depositBankName

77
anrui-scm/anrui-scm-ui/src/views/kucunguanli/changjiatuiku/changjiatuikuguanli/changjiatuikuAdd.vue

@ -8,7 +8,6 @@
<!--start 添加修改按钮-->
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button>
<el-button type="primary" size="small" @click="confirm()">确认</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
@ -16,28 +15,38 @@
<!--Start 新增修改部分-->
<div class="listconadd">
<div class="titwu"><span>厂家退库办理</span></div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd">
<el-row class="rowStyle">
<el-col :span="12" class="colOneStyle">
<div class="span-sty spanOneWidth"><span>退库编号:</span></div>
<el-form-item><span class="addinputwInfo addinputwOne">{{ formobj.applyNo }}</span></el-form-item>
<el-col :span="4" class="tleftb colOneStyle">
<span>分公司:</span>
</el-col>
<el-col :span="12" class="colOneStyle">
<div class="span-sty spanOneWidth"><span>操作人:</span></div>
<el-form-item><span class="addinputwInfo addinputwOne">{{ formobj.operatorName }}</span></el-form-item>
<el-col :span="8" class="colOneStyle">
<el-form-item><span>{{ createOrgName }}</span></el-form-item>
</el-col>
</el-row>
<el-row class="rowStyle">
<el-col :span="24" class="colOneStyle">
<div class="span-sty spanOneWidth"><span>来源:</span></div>
<el-form-item><span class="addinputwInfo addinputwOne">{{ formobj.source }}</span></el-form-item>
<el-col :span="4" class="tleftb colOneStyle">
<span>操作人:</span>
</el-col>
<el-col :span="8" class="colOneStyle">
<el-form-item><span>{{ formobj.operatorName }}</span></el-form-item>
</el-col>
</el-row>
<!-- <el-row class="rowStyle">-->
<!-- <el-col :span="24" class="colOneStyle">-->
<!-- <div class="span-sty spanOneWidth"><span>来源:</span></div>-->
<!-- <el-form-item><span class="addinputwInfo addinputwOne">{{ formobj.source }}</span></el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<div class="title">
<div>车辆列表</div>
</div>
<el-table :key="tableKey" :data="formobj.baseManufacturerRetwareVehs" :index="index" border style="width: 100%">
<el-table-column fixed width="80px" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column fixed prop="name" label="操作" width="100px" align="center" header-align="center">
<template slot-scope="scope">
<el-button size="mini" type="primary" @click="confirm(scope.row)">确认
</el-button>
</template>
</el-table-column>
<el-table-column label="车架号" align="center">
<template slot-scope="scope">
<span>{{ scope.row.vinNo }}</span>
@ -45,7 +54,7 @@
</el-table-column>
<el-table-column label="厂家审批结果" align="center">
<template slot-scope="scope">
<el-select v-model="scope.row.manApprovalType" filterable placeholder="请选择" clearable>
<el-select v-model="scope.row.manApprovalType" filterable placeholder="请选择" clearable @change="changeManApprovalType($event, scope.row)">
<el-option v-for="item in manApprovalType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictValue">
</el-option>
</el-select>
@ -53,7 +62,7 @@
</el-table-column>
<el-table-column prop="applyForDeposit" label="退款金额" header-align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.refundMoney" placeholder="" @keyup.native="UpNumber" @keydown.native="UpNumber" class="addinputw" clearable/>
<el-input v-model="scope.row.refundMoney" :disabled="disabledRefundMoney" placeholder="" @keyup.native="UpNumber" @keydown.native="UpNumber" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="厂家退款见证材料" align="center" width="230">
@ -95,6 +104,7 @@
<script>
import req from '@/api/kucunguanli/changjiachuku'
import upload_changjiatuku from '@/components/uploadFile/upload_changjiatuku'
import { fetchBySid } from '@/api/cheliang/dictcommons'
export default {
name: 'changjiatuikuAdd',
@ -107,8 +117,10 @@ export default {
tableKey: 0,
dialogImgVisible: false,
dialogVisible: false,
disabledRefundMoney: false,
dialogUrl: '',
srcList: [],
createOrgName: '',
manApprovalType_list: [
{
dictKey: 0,
@ -144,7 +156,7 @@ export default {
e.target.value = parseFloat(e.target.value)
}
},
showEdit(row, createOrgSid) {
showEdit(row) {
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
@ -153,7 +165,11 @@ export default {
if (resp.success) {
this.formobj = resp.data
this.formobj.operatorName = window.sessionStorage.getItem('name')
this.formobj.createOrgSid = createOrgSid
fetchBySid(this.formobj.createOrgSid).then((res) => {
if (res.success) {
this.createOrgName = res.data.name
}
})
}
}).catch((e) => {
this.formobj = {}
@ -192,6 +208,15 @@ export default {
}
})
},
changeManApprovalType(value, row) {
if (value === '成功') {
row.refundMoney = ''
this.disabledRefundMoney = false
} else {
row.refundMoney = 0
this.disabledRefundMoney = true
}
},
saveOrUpdate() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
@ -212,8 +237,8 @@ export default {
}
})
},
confirm() {
req.confirm(this.formobj).then((res) => {
confirm(row) {
req.confirm(row).then((res) => {
if (res.success) {
this.$message({
showClose: true,
@ -221,12 +246,6 @@ export default {
message: '提交成功'
})
this.handleReturn('true')
} else {
this.$message({
showClose: true,
type: 'error',
message: '提交失败'
})
}
})
},
@ -248,17 +267,11 @@ export default {
</script>
<style scoped>
.spanOneWidth {
width: 260px !important;
border-right: 0px !important;
}
.addinputwOne {
margin-left: 260px !important;
}
.rowStyle {
border-left: 0px;
}
.colOneStyle {
padding: 0 5px !important;
border-right: 0px !important;
border-bottom: 0px !important;
}

43
anrui-scm/anrui-scm-ui/src/views/kucunguanli/changjiatuiku/changjiatuikuguanli/changjiatuikuInfo.vue

@ -14,23 +14,27 @@
<!--Start 新增修改部分-->
<div class="listconadd">
<div class="titwu"><span>厂家退库</span></div>
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formadd">
<el-row class="rowStyle">
<el-col :span="12" class="colOneStyle">
<div class="span-sty spanOneWidth"><span>退库编号:</span></div>
<el-form-item><span class="addinputwInfo addinputwOne">{{ formobj.applyNo }}</span></el-form-item>
<el-col :span="4" class="tleftb colOneStyle">
<span>分公司:</span>
</el-col>
<el-col :span="12" class="colOneStyle">
<div class="span-sty spanOneWidth"><span>操作人:</span></div>
<el-form-item><span class="addinputwInfo addinputwOne">{{ formobj.operatorName }}</span></el-form-item>
<el-col :span="8" class="colOneStyle">
<el-form-item><span>{{ createOrgName }}</span></el-form-item>
</el-col>
</el-row>
<el-row class="rowStyle">
<el-col :span="24" class="colOneStyle">
<div class="span-sty spanOneWidth"><span>来源:</span></div>
<el-form-item><span class="addinputwInfo addinputwOne">{{ formobj.source }}</span></el-form-item>
<el-col :span="4" class="tleftb colOneStyle">
<span>操作人:</span>
</el-col>
<el-col :span="8" class="colOneStyle">
<el-form-item><span>{{ formobj.operatorName }}</span></el-form-item>
</el-col>
</el-row>
<!-- <el-row class="rowStyle">-->
<!-- <el-col :span="24" class="colOneStyle">-->
<!-- <div class="span-sty spanOneWidth"><span>来源:</span></div>-->
<!-- <el-form-item><span class="addinputwInfo addinputwOne">{{ formobj.source }}</span></el-form-item>-->
<!-- </el-col>-->
<!-- </el-row>-->
<div class="title">
<div>车辆列表</div>
</div>
@ -85,6 +89,7 @@
<script>
import req from '@/api/kucunguanli/changjiachuku'
import { fetchBySid } from '@/api/cheliang/dictcommons'
export default {
name: 'changjiatuikuInfo',
@ -96,6 +101,7 @@ export default {
dialogVisible: false,
dialogUrl: '',
srcList: [],
createOrgName: '',
//
formobj: {
applyNo: '',
@ -117,6 +123,11 @@ export default {
req.fetchBySid(row.sid).then((resp) => {
if (resp.success) {
this.formobj = resp.data
fetchBySid(this.formobj.createOrgSid).then((res) => {
if (res.success) {
this.createOrgName = res.data.name
}
})
}
}).catch((e) => {
this.formobj = {}
@ -155,17 +166,11 @@ export default {
</script>
<style scoped>
.spanOneWidth {
width: 260px !important;
border-right: 0px !important;
}
.addinputwOne {
margin-left: 260px !important;
}
.rowStyle {
border-left: 0px;
}
.colOneStyle {
padding: 0 5px !important;
border-right: 0px !important;
border-bottom: 0px !important;
}

10
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue

@ -104,9 +104,10 @@
<el-input v-model="scope.row.remarks" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="上装信息" header-align="center" width="100" align="center">
<el-table-column label="上装信息" header-align="center" width="180" align="center">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="handleUpdate(scope.row.busVehicleApplySz, scope.$index)">编辑</el-button>
<el-button type="primary" v-show="scope.row.busVehicleApplySz !== null && scope.row.busVehicleApplySz !== undefined" size="mini" @click="handleUpdate(scope.row.busVehicleApplySz, scope.$index)">编辑</el-button>
<el-button type="danger" v-show="scope.row.busVehicleApplySz !== null && scope.row.busVehicleApplySz !== undefined" size="mini" @click="handleDel(scope.$index)">删除</el-button>
</template>
</el-table-column>
<el-table-column label="上装销售指导价" align="center" width="200">
@ -377,6 +378,7 @@ export default {
this.formobj.busVehicleApplyDetailList[index].busVehicleApplySz.vehicleFunction = val.vehicleTypeValue
this.formobj.busVehicleApplyDetailList[index].busVehicleApplySz.costPrice = ''
this.formobj.busVehicleApplyDetailList[index].busVehicleApplySz.guidePrice = ''
this.formobj.busVehicleApplyDetailList[index].guidePrice = ''
},
handleUpdate(row, index) {
if (row !== null && row !== undefined) {
@ -386,6 +388,10 @@ export default {
this.$message({ showClose: true, type: 'success', message: '请先选择上装信息' })
}
},
handleDel(index) {
this.formobj.busVehicleApplyDetailList[index].guidePrice = ''
this.$delete(this.formobj.busVehicleApplyDetailList[index], 'busVehicleApplySz')
},
backPeizhiAdd(value, index) {
this.viewState = 1
this.formobj.busVehicleApplyDetailList[index].busVehicleApplySz = value

60
anrui-scm/anrui-scm-ui/src/views/workFlow/caigoutuikuFlow/caigoutuiku.vue

@ -253,25 +253,47 @@ export default {
handleAgree() {
this.linkByParameter.comment = this.dialogList.comment
this.linkByParameter.money = this.formobj.money
req.complete(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
if (this.formobj.money !== '0' && this.formobj.money !== '' && this.formobj.money !== null) {
req.companyToDivisionOperate(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
} else {
req.complete(this.linkByParameter).then((response) => {
if (response.success) {
this.$notify({
title: '提示',
message: '执行成功',
type: 'success',
duration: 2000
})
this.nodeDialogVisible = false
//
window.parent.postMessage({
cmd: 'returnHeight',
params: {
//
code: 1
}
}, '*')
}
})
}
},
/** 驳回任务 */
handleReject() {

4
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanDaiBanInfo.vue

@ -234,7 +234,7 @@ export default {
this.operation = val
this.currentLink = true
this.dialogList.comment = '同意'
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey }).then((resp) => {
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]
@ -248,7 +248,7 @@ export default {
this.operation = val
this.currentLink = true
this.dialogList.comment = ''
req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey }).then((resp) => {
req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => {
if (resp.success) {
var arr = resp.data
this.nextNode = arr[0]

10
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanEdit.vue

@ -103,9 +103,10 @@
<el-input v-model="scope.row.remarks" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="上装信息" header-align="center" width="100" align="center">
<el-table-column label="上装信息" header-align="center" width="180" align="center">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="handleUpdate(scope.row.busVehicleApplySz, scope.$index)">编辑</el-button>
<el-button type="primary" size="mini" v-show="scope.row.busVehicleApplySz !== null && scope.row.busVehicleApplySz !== undefined" @click="handleUpdate(scope.row.busVehicleApplySz, scope.$index)">编辑</el-button>
<el-button type="danger" size="mini" v-show="scope.row.busVehicleApplySz !== null && scope.row.busVehicleApplySz !== undefined" @click="handleDel(scope.$index)">删除</el-button>
</template>
</el-table-column>
<el-table-column label="上装销售指导价" align="center" width="200">
@ -371,6 +372,7 @@ export default {
this.formobj.busVehicleApplyDetailList[index].busVehicleApplySz.vehicleFunction = val.vehicleTypeValue
this.formobj.busVehicleApplyDetailList[index].busVehicleApplySz.costPrice = ''
this.formobj.busVehicleApplyDetailList[index].busVehicleApplySz.guidePrice = ''
this.formobj.busVehicleApplyDetailList[index].guidePrice = ''
},
handleUpdate(row, index) {
if (row !== null && row !== undefined) {
@ -380,6 +382,10 @@ export default {
this.$message({ showClose: true, type: 'success', message: '请先选择上装信息' })
}
},
handleDel(index) {
this.formobj.busVehicleApplyDetailList[index].guidePrice = ''
this.$delete(this.formobj.busVehicleApplyDetailList[index], 'busVehicleApplySz')
},
backPeizhiAdd(value, index) {
this.viewState = 1
this.formobj.busVehicleApplyDetailList[index].busVehicleApplySz = value

Loading…
Cancel
Save