huangbin 4 anni fa
parent
commit
e373586360

+ 1 - 1
src/services/go/ermcp/warehouse-info/index.ts

@@ -35,7 +35,7 @@ export function QueryAreaStock(userid: number): Promise<Ermcp3AreaStock[]> {
  * @param spotcontractid 合同ID
  * @constructor
  */
-export function QueryAreaStockApply(spotcontractid: number): Promise<Ermcp3AreaStockApplySum[]> {
+export function QueryAreaStockApply(spotcontractid: string): Promise<Ermcp3AreaStockApplySum[]> {
     return commonSearch_go('/Ermcp3/QueryAreaStockApplySum', { spotcontractid }).catch((err) => {
         throw new Error(`查询已登记出入库信息(入库登记/已入库信息): ${err.message}`);
     });

+ 1 - 2
src/views/business/purchase/components/storage/index.vue

@@ -166,8 +166,7 @@ export default defineComponent({
         const DGList = ref<Ermcp3AreaStockApplySum[]>([]);
         watchEffect(() => {
             if (visible.value) {
-                const id = Long.fromString(props.selectedRow.spotcontractid);
-                QueryAreaStockApply(Number(props.selectedRow.spotcontractid))
+                QueryAreaStockApply(props.selectedRow.spotcontractid)
                     .then((res) => {
                         DGList.value = res.filter((e) => e.inouttype === 1);
                     })

+ 1 - 2
src/views/business/sell/components/storage/index.vue

@@ -171,8 +171,7 @@ export default defineComponent({
         const DGList = ref<Ermcp3AreaStockApplySum[]>([]);
         watchEffect(() => {
             if (visible.value) {
-                const id = Long.fromString(props.selectedRow.spotcontractid);
-                QueryAreaStockApply(Number(props.selectedRow.spotcontractid))
+                QueryAreaStockApply(props.selectedRow.spotcontractid)
                     .then((res) => {
                         DGList.value = res.filter((e) => e.inouttype === 1);
                     })