spring
2025-11-20 5384750e59bbb27c54e090100429c48eaba46df0
src/pages/production/wire/report/wire.vue
@@ -116,10 +116,17 @@
        </view>
        <template #footer>
          <view class="flex justify-start">
            <wd-button plain size="small" type="primary" @click="openChildDialog(item)">
          <view class="flex justify-start gap-2">
            <wd-button
              plain
              size="small"
              type="primary"
              @click="openChildDialog(item)"
              style="margin-right: 10px"
            >
              报工管理
            </wd-button>
            <wd-button plain size="small" @click="() => toSelfInspect(item)">自检</wd-button>
          </view>
        </template>
      </wd-card>
@@ -151,13 +158,14 @@
              label="杆包号"
              label-width="100px"
              placeholder="请输入杆包号"
              type="number"
            />
            <wd-input
              v-model="newParentData.poleWeight"
              label="杆重(kg)"
              label-width="100px"
              type="number"
              placeholder="请输入杆重"
              type="number"
            />
            <wd-picker
              v-model="newParentData.supplier"
@@ -169,7 +177,7 @@
          </wd-cell-group>
        </view>
        <view class="dialog-footer">
          <wd-button plain @click="closeParentDialog">取消</wd-button>
          <wd-button plain @click="closeParentDialog" style="margin-right: 10px">取消</wd-button>
          <wd-button type="primary" class="ml-2" @click="handleSaveNewParent">保存</wd-button>
        </view>
      </view>
@@ -490,6 +498,13 @@
  drawFormRef.visible = false;
};
// 跳转到自检页面
const toSelfInspect = (row: any) => {
  uni.navigateTo({
    url: `/pages/production/wire/selfInspect/index?wireId=${paramsId.value}&poleModel=${row.poleModel || ""}&poleNumber=${row.poleNumber || ""}`,
  });
};
onLoad(async (options: any) => {
  paramsId.value = options.id;
  await getDetailData(options.id);
@@ -501,7 +516,7 @@
<style lang="scss" scoped>
.list {
  min-height: calc(100vh - 30px);
  padding: 12px;
  padding: 12px 4px;
  background: #f3f9f8;
  :deep() {
@@ -543,6 +558,30 @@
  border-radius: 12px 12px 0 0;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}
.dialog-title {
  font-size: 16px;
  color: #333;
  font-weight: 500;
}
.close-icon {
  font-size: 20px;
  color: #999;
  padding: 4px;
}
.dialog-content {
  flex: 1;
  overflow-y: auto;