Browse Source

修改采购退库办理,增加厂家结算价、厂家扣款说明字段

master
yunuo970428 3 years ago
parent
commit
fc5bab6ea5
  1. 33
      anrui-scm/anrui-scm-ui/src/views/kucunguanli/changjiatuiku/changjiatuikuguanli/changjiatuikuAdd.vue
  2. 12
      anrui-scm/anrui-scm-ui/src/views/kucunguanli/changjiatuiku/changjiatuikuguanli/changjiatuikuInfo.vue
  3. 2
      anrui-scm/anrui-scm-ui/src/views/kucunguanli/changjiatuiku/changjiatuikuguanli/changjiatuikuguanli.vue

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

@ -41,10 +41,12 @@
</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">
<el-table-column fixed prop="name" label="操作" width="180px" align="center" header-align="center">
<template slot-scope="scope">
<el-button size="mini" type="primary" @click="confirm(scope.row)">确认
</el-button>
<el-button size="mini" type="primary">下载出门证
</el-button>
</template>
</el-table-column>
<el-table-column label="车架号" align="center">
@ -52,6 +54,11 @@
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="厂家结算价" align="center">
<template slot-scope="scope">
<span>{{ scope.row.costPrice }}</span>
</template>
</el-table-column>
<el-table-column label="厂家审批结果" align="center">
<template slot-scope="scope">
<el-select v-model="scope.row.manApprovalType" filterable placeholder="请选择" clearable @change="changeManApprovalType($event, scope.row)">
@ -60,9 +67,14 @@
</el-select>
</template>
</el-table-column>
<el-table-column prop="applyForDeposit" label="退款金额" header-align="center">
<el-table-column label="退款金额" header-align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.refundMoney" :disabled="disabledRefundMoney" placeholder="" @keyup.native="UpNumber" @keydown.native="UpNumber" class="addinputw" clearable/>
<el-input v-model="scope.row.refundMoney" :disabled="disabledRefundMoney" placeholder="" @keyup.native="UpNumber($event, scope.row)" @keydown.native="UpNumber($event, scope.row)" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="厂家扣款说明" header-align="center">
<template slot-scope="scope">
<el-input v-model="scope.row.manDeduRemarks" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="厂家退款见证材料" align="center" width="230">
@ -145,16 +157,15 @@ export default {
}
},
methods: {
UpNumber(e) {
e.target.value = e.target.value.replace(/[^\d.-]/g, '') // ."-"
e.target.value = e.target.value.replace(/^00/, '0.') // 0
e.target.value = e.target.value.replace(/\.{2,}/g, '.') // .
e.target.value = e.target.value.replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/\-{2,}/g, '-') // -
e.target.value = e.target.value.replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3') //
UpNumber(e, row) {
e.target.value = e.target.value.replace(/[^\d]/g, '') // ."-"
e.target.value = e.target.value.replace(/^00/, '0') // 0
if (e.target.value.indexOf('.') < 0 && e.target.value !== '' && e.target.value !== '-') {
// 0102
console.log(e.target.value)
e.target.value = parseFloat(e.target.value)
}
row.disabledRefundMoney = e.target.value
},
showEdit(row) {
this.$nextTick(() => {
@ -238,6 +249,10 @@ export default {
})
},
confirm(row) {
if (row.disabledRefundMoney !== row.costPrice && row.manDeduRemarks === '') {
this.$message({ showClose: true, type: 'error', message: '因厂家结算价与退款金额不一致,请填写厂家扣款说明' })
return
}
req.confirm(row).then((res) => {
if (res.success) {
this.$message({

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

@ -45,16 +45,26 @@
<span>{{ scope.row.vinNo }}</span>
</template>
</el-table-column>
<el-table-column label="厂家结算价" align="center">
<template slot-scope="scope">
<span>{{ scope.row.costPrice }}</span>
</template>
</el-table-column>
<el-table-column label="厂家审批结果" align="center">
<template slot-scope="scope">
<span>{{ scope.row.manApprovalType }}</span>
</template>
</el-table-column>
<el-table-column prop="applyForDeposit" label="退款金额" align="center">
<el-table-column label="退款金额" align="center">
<template slot-scope="scope">
<span>{{ scope.row.refundMoney }}</span>
</template>
</el-table-column>
<el-table-column label="厂家扣款说明" align="center">
<template slot-scope="scope">
<span>{{ scope.row.manDeduRemarks }}</span>
</template>
</el-table-column>
<el-table-column label="厂家退款见证材料" align="center" width="230">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="handleLook(scope.row)">查看</el-button>

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

@ -36,7 +36,7 @@
<el-table-column width="50px" type="selection" align="center"/>
<el-table-column label="操作" width="150px" align="center">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="toEdit(scope.row)">办理</el-button>
<el-button type="primary" :disabled="scope.row.state == '已办理'" size="mini" @click="toEdit(scope.row)">办理</el-button>
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button>
</template>
</el-table-column>

Loading…
Cancel
Save