曹睿
2025-04-23 913796ff8463b132be6ebb92c44f0dabb2ff279f
feat: 绞线单丝领用完成保存
已修改3个文件
25 ■■■■■ 文件已修改
src/api/product/twist.ts 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/production/list/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/production/twist/receive/monofil.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/product/twist.ts
@@ -28,6 +28,14 @@
      data: params,
    });
  },
  addStrandedWireDish(data: any) {
    return request<BaseResult<any>>({
      url: "/app/addStrandedWireDish",
      method: "POST",
      data: data,
    });
  },
};
export default TwistApi;
src/pages/production/list/index.vue
@@ -13,7 +13,13 @@
      <ProductCard
        v-for="(item, index) in list"
        :key="index"
        :data="item"
        :data="{
          deviceModel: item.deviceModel,
          model: item.model,
          totalAmount: item.totalLength,
          amount: item.length,
          unAmount: item.unLength,
        }"
        @click="toDetail(item.id, item.type)"
      />
    </z-paging>
src/pages/production/twist/receive/monofil.vue
@@ -77,7 +77,14 @@
  }
};
const save = () => {};
const save = async () => {
  const { code } = await TwistApi.addStrandedWireDish(cardList.value);
  if (code == 200) {
    toast.success("保存成功");
  } else {
    toast.error("保存失败");
  }
};
onLoad((options: any) => {
  // 开启广播监听事件