<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>
