|
@@ -218,6 +218,14 @@
|
|
|
<flow ref="flowRef"></flow>
|
|
<flow ref="flowRef"></flow>
|
|
|
<pleasePrint ref="pleasePrintRef"></pleasePrint>
|
|
<pleasePrint ref="pleasePrintRef"></pleasePrint>
|
|
|
<goodsDetail ref="goodsDetailRef" @done="refresh"></goodsDetail>
|
|
<goodsDetail ref="goodsDetailRef" @done="refresh"></goodsDetail>
|
|
|
|
|
+
|
|
|
|
|
+ <process-submit-dialog
|
|
|
|
|
+ :processSubmitDialogFlag.sync="processSubmitDialogFlag"
|
|
|
|
|
+ v-if="processSubmitDialogFlag"
|
|
|
|
|
+ ref="processSubmitDialogRef"
|
|
|
|
|
+ @reload="reload"
|
|
|
|
|
+ :isNotNeedProcess="false"
|
|
|
|
|
+ ></process-submit-dialog>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -230,6 +238,8 @@
|
|
|
import warehouseDefinition from '@/api/warehouseManagement/warehouseDefinition';
|
|
import warehouseDefinition from '@/api/warehouseManagement/warehouseDefinition';
|
|
|
import goodsDetail from './components/goodsDetail.vue';
|
|
import goodsDetail from './components/goodsDetail.vue';
|
|
|
import { getByCode } from '@/api/system/dictionary-data';
|
|
import { getByCode } from '@/api/system/dictionary-data';
|
|
|
|
|
+ import { mapGetters } from 'vuex';
|
|
|
|
|
+ import processSubmitDialog from '@/components/processSubmitDialog/processSubmitDialog.vue';
|
|
|
import {
|
|
import {
|
|
|
getWarehouseList
|
|
getWarehouseList
|
|
|
|
|
|
|
@@ -248,7 +258,8 @@
|
|
|
Create,
|
|
Create,
|
|
|
flow,
|
|
flow,
|
|
|
pleasePrint,
|
|
pleasePrint,
|
|
|
- goodsDetail
|
|
|
|
|
|
|
+ goodsDetail,
|
|
|
|
|
+ processSubmitDialog
|
|
|
},
|
|
},
|
|
|
mixins: [dictMixins],
|
|
mixins: [dictMixins],
|
|
|
data() {
|
|
data() {
|
|
@@ -261,7 +272,8 @@
|
|
|
warehouseList: [],
|
|
warehouseList: [],
|
|
|
tableHeight: 'calc(100vh - 320px)',
|
|
tableHeight: 'calc(100vh - 320px)',
|
|
|
factoryList: [],
|
|
factoryList: [],
|
|
|
- typeList: []
|
|
|
|
|
|
|
+ typeList: [],
|
|
|
|
|
+ processSubmitDialogFlag: false
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -551,7 +563,8 @@
|
|
|
placeholder: ''
|
|
placeholder: ''
|
|
|
}
|
|
}
|
|
|
];
|
|
];
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ ...mapGetters(['user'])
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
this.getTypeList('entrust_type');
|
|
this.getTypeList('entrust_type');
|
|
@@ -633,22 +646,38 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
submit(item) {
|
|
submit(item) {
|
|
|
- this.$confirm('是否提交该请托单的审核流程?', '提示', {
|
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
|
- type: 'warning'
|
|
|
|
|
- })
|
|
|
|
|
- .then(() => {
|
|
|
|
|
- submit({
|
|
|
|
|
- businessId: item.id,
|
|
|
|
|
|
|
+ let businessType = '请托受托审批';
|
|
|
|
|
+ this.processSubmitDialogFlag = true;
|
|
|
|
|
+ // this.$confirm('是否提交该请托单的审核流程?', '提示', {
|
|
|
|
|
+ // confirmButtonText: '确定',
|
|
|
|
|
+ // cancelButtonText: '取消',
|
|
|
|
|
+ // type: 'warning'
|
|
|
|
|
+ // })
|
|
|
|
|
+ // .then(() => {
|
|
|
|
|
+ // submit({
|
|
|
|
|
+ // businessId: item.id,
|
|
|
|
|
+ // beEntrustedDeptId: item.beEntrustedDeptId
|
|
|
|
|
+ // }).then((res) => {
|
|
|
|
|
+ // this.$message.success('提交' + res.message);
|
|
|
|
|
+ // this.reload();
|
|
|
|
|
+ // this.visible = false;
|
|
|
|
|
+ // });
|
|
|
|
|
+ // })
|
|
|
|
|
+ // .catch(() => {});
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ businessId: item.id,
|
|
|
|
|
+ businessKey: 'please_entrust_approve',
|
|
|
|
|
+ formCreateUserId: this.user.info.userId,
|
|
|
|
|
+ variables: {
|
|
|
|
|
+ businessCode: item.code,
|
|
|
|
|
+ businessName: '请托受托审批',
|
|
|
|
|
+ businessType: businessType,
|
|
|
beEntrustedDeptId: item.beEntrustedDeptId
|
|
beEntrustedDeptId: item.beEntrustedDeptId
|
|
|
- }).then((res) => {
|
|
|
|
|
- this.$message.success('提交' + res.message);
|
|
|
|
|
- this.reload();
|
|
|
|
|
- this.visible = false;
|
|
|
|
|
- });
|
|
|
|
|
- })
|
|
|
|
|
- .catch(() => {});
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ };
|
|
|
|
|
+ this.$refs.processSubmitDialogRef.init(params);
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
/* 刷新表格 */
|
|
/* 刷新表格 */
|
|
|
reload(where) {
|
|
reload(where) {
|