|
@@ -958,7 +958,7 @@ export default {
|
|
|
case '修改':
|
|
|
this.contentButton.forEach(item =>{
|
|
|
if (this.$refs.avatar.form.fBillstatus > 4){
|
|
|
- if (item.name === '返回列表' || item.name === '修改' || item.name === '保存' || item.name === '生成入库单' || item.name === '生成销售单'){
|
|
|
+ if (item.name === '返回列表' || item.name === '修改' || item.name === '生成入库单' || item.name === '生成销售单'){
|
|
|
item.disabled = false
|
|
|
}else {
|
|
|
item.disabled = true
|
|
@@ -993,8 +993,7 @@ export default {
|
|
|
})
|
|
|
break
|
|
|
case '返回列表':
|
|
|
- console.log(this.$refs.avatar.form,this.contentList)
|
|
|
- if (!this.$refs.avatar.form.fId && this.contentList !== 0) {
|
|
|
+ if (!this.$refs.avatar.form.fId && this.contentList !== 0 || this.$refs.avatar.form.fBillstatus > 3) {
|
|
|
data = {
|
|
|
tableName: this.queryList.tableName,
|
|
|
userId: Cookies.get('userName')
|
|
@@ -1052,18 +1051,22 @@ export default {
|
|
|
})
|
|
|
break
|
|
|
case '复制新增':
|
|
|
- let datae = {
|
|
|
- fId:this.selection[0].fId,
|
|
|
- fBilltype:'SQ'
|
|
|
+ if (this.selection.length > 0){
|
|
|
+ let datae = {
|
|
|
+ fId:this.selection[0].fId,
|
|
|
+ fBilltype:'SQ'
|
|
|
+ }
|
|
|
+ copyNew(datae).then(res=>{
|
|
|
+ this.$message({
|
|
|
+ message: '复制新增成功',
|
|
|
+ type: 'success',
|
|
|
+ showClose:true
|
|
|
+ });
|
|
|
+ this.query(this.formDataList)
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.$message.warning('未选择列表,请选择后再点击');
|
|
|
}
|
|
|
- copyNew(datae).then(res=>{
|
|
|
- this.$message({
|
|
|
- message: '复制新增成功',
|
|
|
- type: 'success',
|
|
|
- showClose:true
|
|
|
- });
|
|
|
- this.query(this.formDataList)
|
|
|
- })
|
|
|
break
|
|
|
default:
|
|
|
this.$message.error('该按钮暂无功能')
|