123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227 |
- <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: res.data.message,
- });
- }
- }
- });
- }
- }
- }
- </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-left: 20upx;
- 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>
|