|
|
@ -68,7 +68,7 @@ |
|
|
|
<view v-for="(value, idx) in item.check_conf_msg" :key="idx" class="cyxj-content"> |
|
|
|
<view v-for="(value, idx) in item.check_conf_msg" :key="idx" class="cyxj-content"> |
|
|
|
<view class="cyxj-content-card" v-if="item.check_conf_msg[idx].status == 1"> |
|
|
|
<view class="cyxj-content-card" v-if="item.check_conf_msg[idx].status == 1"> |
|
|
|
<view class="xx-card"> |
|
|
|
<view class="xx-card"> |
|
|
|
<view class="xx-title">{{ value.title }}</view> |
|
|
|
<view class="xx-title">规格:{{ value.spec }}</view> |
|
|
|
<view class="xx-ul"> |
|
|
|
<view class="xx-ul"> |
|
|
|
<view class="xx-list" v-for="(va, i) in ifcomplete" :key="i" @tap="value.choice = va"> |
|
|
|
<view class="xx-list" v-for="(va, i) in ifcomplete" :key="i" @tap="value.choice = va"> |
|
|
|
<image :src="va == value.choice ? '../../static/xz.png' : '../../static/wxz.png'" |
|
|
|
<image :src="va == value.choice ? '../../static/xz.png' : '../../static/wxz.png'" |
|
|
@ -90,10 +90,11 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="cyxj-content-card" v-else> |
|
|
|
<view class="cyxj-content-card" v-else> |
|
|
|
<view class="tx-ul"> |
|
|
|
<view class="tx-ul"> |
|
|
|
<view class="tx-title">{{ value.title }}</view> |
|
|
|
<view class="xx-title" style="font-size: 26upx;">规格:{{ value.spec }}</view> |
|
|
|
<view class="tx-in-nav"> |
|
|
|
<view class="tx-in-nav"> |
|
|
|
<view>{{value.bottom}}</view> |
|
|
|
<view>{{value.bottom}}</view> |
|
|
|
<input :class="value.inputState==false?'re-bor':''" :disabled="type==2?true:false" type="number" @input="inputListener($event,index, idx)" v-model="value.input" |
|
|
|
<input :class="value.inputState==false?'re-bor':''" :disabled="type==2?true:false" |
|
|
|
|
|
|
|
type="number" @input="inputListener($event,index, idx)" v-model="value.input" |
|
|
|
placeholder="请输入" /> |
|
|
|
placeholder="请输入" /> |
|
|
|
<view>{{value.top}}</view> |
|
|
|
<view>{{value.top}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -125,7 +126,8 @@ |
|
|
|
<view class="cyxj-content" style="margin-top: 24upx;"> |
|
|
|
<view class="cyxj-content" style="margin-top: 24upx;"> |
|
|
|
<view class="bzqk-card"><textarea v-model="froms.remake" placeholder="备注情况说明" /></view> |
|
|
|
<view class="bzqk-card"><textarea v-model="froms.remake" placeholder="备注情况说明" /></view> |
|
|
|
<view class="submit-btn"> |
|
|
|
<view class="submit-btn"> |
|
|
|
<button v-if="type==1" type="primary" :disabled="buttonState==false?true:false" @tap="submits">提交</button> |
|
|
|
<button v-if="type==1" type="primary" :disabled="buttonState==false?true:false" |
|
|
|
|
|
|
|
@tap="submits">提交</button> |
|
|
|
<button v-if="type==3" @tap="applys()" type="primary">审核</button> |
|
|
|
<button v-if="type==3" @tap="applys()" type="primary">审核</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -196,13 +198,15 @@ |
|
|
|
|
|
|
|
|
|
|
|
if (this.type != 1) { |
|
|
|
if (this.type != 1) { |
|
|
|
this.getInfo(); |
|
|
|
this.getInfo(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.getConfig(); |
|
|
|
} |
|
|
|
} |
|
|
|
bad({}).then(res => { |
|
|
|
bad({}).then(res => { |
|
|
|
for (let b in res) { |
|
|
|
for (let b in res) { |
|
|
|
this.methList.push(res[b]); |
|
|
|
this.methList.push(res[b]); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.getConfig(); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
ifQualifiedChange(index) { |
|
|
|
ifQualifiedChange(index) { |
|
|
@ -231,8 +235,7 @@ |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (item.input < item.bottom || item.input > item.top) { |
|
|
|
if (item.input < item.bottom || item.input > item.top) { |
|
|
|
this.configSet[index].check_conf_msg[idx].inputState = false; |
|
|
|
this.configSet[index].check_conf_msg[idx].inputState = false; |
|
|
|
} |
|
|
|
} else { |
|
|
|
else { |
|
|
|
|
|
|
|
this.configSet[index].check_conf_msg[idx].inputState = true; |
|
|
|
this.configSet[index].check_conf_msg[idx].inputState = true; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -242,10 +245,10 @@ |
|
|
|
product_id: this.CyInfo.product_id |
|
|
|
product_id: this.CyInfo.product_id |
|
|
|
}).then(res => { |
|
|
|
}).then(res => { |
|
|
|
this.configSet = res.map(item => { |
|
|
|
this.configSet = res.map(item => { |
|
|
|
item.check_conf_msg = item.check_conf_msg.map(value => { |
|
|
|
item.check_conf_msg = item.product_tcq_conf.map(value => { |
|
|
|
return this.matchingConfig(value); |
|
|
|
return this.matchingConfig(value); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
item.title = item.status_name; |
|
|
|
return item; |
|
|
|
return item; |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
@ -258,8 +261,8 @@ |
|
|
|
value.inputState = true; |
|
|
|
value.inputState = true; |
|
|
|
let CheckCyMsg = this.info.CheckTcqMsg ? this.info.CheckTcqMsg : []; |
|
|
|
let CheckCyMsg = this.info.CheckTcqMsg ? this.info.CheckTcqMsg : []; |
|
|
|
for (let b in CheckCyMsg) { |
|
|
|
for (let b in CheckCyMsg) { |
|
|
|
if (CheckCyMsg[b].check_tcq_id == value.id) { |
|
|
|
|
|
|
|
let json = JSON.parse(CheckCyMsg[b].json); |
|
|
|
let json = JSON.parse(CheckCyMsg[b].json); |
|
|
|
|
|
|
|
if (json.check_tcq_id == value.id) { |
|
|
|
value.choice = json.choice; |
|
|
|
value.choice = json.choice; |
|
|
|
value.content = json.content; |
|
|
|
value.content = json.content; |
|
|
|
value.situation = json.situation; |
|
|
|
value.situation = json.situation; |
|
|
@ -282,6 +285,7 @@ |
|
|
|
this.froms.model = res.model; |
|
|
|
this.froms.model = res.model; |
|
|
|
this.froms.frequency = res.frequency; |
|
|
|
this.froms.frequency = res.frequency; |
|
|
|
this.froms.remake = res.remake; |
|
|
|
this.froms.remake = res.remake; |
|
|
|
|
|
|
|
this.getConfig(); |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -318,7 +322,8 @@ |
|
|
|
choice: items.choice, |
|
|
|
choice: items.choice, |
|
|
|
content: items.content, |
|
|
|
content: items.content, |
|
|
|
situation: items.situation, |
|
|
|
situation: items.situation, |
|
|
|
input: items.input |
|
|
|
input: items.input, |
|
|
|
|
|
|
|
check_tcq_id: items.id |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|