|
@@ -12,7 +12,7 @@
|
|
|
label-width="120px"
|
|
|
label-position="right"
|
|
|
>
|
|
|
- <el-form-item label="仓存费税率" prop="nickName">
|
|
|
+ <el-form-item label="仓存费税率" prop="">
|
|
|
<el-input
|
|
|
v-model="mainForm.storageFeeTax"
|
|
|
autocomplete="off"
|
|
@@ -20,7 +20,7 @@
|
|
|
><i class="el-input__icon" slot="suffix">% </i></el-input
|
|
|
>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="工程价差税率" prop="nickName">
|
|
|
+ <el-form-item label="工程价差税率" prop="">
|
|
|
<el-input
|
|
|
v-model="mainForm.enginPriceDifTax"
|
|
|
autocomplete="off"
|
|
@@ -28,7 +28,7 @@
|
|
|
><i class="el-input__icon" slot="suffix">% </i></el-input
|
|
|
>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="运输费税率" prop="nickName">
|
|
|
+ <el-form-item label="运输费税率" prop="">
|
|
|
<el-input
|
|
|
v-model="mainForm.transportTax"
|
|
|
autocomplete="off"
|
|
@@ -36,7 +36,7 @@
|
|
|
><i class="el-input__icon" slot="suffix">% </i></el-input
|
|
|
>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="安装费税率" prop="nickName">
|
|
|
+ <el-form-item label="安装费税率" prop="">
|
|
|
<el-input
|
|
|
v-model="mainForm.installTax"
|
|
|
autocomplete="off"
|
|
@@ -44,7 +44,7 @@
|
|
|
><i class="el-input__icon" slot="suffix">% </i></el-input
|
|
|
>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="库存商品税率" prop="nickName">
|
|
|
+ <el-form-item label="库存商品税率" prop="">
|
|
|
<el-input
|
|
|
v-model="mainForm.stockTax"
|
|
|
autocomplete="off"
|
|
@@ -52,63 +52,15 @@
|
|
|
><i class="el-input__icon" slot="suffix">% </i></el-input
|
|
|
>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="押金通用比例" prop="">
|
|
|
+ <el-input
|
|
|
+ v-model="mainForm.depositTax"
|
|
|
+ autocomplete="off"
|
|
|
+ placeholder="请输入"
|
|
|
+ ><i class="el-input__icon" slot="suffix">% </i></el-input
|
|
|
+ >
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
- <!-- <el-form label-position="left" label-width="100px">
|
|
|
- <el-row>
|
|
|
- <el-col :xs="24" :sm="12" :lg="6">
|
|
|
- <el-form-item label="仓存费税率" prop="">
|
|
|
- <el-input placeholder="请输入">
|
|
|
- <i class="el-input__icon" slot="suffix">% </i>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :xs="24" :sm="24" :lg="6">
|
|
|
- <el-form-item label="工程价差税率" prop="">
|
|
|
- <el-input placeholder="请输入">
|
|
|
- <i class="el-input__icon" slot="suffix">% </i>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :xs="24" :sm="24" :lg="6">
|
|
|
- <el-form-item label="运输费税率" prop="">
|
|
|
- <el-input placeholder="请输入">
|
|
|
- <i class="el-input__icon" slot="suffix">% </i>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :xs="24" :sm="24" :lg="6">
|
|
|
- <el-form-item label="安装费税率" prop="">
|
|
|
- <el-input placeholder="请输入">
|
|
|
- <i class="el-input__icon" slot="suffix">% </i>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row>
|
|
|
- <el-col :xs="24" :sm="24" :lg="6">
|
|
|
- <el-form-item label="库存商品税率" prop="">
|
|
|
- <el-input placeholder="请输入">
|
|
|
- <i class="el-input__icon" slot="suffix">% </i>
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
-
|
|
|
- <el-row>
|
|
|
- <el-col :xs="24" :sm="24" :lg="24">
|
|
|
- <el-form-item label="" class="">
|
|
|
- <el-button size="small">修改</el-button>
|
|
|
- <el-button size="small" type="primary">确定</el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form> -->
|
|
|
</el-card>
|
|
|
</div>
|
|
|
|
|
@@ -127,11 +79,12 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
mainForm: {
|
|
|
- storageFeeTax: "",
|
|
|
- enginPriceDifTax: "",
|
|
|
- transportTax: "",
|
|
|
- installTax: "",
|
|
|
- stockTax: "",
|
|
|
+ storageFeeTax: null,
|
|
|
+ enginPriceDifTax: null,
|
|
|
+ transportTax: null,
|
|
|
+ installTax: null,
|
|
|
+ stockTax: null,
|
|
|
+ depositTax: null,
|
|
|
},
|
|
|
};
|
|
|
},
|
|
@@ -141,18 +94,30 @@ export default {
|
|
|
methods: {
|
|
|
//修改
|
|
|
async editFn() {
|
|
|
- await getCommonTaxConfig(this.mainForm);
|
|
|
+ await getCommonTaxConfig({
|
|
|
+ storageFeeTax: Number((this.mainForm.storageFeeTax / 100).toFixed(2)),
|
|
|
+ enginPriceDifTax: Number(
|
|
|
+ (this.mainForm.enginPriceDifTax / 100).toFixed(2)
|
|
|
+ ),
|
|
|
+ transportTax: Number((this.mainForm.transportTax / 100).toFixed(2)),
|
|
|
+ installTax: Number((this.mainForm.installTax / 100).toFixed(2)),
|
|
|
+ stockTax: Number((this.mainForm.stockTax / 100).toFixed(2)),
|
|
|
+ depositTax: Number((this.mainForm.depositTax / 100).toFixed(2)),
|
|
|
+ });
|
|
|
+ this.$message.success("修改成功");
|
|
|
+ this.getData();
|
|
|
},
|
|
|
//获取税率数据
|
|
|
async getData() {
|
|
|
const res = await getCommonTaxGet();
|
|
|
console.log(res);
|
|
|
this.mainForm = {
|
|
|
- storageFeeTax: res.data.storageFeeTax,
|
|
|
- enginPriceDifTax: res.data.enginPriceDifTax,
|
|
|
- transportTax: res.data.transportTax,
|
|
|
- installTax: res.data.installTax,
|
|
|
- stockTax: res.data.stockTax,
|
|
|
+ storageFeeTax: res.data.storageFeeTax * 100,
|
|
|
+ enginPriceDifTax: res.data.enginPriceDifTax * 100,
|
|
|
+ transportTax: res.data.transportTax * 100,
|
|
|
+ installTax: res.data.installTax * 100,
|
|
|
+ stockTax: res.data.stockTax * 100,
|
|
|
+ depositTax: res.data.depositTax * 100,
|
|
|
};
|
|
|
},
|
|
|
},
|
|
@@ -199,4 +164,4 @@ export default {
|
|
|
cursor: pointer;
|
|
|
user-select: none;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|