Commit aed798da authored by dragondean@qq.com's avatar dragondean@qq.com

备货bug

parent ce875a11
...@@ -336,7 +336,7 @@ export default { ...@@ -336,7 +336,7 @@ export default {
}, },
}, },
watch: { watch: {
orderSpecialNeeds(val){ /*orderSpecialNeeds(val){
val.forEach(e => { val.forEach(e => {
this.form.orderSpecialNeedReceivableReqVoList.push({ this.form.orderSpecialNeedReceivableReqVoList.push({
"id": e.id, "id": e.id,
...@@ -344,7 +344,7 @@ export default { ...@@ -344,7 +344,7 @@ export default {
"receivableMoneyCurrency": e.transCurrency || 3 "receivableMoneyCurrency": e.transCurrency || 3
}) })
}) })
} }*/
}, },
computed: { computed: {
......
...@@ -192,7 +192,7 @@ import { getProductAttrList } from '@/api/ecw/productAttr' ...@@ -192,7 +192,7 @@ import { getProductAttrList } from '@/api/ecw/productAttr'
import CustomerSelector from '@/components/CustomerSelector' import CustomerSelector from '@/components/CustomerSelector'
import specialNeeds from '@/views/ecw/order/components/specialNeeds'; import specialNeeds from '@/views/ecw/order/components/specialNeeds';
import {canReadyStockShipmentPage, exportReadyStock, getOrderPage} from "@/api/ecw/order"; import {canReadyStockShipmentPage, exportReadyStock, getOrderPage, orderSpecialNeed} from "@/api/ecw/order";
import PrintTag from './components/PrintTag' import PrintTag from './components/PrintTag'
import PrintWarehouseReceipt from './components/PrintWarehouseReceipt' import PrintWarehouseReceipt from './components/PrintWarehouseReceipt'
import PrintLadingBill from './components/PrintLadingBill' import PrintLadingBill from './components/PrintLadingBill'
...@@ -282,7 +282,7 @@ export default { ...@@ -282,7 +282,7 @@ export default {
} }
let queryParams = Object.assign({}, this.queryParams, timeParams) let queryParams = Object.assign({}, this.queryParams, timeParams)
return queryParams return queryParams
} },
}, },
activated(){ activated(){
this.getList() this.getList()
...@@ -347,7 +347,29 @@ export default { ...@@ -347,7 +347,29 @@ export default {
}).finally(() => { }).finally(() => {
this.exporting = false this.exporting = false
}) })
} },
// 特需标识处理
specialRendering(val){
console.log('val', val)
if(val !== undefined){
let i = val.split(',')
return this.getDictDatas(this.DICT_TYPE.ORDER_SPECIAL_NEEDS).filter(e => {
return i.indexOf(e.value) > -1
}).map(item => {
// 打字开头的用最后一个字,否则取第一个字
item.symbol = item.label[0] == '' ? item.label[item.label.length-1]: item.label[0]
return item
})
}
},
// 删除特需
deleteSpecial(id,orderId){
this.$confirm(this.$t('确定删除此特需么?')).then(() => {
return orderSpecialNeed({orderId:orderId,advanceType:id})
}).then(() => {
this.getList()
})
},
} }
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment