|
|
@ -37,15 +37,15 @@ |
|
|
|
<el-table-column width="50px" label="序号" type="index" :index="indexMethod" align="center" /> |
|
|
|
<el-table-column width="150px" label="操作" align="center" > |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button v-if="scope.row.nodeState==''" type="primary" size="mini" @click="edit(scope.row)">办理</el-button> |
|
|
|
<el-button v-if="scope.row.nodeState==''||(scope.row.nodeState!=''&&scope.row.nodeState=='外采申请')" type="primary" size="mini" @click="edit(scope.row)">办理</el-button> |
|
|
|
<el-button v-else type="info" size="mini">办理</el-button> |
|
|
|
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button></template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="applicationCode" width="130px;" label="申请编号" align="center" /> |
|
|
|
<el-table-column prop="nodeState" width="80px;" label="状态" align="center" > |
|
|
|
<el-table-column prop="nodeState" width="100px;" label="状态" align="center" > |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="scope.row.nodeState==''">待提交</span> |
|
|
|
<span v-else >scope.row.nodeState</span> |
|
|
|
<span v-else >{{scope.row.nodeState}}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="applicationDate" width="110px;" label="申请日期" align="center" /> |
|
|
@ -110,29 +110,29 @@ export default { |
|
|
|
total: 0, |
|
|
|
params: { |
|
|
|
staffSid: window.sessionStorage.getItem('staffSid'), |
|
|
|
userSid:window.sessionStorage.getItem('userSid'), |
|
|
|
sids: [], // 用于导出的时候保存已选择SID |
|
|
|
applicationCode: '', // 申请编号 |
|
|
|
createByName: '', // 申请人姓名 |
|
|
|
applicationDate: '', // 申请日期 |
|
|
|
applicationStartDate: '', |
|
|
|
applicationEndDate: '', |
|
|
|
externalMiningTypeKey: '', // 外采类型key |
|
|
|
externalMiningTypeValue: '', // 外采类型value |
|
|
|
purchasingUnitSid: '', // 采购单位sid |
|
|
|
purchasingUnitName: '', // 采购单位名称 |
|
|
|
modelSid: '', // 车型sid |
|
|
|
modelName: '', // 车型名称 |
|
|
|
configName: '', // 常用配置名称 |
|
|
|
purchasePrice: '', // 采购价格 |
|
|
|
guidedPrice: '', // 销售指导价 |
|
|
|
manufactorSettlementPrice: '', // 厂家合同价 |
|
|
|
num: '', // 台数 |
|
|
|
deposit: '', // 订金 |
|
|
|
expenseName: '', // 费用名称 |
|
|
|
totalExpenseAmount: '', // 费用金额合计 |
|
|
|
orgSid: '' // 部门sid |
|
|
|
} |
|
|
|
userSid: window.sessionStorage.getItem('userSid'), |
|
|
|
sids: [], // 用于导出的时候保存已选择SID |
|
|
|
applicationCode: '', // 申请编号 |
|
|
|
createByName: '', // 申请人姓名 |
|
|
|
applicationDate: '', // 申请日期 |
|
|
|
applicationStartDate:'', |
|
|
|
applicationEndDate:'', |
|
|
|
externalMiningTypeKey: '', // 外采类型key |
|
|
|
externalMiningTypeValue: '', // 外采类型value |
|
|
|
purchasingUnitSid: '', // 采购单位sid |
|
|
|
purchasingUnitName: '', // 采购单位名称 |
|
|
|
modelSid: '', // 车型sid |
|
|
|
modelName: '', // 车型名称 |
|
|
|
configName: '', // 常用配置名称 |
|
|
|
purchasePrice: '', // 采购价格 |
|
|
|
guidedPrice: '', // 销售指导价 |
|
|
|
manufactorSettlementPrice: '', // 厂家合同价 |
|
|
|
num: '', // 台数 |
|
|
|
deposit: '', // 订金 |
|
|
|
expenseName: '', // 费用名称 |
|
|
|
totalExpenseAmount: '', // 费用金额合计 |
|
|
|
orgSid: '' // 部门sid |
|
|
|
} |
|
|
|
}, |
|
|
|
multipleSelection: [] |
|
|
|
} |
|
|
@ -189,24 +189,33 @@ export default { |
|
|
|
this.viewState = 3 |
|
|
|
this.$refs['divadd'].showEdit(row) |
|
|
|
}, |
|
|
|
doSubmit(row) { |
|
|
|
// 提交的代码 |
|
|
|
this.btndisabled = true |
|
|
|
req |
|
|
|
.doSubmit(this.queryParams.params) |
|
|
|
.then(resp => { |
|
|
|
console.log(resp) |
|
|
|
this.btndisabled = false |
|
|
|
if (resp.success) { |
|
|
|
// 加提交后的逻辑 |
|
|
|
} else { |
|
|
|
// 根据resp.code进行异常情况处理 |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.btndisabled = false |
|
|
|
}) |
|
|
|
}, |
|
|
|
doSubmit() { |
|
|
|
const row = this.multipleSelection[0] |
|
|
|
req |
|
|
|
.doSubmitBySid(row.sid,this.queryParams.params.userSid) |
|
|
|
.then( resp => { |
|
|
|
if(resp.success){ |
|
|
|
alert(123); |
|
|
|
} |
|
|
|
}); |
|
|
|
// 提交的代码 |
|
|
|
/* this.submitdisabled = true |
|
|
|
this.formobj.userSid = window.sessionStorage.getItem('userSid'); |
|
|
|
this.formobj.orgSid = this.$store.getters.orgSid; |
|
|
|
req |
|
|
|
.doSubmit(this.formobj) |
|
|
|
.then(resp => { |
|
|
|
this.submitdisabled = false |
|
|
|
if (resp.success) { |
|
|
|
// 加提交后的逻辑 |
|
|
|
} else { |
|
|
|
// 根据resp.code进行异常情况处理 |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.submitdisabled = false |
|
|
|
})*/ |
|
|
|
}, |
|
|
|
doDel(row) { |
|
|
|
if (this.multipleSelection.length === 0) { |
|
|
|
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' }) |
|
|
@ -290,10 +299,9 @@ export default { |
|
|
|
this.loadList() |
|
|
|
}, |
|
|
|
resetQuery() { |
|
|
|
this.queryParams.params = { |
|
|
|
staffSid: window.sessionStorage.getItem('staffSid'), |
|
|
|
userSid:window.sessionStorage.getItem('userSid'), |
|
|
|
} |
|
|
|
this.queryParams.params = {} |
|
|
|
this.queryParams.params.sid = '' // sid |
|
|
|
this.queryParams.params.name = '' // 登录名 |
|
|
|
this.dosearch() |
|
|
|
}, |
|
|
|
loadList() { |
|
|
|