|
@@ -49,6 +49,15 @@
|
|
|
>
|
|
>
|
|
|
入库
|
|
入库
|
|
|
</el-link>
|
|
</el-link>
|
|
|
|
|
+
|
|
|
|
|
+ <el-link
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ :underline="false"
|
|
|
|
|
+ @click="handleFlow(row)"
|
|
|
|
|
+ v-if="row.approvalStatus != 0"
|
|
|
|
|
+ >
|
|
|
|
|
+ 流程
|
|
|
|
|
+ </el-link>
|
|
|
<!-- <el-link type="primary" :underline="false" @click="details(row)">
|
|
<!-- <el-link type="primary" :underline="false" @click="details(row)">
|
|
|
详情
|
|
详情
|
|
|
</el-link> -->
|
|
</el-link> -->
|
|
@@ -57,6 +66,7 @@
|
|
|
</el-card>
|
|
</el-card>
|
|
|
|
|
|
|
|
<tgDetails ref="tgDetailsRefs"></tgDetails>
|
|
<tgDetails ref="tgDetailsRefs"></tgDetails>
|
|
|
|
|
+ <flow ref="flowRef"></flow>
|
|
|
<storage inboundType="2" ref="storageRefs" @success="reload"></storage>
|
|
<storage inboundType="2" ref="storageRefs" @success="reload"></storage>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -67,11 +77,13 @@
|
|
|
import search from './components/search.vue';
|
|
import search from './components/search.vue';
|
|
|
import tgDetails from './components/tgDetails.vue';
|
|
import tgDetails from './components/tgDetails.vue';
|
|
|
import storage from './storageComponents/storage.vue';
|
|
import storage from './storageComponents/storage.vue';
|
|
|
|
|
+ import flow from '@/views/materialReturn/components/flow.vue';
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
search,
|
|
search,
|
|
|
tgDetails,
|
|
tgDetails,
|
|
|
- storage
|
|
|
|
|
|
|
+ storage,
|
|
|
|
|
+ flow
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -287,6 +299,13 @@
|
|
|
this.$refs.storageRefs.pickerSuccess(row);
|
|
this.$refs.storageRefs.pickerSuccess(row);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ handleFlow(row) {
|
|
|
|
|
+ if (!row.processInstanceId) {
|
|
|
|
|
+ return this.$message.warning('暂无流程图');
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$refs.flowRef.open(row.processInstanceId);
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
/* 刷新表格 */
|
|
/* 刷新表格 */
|
|
|
reload(where) {
|
|
reload(where) {
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|