| | |
| | | </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> |
| | |
| | | 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" |
| | |
| | | </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> |
| | |
| | | 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); |
| | |
| | | <style lang="scss" scoped> |
| | | .list { |
| | | min-height: calc(100vh - 30px); |
| | | padding: 12px; |
| | | padding: 12px 4px; |
| | | background: #f3f9f8; |
| | | |
| | | :deep() { |
| | |
| | | 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; |