1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228 |
- <template>
- <view>
- <view class="body">
- 机器编码:<input class="input" v-model="coding" disabled />
- </view>
- <uni-collapse>
- <uni-collapse-item title="电柜">
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:加连接线
- </view>
- <view class="body">
- 状态:{{aStatus}}
- </view>
- <view class="body">
- 安装人:{{aProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{aProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('加连接线','1')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('加连接线','1')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:航插线,驱动器线
- </view>
- <view class="body">
- 状态:{{bStatus}}
- </view>
- <view class="body">
- 安装人:{{bProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{bProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('航插线,驱动器线','2')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('航插线,驱动器线','2')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:线槽,元器件
- </view>
- <view class="body">
- 状态:{{cStatus}}
- </view>
- <view class="body">
- 安装人:{{cProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{cProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('线槽,元器件','3')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('线槽,元器件','3')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:整柜自检
- </view>
- <view class="body">
- 状态:{{dStatus}}
- </view>
- <view class="body">
- 安装人:{{dProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{dProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('整柜自检','4')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('整柜自检','4')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="line"></view>
- <view class="line"></view>
- </uni-collapse-item>
- <uni-collapse-item title="总装">
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:压端子
- </view>
- <view class="body">
- 状态:{{eStatus}}
- </view>
- <view class="body">
- 安装人:{{eProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{eProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('压端子','5')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('压端子','5')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:远程模块
- </view>
- <view class="body">
- 状态:{{fStatus}}
- </view>
- <view class="body">
- 安装人:{{fProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{fProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('远程模块','6')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('远程模块','6')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:固定UPS
- </view>
- <view class="body">
- 状态:{{gStatus}}
- </view>
- <view class="body">
- 安装人:{{gProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{gProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('固定UPS','7')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('固定UPS','7')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:打玻璃胶
- </view>
- <view class="body">
- 状态:{{hStatus}}
- </view>
- <view class="body">
- 安装人:{{hProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{hProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('打玻璃胶','8')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('打玻璃胶','8')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:散热模块
- </view>
- <view class="body">
- 状态:{{iStatus}}
- </view>
- <view class="body">
- 安装人:{{iProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{iProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('散热模块','9')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('散热模块','9')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:机械手
- </view>
- <view class="body">
- 状态:{{jStatus}}
- </view>
- <view class="body">
- 安装人:{{jProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{jProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('机械手','10')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('机械手','10')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:贴胶条
- </view>
- <view class="body">
- 状态:{{kStatus}}
- </view>
- <view class="body">
- 安装人:{{kProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{kProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('贴胶条','11')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('贴胶条','11')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:总装备料
- </view>
- <view class="body">
- 状态:{{lStatus}}
- </view>
- <view class="body">
- 安装人:{{lProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{lProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('总装备料','12')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('总装备料','12')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:灯板
- </view>
- <view class="body">
- 状态:{{mStatus}}
- </view>
- <view class="body">
- 安装人:{{mProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{mProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('灯板','13')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('灯板','13')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:右侧屏幕门
- </view>
- <view class="body">
- 状态:{{nStatus}}
- </view>
- <view class="body">
- 安装人:{{nProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{nProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('右侧屏幕门','14')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('右侧屏幕门','14')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:左侧手动门
- </view>
- <view class="body">
- 状态:{{oStatus}}
- </view>
- <view class="body">
- 安装人:{{oProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{oProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('左侧手动门','15')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('左侧手动门','15')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:前门锁
- </view>
- <view class="body">
- 状态:{{pStatus}}
- </view>
- <view class="body">
- 安装人:{{pProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{pProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('前门锁','16')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('前门锁','16')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:风扇(大小)
- </view>
- <view class="body">
- 状态:{{qStatus}}
- </view>
- <view class="body">
- 安装人:{{qProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{qProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('风扇(大小)','17')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('风扇(大小)','17')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:后门锁
- </view>
- <view class="body">
- 状态:{{rStatus}}
- </view>
- <view class="body">
- 安装人:{{rProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{rProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('后门锁','18')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('后门锁','18')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="line"></view>
- <view class="line"></view>
- </uni-collapse-item>
- <uni-collapse-item title="调试">
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:机器上电调参数
- </view>
- <view class="body">
- 状态:{{sStatus}}
- </view>
- <view class="body">
- 安装人:{{sProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{sProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('机器上电调参数','19')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('机器上电调参数','19')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:调试自动门
- </view>
- <view class="body">
- 状态:{{tStatus}}
- </view>
- <view class="body">
- 安装人:{{tProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{tProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('调试自动门','20')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('调试自动门','20')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:调试机器
- </view>
- <view class="body">
- 状态:{{uStatus}}
- </view>
- <view class="body">
- 安装人:{{uProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{uProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('调试机器','21')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('调试机器','21')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="line"></view>
- <view class="line"></view>
- </uni-collapse-item>
- <uni-collapse-item title="打包">
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:装糖盒
- </view>
- <view class="body">
- 状态:{{vStatus}}
- </view>
- <view class="body">
- 安装人:{{vProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{vProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('装糖盒','22')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('装糖盒','22')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:上板金类
- </view>
- <view class="body">
- 状态:{{wStatus}}
- </view>
- <view class="body">
- 安装人:{{wProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{wProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('上板金类','23')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('上板金类','23')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:打木架
- </view>
- <view class="body">
- 状态:{{xStatus}}
- </view>
- <view class="body">
- 安装人:{{xProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{xProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('打木架','24')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('打木架','24')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:扎线
- </view>
- <view class="body">
- 状态:{{yStatus}}
- </view>
- <view class="body">
- 安装人:{{yProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{yProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('扎线','25')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('扎线','25')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:贴帖子
- </view>
- <view class="body">
- 状态:{{zStatus}}
- </view>
- <view class="body">
- 安装人:{{zProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{zProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('贴帖子','26')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('贴帖子','26')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:清洁机器
- </view>
- <view class="body">
- 状态:{{abStatus}}
- </view>
- <view class="body">
- 安装人:{{abProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{abProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('清洁机器','27')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('清洁机器','27')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:处理问题
- </view>
- <view class="body">
- 状态:{{acStatus}}
- </view>
- <view class="body">
- 安装人:{{acProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{acProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('处理问题','28')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('处理问题','28')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:配放物料
- </view>
- <view class="body">
- 状态:{{adStatus}}
- </view>
- <view class="body">
- 安装人:{{adProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{adProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('配放物料','29')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('配放物料','29')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="modules">
- <view class="body">
- 名称:打包备料
- </view>
- <view class="body">
- 状态:{{aeStatus}}
- </view>
- <view class="body">
- 安装人:{{aeProducePersonnel}}
- </view>
- <view class="body">
- 安装时间:{{aeProduceDate}}
- </view>
- <view class="modulesButton" v-show="buttonShow">
- <button type="primary" @click="update('打包备料','30')" class="button1">
- <p class="p">更新</p>
- </button>
- <button type="primary" @click="anzhuang('打包备料','30')" class="button1">
- <p class="p">安装</p>
- </button>
- </view>
- </view>
- <view class="line"></view>
- <view class="line"></view>
- <view class="line"></view>
- </uni-collapse-item>
- </uni-collapse>
- </view>
- </template>
- <script>
- import uniCollapse from '@/components/uni-collapse/uni-collapse.vue'
- import uniCollapseItem from '@/components/uni-collapse-item/uni-collapse-item.vue'
- export default {
- data() {
- return {
- "coding": '',
- "buttonShow": true,
- "type": '',
- "aStatus": '',
- "aProducePersonnel": '',
- "aProduceDate": '',
- "bStatus": '',
- "bProducePersonnel": '',
- "bProduceDate": '',
- "cStatus": '',
- "cProducePersonnel": '',
- "cProduceDate": '',
- "dStatus": '',
- "dProducePersonnel": '',
- "dProduceDate": '',
- "eStatus": '',
- "eProducePersonnel": '',
- "eProduceDate": '',
- "fStatus": '',
- "fProducePersonnel": '',
- "fProduceDate": '',
- "gStatus": '',
- "gProducePersonnel": '',
- "gProduceDate": '',
- "hStatus": '',
- "hProducePersonnel": '',
- "hProduceDate": '',
- "iStatus": '',
- "iProducePersonnel": '',
- "iProduceDate": '',
- "jStatus": '',
- "jProducePersonnel": '',
- "jProduceDate": '',
- "kStatus": '',
- "kProducePersonnel": '',
- "kProduceDate": '',
- "lStatus": '',
- "lProducePersonnel": '',
- "lProduceDate": '',
- "mStatus": '',
- "mProducePersonnel": '',
- "mProduceDate": '',
- "nStatus": '',
- "nProducePersonnel": '',
- "nProduceDate": '',
- "oStatus": '',
- "oProducePersonnel": '',
- "oProduceDate": '',
- "pStatus": '',
- "pProducePersonnel": '',
- "pProduceDate": '',
- "qStatus": '',
- "qProducePersonnel": '',
- "qProduceDate": '',
- "rStatus": '',
- "rProducePersonnel": '',
- "rProduceDate": '',
- "sStatus": '',
- "sProducePersonnel": '',
- "sProduceDate": '',
- "tStatus": '',
- "tProducePersonnel": '',
- "tProduceDate": '',
- "uStatus": '',
- "uProducePersonnel": '',
- "uProduceDate": '',
- "vStatus": '',
- "vProducePersonnel": '',
- "vProduceDate": '',
- "wStatus": '',
- "wProducePersonnel": '',
- "wProduceDate": '',
- "xStatus": '',
- "xProducePersonnel": '',
- "xProduceDate": '',
- "yStatus": '',
- "yProducePersonnel": '',
- "yProduceDate": '',
- "zStatus": '',
- "zProducePersonnel": '',
- "zProduceDate": '',
- "abStatus": '',
- "abProducePersonnel": '',
- "abProduceDate": '',
- "acStatus": '',
- "acProducePersonnel": '',
- "acProduceDate": '',
- "adStatus": '',
- "adProducePersonnel": '',
- "adProduceDate": '',
- "aeStatus": '',
- "aeProducePersonnel": '',
- "aeProduceDate": '',
- }
- },
- onShow() {
- this.getList();
- },
- onLoad: function(option) {
- const item = JSON.parse(decodeURIComponent(option.item));
- this.coding = item.coding;
- var type = item.type;
- this.type = type;
- if (type == 'get') {
- this.buttonShow = false;
- }
- console.log(item)
- },
- methods: {
- anzhuang(name,remark) {
- console.log("anzhuang" + name)
- var token = uni.getStorageSync("token");
- var producePersonnel = uni.getStorageSync("name");
- uni.request({
- url: this.serverurl + "/TWorkingProcedure/add",
- method: "POST",
- data: {
- "machineCoding": this.coding,
- "name": name,
- "producePersonnel": producePersonnel,
- "remark":remark
- },
- header: {
- 'token': token
- },
- success: (Result) => {
- var res = Result;
- if (res.data.code == true) {
- this.getList();
- }
- uni.showModal({
- title: '提示',
- content: res.data.message,
- });
- }
- });
- },
- update(name,remark) {
- console.log("update" + name)
- var token = uni.getStorageSync("token");
- var producePersonnel = uni.getStorageSync("name");
- uni.request({
- url: this.serverurl + "/TWorkingProcedure/update",
- method: "POST",
- data: {
- "machineCoding": this.coding,
- "name": name,
- "producePersonnel": producePersonnel,
- "remark":remark
- },
- header: {
- 'token': token
- },
- success: (Result) => {
- var res = Result;
- if (res.data.code == true) {
- this.getList();
- }
- uni.showModal({
- title: '提示',
- content: res.data.message,
- });
- }
- });
- },
- getList() {
- var token = uni.getStorageSync("token");
- uni.request({
- url: this.serverurl + "/TWorkingProcedure/list",
- method: "POST",
- data: {
- "machineCoding": this.coding
- },
- header: {
- 'token': token
- },
- success: (Result) => {
- var res = Result;
- if (res.data.code == true) {
- var list = res.data.data;
- for (var i = 0; i < list.length; i++) {
- var date = list[i];
- var remark = date.remark;
- if (remark==='1') {
- this.aProduceDate = date.produceDate;
- if(date.status=='1'){
- this.aStatus = "已安装";
- }
- this.aProducePersonnel = date.producePersonnel;
- }
- if (remark == '2') {
- this.bProduceDate = date.produceDate;
- if(date.status=='1'){
- this.bStatus = "已安装";
- };
- this.bProducePersonnel = date.producePersonnel;
- }
- if (remark == '3') {
- this.cProduceDate = date.produceDate;
- if(date.status=='1'){
- this.cStatus = "已安装";
- };
- this.cProducePersonnel = date.producePersonnel;
- }
- if (remark == '4') {
- this.dProduceDate = date.produceDate;
- if(date.status=='1'){
- this.dStatus = "已安装";
- };
- this.dProducePersonnel = date.producePersonnel;
- }
- if (remark == '5') {
- this.eProduceDate = date.produceDate;
- if(date.status=='1'){
- this.eStatus = "已安装";
- };
- this.eProducePersonnel = date.producePersonnel;
- }
- if (remark == '6') {
- this.fProduceDate = date.produceDate;
- if(date.status=='1'){
- this.fStatus = "已安装";
- };
- this.fProducePersonnel = date.producePersonnel;
- }
- if (remark == '7') {
- this.gProduceDate = date.produceDate;
- if(date.status=='1'){
- this.gStatus = "已安装";
- };
- this.gProducePersonnel = date.producePersonnel;
- }
- if (remark == '8') {
- this.hProduceDate = date.produceDate;
- if(date.status=='1'){
- this.hStatus = "已安装";
- };
- this.hProducePersonnel = date.producePersonnel;
- }
- if (remark == '9') {
- this.iProduceDate = date.produceDate;
- if(date.status=='1'){
- this.iStatus = "已安装";
- };
- this.iProducePersonnel = date.producePersonnel;
- }
- if (remark == '10') {
- this.jProduceDate = date.produceDate;
- if(date.status=='1'){
- this.jStatus = "已安装";
- };
- this.jProducePersonnel = date.producePersonnel;
- }
- if (remark == '11') {
- this.kProduceDate = date.produceDate;
- if(date.status=='1'){
- this.kStatus = "已安装";
- };
- this.kProducePersonnel = date.producePersonnel;
- }
- if (remark == '12') {
- this.lProduceDate = date.produceDate;
- if(date.status=='1'){
- this.lStatus = "已安装";
- };
- this.lProducePersonnel = date.producePersonnel;
- }
- if (remark == '13') {
- this.mProduceDate = date.produceDate;
- if(date.status=='1'){
- this.mStatus = "已安装";
- };
- this.mProducePersonnel = date.producePersonnel;
- }
- if (remark == '14') {
- this.nProduceDate = date.produceDate;
- if(date.status=='1'){
- this.nStatus = "已安装";
- };
- this.nProducePersonnel = date.producePersonnel;
- }
- if (remark == '15') {
- this.oProduceDate = date.produceDate;
- if(date.status=='1'){
- this.oStatus = "已安装";
- };
- this.oProducePersonnel = date.producePersonnel;
- }
- if (remark == '16') {
- this.pProduceDate = date.produceDate;
- if(date.status=='1'){
- this.pStatus = "已安装";
- };
- this.pProducePersonnel = date.producePersonnel;
- }
- if (remark == '17') {
- this.qProduceDate = date.produceDate;
- if(date.status=='1'){
- this.qStatus = "已安装";
- };
- this.qProducePersonnel = date.producePersonnel;
- }
- if (remark == '18') {
- this.rProduceDate = date.produceDate;
- if(date.status=='1'){
- this.rStatus ="已安装";
- };
- this.rProducePersonnel = date.producePersonnel;
- }
- if (remark == '19') {
- this.sProduceDate = date.produceDate;
- if(date.status=='1'){
- this.sStatus = "已安装";
- };
- this.sProducePersonnel = date.producePersonnel;
- }
- if (remark == '20') {
- this.tProduceDate = date.produceDate;
- if(date.status=='1'){
- this.tStatus = "已安装";
- };
- this.tProducePersonnel = date.producePersonnel;
- }
- if (remark == '21') {
- this.uProduceDate = date.produceDate;
- if(date.status=='1'){
- this.uStatus = "已安装";
- };
- this.uProducePersonnel = date.producePersonnel;
- }
- if (remark == '22') {
- this.vProduceDate = date.produceDate;
- if(date.status=='1'){
- this.vStatus = "已安装";
- };
- this.vProducePersonnel = date.producePersonnel;
- }
- if (remark == '23') {
- this.wProduceDate = date.produceDate;
- if(date.status=='1'){
- this.wStatus ="已安装";
- };
- this.wProducePersonnel = date.producePersonnel;
- }
- if (remark == '24') {
- this.xProduceDate = date.produceDate;
- if(date.status=='1'){
- this.xStatus = "已安装";
- };
- this.xProducePersonnel = date.producePersonnel;
- }
- if (remark == '25') {
- this.yProduceDate = date.produceDate;
- if(date.status=='1'){
- this.yStatus = "已安装";
- };
- this.yProducePersonnel = date.producePersonnel;
- }
- if (remark == '26') {
- this.zProduceDate = date.produceDate;
- if(date.status=='1'){
- this.zStatus ="已安装";
- };
- this.zProducePersonnel = date.producePersonnel;
- }
- if (remark == '27') {
- this.abProduceDate = date.produceDate;
- if(date.status=='1'){
- this.abStatus = "已安装";
- };
- this.abProducePersonnel = date.producePersonnel;
- }
- if (remark == '28') {
- this.acProduceDate = date.produceDate;
- if(date.status=='1'){
- this.acStatus = "已安装";
- };
- this.acProducePersonnel = date.producePersonnel;
- }
- if (remark == '29') {
- this.adProduceDate = date.produceDate;
- if(date.status=='1'){
- this.adStatus = "已安装";
- };
- this.adProducePersonnel = date.producePersonnel;
- }
- if (remark == '30') {
- this.aeProduceDate = date.produceDate;
- if(date.status=='1'){
- this.aeStatus = "已安装";
- };
- this.aeProducePersonnel = date.producePersonnel;
- }
- }
- }
- // else {
- // uni.showModal({
- // title: '提示',
- // content: "未添加工序",
- // });
- // }
- }
- });
- }
- }
- }
- </script>
- <style>
- .body {
- background-color: #FFFFFF;
- padding: 20upx 20upx 20upx 20upx;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- }
- .title {
- font-size: 35upx;
- }
- .input {
- /* padding: 10upx 20upx 10upx 0upx; */
- padding: 0 10upx;
- /* padding-top: 10upx; */
- background-color: #FFFFFF;
- width: 400upx;
- height: 50upx;
- box-shadow: 0upx 0upx 20upx #D3D3D3;
- border-radius: 5upx;
- }
- .line {
- background: #ECECEC;
- height: 10upx;
- }
- .modulesButton {
- background-color: #FFFFFF;
- padding: 20upx 20upx 20upx 20upx;
- display: flex;
- width: 250upx;
- margin: auto;
- flex-direction: row;
- justify-content: flex-start;
- }
- .button1 {
- margin: auto;
- width: 75upx;
- height: 50upx;
- }
- .p {
- /* #ifdef H5 */
- top: -13%;
- /* #endif */
- width: 50upx;
- height: 30upx;
- font-size: 25upx;
- padding-right: 9upx;
- padding-top: 6upx;
- /* #ifndef H5 */
- /* padding-top: 10upx; */
- /* #endif */
- position: absolute;
- /* 水平居中 */
- left: 50%;
- -webkit-transform: translateX(-50%);
- transform: translateX(-50%);
- }
- </style>
|