|
@@ -43,6 +43,26 @@
|
|
|
<el-button @click="openLogs = false" size="large">关 闭</el-button>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
+
|
|
|
+ <el-dialog title="修改税率" v-if="openChangeTaxRate" v-model="openChangeTaxRate" width="500">
|
|
|
+ <el-form :model="details.data" label-width="120px" ref="taxRate">
|
|
|
+ <el-form-item label="税率" prop="taxRate" :rules="[{ required: true, message: '请输入税率', trigger: 'blur' }]">
|
|
|
+ <el-input-number
|
|
|
+ onmousewheel="return false;"
|
|
|
+ v-model="details.data.taxRate"
|
|
|
+ placeholder="请输入税率"
|
|
|
+ style="width: 100%"
|
|
|
+ :controls="false"
|
|
|
+ :min="0"
|
|
|
+ :precision="2"
|
|
|
+ :max="100" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <template #footer>
|
|
|
+ <el-button @click="openChangeTaxRate = false" size="large">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="submitChangeTaxRate()" size="large" v-preReClick>确 定</el-button>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -286,7 +306,7 @@ const config = computed(() => {
|
|
|
},
|
|
|
el: "button",
|
|
|
click() {
|
|
|
- ElMessage("暂无税率功能");
|
|
|
+ clickChangeTaxRate(row);
|
|
|
},
|
|
|
},
|
|
|
row.status == 0 || row.status == 10 || row.status == 20
|
|
@@ -379,9 +399,10 @@ const logsList = ref({
|
|
|
},
|
|
|
});
|
|
|
const type = ref([
|
|
|
- { dictKey: "10", dictValue: "新增" },
|
|
|
- { dictKey: "20", dictValue: "修改" },
|
|
|
- { dictKey: "30", dictValue: "删除" },
|
|
|
+ { dictKey: "10", dictValue: "新增订单" },
|
|
|
+ { dictKey: "20", dictValue: "图稿上传" },
|
|
|
+ { dictKey: "21", dictValue: "修改税率" },
|
|
|
+ { dictKey: "30", dictValue: "删除订单" },
|
|
|
]);
|
|
|
const configLogs = computed(() => {
|
|
|
return [
|
|
@@ -437,9 +458,34 @@ const getLogsList = async (req) => {
|
|
|
}, 200);
|
|
|
});
|
|
|
};
|
|
|
+const details = reactive({
|
|
|
+ data: {},
|
|
|
+});
|
|
|
+const openChangeTaxRate = ref(false);
|
|
|
+const clickChangeTaxRate = (item) => {
|
|
|
+ proxy.post("/orderInfo/detail", { id: item.id }).then((res) => {
|
|
|
+ details.data = res;
|
|
|
+ openChangeTaxRate.value = true;
|
|
|
+ });
|
|
|
+};
|
|
|
+const submitChangeTaxRate = () => {
|
|
|
+ proxy.$refs.taxRate.validate((valid) => {
|
|
|
+ if (valid) {
|
|
|
+ details.data.updateType = "21";
|
|
|
+ proxy.post("/orderInfo/edit", details.data).then(() => {
|
|
|
+ ElMessage({ message: "修改完成", type: "success" });
|
|
|
+ openChangeTaxRate.value = false;
|
|
|
+ getList();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+::v-deep(.el-input-number .el-input__inner) {
|
|
|
+ text-align: left;
|
|
|
+}
|
|
|
:deep(.el-dialog) {
|
|
|
margin-top: 10px !important;
|
|
|
margin-bottom: 10px !important;
|