This commit is contained in:
PQZ 2024-10-30 20:04:35 +08:00
parent 780b080efe
commit d3088af9c5

View File

@ -21,9 +21,13 @@
<text class="label">单位</text>
<text class="value">{{ item.wares.unit }}</text>
</view>
<!-- <view style="grid-area: d" class="girdItem">-->
<!-- <text class="label">编码</text>-->
<!-- <text class="value">{{ item.wares.code || ""}}</text>-->
<!-- </view>-->
<view style="grid-area: d" class="girdItem">
<text class="label">编码</text>
<text class="value">{{ item.wares.code || ""}}</text>
<text class="label">售价</text>
<text class="value" ><input type="number" placeholder="请输入售价" v-model="item.wares.price" /></text>
</view>
</view>
</view>
@ -110,12 +114,32 @@ export default {
})
},
confirmOpe(type){
let forSign = true
this.repairList.map(item=>{
if (item.wares.price == null || item.wares.price == ''){
uni.showToast({
title: '售价不能为空!',
icon: 'none'
})
forSign = false
return;
}
})
if (!forSign) {
return;
}
let url = '/admin-api/repair/tw/audit'
let dataObj={
id:this.id,
type:"01",
status:"yes"==type?"02":"05"
}
dataObj.repairWaresList = [...this.repairList.map(item => {
return{
id:item.id,
price:item.wares.price
}
})]
request({
url: url,
method: 'POST',