|
@@ -380,6 +380,7 @@ export default defineComponent({
|
|
|
70: ['测试登记'],
|
|
|
80: ['付款登记'],
|
|
|
90: ['备件回收'],
|
|
|
+ 91: ['备件回收'],
|
|
|
// 70: ['备件回收'],
|
|
|
// 80: ['测试登记'],
|
|
|
// 90: ['付款登记'],
|
|
@@ -394,6 +395,7 @@ export default defineComponent({
|
|
|
50: ['repairspares_out'],
|
|
|
60: ['maintenance_add', 'maintenance_finish'],
|
|
|
90: ['repairspares_in'],
|
|
|
+ 91: ['repairspares_in'],
|
|
|
70: ['repair_test'],
|
|
|
80: ['work_payments'],
|
|
|
100: ['work_dispatched'],
|
|
@@ -420,7 +422,6 @@ export default defineComponent({
|
|
|
};
|
|
|
let newdataSource = []
|
|
|
res.priceList.map((ele) => {
|
|
|
- if(!(ele.type == 0 && ele.status == 0) && ele.laborId != 2){
|
|
|
let price = ele.discount == 1?ele.priceDiscount:ele.price
|
|
|
let elePrice = countItem.total + parseFloat(price) * ele.count
|
|
|
countItem.total = elePrice;
|
|
@@ -432,7 +433,6 @@ export default defineComponent({
|
|
|
id: ele.laborId,
|
|
|
total: (price * ele.count).toFixed(2),
|
|
|
})
|
|
|
- }
|
|
|
});
|
|
|
dataSource = newdataSource
|
|
|
priceTotal.value = countItem.total?.toFixed(2)
|
|
@@ -464,20 +464,21 @@ export default defineComponent({
|
|
|
status:status,
|
|
|
payAmount:0,
|
|
|
};
|
|
|
- if(status == 9 || status == 4){
|
|
|
+ if(status == 80 || status == 40){
|
|
|
record.payAmount = priceTotal.value
|
|
|
}
|
|
|
let openList = {
|
|
|
0: openTakingOrders, //检测登记
|
|
|
- 1: openCheckModal, //检测登记
|
|
|
- 2: openQuoteModal, //报价
|
|
|
- 3: openQuoteModal, //修改报价
|
|
|
- 4: openPayLogModal, //付款登记
|
|
|
- 5: openPartsModal, //备件出库
|
|
|
- 7: openPartsModal, //备件回收
|
|
|
- 8: openReviewModal, //测试登记
|
|
|
- 9: openPayLogModal, //付款登记
|
|
|
- 10: openDeliveryModal, //发货登记
|
|
|
+ 10: openCheckModal, //检测登记
|
|
|
+ 20: openQuoteModal, //报价
|
|
|
+ 30: openQuoteModal, //修改报价
|
|
|
+ 40: openPayLogModal, //付款登记
|
|
|
+ 50: openPartsModal, //备件出库
|
|
|
+ 90: openPartsModal, //备件回收
|
|
|
+ 91: openPartsModal, //备件回收
|
|
|
+ 70: openReviewModal, //测试登记
|
|
|
+ 80: openPayLogModal, //付款登记
|
|
|
+ 100: openDeliveryModal, //发货登记
|
|
|
61: openAddModal, //添加备件
|
|
|
62: openOutModal, //完成维修
|
|
|
};
|