同步相关bug修改,预验收,寄售库存查询修改

prod
anthonywj 3 years ago
parent f0d3d119ab
commit d29510234d

@ -241,6 +241,15 @@ export function getInvListByUser(params) {
params: params params: params
}); });
} }
export function findAllInvByUser(params) {
return axios({
url: "/spms/inv/warehouse/findAllInvByUser",
method: "get",
params: params
});
}
export function selectInvById(params) { export function selectInvById(params) {

@ -290,7 +290,6 @@ export default {
addCode() { addCode() {
debugger
if (this.$isBlank(this.udiCode)) { if (this.$isBlank(this.udiCode)) {
this.$message.error("UDI码不能为空"); this.$message.error("UDI码不能为空");
} }

@ -164,7 +164,6 @@ export default {
}, },
getList() { getList() {
debugger
this.loading = true; this.loading = true;
// //
if(this.invQueryData.advanceType==3){ if(this.invQueryData.advanceType==3){

@ -218,7 +218,7 @@
</template> </template>
<script> <script>
import {getInvListByUser} from "@/api/system/invWarehouse"; import {findAllInvByUser} from "@/api/system/invWarehouse";
import {getInvPreProduct, deleteInvPreProduct} from "@/api/inventory/invPreProduct"; import {getInvPreProduct, deleteInvPreProduct} from "@/api/inventory/invPreProduct";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
@ -336,7 +336,7 @@ export default {
let query = { let query = {
advanceType: 3, //123 advanceType: 3, //123
}; };
getInvListByUser(query) findAllInvByUser(query)
.then((response) => { .then((response) => {
this.invList = response.data || []; this.invList = response.data || [];
this.getList(); this.getList();

@ -211,7 +211,7 @@
</template> </template>
<script> <script>
import {getInvListByUser} from "@/api/system/invWarehouse"; import {findAllInvByUser} from "@/api/system/invWarehouse";
import {getInvPreInProduct, deleteInvPreInProduct} from "@/api/inventory/invPreInSearch"; import {getInvPreInProduct, deleteInvPreInProduct} from "@/api/inventory/invPreInSearch";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {isBlank} from "@/utils/strUtil"; import {isBlank} from "@/utils/strUtil";
@ -328,7 +328,7 @@ export default {
let query = { let query = {
advanceType: 2, advanceType: 2,
}; };
getInvListByUser(query) findAllInvByUser(query)
.then((response) => { .then((response) => {
this.invList = response.data || []; this.invList = response.data || [];
this.getList(); this.getList();

@ -298,7 +298,8 @@ export default {
downFile(rows) { downFile(rows) {
infoByStatus({ infoByStatus({
'id': rows.id 'id': rows.id,
"dlType": 1,
}).then(res => { }).then(res => {
let blob = new Blob([res]) let blob = new Blob([res])
let fileName = rows.cacheFilePath.substring(rows.cacheFilePath.lastIndexOf('/')) let fileName = rows.cacheFilePath.substring(rows.cacheFilePath.lastIndexOf('/'))

@ -303,7 +303,8 @@ export default {
downFile(rows) { downFile(rows) {
infoByStatus({ infoByStatus({
'id': rows.id 'id': rows.id,
"dlType": 2,
}).then(res => { }).then(res => {
let blob = new Blob([res]) let blob = new Blob([res])
let fileName = rows.cacheFilePath.substring(rows.cacheFilePath.lastIndexOf('/')) let fileName = rows.cacheFilePath.substring(rows.cacheFilePath.lastIndexOf('/'))

Loading…
Cancel
Save