|
@@ -153,7 +153,8 @@ import {
|
|
|
listDelete,
|
|
|
tableDeleteQuery,
|
|
|
confirmDeletion,
|
|
|
- pleaseCheck
|
|
|
+ pleaseCheck,
|
|
|
+ copyNew
|
|
|
} from '@/api/purchaseRequest/index'
|
|
|
import Cookies from 'js-cookie'
|
|
|
|
|
@@ -293,7 +294,7 @@ export default {
|
|
|
}, {
|
|
|
surface: '4',
|
|
|
label: 'fPurchase',
|
|
|
- name: '采购重量',
|
|
|
+ name: '采购数量',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
|
onabort: '',
|
|
@@ -302,7 +303,7 @@ export default {
|
|
|
}, {
|
|
|
surface: '5',
|
|
|
label: 'fQty',
|
|
|
- name: '实际重量',
|
|
|
+ name: '实际数量',
|
|
|
checked: 0,
|
|
|
width: 100,
|
|
|
onabort: 'this.value=this.value.replace(/[^\\-?\\d.]/g,"").replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/, "$1$2.$3")',
|
|
@@ -943,7 +944,7 @@ export default {
|
|
|
case '修改':
|
|
|
this.contentButton.forEach(item =>{
|
|
|
if (this.$refs.avatar.form.fBillstatus > 4){
|
|
|
- if (item.name == '返回列表' || item.name == '修改'){
|
|
|
+ if (item.name === '返回列表' || item.name === '修改' || item.name === '生成入库单' || item.name === '生成销售单'){
|
|
|
item.disabled = false
|
|
|
}else {
|
|
|
item.disabled = true
|
|
@@ -1008,6 +1009,15 @@ export default {
|
|
|
this.$refs.avatar.submitForm('check')
|
|
|
}
|
|
|
break
|
|
|
+ case '生成入库单':
|
|
|
+ let listData = {
|
|
|
+ fId:this.$refs.avatar.form.fId,
|
|
|
+ fBilltype:'RK'
|
|
|
+ }
|
|
|
+ copyNew(listData).then(res=>{
|
|
|
+ console.log(res)
|
|
|
+ })
|
|
|
+ break
|
|
|
default:
|
|
|
this.$message.error('该按钮暂无功能')
|
|
|
}
|