曹睿
2025-04-23 8a09b751a8be8c4ed376f42e7f64e0794001e06a
src/pages/production/twist/receive/steelCore/index.vue
@@ -15,12 +15,12 @@
          <view class="flex justify-between">
            <view>
              <wd-icon name="a-rootlist" color="#0D867F"></wd-icon>
              <text class="text-[#252525] ml-2 font-medium">JX28201021-1</text>
              <text class="text-[#252525] ml-2 font-medium">{{ item.model }}</text>
            </view>
            <view class="text-[#A8A8A8]" @click="toEdit">编辑</view>
          </view>
        </template>
        <ProductionCard :data="cardAttr" color="#0D867F" />
        <ProductionCard :data="cardAttr" :value="item" color="#0D867F" />
      </wd-card>
    </z-paging>
  </view>
@@ -29,7 +29,7 @@
      <wd-button type="text" @click="cancel">取消</wd-button>
      <wd-button type="text" @click="submit">确定</wd-button>
    </view>
    <PlateForm />
    <SteelCore ref="steelCoreRef" />
  </wd-popup>
  <wd-toast />
</template>
@@ -38,13 +38,14 @@
import CardTitle from "@/components/card-title/index.vue";
import ProductionCard from "../../../components/ProductionCard.vue";
import { useToast } from "wot-design-uni";
import PlateForm from "./form.vue";
import SteelCore from "./form.vue";
import { onLoad } from "@dcloudio/uni-app";
import ManageApi from "@/api/product/manage";
import zPaging from "@/components/z-paging/z-paging.vue";
const paramsId = ref();
const pagingRef = ref();
const steelCoreRef = ref();
const toast = useToast();
const dialog = reactive({
  visible: false,
@@ -53,24 +54,17 @@
const cardAttr = ref<any[]>([
  {
    label: "盘号",
    value: "1902101",
    label: "样品编号",
    prop: "monofilamentNumber",
  },
  {
    label: "长度",
    value: "46kg",
  },
  {
    label: "重量",
    value: "10kg",
  },
  {
    label: undefined,
    value: undefined,
    label: "数量",
    prop: "amount",
    unitProp: "unit",
  },
  {
    label: "厂家",
    value: "江苏省南通市芯导数字厂",
    prop: "supplier",
    span: 16,
  },
]);
@@ -98,7 +92,7 @@
const getList = async () => {
  const { code, data } = await ManageApi.getStrandedWireDish({
    wireId: paramsId.value,
    type: "盘具",
    type: "钢芯",
  });
  if (code == 200) {
    pagingRef.value.complete(data);