库存明细手动下载

dev_ksck2.0
anthonywj 2 years ago
parent 1bdbc9beb5
commit 64e2b9214b

@ -53,6 +53,7 @@
"jsencrypt": "3.0.0-rc.1", "jsencrypt": "3.0.0-rc.1",
"loadsh": "^0.0.4", "loadsh": "^0.0.4",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"moment": "^2.30.1",
"nprogress": "0.2.0", "nprogress": "0.2.0",
"pinyin": "^2.10.2", "pinyin": "^2.10.2",
"qrcodejs2": "^0.0.2", "qrcodejs2": "^0.0.2",

@ -51,6 +51,7 @@ export function delThrInvOrder(query) {
data: query data: query
}) })
} }
/** /**
* 生成单据 * 生成单据
* @param query * @param query
@ -63,6 +64,7 @@ export function generateOrder(query) {
data: query data: query
}) })
} }
/** /**
* 生成单据 * 生成单据
* @param query * @param query
@ -75,6 +77,7 @@ export function generateGhOrder(query) {
data: query data: query
}) })
} }
/** /**
* 刷新单据 * 刷新单据
* @param query * @param query
@ -87,6 +90,7 @@ export function refreshBill(query) {
data: query data: query
}) })
} }
/** /**
* 刷新单据高耗 * 刷新单据高耗
* @param query * @param query
@ -101,4 +105,44 @@ export function refreshGhBill(query) {
} }
/**
* 下载收费出入库明细
* @param query
* @returns {AxiosPromise}
*/
export function dlThrInvFeeOrder(query) {
return axios({
url: '/udiwms/thrsys/downloadInvOrder',
method: 'post',
data: query
})
}
/**
* 下载高耗出入库明细
* @param query
* @returns {AxiosPromise}
*/
export function dlInvGhOrder(query) {
return axios({
url: '/udiwms/thrsys/downloadInvGhOrder',
method: 'post',
data: query
})
}
/**
* 下载普耗出入库明细
* @param query
* @returns {AxiosPromise}
*/
export function downloadInvPhOrder(query) {
return axios({
url: '/udiwms/thrsys/downloadInvPhOrder',
method: 'post',
data: query
})
}

@ -66,6 +66,7 @@
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button> <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="getList"></el-button> <el-button type="primary" icon="el-icon-search" @click="getList"></el-button>
<el-button type="primary" icon="el-icon-search" @click="dlThrInvOrder"></el-button>
</el-button-group> </el-button-group>
</div> </div>
@ -177,12 +178,20 @@
</div> </div>
</template> </template>
<script> <script>
import {delThrInvOrder, getThrInvOrders, getThrInvOrderDetails,delThrInvOrderDetail,refreshGhBill} from "@/api/thrsys/thrInvOrder"; import {
delThrInvOrder,
getThrInvOrders,
getThrInvOrderDetails,
delThrInvOrderDetail,
refreshGhBill,
dlThrInvFeeOrder, dlInvGhOrder
} from "@/api/thrsys/thrInvOrder";
import {getBussinessType} from "@/api/basic/bussinessType"; import {getBussinessType} from "@/api/basic/bussinessType";
import {getOriginBusType} from "@/api/basic/busOriginType"; import {getOriginBusType} from "@/api/basic/busOriginType";
import {getBasicThirdSys, filterDetailByKey} from "@/api/basic/basicThirdSys"; import {getBasicThirdSys, filterDetailByKey} from "@/api/basic/basicThirdSys";
import {selectIp} from "@/api/param/systemParamConfig"; import {selectIp} from "@/api/param/systemParamConfig";
import thrInvOrderGenerate from "@/views/thirdSys/invOrder/thrInvOrderGenerate"; import thrInvOrderGenerate from "@/views/thirdSys/invOrder/thrInvOrderGenerate";
import moment from "moment";
export default { export default {
data() { data() {
@ -504,6 +513,34 @@ export default {
this.getList(); this.getList();
} }
}, },
/**
* 手动下载第三方出入库明细
*/
dlThrInvOrder() {
this.$confirm("是否确定下载日期范围为:" + this.filterQuery.startDate + "-" + this.filterQuery.endDate + "的出入库明细?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
dlInvGhOrder(this.filterQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("下载成功");
this.getList();
} else {
this.$message.error(response.message);
}
})
.catch(() => {
this.loading = false;
});
})
.catch(() => {
});
},
}, },
components: {thrInvOrderGenerate}, components: {thrInvOrderGenerate},
mounted() { mounted() {
@ -513,7 +550,7 @@ export default {
let end = new Date(); let end = new Date();
let start = new Date(); let start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
this.actDateRange = [start, end]; this.actDateRange = [moment(start).format('YYYY-MM-DD'), moment(end).format('YYYY-MM-DD')];
}, },
}; };
</script> </script>

@ -66,6 +66,7 @@
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button> <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="getList"></el-button> <el-button type="primary" icon="el-icon-search" @click="getList"></el-button>
<el-button type="primary" icon="el-icon-search" @click="dlThrInvOrder"></el-button>
</el-button-group> </el-button-group>
</div> </div>
@ -87,7 +88,8 @@
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag <el-tag
:type="scope.row.status == '1' ? 'primary' : 'success'" :type="scope.row.status == '1' ? 'primary' : 'success'"
disable-transitions>{{scope.row.status == 0 ? '待生成':'已生成'}}</el-tag> disable-transitions>{{ scope.row.status == 0 ? '待生成' : '已生成' }}
</el-tag>
</template> </template>
</el-table-column> </el-table-column>
@ -104,13 +106,16 @@
<el-button type="text" @click.native.stop="deleteDialog(scope.row)" <el-button type="text" @click.native.stop="deleteDialog(scope.row)"
>删除 >删除
</el-button> </el-button>
<el-button v-show="scope.row.status == 0 && (scope.row.exMsg === null || scope.row.exMsg === '')" type="text" @click.native.stop="generateBill(scope.row)" STYLE="color:rgb(0,0,255)" <el-button v-show="scope.row.status == 0 && (scope.row.exMsg === null || scope.row.exMsg === '')"
type="text" @click.native.stop="generateBill(scope.row)" STYLE="color:rgb(0,0,255)"
>生成单据 >生成单据
</el-button> </el-button>
<el-button v-show="scope.row.status == 1 && (scope.row.exMsg === null || scope.row.exMsg === '')" type="text" @click.native.stop="generateBill(scope.row)" STYLE="color:rgb(0,220,255)" <el-button v-show="scope.row.status == 1 && (scope.row.exMsg === null || scope.row.exMsg === '')"
type="text" @click.native.stop="generateBill(scope.row)" STYLE="color:rgb(0,220,255)"
>重新生成 >重新生成
</el-button> </el-button>
<el-button v-show="scope.row.exMsg !== null && scope.row.exMsg !== ''" type="text" @click.native.stop="refreshBill(scope.row)" <el-button v-show="scope.row.exMsg !== null && scope.row.exMsg !== ''" type="text"
@click.native.stop="refreshBill(scope.row)"
>更新 >更新
</el-button> </el-button>
</template> </template>
@ -183,12 +188,19 @@
</div> </div>
</template> </template>
<script> <script>
import {delThrInvOrder, getThrInvOrders, getThrInvOrderDetails,delThrInvOrderDetail,refreshBill} from "@/api/thrsys/thrInvOrder"; import {
delThrInvOrder,
getThrInvOrders,
getThrInvOrderDetails,
delThrInvOrderDetail,
refreshBill, dlThrInvOrder, dlThrInvFeeOrder
} from "@/api/thrsys/thrInvOrder";
import {getBussinessType} from "@/api/basic/bussinessType"; import {getBussinessType} from "@/api/basic/bussinessType";
import {getOriginBusType} from "@/api/basic/busOriginType"; import {getOriginBusType} from "@/api/basic/busOriginType";
import {getBasicThirdSys, filterDetailByKey} from "@/api/basic/basicThirdSys"; import {getBasicThirdSys, filterDetailByKey} from "@/api/basic/basicThirdSys";
import {selectIp} from "@/api/param/systemParamConfig"; import {selectIp} from "@/api/param/systemParamConfig";
import thrInvOrderGenerate from "@/views/thirdSys/invOrder/thrInvOrderGenerate"; import thrInvOrderGenerate from "@/views/thirdSys/invOrder/thrInvOrderGenerate";
import moment from "moment";
export default { export default {
data() { data() {
@ -518,7 +530,35 @@ export default {
color: "red" // return color backgroundColor color: "red" // return color backgroundColor
} }
} }
},
/**
* 手动下载第三方出入库明细
*/
dlThrInvOrder() {
this.$confirm("是否确定下载日期范围为:[" + this.filterQuery.startDate + "---" + this.filterQuery.endDate + "]的出入库明细?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
dlThrInvFeeOrder(this.filterQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("下载成功");
this.getList();
} else {
this.$message.error(response.message);
} }
})
.catch(() => {
this.loading = false;
});
})
.catch(() => {
});
},
}, },
components: {thrInvOrderGenerate}, components: {thrInvOrderGenerate},
mounted() { mounted() {
@ -528,7 +568,7 @@ export default {
let end = new Date(); let end = new Date();
let start = new Date(); let start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
this.actDateRange = [start, end]; this.actDateRange = [moment(start).format('YYYY-MM-DD'), moment(end).format('YYYY-MM-DD')];
}, },
}; };
</script> </script>

@ -66,6 +66,7 @@
<el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button> <el-button icon="el-icon-view" type="primary" @click="hideSearch">/</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="el-icon-search" @click="getList"></el-button> <el-button type="primary" icon="el-icon-search" @click="getList"></el-button>
<el-button type="primary" icon="el-icon-search" @click="dlThrInvOrder"></el-button>
</el-button-group> </el-button-group>
</div> </div>
@ -179,12 +180,20 @@
</div> </div>
</template> </template>
<script> <script>
import {delThrInvOrder, getThrInvOrders, getThrInvOrderDetails,delThrInvOrderDetail,refreshBill} from "@/api/thrsys/thrInvOrder"; import {
delThrInvOrder,
getThrInvOrders,
getThrInvOrderDetails,
delThrInvOrderDetail,
refreshBill,
dlInvGhOrder, downloadInvPhOrder
} from "@/api/thrsys/thrInvOrder";
import {getBussinessType} from "@/api/basic/bussinessType"; import {getBussinessType} from "@/api/basic/bussinessType";
import {getOriginBusType} from "@/api/basic/busOriginType"; import {getOriginBusType} from "@/api/basic/busOriginType";
import {getBasicThirdSys, filterDetailByKey} from "@/api/basic/basicThirdSys"; import {getBasicThirdSys, filterDetailByKey} from "@/api/basic/basicThirdSys";
import {selectIp} from "@/api/param/systemParamConfig"; import {selectIp} from "@/api/param/systemParamConfig";
import thrInvOrderGenerate from "@/views/thirdSys/invOrder/thrInvOrderGenerate"; import thrInvOrderGenerate from "@/views/thirdSys/invOrder/thrInvOrderGenerate";
import moment from "moment";
export default { export default {
data() { data() {
@ -514,7 +523,35 @@ export default {
color: "red" // return color backgroundColor color: "red" // return color backgroundColor
} }
} }
},
/**
* 手动下载第三方出入库明细
*/
dlThrInvOrder() {
this.$confirm("是否确定下载日期范围为:" + this.filterQuery.startDate + "-" + this.filterQuery.endDate + "的出入库明细?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
downloadInvPhOrder(this.filterQuery)
.then((response) => {
this.loading = false;
if (response.code == 20000) {
this.$message.success("下载成功");
this.getList();
} else {
this.$message.error(response.message);
} }
})
.catch(() => {
this.loading = false;
});
})
.catch(() => {
});
},
}, },
components: {thrInvOrderGenerate}, components: {thrInvOrderGenerate},
mounted() { mounted() {
@ -524,7 +561,7 @@ export default {
let end = new Date(); let end = new Date();
let start = new Date(); let start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7); start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
this.actDateRange = [start, end]; this.actDateRange = [moment(start).format('YYYY-MM-DD'), moment(end).format('YYYY-MM-DD')];
}, },
}; };
</script> </script>

Loading…
Cancel
Save