曹睿
2025-04-24 5519cbf2e00c7ba4c650a542d98da99978124a30
src/pages/production/twist/report/index.vue
@@ -1,6 +1,6 @@
<template>
  <view class="page pt-2">
    <z-paging ref="pagingRef" v-model="twistReportList" class="list" @query="getTwistReportList">
  <view class="list">
    <z-paging ref="pagingRef" v-model="twistReportList" :fixed="false" @query="getTwistReportList">
      <template #top>
        <CardTitle title="报工信息" :hideAction="true" :full="false" @action="addReport" />
      </template>
@@ -10,14 +10,14 @@
            <view>
              <wd-icon name="user" color="#0D867F"></wd-icon>
              <text class="text-[#0D867F] ml-2 font-medium">生产人</text>
              <text class="text-[#333333] ml-2">方兆玉</text>
              <text class="text-[#333333] ml-2">{{ item.productUser }}</text>
            </view>
            <view class="text-[#A8A8A8]" @click="toEdit">编辑</view>
          </view>
        </template>
        <ProductionCard :data="cardAttr" :value="item" />
        <template #footer>
          <wd-button size="small" plain @click="toCheck">自检</wd-button>
          <wd-button size="small" plain @click="toCheck(item.id)">自检</wd-button>
        </template>
      </wd-card>
    </z-paging>
@@ -27,7 +27,7 @@
        <wd-button type="text" @click="cancel">取消</wd-button>
        <wd-button type="text" @click="submit">确定</wd-button>
      </view>
      <TwistForm />
      <TwistForm ref="twistFormRef" />
    </wd-popup>
    <wd-toast />
  </view>
@@ -42,6 +42,7 @@
const pagingRef = ref();
const paramsId = ref();
const twistFormRef = ref();
const toast = useToast();
const dialog = reactive({
  visible: false,
@@ -61,8 +62,8 @@
    prop: "monofilamentNumber",
  },
  {
    label: "规格型号",
    prop: "model",
    label: "实际重量(kg)",
    prop: "actuallyWeight",
  },
  {
    label: "盘长(m)",
@@ -73,8 +74,8 @@
    prop: "theoryWeight",
  },
  {
    label: "实际重量(kg)",
    prop: "actuallyWeight",
    label: "规格型号",
    prop: "model",
  },
]);
@@ -91,8 +92,7 @@
};
const submit = () => {
  toast.show("提交");
  dialog.visible = false;
  dialog.visible = twistFormRef.value.submit();
};
const cancel = () => {
@@ -100,9 +100,9 @@
  dialog.visible = false;
};
const toCheck = () => {
const toCheck = (id: number) => {
  uni.navigateTo({
    url: "/pages/production/twist/selfInspect/index",
    url: `/pages/production/twist/selfInspect/index?id=${id}`,
  });
};
@@ -121,16 +121,14 @@
</script>
<style lang="scss" scoped>
.page {
.list {
  height: calc(100vh - 120px);
  padding: 12px;
  background: #f3f9f8;
  .list {
    margin: 12px;
    :deep() {
      .round {
        border-radius: 4px;
      }
  :deep() {
    .round {
      border-radius: 4px;
    }
  }
}