huangli865118801 4 years ago
parent
commit
88941208f0
  1. 51
      pages/rawMaterialInfo/index.scss
  2. 59
      pages/rawMaterialInfo/rawMaterialInfo.vue

51
pages/rawMaterialInfo/index.scss

@ -124,3 +124,54 @@
} }
} }
} }
.cc-card{
border: 1upx solid #C0C0C0;
width: 720upx;
margin: auto;
margin-top: 20upx;
padding-top: 10upx;
padding-bottom: 10upx;
}
.btitle-cc{
width: 720upx;
margin: auto;
@include fonts(26upx,#666)
}
.pd-ul{
@include flex(center,flex-start);
margin-top: 20upx;
.pd-title{
@include fonts(24upx,#666)
}
.pd-list{
@include flex(center,flex-start);
margin-left: 40upx;
image{
@include wh(33upx,33upx);
}
text{
@include fonts(24upx,#666);
margin-left: 10upx;
}
}
}
.cc-input-ul{
@include flex(center,flex-start);
flex-wrap: wrap;
.cc-input-list{
@include flex(center,flex-start);
.title{
@include fonts(24upx,#666)
}
.cc-input{
input{
width: 100upx;
border: 1upx solid #C0C0C0;
border-radius: 10upx;
font-size: 24upx;
}
}
}
}

59
pages/rawMaterialInfo/rawMaterialInfo.vue

@ -41,14 +41,32 @@
</view> </view>
</view> </view>
</view> </view>
<view class="contet-up-card" style="margin-top: 20upx;"> <view class="contet-up-card" style="margin-top: 20upx;">
<view class="contet-up-card-cont"> <view class="btitle-cc">尺寸检测数据</view>
<!-- <view class="contet-up-card-cont">
<view class="contet-up-card-cont-list" v-for="(item,key,index) in froms.dimensional_inspection[0]" <view class="contet-up-card-cont-list" v-for="(item,key,index) in froms.dimensional_inspection[0]"
:key="index"> :key="index">
<view>尺寸检测数据:</view> <view>尺寸检测数据:</view>
<input v-model="froms.dimensional_inspection[0][key]" type="number" /> <input v-model="froms.dimensional_inspection[0][key]" type="number" />
</view> </view>
</view> -->
<view class="cc-card">
<view class="cc-input-ul">
<view class="cc-input-list">
<view class="title">rule</view>
<view class="cc-input">
<input type="number" />
</view>
</view>
</view>
<view class="pd-ul">
<view class="pd-title">判定</view>
<view class="pd-list">
<image src="../../static/xz.png"></image>
<text>OK</text>
</view>
</view>
</view> </view>
</view> </view>
<view class="testing"> <view class="testing">
@ -60,7 +78,7 @@
</view> </view>
<view class="testing-list"> <view class="testing-list">
<view class="testing-list-title">检测工具:</view> <view class="testing-list-title">检测工具:</view>
<input v-model="item.check_tool" /> <input :disabled="true" v-model="item.check_tool" />
</view> </view>
<view class="testing-list"> <view class="testing-list">
<view class="testing-list-title">抽样标准:</view> <view class="testing-list-title">抽样标准:</view>
@ -96,7 +114,7 @@
</view> </view>
<picker @change="bindResult" :value="resltIds" :range="result"> <picker @change="bindResult" :value="resltIds" :range="result">
<view class="testing-list" style="align-items: center;font-size: 26upx;margin-left: 50upx;"> <view class="testing-list" style="align-items: center;font-size: 26upx;margin-left: 50upx;">
<view>检验结果:</view> <view>产品检验结果:</view>
<view <view
style="height: 50upx;border: 1upx solid #F1F1F1;width:200upx;font-size: 26upx;padding-top: 10upx;padding-left: 10upx;margin-left: 100upx;"> style="height: 50upx;border: 1upx solid #F1F1F1;width:200upx;font-size: 26upx;padding-top: 10upx;padding-left: 10upx;margin-left: 100upx;">
{{result[resltIds]}} {{result[resltIds]}}
@ -149,7 +167,10 @@
check_status: 0, check_status: 0,
jyxItem: {}, jyxItem: {},
buttonState: true, buttonState: true,
jurisdiction:[],
standard: {}, standard: {},
tooList:[],
power:[],
froms: { froms: {
result: 1, result: 1,
purchase_id: '', //ID purchase_id: '', //ID
@ -181,32 +202,38 @@
this.CyInfo = JSON.parse(decodeURIComponent(e.planInfo)); this.CyInfo = JSON.parse(decodeURIComponent(e.planInfo));
this.type = this.CyInfo.examine_status this.type = this.CyInfo.examine_status
this.check_status = this.CyInfo.m_id this.check_status = this.CyInfo.m_id
this.power = this.userInfo.power
this.getitem() this.getitem()
this.isMenu();
this.getArr() this.getArr()
console.log('检验项', this.jyxItem) this.isMenu();
console.log('检验项', this.userInfo)
}, },
methods: { methods: {
getArr() { getArr() {
let newArr = this.power.map(item => { if(this.power.length>0){
if (item.children) { let newArr = this.power.map(item => {
if (item.children) {
item.children.map(items => { item.children.map(items => {
this.jurisdiction.push(items.title) this.jurisdiction.push(items.title)
return items return items
}) })
} }
})
}
})
console.log("xinshuzu", this.jurisdiction) console.log("xinshuzu", this.jurisdiction)
}, },
isMenu(title) { isMenu(title) {
return this.jurisdiction.includes(title); return this.jurisdiction.includes(title);
}, },
getitem() { getitem() {
materialItem().then(res => { materialItem({name:this.CyInfo.purchase_number}).then(res => {
this.itemList = res.item; this.itemList = res.item;
this.standard = res.standard; this.standard = res.standard;
this.tooList=res.tool;
for (let b in res.item) { for (let b in res.item) {
this.item.push({ this.item.push({
check_item: res.item[b], check_item: res.item[b],
@ -214,7 +241,7 @@
check_number: '', check_number: '',
status: 0, status: 0,
check_result: '', check_result: '',
check_tool: '', check_tool: res.tool[b],
check: false check: false
}) })
} }

Loading…
Cancel
Save