已修改5个文件
已重命名6个文件
已添加26个文件
| | |
| | | æ°å¢ |
| | | </wd-button> |
| | | </view> |
| | | <slot v-else name="action"></slot> |
| | | </view> |
| | | </template> |
| | | <script setup lang="ts"> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <view class="content"></view> |
| | | </view> |
| | | </template> |
| | | <!-- æ¿å
æ«ç ï¼å¹¿ææ¨¡å¼ --> |
| | | <script> |
| | | var main, receiver, filter; |
| | | var codeQueryTag = false; |
| | | export default { |
| | | data() { |
| | | return { |
| | | scanCode: "", |
| | | }; |
| | | }, |
| | | created() { |
| | | // åå§å |
| | | this.initScan(); |
| | | // å¯å¨å¹¿æ |
| | | this.startScan(); |
| | | }, |
| | | onHide() { |
| | | // ç»æå¹¿æ |
| | | this.stopScan(); |
| | | }, |
| | | destroyed() { |
| | | // ç»æå¹¿æ |
| | | this.stopScan(); |
| | | }, |
| | | methods: { |
| | | // åå§å |
| | | initScan() { |
| | | // #ifdef APP |
| | | // console.log('initScan:æ«ç åå§å'); |
| | | let that = this; |
| | | main = plus.android.runtimeMainActivity(); //è·åactivity |
| | | //var context = plus.android.importClass('android.content.Context'); //ä¸ä¸æ |
| | | var IntentFilter = plus.android.importClass("android.content.IntentFilter"); |
| | | filter = new IntentFilter(); |
| | | //ä¸é¢çaddAction æ¹ä¸ºèªå·± pad 设å¤ç广æå¨ä½ï¼å¨æ«æè®¾ç½®æè
ååé带çapp éé¢è®¾ç½®ä¸ºå¹¿ææ¨¡å¼ï¼ç¶åæ¥çç¸åºåæ°ï¼ |
| | | filter.addAction("com.dwexample.ACTION"); |
| | | receiver = plus.android.implements("io.dcloud.feature.internal.reflect.BroadcastReceiver", { |
| | | onReceive: (context, intent) => { |
| | | console.log("---onReceiveï¼", context, intent); |
| | | plus.android.importClass(intent); |
| | | //ä¸é¢çgetStringExtraå
æ¹ä¸ºèªå·±çå¹¿ææ ç¾ï¼é®å¼/keyï¼ï¼ data |
| | | //æé©¬ TC20 |
| | | var banMaSacanInfo = intent.getStringExtra( |
| | | "com.motorolasolutions.emdk.datawedge.data_string" |
| | | ); // callback(intent.getStringExtra('com.motorolasolutions.emdk.datawedge.data_string')); |
| | | console.log("æé©¬æ«æç»æ", banMaSacanInfo); |
| | | // ä¼ å
¥æ¥æ¶å°çåæ° |
| | | that.queryCode(banMaSacanInfo); |
| | | }, |
| | | }); |
| | | // #endif |
| | | }, |
| | | // å¼å¯å¹¿æ |
| | | startScan() { |
| | | // #ifdef APP |
| | | console.log("startScan,å¼å¯å¹¿ææ¥æ¶"); |
| | | main.registerReceiver(receiver, filter); |
| | | // #endif |
| | | }, |
| | | // å
³é广æ |
| | | stopScan() { |
| | | // #ifdef APP |
| | | console.log("stopScanç»æ"); |
| | | main.unregisterReceiver(receiver); |
| | | // #endif |
| | | }, |
| | | // é¿å
é夿«ç |
| | | queryCode: function (code) { |
| | | // #ifdef APP |
| | | if (codeQueryTag) return false; |
| | | codeQueryTag = true; |
| | | setTimeout(function () { |
| | | codeQueryTag = false; |
| | | }, 150); |
| | | // console.log('-****--æ«ç codeï¼ ', code); |
| | | let data = code; |
| | | uni.$emit("scan", { |
| | | code: data, |
| | | }); |
| | | // #endif |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | "navigationBarTitleText": "æä¸è¯¦æ
" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/detail/twistDetail", |
| | | "style": { |
| | | "navigationBarTitleText": "ç»çº¿è¯¦æ
" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/report/wire", |
| | | "path": "pages/production/wire/report/wire", |
| | | "style": { |
| | | "navigationBarTitleText": "æä¸æ¥å·¥" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/report/wireEdit", |
| | | "path": "pages/production/wire/report/wireEdit", |
| | | "style": { |
| | | "navigationBarTitleText": "æ¥å·¥ä¸æ¥" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/receive/index", |
| | | "path": "pages/production/wire/receive/index", |
| | | "style": { |
| | | "navigationBarTitleText": "æä¸é¢ç¨" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/receive/edit", |
| | | "path": "pages/production/wire/receive/edit", |
| | | "style": { |
| | | "navigationBarTitleText": "ç¼è¾æä¸é¢ç¨" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/wire/selfInspect/index", |
| | | "style": { |
| | | "navigationBarTitleText": "æä¸èªæ£" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/wire/selfInspect/edit", |
| | | "style": { |
| | | "navigationBarTitleText": "ç¼è¾æä¸èªæ£" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/wire/backman/index", |
| | | "style": { |
| | | "navigationBarTitleText": "æå·¥" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/wire/backman/edit", |
| | | "style": { |
| | | "navigationBarTitleText": "ç¼è¾æå·¥" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/twist/report/index", |
| | | "style": { |
| | | "navigationBarTitleText": "ç»çº¿æ¥å·¥" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/twist/report/edit", |
| | | "style": { |
| | | "navigationBarTitleText": "ç»çº¿æ¥å·¥ä¸æ¥" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/twist/receive/index", |
| | | "style": { |
| | | "navigationBarTitleText": "ç»çº¿ææé¢ç¨" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/twist/receive/plate/edit", |
| | | "style": { |
| | | "navigationBarTitleText": "ç»çº¿çå
·ç¼è¾" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/twist/receive/steelCore/edit", |
| | | "style": { |
| | | "navigationBarTitleText": "ç»çº¿é¢è¯ç¼è¾" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/twist/selfInspect/index", |
| | | "style": { |
| | | "navigationBarTitleText": "ç»çº¿èªæ£" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/twist/selfInspect/edit", |
| | | "style": { |
| | | "navigationBarTitleText": "ç»çº¿èªæ£ç¼è¾" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/twist/backman/index", |
| | | "style": { |
| | | "navigationBarTitleText": "ç»çº¿æå·¥" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/production/twist/backman/edit", |
| | | "style": { |
| | | "navigationBarTitleText": "ç»çº¿æå·¥ç¼è¾" |
| | | } |
| | | } |
| | | ], |
| | | "globalStyle": { |
| | |
| | | <template> |
| | | <wd-row> |
| | | <wd-col v-for="(item, index) in data" :key="index" :span="12" class="my-1"> |
| | | <view class="flex justify-between pr-1"> |
| | | <wd-col v-for="(item, index) in data" :key="index" :span="item.span ?? 12" class="my-1"> |
| | | <view class="flex justify-between pr-1 w-full h-[20px]"> |
| | | <view class="text-[#646874]">{{ item.label }}</view> |
| | | <view class="font-medium" :style="{ color: color }">{{ item.value }}</view> |
| | | <view class="font-medium" :style="{ color: item.color ?? color }">{{ item.value }}</view> |
| | | </view> |
| | | </wd-col> |
| | | </wd-row> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <ProductCard /> |
| | | <view class="mx-3"> |
| | | <wd-grid class="rounded-lg" clickable> |
| | | <wd-grid-item |
| | | icon="computer" |
| | | link-type="navigateTo" |
| | | url="/pages/production/twist/report/index" |
| | | text="æ¥å·¥" |
| | | /> |
| | | <wd-grid-item |
| | | icon="chart" |
| | | text="èªæ£" |
| | | link-type="navigateTo" |
| | | url="/pages/production/twist/selfInspect/index" |
| | | /> |
| | | <wd-grid-item |
| | | icon="tips" |
| | | link-type="navigateTo" |
| | | url="/pages/production/twist/backman/index" |
| | | text="æå·¥" |
| | | /> |
| | | <wd-grid-item |
| | | icon="wallet" |
| | | link-type="navigateTo" |
| | | url="/pages/production/twist/receive/index" |
| | | text="ææé¢ç¨" |
| | | /> |
| | | </wd-grid> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script lang="ts" setup> |
| | | import ProductCard from "@/components/product_card/index.vue"; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped></style> |
| | |
| | | <wd-grid-item |
| | | icon="computer" |
| | | link-type="navigateTo" |
| | | url="/pages/production/report/wire" |
| | | url="/pages/production/wire/report/wire" |
| | | text="æ¥å·¥" |
| | | /> |
| | | <wd-grid-item icon="chart" text="èªæ£" /> |
| | | <wd-grid-item icon="tips" text="æå·¥" /> |
| | | <wd-grid-item |
| | | icon="chart" |
| | | text="èªæ£" |
| | | link-type="navigateTo" |
| | | url="/pages/production/wire/selfInspect/index" |
| | | /> |
| | | <wd-grid-item |
| | | icon="tips" |
| | | link-type="navigateTo" |
| | | url="/pages/production/wire/backman/index" |
| | | text="æå·¥" |
| | | /> |
| | | <wd-grid-item |
| | | icon="wallet" |
| | | link-type="navigateTo" |
| | | url="/pages/production/receive/index" |
| | | url="/pages/production/wire/receive/index" |
| | | text="ææé¢ç¨" |
| | | /> |
| | | </wd-grid> |
| | |
| | | <wd-tab :title="item.label"> |
| | | <view class="card_box"> |
| | | <Statistics class="statistics_box" /> |
| | | <ProductCard v-for="item in 10" @click="toDetail" /> |
| | | <ProductCard v-for="(item, index) in 10" @click="toDetail(index)" /> |
| | | <wd-loadmore custom-class="loadmore" state="loading" /> |
| | | </view> |
| | | </wd-tab> |
| | |
| | | }, |
| | | ]); |
| | | |
| | | const toDetail = () => { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/detail/wireDetail", |
| | | }); |
| | | const toDetail = (type: number) => { |
| | | if (Math.floor(type) % 2 === 0) { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/detail/wireDetail", |
| | | }); |
| | | } else { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/detail/twistDetail", |
| | | }); |
| | | } |
| | | }; |
| | | </script> |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <CardTitle title="ç¼è¾èªæ£" :hideAction="false" /> |
| | | <BackmanForm class="mx-4" /> |
| | | <view class="footer"> |
| | | <wd-button |
| | | class="submit_btn" |
| | | type="primary" |
| | | size="large" |
| | | block |
| | | :round="false" |
| | | @click="handleSubmit" |
| | | > |
| | | ä¿å |
| | | </wd-button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import CardTitle from "@/components/card-title/index.vue"; |
| | | import BackmanForm from "./form.vue"; |
| | | |
| | | const handleSubmit = () => {}; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .footer { |
| | | margin: 20px 16px 0 16px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <wd-form ref="form" :model="model" class="relative form_box"> |
| | | <wd-cell-group :border="true"> |
| | | <wd-input |
| | | v-model="model.workbench" |
| | | label="æå·¥åç§°" |
| | | label-width="100px" |
| | | prop="workbench" |
| | | clearable |
| | | placeholder="请è¾å
¥æå·¥åç§°" |
| | | /> |
| | | <wd-input |
| | | v-model="model.poleNo" |
| | | label="æå·" |
| | | label-width="100px" |
| | | prop="poleNo" |
| | | clearable |
| | | placeholder="请è¾å
¥æå·" |
| | | /> |
| | | <wd-input |
| | | v-model="model.unit" |
| | | label="åä½" |
| | | label-width="100px" |
| | | prop="unit" |
| | | clearable |
| | | placeholder="请è¾å
¥åä½" |
| | | /> |
| | | <wd-input |
| | | v-model="model.poleWeight" |
| | | label="æé" |
| | | label-width="100px" |
| | | prop="poleWeight" |
| | | clearable |
| | | placeholder="请è¾å
¥æé" |
| | | /> |
| | | <wd-input |
| | | v-model="model.useWeight" |
| | | label="使ç¨éé" |
| | | label-width="100px" |
| | | prop="useWeight" |
| | | clearable |
| | | placeholder="请è¾å
¥ä½¿ç¨éé" |
| | | /> |
| | | </wd-cell-group> |
| | | </wd-form> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import useFormData from "@/hooks/useFormData"; |
| | | const { form: model } = useFormData({ |
| | | backmanName: undefined, // æå·¥åç§° |
| | | unit: undefined, // åä½ |
| | | num: undefined, // æ°é |
| | | caller: undefined, // æ¥å·¥äºº |
| | | callerDate: undefined, // æ¥å·¥æ¥æ |
| | | }); |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .form_box { |
| | | } |
| | | .submit_btn { |
| | | position: absolute; |
| | | bottom: 0; |
| | | width: 100%; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="page pt-2"> |
| | | <CardTitle title="ç»çº¿æå·¥ä¿¡æ¯" :hideAction="true" @action="addReport" /> |
| | | <view class="list"> |
| | | <wd-card type="rectangle" custom-class="round"> |
| | | <template #title> |
| | | <view class="flex justify-between"> |
| | | <view> |
| | | <wd-icon name="a-rootlist" color="#0D867F"></wd-icon> |
| | | <text class="text-[#252525] ml-2 font-medium">æå·¥é¡¹ç®åç§°</text> |
| | | </view> |
| | | <view class="text-[#A8A8A8]" @click="toEdit">ç¼è¾</view> |
| | | </view> |
| | | </template> |
| | | <ProductionCard :data="cardAttr" color="#0D867F" /> |
| | | </wd-card> |
| | | </view> |
| | | <wd-popup v-model="dialog.visible" position="bottom" custom-class="yl-popup"> |
| | | <view class="action px-3"> |
| | | <wd-button type="text" @click="cancel">åæ¶</wd-button> |
| | | <wd-button type="text" @click="submit">ç¡®å®</wd-button> |
| | | </view> |
| | | <BackmanForm /> |
| | | </wd-popup> |
| | | <wd-toast /> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import CardTitle from "@/components/card-title/index.vue"; |
| | | import ProductionCard from "../../components/ProductionCard.vue"; |
| | | import { useToast } from "wot-design-uni"; |
| | | import BackmanForm from "./form.vue"; |
| | | |
| | | const toast = useToast(); |
| | | const dialog = reactive({ |
| | | visible: false, |
| | | }); |
| | | |
| | | const cardAttr = ref<any[]>([ |
| | | { |
| | | label: "åä½", |
| | | value: "nΩ·m", |
| | | }, |
| | | { |
| | | label: "å®é¢", |
| | | value: "1246", |
| | | }, |
| | | { |
| | | label: "æ°é", |
| | | value: "4", |
| | | }, |
| | | { |
| | | label: "éé¢", |
| | | value: "æ¥ç", |
| | | }, |
| | | { |
| | | label: "æ¥å·¥äºº", |
| | | value: "é·è¿å®", |
| | | }, |
| | | { |
| | | label: "æ¥æ", |
| | | value: "2022-05-17", |
| | | }, |
| | | ]); |
| | | |
| | | const toEdit = () => { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/twist/backman/edit", |
| | | }); |
| | | }; |
| | | |
| | | const addReport = () => { |
| | | dialog.visible = true; |
| | | }; |
| | | |
| | | const submit = () => { |
| | | toast.show("æäº¤"); |
| | | dialog.visible = false; |
| | | }; |
| | | |
| | | const cancel = () => { |
| | | toast.show("åæ¶"); |
| | | dialog.visible = false; |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .page { |
| | | background: #f3f9f8; |
| | | .list { |
| | | height: calc(100vh - 120px); |
| | | margin: 12px; |
| | | overflow: scroll; |
| | | |
| | | :deep() { |
| | | .round { |
| | | border-radius: 4px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .action { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <wd-card> |
| | | <wd-form :model="model"> |
| | | <wd-cell-group :border="true"> |
| | | <wd-input |
| | | v-model="model.no" |
| | | label="åä¸ç¼å·" |
| | | label-width="100px" |
| | | prop="no" |
| | | clearable |
| | | placeholder="请è¾å
¥åä¸ç¼å·" |
| | | /> |
| | | <wd-input |
| | | v-model="model.length" |
| | | label="é¿åº¦" |
| | | label-width="100px" |
| | | prop="length" |
| | | clearable |
| | | placeholder="请è¾å
¥é¿åº¦" |
| | | /> |
| | | </wd-cell-group> |
| | | </wd-form> |
| | | </wd-card> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import useFormData from "@/hooks/useFormData"; |
| | | |
| | | const { form: model } = useFormData({ |
| | | no: undefined, |
| | | length: undefined, |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped></style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <wd-tabs v-model="tab" auto-line-width> |
| | | <wd-tab title="åä¸é¢ç¨" name="åä¸é¢ç¨"> |
| | | <Monofil /> |
| | | </wd-tab> |
| | | <wd-tab title="çå
·é¢ç¨" name="çå
·é¢ç¨"> |
| | | <view class="content"> |
| | | <Plate /> |
| | | </view> |
| | | </wd-tab> |
| | | <wd-tab title="é¢è¯é¢ç¨" name="é¢è¯é¢ç¨"> |
| | | <view class="content"> |
| | | <SteelCore /> |
| | | </view> |
| | | </wd-tab> |
| | | </wd-tabs> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import Monofil from "./monofil.vue"; |
| | | import Plate from "./plate/index.vue"; |
| | | import SteelCore from "./steelCore/index.vue"; |
| | | |
| | | const tab = ref("åä¸é¢ç¨"); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | ::v-deep .wd-tabs__line { |
| | | background: #0d867f; |
| | | } |
| | | ::v-deep .wd-tabs__nav { |
| | | border-bottom: 1px #dddddd solid; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="page"> |
| | | <CardTitle title="åä¸é¢ç¨" :hideAction="false"> |
| | | <template #action> |
| | | <wd-button type="icon" icon="scan" color="#0D867F" @click="scanCode"></wd-button> |
| | | </template> |
| | | </CardTitle> |
| | | <view class="list_box"> |
| | | <MonofilCard v-for="(item, index) in 4" :key="index" /> |
| | | </view> |
| | | <scan /> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import CardTitle from "@/components/card-title/index.vue"; |
| | | import MonofilCard from "../components/MonofilCard.vue"; |
| | | import scan from "@/components/scan/index.vue"; |
| | | import { onLoad, onUnload } from "@dcloudio/uni-app"; |
| | | |
| | | const cardList = ref<any[]>([]); |
| | | |
| | | const BroadcastScanningToObtainData = (res: any) => { |
| | | console.log("è·å次æ°", res.code); |
| | | let barcode = res.code; |
| | | console.log("æå°æ°æ®", barcode); |
| | | }; |
| | | |
| | | const scanCode = () => { |
| | | uni.scanCode({ |
| | | onlyFromCamera: true, |
| | | success: (res) => { |
| | | console.log("æ¡ç ç±»åï¼" + res.scanType); |
| | | console.log("æ¡ç å
容ï¼" + res.result); |
| | | cardList.value.push(res.result); |
| | | }, |
| | | }); |
| | | }; |
| | | |
| | | onLoad(() => { |
| | | // å¼å¯å¹¿æçå¬äºä»¶ |
| | | uni.$on("scan", BroadcastScanningToObtainData); |
| | | }); |
| | | onUnload(() => { |
| | | // å¼å¯å¹¿æçå¬äºä»¶ |
| | | uni.$off("scan", BroadcastScanningToObtainData); |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .page { |
| | | background: #f3f9f8; |
| | | .list_box { |
| | | height: calc(100% - 100px); |
| | | overflow: scroll; |
| | | } |
| | | } |
| | | :deep(.wd-button__content) { |
| | | color: #0d867f; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <CardTitle title="ç»çº¿çå
·é¢ç¨" :hideAction="false" /> |
| | | <PlateForm class="mx-4" /> |
| | | <view class="footer"> |
| | | <wd-button |
| | | class="submit_btn" |
| | | type="primary" |
| | | size="large" |
| | | block |
| | | :round="false" |
| | | @click="handleSubmit" |
| | | > |
| | | ä¿å |
| | | </wd-button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import CardTitle from "@/components/card-title/index.vue"; |
| | | import PlateForm from "./form.vue"; |
| | | |
| | | const handleSubmit = () => {}; |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .footer { |
| | | margin: 20px 16px 0 16px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <wd-form ref="form" :model="model" class="relative form_box"> |
| | | <wd-cell-group :border="true"> |
| | | <wd-input |
| | | v-model="model.plateType" |
| | | label="çå
፱Ȍ" |
| | | label-width="100px" |
| | | prop="plateType" |
| | | clearable |
| | | placeholder="请è¾å
¥çå
፱Ȍ" |
| | | /> |
| | | <wd-input |
| | | v-model="model.length" |
| | | label="尺寸" |
| | | label-width="100px" |
| | | prop="length" |
| | | clearable |
| | | placeholder="请è¾å
¥å°ºå¯¸" |
| | | /> |
| | | <wd-input |
| | | v-model="model.weigth" |
| | | label="éé" |
| | | label-width="100px" |
| | | prop="weigth" |
| | | clearable |
| | | placeholder="请è¾å
¥éé" |
| | | /> |
| | | </wd-cell-group> |
| | | </wd-form> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import useFormData from "@/hooks/useFormData"; |
| | | const { form: model } = useFormData({ |
| | | plateType: undefined, // çå
፱Ȍ |
| | | length: undefined, // 尺寸 |
| | | weigth: undefined, // éé |
| | | }); |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .form_box { |
| | | } |
| | | .submit_btn { |
| | | position: absolute; |
| | | bottom: 0; |
| | | width: 100%; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="page pt-2"> |
| | | <CardTitle title="çå
·é¢ç¨" :hideAction="true" @action="addReport" /> |
| | | <view class="list"> |
| | | <wd-card v-for="(item, index) in 2" :key="index" type="rectangle" custom-class="round"> |
| | | <template #title> |
| | | <view class="flex justify-between"> |
| | | <view> |
| | | <wd-icon name="a-rootlist" color="#0D867F"></wd-icon> |
| | | <text class="text-[#252525] ml-2 font-medium">鿍ç</text> |
| | | </view> |
| | | <view class="text-[#A8A8A8]" @click="toEdit">ç¼è¾</view> |
| | | </view> |
| | | </template> |
| | | <ProductionCard :data="cardAttr" color="#0D867F" /> |
| | | </wd-card> |
| | | </view> |
| | | <wd-popup v-model="dialog.visible" position="bottom" custom-class="yl-popup"> |
| | | <view class="action px-3"> |
| | | <wd-button type="text" @click="cancel">åæ¶</wd-button> |
| | | <wd-button type="text" @click="submit">ç¡®å®</wd-button> |
| | | </view> |
| | | <PlateForm /> |
| | | </wd-popup> |
| | | <wd-toast /> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | 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"; |
| | | |
| | | const toast = useToast(); |
| | | const dialog = reactive({ |
| | | visible: false, |
| | | }); |
| | | |
| | | const cardAttr = ref<any[]>([ |
| | | { |
| | | label: "尺寸", |
| | | value: "10m", |
| | | }, |
| | | { |
| | | label: "éé", |
| | | value: "46kg", |
| | | }, |
| | | ]); |
| | | |
| | | const toEdit = () => { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/twist/receive/plate/edit", |
| | | }); |
| | | }; |
| | | |
| | | const addReport = () => { |
| | | dialog.visible = true; |
| | | }; |
| | | |
| | | const submit = () => { |
| | | toast.show("æäº¤"); |
| | | dialog.visible = false; |
| | | }; |
| | | |
| | | const cancel = () => { |
| | | toast.show("åæ¶"); |
| | | dialog.visible = false; |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .page { |
| | | background: #f3f9f8; |
| | | .list { |
| | | height: calc(100vh - 120px); |
| | | margin: 12px; |
| | | overflow: scroll; |
| | | |
| | | :deep() { |
| | | .round { |
| | | border-radius: 4px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .action { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <CardTitle title="ç»çº¿çå
·é¢ç¨" :hideAction="false" /> |
| | | <SteelCoreForm class="mx-4" /> |
| | | <view class="footer"> |
| | | <wd-button |
| | | class="submit_btn" |
| | | type="primary" |
| | | size="large" |
| | | block |
| | | :round="false" |
| | | @click="handleSubmit" |
| | | > |
| | | ä¿å |
| | | </wd-button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import CardTitle from "@/components/card-title/index.vue"; |
| | | import SteelCoreForm from "./form.vue"; |
| | | |
| | | const handleSubmit = () => {}; |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .footer { |
| | | margin: 20px 16px 0 16px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <wd-form ref="form" :model="model" class="relative form_box"> |
| | | <wd-cell-group :border="true"> |
| | | <wd-input |
| | | v-model="model.steelCoreName" |
| | | label="é¢è¯åç§°" |
| | | label-width="100px" |
| | | prop="steelCoreName" |
| | | clearable |
| | | placeholder="请è¾å
¥é¢è¯åç§°" |
| | | /> |
| | | <wd-input |
| | | v-model="model.plateNo" |
| | | label="çå·" |
| | | label-width="100px" |
| | | prop="plateNo" |
| | | clearable |
| | | placeholder="请è¾å
¥çå·" |
| | | /> |
| | | <wd-input |
| | | v-model="model.length" |
| | | label="é¿åº¦" |
| | | label-width="100px" |
| | | prop="length" |
| | | clearable |
| | | placeholder="请è¾å
¥é¿åº¦" |
| | | /> |
| | | <wd-input |
| | | v-model="model.weight" |
| | | label="éé" |
| | | label-width="100px" |
| | | prop="weight" |
| | | clearable |
| | | placeholder="请è¾å
¥éé" |
| | | /> |
| | | <wd-input |
| | | v-model="model.manufacturers" |
| | | label="åå®¶" |
| | | label-width="100px" |
| | | prop="manufacturers" |
| | | clearable |
| | | placeholder="请è¾å
¥åå®¶" |
| | | /> |
| | | </wd-cell-group> |
| | | </wd-form> |
| | | </template> |
| | | |
| | | <script lang="ts" setup> |
| | | import useFormData from "@/hooks/useFormData"; |
| | | |
| | | const { form: model } = useFormData({ |
| | | steelCoreName: undefined, // é¢è¯åç§° |
| | | plateNo: undefined, // çå· |
| | | length: undefined, // é¿åº¦ |
| | | weight: undefined, // éé |
| | | manufacturers: undefined, // åå®¶ |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .form_box { |
| | | } |
| | | .submit_btn { |
| | | position: absolute; |
| | | bottom: 0; |
| | | width: 100%; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="page pt-2"> |
| | | <CardTitle title="é¢è¯é¢ç¨" :hideAction="true" @action="addReport" /> |
| | | <view class="list"> |
| | | <wd-card v-for="(item, index) in 2" :key="index" type="rectangle" custom-class="round"> |
| | | <template #title> |
| | | <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> |
| | | </view> |
| | | <view class="text-[#A8A8A8]" @click="toEdit">ç¼è¾</view> |
| | | </view> |
| | | </template> |
| | | <ProductionCard :data="cardAttr" color="#0D867F" /> |
| | | </wd-card> |
| | | </view> |
| | | <wd-popup v-model="dialog.visible" position="bottom" custom-class="yl-popup"> |
| | | <view class="action px-3"> |
| | | <wd-button type="text" @click="cancel">åæ¶</wd-button> |
| | | <wd-button type="text" @click="submit">ç¡®å®</wd-button> |
| | | </view> |
| | | <PlateForm /> |
| | | </wd-popup> |
| | | <wd-toast /> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | 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"; |
| | | |
| | | const toast = useToast(); |
| | | const dialog = reactive({ |
| | | visible: false, |
| | | }); |
| | | |
| | | const cardAttr = ref<any[]>([ |
| | | { |
| | | label: "çå·", |
| | | value: "1902101", |
| | | }, |
| | | { |
| | | label: "é¿åº¦", |
| | | value: "46kg", |
| | | }, |
| | | { |
| | | label: "éé", |
| | | value: "10kg", |
| | | }, |
| | | { |
| | | label: undefined, |
| | | value: undefined, |
| | | }, |
| | | { |
| | | label: "åå®¶", |
| | | value: "æ±èçåéå¸è¯å¯¼æ°åå", |
| | | span: 14, |
| | | }, |
| | | ]); |
| | | |
| | | const toEdit = () => { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/twist/receive/steelCore/edit", |
| | | }); |
| | | }; |
| | | |
| | | const addReport = () => { |
| | | dialog.visible = true; |
| | | }; |
| | | |
| | | const submit = () => { |
| | | toast.show("æäº¤"); |
| | | dialog.visible = false; |
| | | }; |
| | | |
| | | const cancel = () => { |
| | | toast.show("åæ¶"); |
| | | dialog.visible = false; |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .page { |
| | | background: #f3f9f8; |
| | | .list { |
| | | height: calc(100vh - 120px); |
| | | margin: 12px; |
| | | overflow: scroll; |
| | | |
| | | :deep() { |
| | | .round { |
| | | border-radius: 4px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .action { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <CardTitle title="æ¥å·¥ä¸æ¥" :hideAction="false" /> |
| | | <TwistForm class="mx-4" /> |
| | | <view class="footer"> |
| | | <wd-button |
| | | class="submit_btn" |
| | | type="primary" |
| | | size="large" |
| | | block |
| | | :round="false" |
| | | @click="handleSubmit" |
| | | > |
| | | æ¥å·¥ |
| | | </wd-button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import CardTitle from "@/components/card-title/index.vue"; |
| | | import TwistForm from "./form.vue"; |
| | | |
| | | const handleSubmit = () => {}; |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .footer { |
| | | margin: 20px 16px 0 16px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <wd-form ref="form" :model="model" class="relative form_box"> |
| | | <wd-cell-group :border="true"> |
| | | <wd-input |
| | | v-model="model.contractNo" |
| | | label="ååå·" |
| | | label-width="100px" |
| | | prop="contractNo" |
| | | clearable |
| | | placeholder="请è¾å
¥ååå·" |
| | | /> |
| | | <wd-input |
| | | v-model="model.status" |
| | | label="ç¶æ" |
| | | label-width="100px" |
| | | prop="status" |
| | | clearable |
| | | placeholder="请è¾å
¥ç¶æ" |
| | | /> |
| | | <wd-input |
| | | v-model="model.clientName" |
| | | label="客æ·åç§°" |
| | | label-width="100px" |
| | | prop="clientName" |
| | | clearable |
| | | placeholder="请è¾å
¥å®¢æ·åç§°" |
| | | /> |
| | | <wd-input |
| | | v-model="model.workbench" |
| | | label="æºå°" |
| | | label-width="100px" |
| | | prop="workbench" |
| | | clearable |
| | | placeholder="请è¾å
¥æºå°" |
| | | /> |
| | | <wd-input |
| | | v-model="model.quality" |
| | | label="è´¨é追溯å·" |
| | | label-width="100px" |
| | | prop="quality" |
| | | clearable |
| | | placeholder="请è¾å
¥è´¨é追溯å·" |
| | | /> |
| | | <wd-input |
| | | v-model="model.specification" |
| | | label="è§æ ¼åå·" |
| | | label-width="100px" |
| | | prop="specification" |
| | | clearable |
| | | placeholder="请è¾å
¥è§æ ¼åå·" |
| | | /> |
| | | <wd-input |
| | | v-model="model.disc" |
| | | label="çé¿(m)" |
| | | label-width="100px" |
| | | prop="disc" |
| | | clearable |
| | | placeholder="请è¾å
¥çé¿" |
| | | /> |
| | | <wd-input |
| | | v-model="model.produced" |
| | | label="å·²ç产(m)" |
| | | label-width="100px" |
| | | prop="produced" |
| | | clearable |
| | | placeholder="请è¾å
¥å·²ç产" |
| | | /> |
| | | <wd-input |
| | | v-model="model.beProduced" |
| | | label="å¾
ç产(m)" |
| | | label-width="100px" |
| | | prop="beProduced" |
| | | clearable |
| | | placeholder="请è¾å
¥åä¸çé¿" |
| | | /> |
| | | </wd-cell-group> |
| | | </wd-form> |
| | | </template> |
| | | |
| | | <script lang="ts" setup> |
| | | import useFormData from "@/hooks/useFormData"; |
| | | |
| | | const { form: model } = useFormData({ |
| | | contractNo: undefined, // ååå· |
| | | status: undefined, // ç¶æ |
| | | clientName: undefined, // 客æ·åç§° |
| | | workbench: undefined, // æºå° |
| | | quality: undefined, // è´¨éè¿½æº¯å· |
| | | specification: undefined, // è§æ ¼åå· |
| | | disc: undefined, // çé¿ |
| | | produced: undefined, // å·²ç产 |
| | | beProduced: undefined, // å¾
ç产 |
| | | }); |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .form_box { |
| | | } |
| | | .submit_btn { |
| | | position: absolute; |
| | | bottom: 0; |
| | | width: 100%; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="page pt-2"> |
| | | <CardTitle title="æ¥å·¥ä¿¡æ¯" :hideAction="true" @action="addReport" /> |
| | | <view class="list"> |
| | | <wd-card v-for="(item, index) in 6" type="rectangle" custom-class="round"> |
| | | <template #title> |
| | | <view class="flex justify-between"> |
| | | <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> |
| | | </view> |
| | | <view class="text-[#A8A8A8]" @click="toEdit">ç¼è¾</view> |
| | | </view> |
| | | </template> |
| | | <ProductionCard :data="cardAttr" /> |
| | | </wd-card> |
| | | <wd-loadmore custom-class="loadmore" state="loading" /> |
| | | </view> |
| | | |
| | | <wd-popup v-model="dialog.visible" position="bottom" custom-class="yl-popup"> |
| | | <view class="action px-3"> |
| | | <wd-button type="text" @click="cancel">åæ¶</wd-button> |
| | | <wd-button type="text" @click="submit">ç¡®å®</wd-button> |
| | | </view> |
| | | <TwistForm /> |
| | | </wd-popup> |
| | | <wd-toast /> |
| | | </view> |
| | | </template> |
| | | <script setup lang="ts"> |
| | | import CardTitle from "@/components/card-title/index.vue"; |
| | | import TwistForm from "./form.vue"; |
| | | import { useToast } from "wot-design-uni"; |
| | | import ProductionCard from "../../components/ProductionCard.vue"; |
| | | |
| | | const toast = useToast(); |
| | | const dialog = reactive({ |
| | | visible: false, |
| | | }); |
| | | |
| | | const cardAttr = ref<any[]>([ |
| | | { |
| | | label: "ååå·", |
| | | value: "ht2921246", |
| | | }, |
| | | { |
| | | label: "ç¶æ", |
| | | value: "-----", |
| | | }, |
| | | { |
| | | label: "客æ·åç§°", |
| | | value: "å¤å¿è±ª", |
| | | }, |
| | | { |
| | | label: "æºå°", |
| | | value: "-----", |
| | | }, |
| | | { |
| | | label: "è§æ ¼åå·", |
| | | value: "2921246", |
| | | }, |
| | | { |
| | | label: "å·²ç产æ°é", |
| | | value: "0", |
| | | }, |
| | | { |
| | | label: "çé¿(m)", |
| | | value: "292", |
| | | }, |
| | | { |
| | | label: "è®¡åæ°é", |
| | | value: "100", |
| | | }, |
| | | { |
| | | label: "è´¨é追溯å·", |
| | | value: "JX-1838", |
| | | }, |
| | | ]); |
| | | |
| | | const toEdit = () => { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/twist/report/edit", |
| | | }); |
| | | }; |
| | | |
| | | const addReport = () => { |
| | | dialog.visible = true; |
| | | }; |
| | | |
| | | const submit = () => { |
| | | toast.show("æäº¤"); |
| | | dialog.visible = false; |
| | | }; |
| | | |
| | | const cancel = () => { |
| | | toast.show("åæ¶"); |
| | | dialog.visible = false; |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .page { |
| | | background: #f3f9f8; |
| | | |
| | | .list { |
| | | height: calc(100vh - 120px); |
| | | margin: 12px; |
| | | overflow: scroll; |
| | | |
| | | :deep() { |
| | | .round { |
| | | border-radius: 4px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .action { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <CardTitle title="ç¼è¾èªæ£" :hideAction="false" /> |
| | | <BackmanForm class="mx-4" /> |
| | | <view class="footer"> |
| | | <wd-button |
| | | class="submit_btn" |
| | | type="primary" |
| | | size="large" |
| | | block |
| | | :round="false" |
| | | @click="handleSubmit" |
| | | > |
| | | ä¿å |
| | | </wd-button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import CardTitle from "@/components/card-title/index.vue"; |
| | | import BackmanForm from "./form.vue"; |
| | | |
| | | const handleSubmit = () => {}; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .footer { |
| | | margin: 20px 16px 0 16px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <wd-form ref="form" :model="model" class="relative form_box"> |
| | | <wd-cell-group :border="true"> |
| | | <wd-input |
| | | v-model="model.selfInspectName" |
| | | label="èªæ£åç§°" |
| | | label-width="100px" |
| | | prop="selfInspectName" |
| | | clearable |
| | | placeholder="请è¾å
¥èªæ£åç§°" |
| | | /> |
| | | <wd-input |
| | | v-model="model.unit" |
| | | label="åä½" |
| | | label-width="100px" |
| | | prop="unit" |
| | | clearable |
| | | placeholder="请è¾å
¥åä½" |
| | | /> |
| | | <wd-input |
| | | v-model="model.standard" |
| | | label="æ åå¼" |
| | | label-width="100px" |
| | | prop="standard" |
| | | clearable |
| | | placeholder="请è¾å
¥æ åå¼" |
| | | /> |
| | | <wd-input |
| | | v-model="model.selfInspectValue" |
| | | label="èªæ£å¼" |
| | | label-width="100px" |
| | | prop="selfInspectValue" |
| | | clearable |
| | | placeholder="请è¾å
¥èªæ£å¼" |
| | | /> |
| | | <wd-input |
| | | v-model="model.selfInspectResult" |
| | | label="èªæ£ç»æ" |
| | | label-width="100px" |
| | | prop="selfInspectResult" |
| | | clearable |
| | | placeholder="请è¾å
¥èªæ£ç»æ" |
| | | /> |
| | | </wd-cell-group> |
| | | </wd-form> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import useFormData from "@/hooks/useFormData"; |
| | | const { form: model } = useFormData({ |
| | | selfInspectName: undefined, // èªæ£åç§° |
| | | unit: undefined, // åä½ |
| | | standard: undefined, // æ åå¼ |
| | | selfInspectValue: undefined, // èªæ£å¼ |
| | | selfInspectResult: undefined, // èªæ£å¼ |
| | | }); |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .form_box { |
| | | } |
| | | .submit_btn { |
| | | position: absolute; |
| | | bottom: 0; |
| | | width: 100%; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="page pt-2"> |
| | | <CardTitle title="ç»çº¿èªæ£" :hideAction="true" @action="addReport" /> |
| | | <view class="list"> |
| | | <wd-card type="rectangle" custom-class="round"> |
| | | <template #title> |
| | | <view class="flex justify-between"> |
| | | <view> |
| | | <wd-icon name="a-rootlist" color="#0D867F"></wd-icon> |
| | | <text class="text-[#252525] ml-2 font-medium">èªæ£é¡¹ç®åç§°</text> |
| | | </view> |
| | | <view class="text-[#A8A8A8]" @click="toEdit">ç¼è¾</view> |
| | | </view> |
| | | </template> |
| | | <ProductionCard :data="cardAttr" color="#0D867F" /> |
| | | </wd-card> |
| | | </view> |
| | | <wd-popup v-model="dialog.visible" position="bottom" custom-class="yl-popup"> |
| | | <view class="action px-3"> |
| | | <wd-button type="text" @click="cancel">åæ¶</wd-button> |
| | | <wd-button type="text" @click="submit">ç¡®å®</wd-button> |
| | | </view> |
| | | <SelfInspectForm /> |
| | | </wd-popup> |
| | | <wd-toast /> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import CardTitle from "@/components/card-title/index.vue"; |
| | | import ProductionCard from "../../components/ProductionCard.vue"; |
| | | import { useToast } from "wot-design-uni"; |
| | | import SelfInspectForm from "./form.vue"; |
| | | |
| | | const toast = useToast(); |
| | | const dialog = reactive({ |
| | | visible: false, |
| | | }); |
| | | const cardAttr = ref<any[]>([ |
| | | { |
| | | label: "åä½", |
| | | value: "nΩ·m", |
| | | }, |
| | | { |
| | | label: "æ åå¼", |
| | | value: "1246", |
| | | }, |
| | | { |
| | | label: "èªæ£å¼", |
| | | value: "1245", |
| | | }, |
| | | { |
| | | label: "èªæ£ç»æ", |
| | | value: "ä¸åæ ¼", |
| | | color: "#FF1E1E", |
| | | }, |
| | | ]); |
| | | const addReport = () => { |
| | | dialog.visible = true; |
| | | }; |
| | | |
| | | const toEdit = () => { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/twist/selfInspect/edit", |
| | | }); |
| | | }; |
| | | const submit = () => { |
| | | toast.show("æäº¤"); |
| | | dialog.visible = false; |
| | | }; |
| | | |
| | | const cancel = () => { |
| | | toast.show("åæ¶"); |
| | | dialog.visible = false; |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .page { |
| | | background: #f3f9f8; |
| | | .list { |
| | | height: calc(100vh - 120px); |
| | | margin: 12px; |
| | | overflow: scroll; |
| | | |
| | | :deep() { |
| | | .round { |
| | | border-radius: 4px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .action { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <CardTitle title="ç¼è¾èªæ£" :hideAction="false" /> |
| | | <BackmanForm class="mx-4" /> |
| | | <view class="footer"> |
| | | <wd-button |
| | | class="submit_btn" |
| | | type="primary" |
| | | size="large" |
| | | block |
| | | :round="false" |
| | | @click="handleSubmit" |
| | | > |
| | | ä¿å |
| | | </wd-button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import CardTitle from "@/components/card-title/index.vue"; |
| | | import BackmanForm from "./form.vue"; |
| | | |
| | | const handleSubmit = () => {}; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .footer { |
| | | margin: 20px 16px 0 16px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <wd-form ref="form" :model="model" class="relative form_box"> |
| | | <wd-cell-group :border="true"> |
| | | <wd-input |
| | | v-model="model.workbench" |
| | | label="æå·¥åç§°" |
| | | label-width="100px" |
| | | prop="workbench" |
| | | clearable |
| | | placeholder="请è¾å
¥æå·¥åç§°" |
| | | /> |
| | | <wd-input |
| | | v-model="model.poleNo" |
| | | label="æå·" |
| | | label-width="100px" |
| | | prop="poleNo" |
| | | clearable |
| | | placeholder="请è¾å
¥æå·" |
| | | /> |
| | | <wd-input |
| | | v-model="model.unit" |
| | | label="åä½" |
| | | label-width="100px" |
| | | prop="unit" |
| | | clearable |
| | | placeholder="请è¾å
¥åä½" |
| | | /> |
| | | <wd-input |
| | | v-model="model.poleWeight" |
| | | label="æé" |
| | | label-width="100px" |
| | | prop="poleWeight" |
| | | clearable |
| | | placeholder="请è¾å
¥æé" |
| | | /> |
| | | <wd-input |
| | | v-model="model.useWeight" |
| | | label="使ç¨éé" |
| | | label-width="100px" |
| | | prop="useWeight" |
| | | clearable |
| | | placeholder="请è¾å
¥ä½¿ç¨éé" |
| | | /> |
| | | </wd-cell-group> |
| | | </wd-form> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import useFormData from "@/hooks/useFormData"; |
| | | const { form: model } = useFormData({ |
| | | backmanName: undefined, // æå·¥åç§° |
| | | unit: undefined, // åä½ |
| | | num: undefined, // æ°é |
| | | caller: undefined, // æ¥å·¥äºº |
| | | callerDate: undefined, // æ¥å·¥æ¥æ |
| | | }); |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .form_box { |
| | | } |
| | | .submit_btn { |
| | | position: absolute; |
| | | bottom: 0; |
| | | width: 100%; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="page pt-2"> |
| | | <CardTitle title="æå·¥ä¿¡æ¯" :hideAction="true" @action="addReport" /> |
| | | <view class="list"> |
| | | <wd-card type="rectangle" custom-class="round"> |
| | | <template #title> |
| | | <view class="flex justify-between"> |
| | | <view> |
| | | <wd-icon name="a-rootlist" color="#0D867F"></wd-icon> |
| | | <text class="text-[#252525] ml-2 font-medium">æå·¥é¡¹ç®åç§°</text> |
| | | </view> |
| | | <view class="text-[#A8A8A8]" @click="toEdit">ç¼è¾</view> |
| | | </view> |
| | | </template> |
| | | <ProductionCard :data="cardAttr" color="#0D867F" /> |
| | | </wd-card> |
| | | </view> |
| | | <wd-popup v-model="dialog.visible" position="bottom" custom-class="yl-popup"> |
| | | <view class="action px-3"> |
| | | <wd-button type="text" @click="cancel">åæ¶</wd-button> |
| | | <wd-button type="text" @click="submit">ç¡®å®</wd-button> |
| | | </view> |
| | | <BackmanForm /> |
| | | </wd-popup> |
| | | <wd-toast /> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import CardTitle from "@/components/card-title/index.vue"; |
| | | import ProductionCard from "../components/ProductionCard.vue"; |
| | | import { useToast } from "wot-design-uni"; |
| | | import BackmanForm from "./form.vue"; |
| | | |
| | | const toast = useToast(); |
| | | const dialog = reactive({ |
| | | visible: false, |
| | | }); |
| | | |
| | | const cardAttr = ref<any[]>([ |
| | | { |
| | | label: "åä½", |
| | | value: "nΩ·m", |
| | | }, |
| | | { |
| | | label: "å®é¢", |
| | | value: "1246", |
| | | }, |
| | | { |
| | | label: "æ°é", |
| | | value: "4", |
| | | }, |
| | | { |
| | | label: "éé¢", |
| | | value: "æ¥ç", |
| | | }, |
| | | { |
| | | label: "æ¥å·¥äºº", |
| | | value: "é·è¿å®", |
| | | }, |
| | | { |
| | | label: "æ¥æ", |
| | | value: "2022-05-17", |
| | | }, |
| | | ]); |
| | | |
| | | const toEdit = () => { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/backman/edit", |
| | | }); |
| | | }; |
| | | |
| | | const addReport = () => { |
| | | dialog.visible = true; |
| | | }; |
| | | |
| | | const submit = () => { |
| | | toast.show("æäº¤"); |
| | | dialog.visible = false; |
| | | }; |
| | | |
| | | const cancel = () => { |
| | | toast.show("åæ¶"); |
| | | dialog.visible = false; |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .page { |
| | | background: #f3f9f8; |
| | | .list { |
| | | height: calc(100vh - 120px); |
| | | margin: 12px; |
| | | overflow: scroll; |
| | | |
| | | :deep() { |
| | | .round { |
| | | border-radius: 4px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .action { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view> |
| | | <CardTitle title="ç¼è¾æä¸èªæ£" :hideAction="false" /> |
| | | <SelfInspectForm class="mx-4" /> |
| | | <view class="footer"> |
| | | <wd-button |
| | | class="submit_btn" |
| | | type="primary" |
| | | size="large" |
| | | block |
| | | :round="false" |
| | | @click="handleSubmit" |
| | | > |
| | | ä¿åèªæ£ä¿¡æ¯ |
| | | </wd-button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import CardTitle from "@/components/card-title/index.vue"; |
| | | import SelfInspectForm from "./form.vue"; |
| | | |
| | | const handleSubmit = () => {}; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .footer { |
| | | margin: 20px 16px 0 16px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <wd-form ref="form" :model="model" class="relative form_box"> |
| | | <wd-cell-group :border="true"> |
| | | <wd-input |
| | | v-model="model.selfInspectName" |
| | | label="èªæ£åç§°" |
| | | label-width="100px" |
| | | prop="selfInspectName" |
| | | clearable |
| | | placeholder="请è¾å
¥èªæ£åç§°" |
| | | /> |
| | | <wd-input |
| | | v-model="model.unit" |
| | | label="åä½" |
| | | label-width="100px" |
| | | prop="unit" |
| | | clearable |
| | | placeholder="请è¾å
¥åä½" |
| | | /> |
| | | <wd-input |
| | | v-model="model.standard" |
| | | label="æ åå¼" |
| | | label-width="100px" |
| | | prop="standard" |
| | | clearable |
| | | placeholder="请è¾å
¥æ åå¼" |
| | | /> |
| | | <wd-input |
| | | v-model="model.selfInspectValue" |
| | | label="èªæ£å¼" |
| | | label-width="100px" |
| | | prop="selfInspectValue" |
| | | clearable |
| | | placeholder="请è¾å
¥èªæ£å¼" |
| | | /> |
| | | <wd-input |
| | | v-model="model.selfInspectResult" |
| | | label="èªæ£ç»æ" |
| | | label-width="100px" |
| | | prop="selfInspectResult" |
| | | clearable |
| | | placeholder="请è¾å
¥èªæ£ç»æ" |
| | | /> |
| | | </wd-cell-group> |
| | | </wd-form> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import useFormData from "@/hooks/useFormData"; |
| | | const { form: model } = useFormData({ |
| | | selfInspectName: undefined, // èªæ£åç§° |
| | | unit: undefined, // åä½ |
| | | standard: undefined, // æ åå¼ |
| | | selfInspectValue: undefined, // èªæ£å¼ |
| | | selfInspectResult: undefined, // èªæ£å¼ |
| | | }); |
| | | </script> |
| | | <style lang="scss" scoped> |
| | | .form_box { |
| | | } |
| | | .submit_btn { |
| | | position: absolute; |
| | | bottom: 0; |
| | | width: 100%; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <view class="page pt-2"> |
| | | <CardTitle title="æä¸èªæ£" :hideAction="true" @action="addReport" /> |
| | | <view class="list"> |
| | | <wd-card type="rectangle" custom-class="round"> |
| | | <template #title> |
| | | <view class="flex justify-between"> |
| | | <view> |
| | | <wd-icon name="a-rootlist" color="#0D867F"></wd-icon> |
| | | <text class="text-[#252525] ml-2 font-medium">èªæ£é¡¹ç®åç§°</text> |
| | | </view> |
| | | <view class="text-[#A8A8A8]" @click="toEdit">ç¼è¾</view> |
| | | </view> |
| | | </template> |
| | | <ProductionCard :data="cardAttr" color="#0D867F" /> |
| | | </wd-card> |
| | | </view> |
| | | <wd-popup v-model="dialog.visible" position="bottom" custom-class="yl-popup"> |
| | | <view class="action px-3"> |
| | | <wd-button type="text" @click="cancel">åæ¶</wd-button> |
| | | <wd-button type="text" @click="submit">ç¡®å®</wd-button> |
| | | </view> |
| | | <SelfInspectForm /> |
| | | </wd-popup> |
| | | <wd-toast /> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import CardTitle from "@/components/card-title/index.vue"; |
| | | import ProductionCard from "../components/ProductionCard.vue"; |
| | | import { useToast } from "wot-design-uni"; |
| | | import SelfInspectForm from "./form.vue"; |
| | | |
| | | const toast = useToast(); |
| | | const dialog = reactive({ |
| | | visible: false, |
| | | }); |
| | | const cardAttr = ref<any[]>([ |
| | | { |
| | | label: "åä½", |
| | | value: "nΩ·m", |
| | | }, |
| | | { |
| | | label: "æ åå¼", |
| | | value: "1246", |
| | | }, |
| | | { |
| | | label: "èªæ£å¼", |
| | | value: "1245", |
| | | }, |
| | | { |
| | | label: "èªæ£ç»æ", |
| | | value: "ä¸åæ ¼", |
| | | color: "#FF1E1E", |
| | | }, |
| | | ]); |
| | | const addReport = () => { |
| | | dialog.visible = true; |
| | | }; |
| | | |
| | | const toEdit = () => { |
| | | uni.navigateTo({ |
| | | url: "/pages/production/selfInspect/edit", |
| | | }); |
| | | }; |
| | | const submit = () => { |
| | | toast.show("æäº¤"); |
| | | dialog.visible = false; |
| | | }; |
| | | |
| | | const cancel = () => { |
| | | toast.show("åæ¶"); |
| | | dialog.visible = false; |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .page { |
| | | background: #f3f9f8; |
| | | .list { |
| | | height: calc(100vh - 120px); |
| | | margin: 12px; |
| | | overflow: scroll; |
| | | |
| | | :deep() { |
| | | .round { |
| | | border-radius: 4px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | .action { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | </style> |