Commit f8ea35e0 by wangzhihui

财务

1 parent 36ff6239
...@@ -74,6 +74,6 @@ export function queryServiceRefByShop() { ...@@ -74,6 +74,6 @@ export function queryServiceRefByShop() {
//文件上传 //文件上传
export function uploadFile(data) { export function uploadFile(data) {
data.method = `dj.api.smartcarlife.orderReconciliationRecord.import ` data.method = `dj.api.smartcarlife.orderReconciliationRecord.import`
return request(data, "post") return request(data, "post",["file"])
} }
\ No newline at end of file \ No newline at end of file
...@@ -911,7 +911,8 @@ export default { ...@@ -911,7 +911,8 @@ export default {
computed: { computed: {
...mapState({ ...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList dowloadList: (state) => state.d2admin.user.dowloadList,
updateList: (state) => state.d2admin.user.updateList,
}), }),
specialAccout() { specialAccout() {
return this.userInfo?.loginAccount?.loginAccout == "18123663366" return this.userInfo?.loginAccount?.loginAccout == "18123663366"
...@@ -1050,7 +1051,6 @@ export default { ...@@ -1050,7 +1051,6 @@ export default {
importFile(e) { importFile(e) {
console.log(e) console.log(e)
const size = e.target.files[0].size / 1024 / 1024 const size = e.target.files[0].size / 1024 / 1024
console.log(size)
if (size < 9) { if (size < 9) {
this.$set(this.fileForm, "fileName", e.target.files[0].name) this.$set(this.fileForm, "fileName", e.target.files[0].name)
// // 转码base64 // // 转码base64
...@@ -1075,9 +1075,7 @@ export default { ...@@ -1075,9 +1075,7 @@ export default {
this.$refs.fileRuleForm.validate((valid) => { this.$refs.fileRuleForm.validate((valid) => {
if (valid) { if (valid) {
var params = { var params = {
file: { file: this.fileInfo
fileType: this.fileInfo
}
} }
api.uploadFile(params).then((res) => { api.uploadFile(params).then((res) => {
if (res) { if (res) {
......
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
name: "reportDate", name: "reportDate",
type: "datePicker", type: "datePicker",
isClear: false, isClear: false,
pickerOptions: "rangePickerOptions" pickerOptions: "rangePickerOptions_30day2"
} }
], ],
baseData: { baseData: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!