| | |
| | | // 新增 |
| | | export function returnAdd(data) { |
| | | return request({ |
| | | url: '/pc/l/wh/form/scrapped/add', |
| | | url: '/pc/l/wh/using/form/back/add', |
| | | method: 'post', |
| | | data, |
| | | }); |
| | |
| | | // 列表 |
| | | export function returnList(params) { |
| | | return request({ |
| | | url: '/pc/l/wh/form/scrapped/deptList', |
| | | url: '/pc/l/wh/using/form/back/list', |
| | | method: 'get', |
| | | params, |
| | | }); |
| | |
| | | // 详情 |
| | | export function returnDetail(params) { |
| | | return request({ |
| | | url: '/pc/l/wh/form/scrapped/deptDetail', |
| | | url: '/pc/l/wh/using/form/back/detail', |
| | | method: 'get', |
| | | params, |
| | | }); |
| | |
| | | table: { |
| | | showIndex: true, // 是否显示序号 |
| | | expand: false, // 是否显示详情数据 |
| | | url: SettingIplatform.apiBaseURL + '/pc/l/wh/form/transfer/department/list', // 请求地址 |
| | | url: SettingIplatform.apiBaseURL + '/pc/l/wh/using/form/back/list/detail', // 请求地址 |
| | | // 工具条 |
| | | tools: { |
| | | columnsCtrl: { |
| | |
| | | </win-md> |
| | | </template> |
| | | <script> |
| | | import {scrappedDetail} from '@/api/deptGoods/scrap'; |
| | | import winMd from '@/components/win/win-md'; |
| | | import * as DateFormatter from '@/utils/DateFormatter'; |
| | | import {getDownUrl} from '@/utils/base'; |
| | | import Viewer from 'viewerjs'; |
| | | import 'viewerjs/dist/viewer.css'; |
| | | import {returnDetail} from "@/api/deptGoods/itemret"; |
| | | |
| | | let viewer = null; |
| | | |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | scrappedDetail({ id: this.setting.id }).then((res) => { |
| | | returnDetail({ id: this.setting.id }).then((res) => { |
| | | this.detail = res; |
| | | this.loading = false |
| | | this.fileList = this.detail.procureDoc ? JSON.parse(this.detail.procureDoc) : []; |
| | |
| | | index++; |
| | | } |
| | | } |
| | | // this.fileList.forEach((f, i) => { |
| | | // if (file.uid == f.uid) { |
| | | // index = i |
| | | // } |
| | | // }) |
| | | // document.querySelector('#uploadPreviewImages').children[0].click() |
| | | viewer.view(index); |
| | | }, |
| | | checkImg(name) { |
| | |
| | | <script> |
| | | import {departmentListAll} from '@/api/system/deptment'; |
| | | import {goodsTemplate} from '@/api/baseSetting/finsystenant'; |
| | | import {outputAdd} from '@/api/stock/accessStock'; |
| | | import {getTree} from '@/api/foudation/classification'; |
| | | import MyButton from '@/components/myButton/myButton'; |
| | | import winMd from '@/components/win/win-md'; |
| | |
| | | import {mapGetters} from 'vuex'; |
| | | import * as DateFormatter from '@/utils/DateFormatter'; |
| | | import {getFfOrderByGoodsIdAndDept, getGoodsUseInfoByFfOrderAndGoodId} from "@/api/deptGoods/scrap"; |
| | | import {getDicts} from "@/api/system/dict/data"; |
| | | import {returnAdd} from "@/api/deptGoods/itemret"; |
| | | |
| | | export default { |
| | | components: {MyButton, winMd, winSm, upload}, |
| | |
| | | }) |
| | | g.models = arr |
| | | }) |
| | | console.log('params', params); |
| | | return |
| | | outputAdd(this.formData) |
| | | if (this.loading) return |
| | | this.loading = true |
| | | returnAdd(params) |
| | | .then((res) => { |
| | | this.loading = false |
| | | this.$message.success('保存成功!'); |
| | | this.close(); |
| | | this.$emit('search'); |
| | | }) |
| | | .catch((err) => { |
| | | console.log('edit err', err); |
| | | this.loading = false |
| | | this.$message.error('保存失败'); |
| | | }); |
| | | } else { |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import {outputList} from '@/api/stock/accessStock'; |
| | | import MyButton from '@/components/myButton/myButton'; |
| | | import myImport from '@/views/components/myImport'; |
| | | import edit from './edit'; |
| | |
| | | import listPage from '@/views/mixins/listPage' |
| | | import {getUserDetail} from "@/utils/auth"; |
| | | import SettingIplatform from "@/utils/settingIplatform"; |
| | | import {returnList} from "@/api/deptGoods/itemret"; |
| | | |
| | | export default { |
| | | name: 'index', |
| | |
| | | methods: { |
| | | fetchData() { |
| | | this.loading = true; |
| | | outputList({ |
| | | returnList({ |
| | | pageNum: this.pageNum, |
| | | pageSize: this.pageSize, |
| | | ...this.filterFrom, |