|
|
|
@ -30,8 +30,8 @@ |
|
|
|
|
v-model="inbound_form" |
|
|
|
|
ref="inbound_crud"> |
|
|
|
|
<template #menu="{row,index,size}"> |
|
|
|
|
<el-button size="small" type="text" v-if="permission.auditing" @click="auditing_in(row)">审核</el-button> |
|
|
|
|
<el-button size="small" type="text" v-if="permission.reject" @click="reject_in(row)">驳回</el-button> |
|
|
|
|
<el-button size="small" type="text" v-if="permission.material_auditing" @click="auditing_in(row)">审核</el-button> |
|
|
|
|
<el-button size="small" type="text" v-if="permission.material_reject" @click="reject_in(row)">驳回</el-button> |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
</div> |
|
|
|
@ -45,8 +45,8 @@ |
|
|
|
|
v-model="outbound_form" |
|
|
|
|
ref="outbound_crud2"> |
|
|
|
|
<template #menu="{row,index,size}"> |
|
|
|
|
<el-button size="small" type="text" v-if="permission.auditing" @click="auditing_out(row)">审核</el-button> |
|
|
|
|
<el-button size="small" type="text" v-if="permission.reject" @click="reject_out(row)">驳回</el-button> |
|
|
|
|
<el-button size="small" type="text" v-if="permission.material_auditing" @click="auditing_out(row)">审核</el-button> |
|
|
|
|
<el-button size="small" type="text" v-if="permission.material_reject" @click="reject_out(row)">驳回</el-button> |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
</span> |
|
|
|
@ -83,7 +83,7 @@ |
|
|
|
|
import {outbound_getListByMaterialNo, update_materialDetailOut} from "@/api/spares/outbound"; |
|
|
|
|
import {mapGetters} from "vuex"; |
|
|
|
|
import request from "@/router/axios"; |
|
|
|
|
import {getMaterialClassCode, materialClassCodeAdd } from "@/api/spares/materialclasscode"; |
|
|
|
|
import {getCodeList, codeAdd} from "@/api/spares/materialclassification"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
@ -389,13 +389,13 @@ |
|
|
|
|
column: [ |
|
|
|
|
{ |
|
|
|
|
label: "物资分类码", |
|
|
|
|
prop: "materialClassCode", |
|
|
|
|
prop: "code", |
|
|
|
|
span:22, |
|
|
|
|
labelWidth: 150 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "物资类型", |
|
|
|
|
prop: "materialType", |
|
|
|
|
prop: "type", |
|
|
|
|
span:22, |
|
|
|
|
labelWidth: 150 |
|
|
|
|
} |
|
|
|
@ -496,7 +496,7 @@ |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
SearchClassCode() { |
|
|
|
|
getMaterialClassCode().then(res => { |
|
|
|
|
getCodeList().then(res => { |
|
|
|
|
this.optionsExt = res.data.data; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
@ -629,7 +629,7 @@ |
|
|
|
|
this.$refs.diaForm.validate((valid, done, msg) => { |
|
|
|
|
if (valid) { |
|
|
|
|
done() |
|
|
|
|
materialClassCodeAdd(this.diaForm).then(() => { |
|
|
|
|
codeAdd(this.diaForm).then(() => { |
|
|
|
|
this.$refs.diaForm.resetForm(); |
|
|
|
|
this.dialogVisible = false; |
|
|
|
|
this.SearchClassCode(); |
|
|
|
|