|
@@ -50,7 +50,7 @@
|
|
|
|
|
|
|
|
<div class="grid-item-row1-column2">
|
|
<div class="grid-item-row1-column2">
|
|
|
<a-form-item label="盘点单名称">
|
|
<a-form-item label="盘点单名称">
|
|
|
- <a-input v-model:value="inventorySheetName" size="default" style="width: 1130px" />
|
|
|
|
|
|
|
+ <a-input v-model:value="inventorySheetName" size="default" style="width: 766px" />
|
|
|
<!-- <a-button type="dashed" style="height: 33.5px; margin-left: 10px"> 上传 </a-button>-->
|
|
<!-- <a-button type="dashed" style="height: 33.5px; margin-left: 10px"> 上传 </a-button>-->
|
|
|
<a-button type="primary" style="height: 33.5px; margin-left: 30px" @click="showModal">上传</a-button>
|
|
<a-button type="primary" style="height: 33.5px; margin-left: 30px" @click="showModal">上传</a-button>
|
|
|
<a-modal
|
|
<a-modal
|
|
@@ -584,7 +584,6 @@ import AssetInventoryLineResource from '../../api/asset/AssetInventoryLineResour
|
|
|
import ClientOrganizationTree from '../../widget/ClientOrganizationTree.vue';
|
|
import ClientOrganizationTree from '../../widget/ClientOrganizationTree.vue';
|
|
|
import ProjectItemTree from '../../widget/ProjectItemTree.vue';
|
|
import ProjectItemTree from '../../widget/ProjectItemTree.vue';
|
|
|
import AssetCategoryTree from '../../widget/AssetCategoryTree.vue';
|
|
import AssetCategoryTree from '../../widget/AssetCategoryTree.vue';
|
|
|
-import {ref} from 'vue';
|
|
|
|
|
import {Notify, Uuid} from 'pc-component-v3';
|
|
import {Notify, Uuid} from 'pc-component-v3';
|
|
|
import {message} from 'ant-design-vue';
|
|
import {message} from 'ant-design-vue';
|
|
|
|
|
|
|
@@ -601,27 +600,9 @@ export default {
|
|
|
// 定义抛出的事件名称
|
|
// 定义抛出的事件名称
|
|
|
emits: ['previous', 'next'],
|
|
emits: ['previous', 'next'],
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 上传按钮的模态框
|
|
|
|
|
- * @returns {{visible: Ref<UnwrapRef<boolean>>, handleOk: handleOk, showModal: showModal}}
|
|
|
|
|
- */
|
|
|
|
|
- // setup() {
|
|
|
|
|
- // const visible = ref(false);
|
|
|
|
|
- // const showModal = () => {
|
|
|
|
|
- // visible.value = true;
|
|
|
|
|
- // };
|
|
|
|
|
- // const handleOk = e => {
|
|
|
|
|
- // visible.value = false;
|
|
|
|
|
- // };
|
|
|
|
|
- // return {
|
|
|
|
|
- // visible,
|
|
|
|
|
- // showModal,
|
|
|
|
|
- // handleOk,
|
|
|
|
|
- // };
|
|
|
|
|
- // },
|
|
|
|
|
data: function () {
|
|
data: function () {
|
|
|
return {
|
|
return {
|
|
|
- visible: ref(false), //模态框状态
|
|
|
|
|
|
|
+ visible: false, //模态框状态
|
|
|
clientOrganizations: [], // 所属部门
|
|
clientOrganizations: [], // 所属部门
|
|
|
responseClientOrganizations: [], // 使用部门
|
|
responseClientOrganizations: [], // 使用部门
|
|
|
categories: [], // 资产类别
|
|
categories: [], // 资产类别
|
|
@@ -794,7 +775,7 @@ export default {
|
|
|
data: formData,
|
|
data: formData,
|
|
|
contentType: false,
|
|
contentType: false,
|
|
|
processData: false,
|
|
processData: false,
|
|
|
- success: function ({errorCode, datas}) {
|
|
|
|
|
|
|
+ success: function ({errorCode, datas,errorMessage}) {
|
|
|
if (errorCode === 0) {
|
|
if (errorCode === 0) {
|
|
|
if (datas) {
|
|
if (datas) {
|
|
|
datas.forEach(item => {
|
|
datas.forEach(item => {
|
|
@@ -807,7 +788,7 @@ export default {
|
|
|
message.success('上传成功,已加入至盘点清单', 5);
|
|
message.success('上传成功,已加入至盘点清单', 5);
|
|
|
_self.visible = false; // 关闭模态框
|
|
_self.visible = false; // 关闭模态框
|
|
|
} else {
|
|
} else {
|
|
|
- message.error('上传失败');
|
|
|
|
|
|
|
+ message.error(errorMessage);
|
|
|
}
|
|
}
|
|
|
_self.loading = false;
|
|
_self.loading = false;
|
|
|
},
|
|
},
|