|
|
|
@ -16,6 +16,12 @@
|
|
|
|
|
<text>{{palnInfo.product_name}}</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="content-box-card-ul"> |
|
|
|
|
<view class="content-box-card-list"> |
|
|
|
|
<view class="content-box-card-title">物料编号:</view> |
|
|
|
|
<text>{{palnInfo.product_number}}</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="content-box-card-ul"> |
|
|
|
|
<view class="content-box-card-list"> |
|
|
|
|
<view class="content-box-card-title">检验日期:</view> |
|
|
|
@ -38,18 +44,34 @@
|
|
|
|
|
<text>{{palnInfo.line_title}}</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="content-box-card-ul" > |
|
|
|
|
<view class="content-box-card-list" style="align-items: center;"> |
|
|
|
|
<view class="content-box-card-title">首检信息:</view> |
|
|
|
|
<view class="right-check"> |
|
|
|
|
<view class="other-input" v-if="palnInfo.check==0"> |
|
|
|
|
<input type="text" v-model="samplingModel" @input="samplingInput" placeholder="首检信息" /> |
|
|
|
|
</view> |
|
|
|
|
<view class="other-input" v-if="palnInfo.check!==0"> |
|
|
|
|
{{info.msg}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="content-box-card-ul"> |
|
|
|
|
<view class="content-box-card-list"> |
|
|
|
|
<view class="content-box-card-title">抽样方式:</view> |
|
|
|
|
<view class="right-check"> |
|
|
|
|
<view class="check-list" v-for="(item,index) in cyMethod" :key="index" |
|
|
|
|
<view class="check-list" v-if="palnInfo.check==0" v-for="(item,index) in msg" :key="index" |
|
|
|
|
@tap="radioChange(item.name)"> |
|
|
|
|
<image :src="item.name==forms.sampling?'../../static/xz.png':'../../static/wxz.png'"> |
|
|
|
|
<image :src="item.name==forms.msg?'../../static/xz.png':'../../static/wxz.png'"> |
|
|
|
|
</image> |
|
|
|
|
<text>{{item.name}}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="other-input"> |
|
|
|
|
<input type="text" v-model="samplingModel" @input="samplingInput" placeholder="其他" /> |
|
|
|
|
<view v-if="palnInfo.check==0" class="other-input"> |
|
|
|
|
<input type="text" v-model="msgModel" @input="msgInput" placeholder="其他" /> |
|
|
|
|
</view> |
|
|
|
|
<view> |
|
|
|
|
<text>{{info.sampling}}</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -58,14 +80,17 @@
|
|
|
|
|
<view class="content-box-card-list"> |
|
|
|
|
<view class="content-box-card-title">检验依据:</view> |
|
|
|
|
<view class="right-check"> |
|
|
|
|
<view class="check-list" v-for="(item,index) in jyBasis" :key="index" |
|
|
|
|
<view class="check-list" v-if="palnInfo.check==0" v-for="(item,index) in jyBasis" :key="index" |
|
|
|
|
@tap="jyBasisChange(item)"> |
|
|
|
|
<image :src="item==forms.basis?'../../static/xz.png':'../../static/wxz.png'"></image> |
|
|
|
|
<text>{{item}}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="other-input"> |
|
|
|
|
<view class="other-input" v-if="palnInfo.check==0"> |
|
|
|
|
<input type="text" v-model="basisModel" @input="basisInput" placeholder="其他" /> |
|
|
|
|
</view> |
|
|
|
|
<view> |
|
|
|
|
<text>{{info.basis}}</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -76,7 +101,6 @@
|
|
|
|
|
<view class="content-box-card-ul"> |
|
|
|
|
<view class="content-box-card-list"> |
|
|
|
|
<view class="content-box-card-title">检验标准:</view> |
|
|
|
|
<text>检验标准</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="content-box-card-ul-two" v-for="(value, key, index) in info.reference"> |
|
|
|
@ -103,23 +127,34 @@
|
|
|
|
|
<view class="num-div">2</view> |
|
|
|
|
<view class="num-div">3</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="right-list" v-for="(item,index) in forms.msg" :key="index"> |
|
|
|
|
<view class="right-list" v-if="palnInfo.check==0" v-for="(items,index) in forms.item" :key="index"> |
|
|
|
|
<view class="gg-div"> |
|
|
|
|
<input type="number" v-model="item.one" /> |
|
|
|
|
<input type="number" v-model="items.one" /> |
|
|
|
|
</view> |
|
|
|
|
<view class="gg-div"> |
|
|
|
|
<input type="number" v-model="item.two" /> |
|
|
|
|
<input type="number" v-model="items.two" /> |
|
|
|
|
</view> |
|
|
|
|
<view class="gg-div"> |
|
|
|
|
<input type="number" v-model="item.three" /> |
|
|
|
|
<input type="number" v-model="items.their" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="right-list" v-if="palnInfo.check!=0" v-for="(items,index) in info.FirstCheckValue" :key="index"> |
|
|
|
|
<view class="gg-div"> |
|
|
|
|
<input disabled="true" type="number" v-model="items.one" /> |
|
|
|
|
</view> |
|
|
|
|
<view class="gg-div"> |
|
|
|
|
<input disabled="true" type="number" v-model="items.two" /> |
|
|
|
|
</view> |
|
|
|
|
<view class="gg-div"> |
|
|
|
|
<input disabled="true" type="number" v-model="items.their" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="beizhu"> |
|
|
|
|
<textarea v-model="forms.remake" placeholder="请输入备注" /> |
|
|
|
|
<textarea v-if="palnInfo.check==0" v-model="forms.remake" placeholder="请输入备注" /> |
|
|
|
|
<textarea v-if="palnInfo.check!=0" v-model="info.remake" placeholder="请输入备注" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -129,16 +164,17 @@
|
|
|
|
|
<view class="content-box-card-list"> |
|
|
|
|
<view class="content-box-card-title">外观:</view> |
|
|
|
|
<view class="right-check"> |
|
|
|
|
<view class="check-list" v-for="(item,index) in appearance" :key="index" |
|
|
|
|
<view class="check-list" v-if="palnInfo.check==0" v-for="(item,index) in appearance" :key="index" |
|
|
|
|
@tap="appearanceChange(item)"> |
|
|
|
|
<image :src="item==forms.appearance?'../../static/xz.png':'../../static/wxz.png'"> |
|
|
|
|
</image> |
|
|
|
|
<text>{{item}}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="other-input"> |
|
|
|
|
<view class="other-input" v-if="palnInfo.check==0" > |
|
|
|
|
<input type="text" v-model="appearanceModel" @input="appearanceInput" |
|
|
|
|
placeholder="其他" /> |
|
|
|
|
</view> |
|
|
|
|
<view v-if="palnInfo.check!=0" >{{info.appearance}}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -146,15 +182,16 @@
|
|
|
|
|
<view class="content-box-card-list"> |
|
|
|
|
<view class="content-box-card-title">结构性能:</view> |
|
|
|
|
<view class="right-check"> |
|
|
|
|
<view class="check-list" v-for="(item,index) in structure" :key="index" |
|
|
|
|
<view class="check-list" v-if="palnInfo.check==0" v-for="(item,index) in structure" :key="index" |
|
|
|
|
@tap="structureChange(item)"> |
|
|
|
|
<image :src="item==forms.structure?'../../static/xz.png':'../../static/wxz.png'"> |
|
|
|
|
</image> |
|
|
|
|
<text>{{item}}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="other-input"> |
|
|
|
|
<view class="other-input" v-if="palnInfo.check==0"> |
|
|
|
|
<input type="text" v-model="structureModel" @input="structureInput" placeholder="其他" /> |
|
|
|
|
</view> |
|
|
|
|
<view v-if="palnInfo.check!=0">{{info.structure}}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -165,31 +202,43 @@
|
|
|
|
|
<view class="content-box-card-ul"> |
|
|
|
|
<view class="content-box-card-list"> |
|
|
|
|
<view class="content-box-card-title">最终判定:</view> |
|
|
|
|
<view class="right-check"> |
|
|
|
|
<view class="check-list" v-for="(item,index) in ifQualified" :key="index" |
|
|
|
|
<view class="right-check" > |
|
|
|
|
<view class="check-list" v-if="palnInfo.check==0" v-for="(item,index) in ifQualified" :key="index" |
|
|
|
|
@tap="ifQualifiedChange(index+1)"> |
|
|
|
|
<image :src="forms.result==index+1?'../../static/xz.png':'../../static/wxz.png'"> |
|
|
|
|
</image> |
|
|
|
|
<text>{{item}}</text> |
|
|
|
|
</view> |
|
|
|
|
<view> |
|
|
|
|
<text v-if="info.result==1">合格</text> |
|
|
|
|
<text v-if="info.result==2">不合格</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="content-box-card-ul"> |
|
|
|
|
<view class="content-box-card-list"> |
|
|
|
|
<view class="content-box-card-title">是否量产:</view> |
|
|
|
|
<view class="right-check"> |
|
|
|
|
<view class="check-list" v-for="(item,index) in ifProduction" :key="index" |
|
|
|
|
<view class="right-check" > |
|
|
|
|
<view v-if="palnInfo.check==0" class="check-list" v-for="(item,index) in ifProduction" :key="index" |
|
|
|
|
@tap="ifProductionChange(index+1)"> |
|
|
|
|
<image :src="forms.agree==index+1?'../../static/xz.png':'../../static/wxz.png'"></image> |
|
|
|
|
<text>{{item}}</text> |
|
|
|
|
</view> |
|
|
|
|
<view> |
|
|
|
|
<text v-if="info.agree==1">是</text> |
|
|
|
|
<text v-if="info.agree==2">否</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="beizhu" v-if="forms.result==2&&forms.agree==1"> |
|
|
|
|
<textarea v-model="forms.information" placeholder="情况说明" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="submit-btn"> |
|
|
|
|
<button type="primary" @tap="submits">提交并发起审核</button> |
|
|
|
|
<button type="primary" v-if="palnInfo.check==0" @tap="submits">提交并发起审核</button> |
|
|
|
|
<button type="primary" @tap="firstCheckSureBtn()" v-if="palnInfo.check==1" >审核</button> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
@ -199,7 +248,8 @@
|
|
|
|
|
<script> |
|
|
|
|
import { |
|
|
|
|
firstCheckDetail, |
|
|
|
|
firstCheckAdd |
|
|
|
|
firstCheckAdd, |
|
|
|
|
firstCheckSure |
|
|
|
|
} from "../../api/user.js" |
|
|
|
|
export default { |
|
|
|
|
|
|
|
|
@ -214,6 +264,7 @@
|
|
|
|
|
ifQualifiedIds: 0, |
|
|
|
|
samplingModel: '', |
|
|
|
|
basisModel: '', |
|
|
|
|
msgModel:'', |
|
|
|
|
cyMethod: [{ |
|
|
|
|
name: "开机首检", |
|
|
|
|
check: false |
|
|
|
@ -246,6 +297,32 @@
|
|
|
|
|
"制程检验标准", |
|
|
|
|
"产品标准" |
|
|
|
|
], |
|
|
|
|
cyMethod:"", |
|
|
|
|
msg: [{ |
|
|
|
|
name: "开机首检", |
|
|
|
|
check: false |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "关机末件", |
|
|
|
|
check: false |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "修模首件", |
|
|
|
|
check: false |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "转产首件", |
|
|
|
|
check: false |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "生产参数变更", |
|
|
|
|
check: false |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
name: "材料变更", |
|
|
|
|
check: false |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
appearance: ["划伤", "压痕", "拉痕", "摁伤", "油污", "水渍", "少孔", "开裂", "变形", "起皱、叠料", "毛刺", "印字"], |
|
|
|
|
appearanceIds: -1, |
|
|
|
|
structure: ["缺料", "螺纹", "铆接", "折弯", "膜厚", "附着力", "直线度", "平整度", "试装配", "表面处理"], |
|
|
|
@ -256,16 +333,17 @@
|
|
|
|
|
ProductionIds: -1, |
|
|
|
|
forms: { |
|
|
|
|
machine: "", |
|
|
|
|
sampling: "", |
|
|
|
|
msg: [{ |
|
|
|
|
msg: "", |
|
|
|
|
sampling:'', |
|
|
|
|
item: [{ |
|
|
|
|
one: "", |
|
|
|
|
two: "", |
|
|
|
|
three: '' |
|
|
|
|
their: '' |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
one: "", |
|
|
|
|
two: "", |
|
|
|
|
three: '' |
|
|
|
|
their: '' |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
basis: "", |
|
|
|
@ -298,6 +376,7 @@
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
appearanceInput(e) { |
|
|
|
|
this.forms.appearance = e.detail.value; |
|
|
|
|
}, |
|
|
|
@ -307,6 +386,9 @@
|
|
|
|
|
structureInput(e) { |
|
|
|
|
this.forms.structure = e.detail.value; |
|
|
|
|
}, |
|
|
|
|
msgInput(e) { |
|
|
|
|
this.forms.msg = e.detail.value; |
|
|
|
|
}, |
|
|
|
|
basisInput(e) { |
|
|
|
|
this.forms.basis = e.detail.value; |
|
|
|
|
}, |
|
|
|
@ -336,13 +418,25 @@
|
|
|
|
|
this.info = res; |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
firstCheckSureBtn(){ |
|
|
|
|
let parm={ |
|
|
|
|
plan_id:this.info.plan_id, |
|
|
|
|
oneCheck:this.info.oneCheck, |
|
|
|
|
check_id:this.info.id |
|
|
|
|
}; |
|
|
|
|
firstCheckSure(parm).then(res=>{ |
|
|
|
|
uni.navigateBack({ |
|
|
|
|
delta:1 |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
bindline: function(e) { |
|
|
|
|
console.log('picker发送选择改变,携带值为', e.target.value) |
|
|
|
|
this.lineIndex = e.target.value |
|
|
|
|
}, |
|
|
|
|
radioChange(name) { |
|
|
|
|
this.forms.sampling = name; |
|
|
|
|
this.samplingModel = ""; |
|
|
|
|
this.forms.msg = name; |
|
|
|
|
this.msgModel = ""; |
|
|
|
|
}, |
|
|
|
|
jyBasisChange: function(name) { |
|
|
|
|
this.forms.basis = name; |
|
|
|
@ -372,8 +466,8 @@
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
let flag = true; |
|
|
|
|
this.forms.msg.map(item => { |
|
|
|
|
if (!item.one || !item.two || !item.three) { |
|
|
|
|
this.forms.item.map(item => { |
|
|
|
|
if (!item.one || !item.two || !item.their) { |
|
|
|
|
flag = false; |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
@ -395,7 +489,7 @@
|
|
|
|
|
this.forms.plan_id = this.pId; |
|
|
|
|
firstCheckAdd(this.forms).then(res => { |
|
|
|
|
uni.navigateBack({ |
|
|
|
|
|
|
|
|
|
delta:1 |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|