|
@@ -118,6 +118,9 @@ import { queryItem } from '@/api/purchaseRequest'
|
|
import moment from 'moment'
|
|
import moment from 'moment'
|
|
import { company } from '@/api/purchaseRequest/index'
|
|
import { company } from '@/api/purchaseRequest/index'
|
|
import { getStockNumPrice } from '@/api/allocation/index'
|
|
import { getStockNumPrice } from '@/api/allocation/index'
|
|
|
|
+
|
|
|
|
+import { exportCorps } from '@/api/warehouse/outStock'
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
name: 'outStock',
|
|
name: 'outStock',
|
|
data() {
|
|
data() {
|
|
@@ -841,6 +844,13 @@ export default {
|
|
name: '复制新增',
|
|
name: '复制新增',
|
|
disabled: true,
|
|
disabled: true,
|
|
hasPermi: ['anpin:stockControl:generateReceipts']
|
|
hasPermi: ['anpin:stockControl:generateReceipts']
|
|
|
|
+ }, {
|
|
|
|
+ type: 'warning',
|
|
|
|
+ size: 'mini',
|
|
|
|
+ icon: 'el-icon-upload2',
|
|
|
|
+ name: '导出',
|
|
|
|
+ disabled: false,
|
|
|
|
+ hasPermi: ['anpin:stockControl:export']
|
|
},
|
|
},
|
|
],
|
|
],
|
|
seachButton: [
|
|
seachButton: [
|
|
@@ -2116,6 +2126,21 @@ export default {
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
console.log(row.name)
|
|
console.log(row.name)
|
|
break
|
|
break
|
|
|
|
+ case '导出':
|
|
|
|
+ console.log(this.$refs.MainForm.form)
|
|
|
|
+ let dataForm = this.$refs.MainForm.form
|
|
|
|
+ const queryParams = this.queryParams;
|
|
|
|
+ // queryParams.pagsSize = "RK";
|
|
|
|
+ this.$confirm('是否确认导出仓库出库数据项?', "警告", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning"
|
|
|
|
+ }).then(function() {
|
|
|
|
+ return exportCorps(dataForm);
|
|
|
|
+ }).then(response => {
|
|
|
|
+ this.download(response.msg);
|
|
|
|
+ })
|
|
|
|
+ break
|
|
}
|
|
}
|
|
if (row.name == '修改' && row.res == '0') {
|
|
if (row.name == '修改' && row.res == '0') {
|
|
this.viewMethod()
|
|
this.viewMethod()
|