|
|
|
@ -3,7 +3,8 @@
|
|
|
|
|
<template #header>
|
|
|
|
|
<span v-text="dialogTitle"></span>
|
|
|
|
|
</template>
|
|
|
|
|
<el-form ref="formRef" :model="formData" :rules="formRules" label-width="100px" v-loading="formLoading">
|
|
|
|
|
<el-form ref="formRef" :model="formData" :rules="formRules" label-width="100px" v-loading="formLoading"
|
|
|
|
|
v-bind:disabled="isShowBtnOther">
|
|
|
|
|
<!-- 基础信息 -->
|
|
|
|
|
<el-card class="hl-card-info">
|
|
|
|
|
<template #header>
|
|
|
|
@ -31,7 +32,7 @@
|
|
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item prop="industry" label="单据状态">
|
|
|
|
@ -184,7 +185,8 @@
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<el-button link type="primary" @click="handlefuke(scope.$index, scope.row)">复制</el-button> -->
|
|
|
|
|
<el-button link type="danger" size="small" @click.prevent="handleDelete2(scope.$index)">
|
|
|
|
|
<el-button link type="danger" size="small" @click.prevent="handleDelete2(scope.$index)"
|
|
|
|
|
v-bind:disabled="isShowBtnOther">
|
|
|
|
|
删除
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
@ -206,9 +208,8 @@
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-upload ref="matUploadRef" :file-list="matUploadFiles" multiple :limit="10" :action="uploadUrl"
|
|
|
|
|
:headers="{ 'Authorization': 'Bearer ' + getAccessToken(), 'tenant-id': getTenantId() }" name="files"
|
|
|
|
|
:show-file-list="false" :auto-upload="false"
|
|
|
|
|
:data="matUploadData"
|
|
|
|
|
:on-change="matUploadChange" class="upload-file-uploader">
|
|
|
|
|
:show-file-list="false" :auto-upload="false" :data="matUploadData" :on-change="matUploadChange"
|
|
|
|
|
class="upload-file-uploader">
|
|
|
|
|
<el-button type="primary">
|
|
|
|
|
<Icon icon="ep:upload-filled" />上传
|
|
|
|
|
</el-button>
|
|
|
|
@ -227,7 +228,8 @@
|
|
|
|
|
<el-table-column label="操作" align="center">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<el-button link type="danger" size="small"
|
|
|
|
|
@click="handleDeleteAttachment(scope.$index, scope.row.businessFileType)">
|
|
|
|
|
@click="handleDeleteAttachment(scope.$index, scope.row.businessFileType)"
|
|
|
|
|
v-bind:disabled="isShowBtnOther">
|
|
|
|
|
删除
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button link type="primary" size="small" v-if="isShow"
|
|
|
|
@ -369,9 +371,9 @@ const handleStatus = (async (num) => {
|
|
|
|
|
|
|
|
|
|
const dataUpdate = formData.value as unknown as StorageApi.StorageVO
|
|
|
|
|
|
|
|
|
|
if(num==2){
|
|
|
|
|
if (num == 2) {
|
|
|
|
|
dataUpdate.keeper = useUserStore().getUser.id
|
|
|
|
|
}else{
|
|
|
|
|
} else {
|
|
|
|
|
dataUpdate.cancel = useUserStore().getUser.id
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -395,6 +397,12 @@ const handleStatus = (async (num) => {
|
|
|
|
|
default:
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
//查看页面不可以编辑
|
|
|
|
|
if (query.type === 'review') {
|
|
|
|
|
isShowBtnGroup.value = false;
|
|
|
|
|
isShowBtnCancel.value = false;
|
|
|
|
|
isShowBtnOther.value = true;
|
|
|
|
|
}
|
|
|
|
|
reload();
|
|
|
|
|
})
|
|
|
|
|
const userList = ref<UserApi.UserVO[]>([]) // 用户列表
|
|
|
|
@ -481,7 +489,7 @@ const submitForm = async () => {
|
|
|
|
|
await StorageMatApi.createStorageMatBatch(dataMats, storageid.value)
|
|
|
|
|
|
|
|
|
|
//附件信息保存
|
|
|
|
|
matUploadData.value.businessId = storageid
|
|
|
|
|
matUploadData.value.businessId = storageid
|
|
|
|
|
matUploadRef.value!.submit()
|
|
|
|
|
|
|
|
|
|
message.success(t(commonResult))
|
|
|
|
@ -606,6 +614,8 @@ const handleMatCode = async (scope, matid) => {
|
|
|
|
|
|
|
|
|
|
const isShowBtnGroup = ref(true)
|
|
|
|
|
const isShowBtnCancel = ref(false)
|
|
|
|
|
const isShowBtnOther = ref(false)
|
|
|
|
|
const btnWhClickable = ref(false)
|
|
|
|
|
/** 初始化 **/
|
|
|
|
|
onMounted(async () => {
|
|
|
|
|
|
|
|
|
@ -622,6 +632,8 @@ onMounted(async () => {
|
|
|
|
|
|
|
|
|
|
dialogTitle.value = t('action.' + query.type)
|
|
|
|
|
|
|
|
|
|
dialogTitle.value = query.type === 'review'?'查看':dialogTitle.value
|
|
|
|
|
|
|
|
|
|
isShow.value = query.type == "create" ? false : true
|
|
|
|
|
|
|
|
|
|
//-------------------仓库全数据
|
|
|
|
@ -648,6 +660,12 @@ onMounted(async () => {
|
|
|
|
|
default:
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
//查看页面不可以编辑
|
|
|
|
|
if (query.type === 'review') {
|
|
|
|
|
isShowBtnGroup.value = false;
|
|
|
|
|
isShowBtnCancel.value = false;
|
|
|
|
|
isShowBtnOther.value = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获得库区列表
|
|
|
|
|
const queryParamsRg = reactive({
|
|
|
|
|