|
|
|
@ -139,9 +139,7 @@ |
|
|
|
<view class="material-text">型号:{{ item.xh }}</view> |
|
|
|
<view class="material-text">型号:{{ item.xh }}</view> |
|
|
|
<view class="material-text">数量:{{ item.goodsNum }}</view> |
|
|
|
<view class="material-text">数量:{{ item.goodsNum }}</view> |
|
|
|
<view class="material-text">单位:{{ item.unit }}</view> |
|
|
|
<view class="material-text">单位:{{ item.unit }}</view> |
|
|
|
<view class="material-text">价格:{{ ((dataTypes == 3 && detailForm.status == |
|
|
|
<view class="material-text">价格:{{ item.materialPrice}}</view> |
|
|
|
3) || (dataTypes == 1 && detailForm.status == |
|
|
|
|
|
|
|
4)) ? item.materialPrice : (item.purchasePrice * item.goodsNum) }}</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<u-button v-if="!optionDisabled" size="medium" :plain="true" |
|
|
|
<u-button v-if="!optionDisabled" size="medium" :plain="true" |
|
|
|
@ -441,9 +439,10 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
onShow() { |
|
|
|
this.getRepairPersons()//获取维修人员列表 |
|
|
|
this.getRepairPersons()//获取维修人员列表 |
|
|
|
this.getDeviceList() |
|
|
|
|
|
|
|
this.orderId = this.$route.query.id |
|
|
|
this.orderId = this.$route.query.id |
|
|
|
this.getDtails() |
|
|
|
this.getDtails() |
|
|
|
|
|
|
|
|
|
|
|
this.userInfo = uni.getStorageSync("userinfo"); |
|
|
|
this.userInfo = uni.getStorageSync("userinfo"); |
|
|
|
// 维修人员 获取物料选择 |
|
|
|
// 维修人员 获取物料选择 |
|
|
|
if (this.dataTypes == 4) { |
|
|
|
if (this.dataTypes == 4) { |
|
|
|
@ -476,6 +475,7 @@ export default { |
|
|
|
let data = 0 |
|
|
|
let data = 0 |
|
|
|
if (this.detailForm.materials.length > 0) { |
|
|
|
if (this.detailForm.materials.length > 0) { |
|
|
|
this.detailForm.materials.forEach(item => { |
|
|
|
this.detailForm.materials.forEach(item => { |
|
|
|
|
|
|
|
item.materialPrice=item.materialPrice |
|
|
|
data = data + item.materialPrice |
|
|
|
data = data + item.materialPrice |
|
|
|
item.goodsNum = item.materialCount |
|
|
|
item.goodsNum = item.materialCount |
|
|
|
item.name = item.materialName |
|
|
|
item.name = item.materialName |
|
|
|
@ -493,6 +493,12 @@ export default { |
|
|
|
this.deviceData.repairPerson = this.detailForm.deviceId |
|
|
|
this.deviceData.repairPerson = this.detailForm.deviceId |
|
|
|
this.deviceData.name = this.detailForm.deviceName |
|
|
|
this.deviceData.name = this.detailForm.deviceName |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(this.detailForm.status == 401){ |
|
|
|
|
|
|
|
this.deviceData.repairPerson = '' |
|
|
|
|
|
|
|
this.deviceData.name = '' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.getDeviceList() |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -616,6 +622,9 @@ export default { |
|
|
|
uni.showToast({ title: "申领数量不能为0", icon: "none" }); |
|
|
|
uni.showToast({ title: "申领数量不能为0", icon: "none" }); |
|
|
|
return false |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
selected.forEach(item=>{ |
|
|
|
|
|
|
|
item.materialPrice = item.goodsNum*item.purchasePrice |
|
|
|
|
|
|
|
}) |
|
|
|
this.sendOrder.materialsData = JSON.parse(JSON.stringify(selected)) |
|
|
|
this.sendOrder.materialsData = JSON.parse(JSON.stringify(selected)) |
|
|
|
this.aterialShow = false |
|
|
|
this.aterialShow = false |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -630,7 +639,7 @@ export default { |
|
|
|
if (this.sendOrder.materialsData.length > 0) { |
|
|
|
if (this.sendOrder.materialsData.length > 0) { |
|
|
|
this.goodsTableData.forEach(i => { |
|
|
|
this.goodsTableData.forEach(i => { |
|
|
|
this.sendOrder.materialsData.forEach(v => { |
|
|
|
this.sendOrder.materialsData.forEach(v => { |
|
|
|
if (i.id == v.id) { |
|
|
|
if (i.inventoryId == v.inventoryId) { |
|
|
|
i.checked = true |
|
|
|
i.checked = true |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ -697,7 +706,7 @@ export default { |
|
|
|
brand: item.brand,//品牌 |
|
|
|
brand: item.brand,//品牌 |
|
|
|
xh: item.xh,//型号 |
|
|
|
xh: item.xh,//型号 |
|
|
|
rule: item.rule,//参数 |
|
|
|
rule: item.rule,//参数 |
|
|
|
materialPrice: item.goodsNum * item.unifiedQuotation, |
|
|
|
materialPrice: item.materialPrice, |
|
|
|
materialCount: item.goodsNum,//领用数量 |
|
|
|
materialCount: item.goodsNum,//领用数量 |
|
|
|
orderId: this.detailForm.id, |
|
|
|
orderId: this.detailForm.id, |
|
|
|
}) |
|
|
|
}) |
|
|
|
@ -894,6 +903,7 @@ export default { |
|
|
|
let query={ |
|
|
|
let query={ |
|
|
|
current:1, |
|
|
|
current:1, |
|
|
|
size:9999, |
|
|
|
size:9999, |
|
|
|
|
|
|
|
limsId:this.detailForm.reportUnit, |
|
|
|
} |
|
|
|
} |
|
|
|
this.$u.api.getDeviceList(query).then(res => { |
|
|
|
this.$u.api.getDeviceList(query).then(res => { |
|
|
|
if (res.code == 200) { |
|
|
|
if (res.code == 200) { |
|
|
|
|