Compare commits
No commits in common. "ae5278af76b7b70fc513fb5544903cf8daa5f46b" and "bb2439d392e3c205d0ac6ff36aaf4ec17b1a9f11" have entirely different histories.
ae5278af76
...
bb2439d392
@ -21,13 +21,9 @@
|
|||||||
<text class="label">单位</text>
|
<text class="label">单位</text>
|
||||||
<text class="value">{{ item.wares.unit }}</text>
|
<text class="value">{{ item.wares.unit }}</text>
|
||||||
</view>
|
</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">
|
<view style="grid-area: d" class="girdItem">
|
||||||
<text class="label">售价</text>
|
<text class="label">编码</text>
|
||||||
<text class="value" ><input type="number" placeholder="请输入售价" v-model="item.wares.price" /></text>
|
<text class="value">{{ item.wares.code || ""}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -106,32 +102,12 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
confirmOpe(type){
|
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 url = '/admin-api/repair/tw/audit'
|
||||||
let dataObj={
|
let dataObj={
|
||||||
id:this.id,
|
id:this.id,
|
||||||
type:"01",
|
type:"01",
|
||||||
status:"yes"==type?"02":"05"
|
status:"yes"==type?"02":"05"
|
||||||
}
|
}
|
||||||
dataObj.repairWaresList = [...this.repairList.map(item => {
|
|
||||||
return{
|
|
||||||
id:item.id,
|
|
||||||
price:item.wares.price
|
|
||||||
}
|
|
||||||
})]
|
|
||||||
request({
|
request({
|
||||||
url: url,
|
url: url,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user