|
@@ -262,7 +262,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="采购毛利率" label-width="100px" prop="cgd_tax">
|
|
|
- <el-input-number
|
|
|
+ <!-- <el-input-number
|
|
|
v-model="ruleForm.cgd_tax"
|
|
|
style="width: 100%"
|
|
|
:disabled="id === '007'"
|
|
@@ -273,6 +273,19 @@
|
|
|
:max="100"
|
|
|
:step="0.01"
|
|
|
@change="number_change($event, 2)"
|
|
|
+ /> -->
|
|
|
+ <digital-input
|
|
|
+ :values="ruleForm.cgd_tax"
|
|
|
+ :placeholder="'采购毛利率'"
|
|
|
+ :min="0"
|
|
|
+ :max="100"
|
|
|
+ :disabled="id === '007'"
|
|
|
+ :position="'right'"
|
|
|
+ :precision="2"
|
|
|
+ :size="'mini'"
|
|
|
+ :controls="false"
|
|
|
+ :append="'%'"
|
|
|
+ @reschange="number_change($event, 2)"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -590,7 +603,7 @@ export default {
|
|
|
this.$refs.ruleForm.validateField('addr_code')
|
|
|
},
|
|
|
number_change(e, type) {
|
|
|
- console.log(1111)
|
|
|
+ this.ruleForm.cgd_tax = e
|
|
|
const { cgdPrice, goodPrice, cgd_tax } = this.ruleForm
|
|
|
let tax = 0
|
|
|
let cgd_price = 0
|