曹睿
2025-04-23 76bee36dc9da0e09276f93d03c424e07e9608ea3
test: 绞线参数测试
已修改4个文件
29 ■■■■ 文件已修改
src/pages/production/twist/receive/plate/form.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/production/twist/receive/plate/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/production/twist/receive/steelCore/form.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/production/twist/receive/steelCore/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/production/twist/receive/plate/form.vue
@@ -50,6 +50,7 @@
  model: undefined, // 尺寸
  amount: undefined, // 数量
  supplier: undefined,
  type: "盘具",
});
const submit = async () => {
src/pages/production/twist/receive/plate/index.vue
@@ -8,7 +8,7 @@
      @query="getList"
    >
      <template #top>
        <CardTitle title="盘具领用" :hideAction="true" @action="addReport" />
        <CardTitle title="盘具领用" :hideAction="true" :full="false" @action="addReport" />
      </template>
      <wd-card v-for="(item, index) in cardList" :key="index" type="rectangle" custom-class="round">
        <template #title>
src/pages/production/twist/receive/steelCore/form.vue
@@ -39,12 +39,30 @@
<script lang="ts" setup>
import useFormData from "@/hooks/useFormData";
import TwistApi from "@/api/product/twist";
import { useToast } from "wot-design-uni";
const emits = defineEmits(["refresh"]);
const toast = useToast();
const { form: model } = useFormData({
  model: undefined, // 规格型号
  monofilamentNumber: undefined, // 样品编号
  amount: undefined, // 数量
  manufacturers: undefined, // 厂家
  type: "钢芯",
});
const submit = async () => {
  const { code } = await TwistApi.addStrandedWireDish([model]);
  if (code == 200) {
    toast.success("新增成功");
    emits("refresh");
    return true;
  }
};
defineExpose({
  submit,
});
</script>
src/pages/production/twist/receive/steelCore/index.vue
@@ -8,7 +8,7 @@
      @query="getList"
    >
      <template #top>
        <CardTitle title="钢芯领用" :hideAction="true" @action="addReport" />
        <CardTitle title="钢芯领用" :hideAction="true" :full="false" @action="addReport" />
      </template>
      <wd-card v-for="(item, index) in cardList" :key="index" type="rectangle" custom-class="round">
        <template #title>
@@ -29,7 +29,7 @@
      <wd-button type="text" @click="cancel">取消</wd-button>
      <wd-button type="text" @click="submit">确定</wd-button>
    </view>
    <SteelCore ref="steelCoreRef" />
    <SteelCore ref="steelCoreRef" @refresh="reloadList" />
  </wd-popup>
  <wd-toast />
</template>
@@ -99,6 +99,10 @@
  }
};
const reloadList = () => {
  pagingRef.value.refresh();
};
onLoad((options: any) => {
  paramsId.value = options.id;
});