Browse Source

厂家采购选择车型列表增加内部编码字段

zhanglei
yunuo970428 3 years ago
parent
commit
8fb44d1033
  1. 36
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichanAdd.vue
  2. 8
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/chexingbyconfiguration.vue
  3. 34
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/cheliangpaichanEdit.vue
  4. 8
      anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/chexingbyconfiguration.vue

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

@ -82,24 +82,24 @@
<span>{{ scope.row.configName }}</span>
</template>
</el-table-column>
<el-table-column label="内部编码" header-align="center" width="200">
<el-table-column label="内部编码" align="center" width="200">
<template slot-scope="scope">
<el-input v-model="scope.row.insideCode" :readonly="isRead" placeholder="" class="addinputw" clearable/>
<span>{{ scope.row.insideCode }}</span>
</template>
</el-table-column>
<el-table-column label="排产数量" header-align="center" width="130">
<template slot-scope="scope">
<el-input v-model="scope.row.quantity" @keyup.native="UpNumber" @keydown.native="UpNumber" placeholder="" class="addinputw" clearable/>
<el-input v-model="scope.row.quantity" @keyup.native="scope.row.quantity = oninput(scope.row.quantity,2)" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column prop="applyForDeposit" label="申请订金" header-align="center" width="150">
<template slot-scope="scope" prop="applyForDeposit">
<el-input v-model="scope.row.applyForDeposit" @keyup.native="UpNumber" @keydown.native="UpNumber" placeholder="" class="addinputw" clearable/>
<el-input v-model="scope.row.applyForDeposit" @keyup.native="scope.row.applyForDeposit = oninput(scope.row.applyForDeposit,2)" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="厂家合同价" header-align="center" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.contractPrice" @keyup.native="UpNumber" @keydown.native="UpNumber" placeholder="" class="addinputw" clearable/>
<el-input v-model="scope.row.contractPrice" @keyup.native="scope.row.contractPrice = oninput(scope.row.contractPrice,2)" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="销售指导价" header-align="center" width="150">
@ -223,16 +223,20 @@ export default {
}
this.formobj.applicationDate = year + '-' + month + '-' + day
},
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') //
// if (e.target.value.indexOf('.') < 0 && e.target.value !== '' && e.target.value !== '-') {
// // 0102
// e.target.value = parseFloat(e.target.value)
// }
oninput(val, limit = 0) {
val = val.replace(/[^\d]/g, '') //
val = val.replace(/^00/, '0'); // 0
/^0\d+/.test(val) ? val = val.slice(1) : '' // 0
const str = '^(\\d+)\\.(\\d{' + limit + '}).*$'
const reg = new RegExp(str)
if (limit === 0) {
//
val = val.replace(reg, '$1')
} else {
//
val = val.replace(reg, '$1.$2')
}
return val
},
//
addCommodity() {
@ -274,7 +278,7 @@ export default {
// --
backData(value) {
this.viewState = 1
console.log('确认返回的车辆数据',value)
console.log('确认返回的车辆数据', value)
if (value.length > 0) {
value.forEach((e) => {
this.formobj.busVehicleApplyDetailList.push({

8
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/chexingbyconfiguration.vue

@ -40,6 +40,11 @@
<span>{{ scope.row.configName }}</span>
</template>
</el-table-column>
<el-table-column label="内部编码" align="center">
<template slot-scope="scope">
<span>{{ scope.row.insideCode }}</span>
</template>
</el-table-column>
<el-table-column label="销售指导价(元)" width="200" align="center">
<template slot-scope="scope">
<span>{{ scope.row.guidedPrice }}</span>
@ -155,7 +160,8 @@ export default {
modelSid: element.modelSid,
configName: element.configName,
configSid: element.configSid,
guidedPrice: element.guidedPrice
guidedPrice: element.guidedPrice,
insideCode: element.insideCode
})
})
this.sids = aa

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

@ -81,24 +81,24 @@
<span>{{ scope.row.configName }}</span>
</template>
</el-table-column>
<el-table-column label="内部编码" header-align="center" width="200">
<el-table-column label="内部编码" align="center" width="200">
<template slot-scope="scope">
<el-input v-model="scope.row.insideCode" :readonly="isRead" placeholder="" class="addinputw" clearable/>
<span>{{ scope.row.insideCode }}</span>
</template>
</el-table-column>
<el-table-column label="排产数量" header-align="center" width="130">
<template slot-scope="scope">
<el-input v-model="scope.row.quantity" @keyup.native="UpNumber" @keydown.native="UpNumber" placeholder="" class="addinputw" clearable/>
<el-input v-model="scope.row.quantity" @keyup.native="scope.row.quantity = oninput(scope.row.quantity,2)" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column prop="applyForDeposit" label="申请订金" header-align="center" width="150">
<template slot-scope="scope" prop="applyForDeposit">
<el-input v-model="scope.row.applyForDeposit" @keyup.native="UpNumber" @keydown.native="UpNumber" placeholder="" class="addinputw" clearable/>
<el-input v-model="scope.row.applyForDeposit" @keyup.native="scope.row.applyForDeposit = oninput(scope.row.applyForDeposit,2)" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="厂家合同价" header-align="center" width="150">
<template slot-scope="scope">
<el-input v-model="scope.row.contractPrice" @keyup.native="UpNumber" @keydown.native="UpNumber" placeholder="" class="addinputw" clearable/>
<el-input v-model="scope.row.contractPrice" @keyup.native="scope.row.contractPrice = oninput(scope.row.contractPrice,2)" placeholder="" class="addinputw" clearable/>
</template>
</el-table-column>
<el-table-column label="销售指导价" header-align="center" width="150">
@ -215,16 +215,20 @@ export default {
}
})
},
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') //
// if (e.target.value.indexOf('.') < 0 && e.target.value !== '' && e.target.value !== '-') {
// // 0102
// e.target.value = parseFloat(e.target.value)
// }
oninput(val, limit = 0) {
val = val.replace(/[^\d]/g, '') //
val = val.replace(/^00/, '0'); // 0
/^0\d+/.test(val) ? val = val.slice(1) : '' // 0
const str = '^(\\d+)\\.(\\d{' + limit + '}).*$'
const reg = new RegExp(str)
if (limit === 0) {
//
val = val.replace(reg, '$1')
} else {
//
val = val.replace(reg, '$1.$2')
}
return val
},
//
addCommodity() {

8
anrui-scm/anrui-scm-ui/src/views/workFlow/paichanguanliFlow/paichanguanli/chexingbyconfiguration.vue

@ -40,6 +40,11 @@
<span>{{ scope.row.configName }}</span>
</template>
</el-table-column>
<el-table-column label="内部编码" align="center">
<template slot-scope="scope">
<span>{{ scope.row.insideCode }}</span>
</template>
</el-table-column>
<el-table-column label="销售指导价(元)" width="200" align="center">
<template slot-scope="scope">
<span>{{ scope.row.guidedPrice }}</span>
@ -155,7 +160,8 @@ export default {
modelSid: element.modelSid,
configName: element.configName,
configSid: element.configSid,
guidedPrice: element.guidedPrice
guidedPrice: element.guidedPrice,
insideCode: element.insideCode
})
})
this.sids = aa

Loading…
Cancel
Save