|
@@ -7,7 +7,7 @@
|
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
<el-tab-pane label="备件出库" name="first">
|
|
|
<!-- <div class="el-icon-info" style="font-size: 30px;float: right;color: #009C69;" @click="handleDescription" /> -->
|
|
|
- <div class="el-icon-info" style="font-size: 30px;float: right;color: #409EFF;" @click="handleDescription"/>
|
|
|
+ <div class="el-icon-info" style="font-size: 30px;float: right;color: #409EFF;" @click="handleDescription" />
|
|
|
<div class="filter-container">
|
|
|
<el-select v-model="getdataListParm.parammaps.pastureName" style="width: 140px;" placeholder="牧场" class="filter-item" @change="changePastureName">
|
|
|
<el-option v-for="item in findAllPasture" :key="item.id" :label="item.name" :value="item.name" />
|
|
@@ -49,7 +49,7 @@
|
|
|
<!-- <el-button class="filter-item" style="margin-left: 10px;" type="danger" icon="el-icon-upload2" @click="handleDownloadEas">导出EAS</el-button> -->
|
|
|
<!-- <el-button class="filter-item" style="margin-left: 10px;" type="danger" icon="el-icon-upload2" @click="handleDownloadEas1">导出EAS</el-button> -->
|
|
|
<!-- <el-button v-if="isEasSynchronization" class="filter-item" type="primary" style="float: right;" @click="handleEAS">EAS同步</el-button> -->
|
|
|
- <el-button v-if="isOutsap" class="filter-item" style="margin-left: 10px;" type="success" icon="el-icon-upload2" @click="sapUpload">SAP上传</el-button>
|
|
|
+ <el-button v-if="isOutsap" class="filter-item" style="margin-left: 10px;" type="success" icon="el-icon-upload2" @click="sapUpload">SAP上传</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-table
|
|
@@ -64,12 +64,12 @@
|
|
|
:row-style="rowStyle"
|
|
|
:cell-style="cellStyle"
|
|
|
class="elTable table-fixed"
|
|
|
+ :max-height="myHeight"
|
|
|
@sort-change="tableSort"
|
|
|
@selection-change="change_table_selection"
|
|
|
@current-change="handleCurrentChange"
|
|
|
- :max-height="myHeight"
|
|
|
>
|
|
|
- <el-table-column type="selection" :selectable="checkboxInit" align="center" width="50" />
|
|
|
+ <el-table-column type="selection" :selectable="checkboxInit" align="center" width="50" />
|
|
|
<el-table-column label="序号" align="center" type="index" width="50px">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.$index + (pageNum-1) * pageSize + 1 }}</span>
|
|
@@ -107,25 +107,25 @@
|
|
|
<span>{{ scope.row.easStatus }}</span><br>
|
|
|
</template>
|
|
|
</el-table-column> -->
|
|
|
- <el-table-column prop="ProofCode" label="sap编码" min-width="80px" align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span>{{scope.row.ProofCode}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="ProofCode" label="sap上传状态" min-width="80px" align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="scope.row.ProofCode">已上传</span>
|
|
|
- <span v-else>未上传</span>
|
|
|
-
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column prop="sterilisation" label="冲销状态" min-width="80px" align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="scope.row.sterilisation == 1">已冲销</span>
|
|
|
- <span v-else-if="scope.row.sterilisation == 2">部分冲销</span>
|
|
|
- <span v-else>未冲销</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+ <el-table-column prop="ProofCode" label="sap编码" min-width="80px" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span>{{ scope.row.ProofCode }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="ProofCode" label="sap上传状态" min-width="80px" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.ProofCode">已上传</span>
|
|
|
+ <span v-else>未上传</span>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="sterilisation" label="冲销状态" min-width="80px" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.sterilisation == 1">已冲销</span>
|
|
|
+ <span v-else-if="scope.row.sterilisation == 2">部分冲销</span>
|
|
|
+ <span v-else>未冲销</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
|
|
|
<el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width" fixed="right">
|
|
|
<template slot-scope="{row}">
|
|
@@ -184,8 +184,8 @@
|
|
|
:row-style="rowStyle"
|
|
|
:cell-style="cellStyle"
|
|
|
class="elTable table-fixed"
|
|
|
- @sort-change="tableSort"
|
|
|
:max-height="myHeight"
|
|
|
+ @sort-change="tableSort"
|
|
|
>
|
|
|
<el-table-column label="序号" align="center" type="index" width="50px">
|
|
|
<template slot-scope="scope">
|
|
@@ -298,7 +298,7 @@
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
<!-- 弹出层新增or修改 -->
|
|
|
- <el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" v-if ="dialogFormVisible" :close-on-click-modal="false" width="90%">
|
|
|
+ <el-dialog v-if="dialogFormVisible" :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible" :close-on-click-modal="false" width="90%">
|
|
|
<div class="app-add">
|
|
|
<el-form
|
|
|
ref="createTemp"
|
|
@@ -393,11 +393,11 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <!-- <el-col v-if="No2 && createTemp.useType == 6" :span="8">
|
|
|
+ <el-col v-if="No2 && createTemp.useType == 6" :span="8">
|
|
|
<el-form-item label="订单号:" prop="greenFodderNumber">
|
|
|
<el-input ref="greenFodderNumber" v-model="createTemp.greenFodderNumber" maxlength="20" />
|
|
|
</el-form-item>
|
|
|
- </el-col> -->
|
|
|
+ </el-col>
|
|
|
<el-col v-if="isReceiveTime2" :span="8">
|
|
|
<el-form-item label="出库日期:" prop="receiveTime">
|
|
|
<el-date-picker
|
|
@@ -794,11 +794,11 @@
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <!-- <el-col :span="8" v-if="seeTemp.useType == 6">
|
|
|
- <el-form-item v-if="oddCodeAllo" label="青贮单号:" prop="greenFodderNumber">
|
|
|
+ <el-col v-if="seeTemp.useType == 6" :span="8">
|
|
|
+ <el-form-item label="青贮单号:" prop="greenFodderNumber">
|
|
|
<el-input ref="oddCode" v-model="seeTemp.greenFodderNumber" disabled />
|
|
|
</el-form-item>
|
|
|
- </el-col> -->
|
|
|
+ </el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item v-if="oddCodeAllo" label="领用单号:" prop="oddCode">
|
|
|
<el-input ref="oddCode" v-model="seeTemp.oddCode" disabled />
|
|
@@ -955,20 +955,18 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
-
|
|
|
<el-table-column :key="19" label="备注" prop="sumPrice" align="center" min-width="80">
|
|
|
<template slot-scope="scope">
|
|
|
<span>{{ scope.row.note }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column prop="dflag" label="冲销状态" min-width="80px" align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span v-if="scope.row.dflag == 1">已冲销</span>
|
|
|
- <span v-else>未冲销</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
-
|
|
|
+ <el-table-column prop="dflag" label="冲销状态" min-width="80px" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-if="scope.row.dflag == 1">已冲销</span>
|
|
|
+ <span v-else>未冲销</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
<!-- <pagination
|
|
@@ -1026,8 +1024,8 @@
|
|
|
</el-dialog>
|
|
|
|
|
|
<el-dialog :title="textMap[description.dialogStatus]" :destroy-on-close="true" :visible.sync="description.dialogFormVisible" :close-on-click-modal="false" width="70%">
|
|
|
- <b style="line-height: 28px;">常见问题1:出库保存报错</b>
|
|
|
- <br>
|
|
|
+ <b style="line-height: 28px;">常见问题1:出库保存报错</b>
|
|
|
+ <br>
|
|
|
<div class="app-description dialogMinHeight">
|
|
|
<div class="content">
|
|
|
报错原因1: 请求超时
|
|
@@ -1047,7 +1045,7 @@
|
|
|
|
|
|
<script>
|
|
|
// 引入
|
|
|
-import { GetDataByName, GetDataByNames, ExecDataByConfig, checkButtons, GetAccount, transData, PostDataByName, EasSync,SapUse } from '@/api/common'
|
|
|
+import { GetDataByName, GetDataByNames, ExecDataByConfig, checkButtons, GetAccount, transData, PostDataByName, EasSync, SapUse } from '@/api/common'
|
|
|
import waves from '@/directive/waves' // waves directive
|
|
|
import { parseTime, sortChange } from '@/utils/index.js'
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
@@ -1069,16 +1067,15 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- myHeight:document.documentElement.clientHeight - 85- 250,
|
|
|
- isSap:1,
|
|
|
- isSrm:1,
|
|
|
+ myHeight: document.documentElement.clientHeight - 85 - 250,
|
|
|
+ isSap: 1,
|
|
|
+ isSrm: 1,
|
|
|
selectList: [],
|
|
|
- currentRow:{},
|
|
|
+ currentRow: {},
|
|
|
totalImportInfo: 0,
|
|
|
listLoadingImportInfo: true,
|
|
|
listImportInfo: [],
|
|
|
|
|
|
-
|
|
|
isOutsap: [],
|
|
|
// isReceiveImport: [],
|
|
|
// isRetreatMuban: [],
|
|
@@ -1137,7 +1134,7 @@ export default {
|
|
|
dialogPvVisible: false,
|
|
|
// 校验规则
|
|
|
// -----------------------------------------
|
|
|
- isOutStockAdd: [], isReceiveTemplate: [], isOutStockImport: [], isOutStockExport: [], isOutStockSee: [], isOutStockDelete: [], isOutStockMethod1: [], isOutStockMethod2: [], isOutStockMethod3: [],isOutStockMethod4:[],isOutStockMethod5:[],
|
|
|
+ isOutStockAdd: [], isReceiveTemplate: [], isOutStockImport: [], isOutStockExport: [], isOutStockSee: [], isOutStockDelete: [], isOutStockMethod1: [], isOutStockMethod2: [], isOutStockMethod3: [], isOutStockMethod4: [], isOutStockMethod5: [],
|
|
|
isEasSynchronization: [], isManualSynchronization: [], isCloseSynchronization: [], isIgnoreSynchronization: [],
|
|
|
rules: {},
|
|
|
rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
|
|
@@ -1204,7 +1201,7 @@ export default {
|
|
|
useForm: '',
|
|
|
useType: '',
|
|
|
easStatus: '',
|
|
|
- sapStatus:''
|
|
|
+ sapStatus: ''
|
|
|
}
|
|
|
},
|
|
|
list: [],
|
|
@@ -1261,8 +1258,8 @@ export default {
|
|
|
receiveTime: parseTime(new Date(), '{y}-{m}-{d}'),
|
|
|
applicatId: Cookies.get('employeid'),
|
|
|
departmentId: Cookies.get('departmentid'),
|
|
|
- greenFodderNumber:'',
|
|
|
- note:''
|
|
|
+ greenFodderNumber: '',
|
|
|
+ note: ''
|
|
|
},
|
|
|
requestSparePart: {
|
|
|
name: 'getPartsListCK',
|
|
@@ -1338,7 +1335,7 @@ export default {
|
|
|
// EAS同步
|
|
|
easStatus: {
|
|
|
easStatusList: [{ name: '同步成功', id: '1' }, { name: '同步失败', id: '0' }, { name: '关闭同步', id: '2' }],
|
|
|
- sapStatusList: [ { name: '所有', id: '0' }, { name: '已上传', id: '1' }, { name: '未上传', id: '2' }],
|
|
|
+ sapStatusList: [{ name: '所有', id: '0' }, { name: '已上传', id: '1' }, { name: '未上传', id: '2' }],
|
|
|
dialogStatus: '',
|
|
|
dialogFormVisible: false,
|
|
|
tableKey: 0,
|
|
@@ -1359,7 +1356,7 @@ export default {
|
|
|
description: {
|
|
|
dialogFormVisible: false,
|
|
|
dialogStatus: ''
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -1396,21 +1393,17 @@ export default {
|
|
|
|
|
|
listAdd: {
|
|
|
deep: true,
|
|
|
- handler: function (item) {
|
|
|
-
|
|
|
- this.listAdd.forEach(function(i){
|
|
|
- if(parseInt(i.checkoutNumber) > parseInt(i.amount)){
|
|
|
- i.checkoutNumber = i.amount
|
|
|
- }
|
|
|
- if(parseInt(i.checkoutNumber) > parseInt(i.reportery)){
|
|
|
- i.checkoutNumber = i.reportery
|
|
|
- }
|
|
|
-
|
|
|
- })
|
|
|
-
|
|
|
-
|
|
|
+ handler: function(item) {
|
|
|
+ this.listAdd.forEach(function(i) {
|
|
|
+ if (parseInt(i.checkoutNumber) > parseInt(i.amount)) {
|
|
|
+ i.checkoutNumber = i.amount
|
|
|
+ }
|
|
|
+ if (parseInt(i.checkoutNumber) > parseInt(i.reportery)) {
|
|
|
+ i.checkoutNumber = i.reportery
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
- },
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
created() {
|
|
@@ -1437,71 +1430,59 @@ export default {
|
|
|
},
|
|
|
|
|
|
handleCurrentChange(val) {
|
|
|
- this.currentRow = val;
|
|
|
- console.log("currentRow",this.currentRow)
|
|
|
+ this.currentRow = val
|
|
|
+ console.log('currentRow', this.currentRow)
|
|
|
},
|
|
|
|
|
|
- checkboxInit(row,index){
|
|
|
+ checkboxInit(row, index) {
|
|
|
// console.log(row)
|
|
|
- if(row.ProofCode){
|
|
|
+ if (row.ProofCode) {
|
|
|
return 0
|
|
|
} else {
|
|
|
-
|
|
|
var data1 = new Date(row.creatTime)
|
|
|
var data2 = new Date('2022-10-25')
|
|
|
- if(data1 > data2){ return 1 } else {return 0}
|
|
|
-
|
|
|
+ if (data1 > data2) { return 1 } else { return 0 }
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- //监听 - 表格 - 勾选
|
|
|
+ // 监听 - 表格 - 勾选
|
|
|
change_table_selection(val) {
|
|
|
this.selectList = val
|
|
|
console.log('勾选数据selectList', this.selectList)
|
|
|
},
|
|
|
|
|
|
- sapUpload(){
|
|
|
+ sapUpload() {
|
|
|
const that = this
|
|
|
- console.log("currentRow ProofCode",this.currentRow.ProofCode)
|
|
|
+ console.log('currentRow ProofCode', this.currentRow.ProofCode)
|
|
|
var send_data = this.selectList
|
|
|
|
|
|
- if(send_data.length == 0){
|
|
|
- that.$notify({ title: '失败', message: '请勾选数据!' , type: 'error', duration: 2000 })
|
|
|
+ if (send_data.length == 0) {
|
|
|
+ that.$notify({ title: '失败', message: '请勾选数据!', type: 'error', duration: 2000 })
|
|
|
return false
|
|
|
}
|
|
|
|
|
|
-
|
|
|
console.log(that.isSap)
|
|
|
|
|
|
- if(that.isSap == 1){
|
|
|
-
|
|
|
- that.isSap = 0
|
|
|
- SapUse(send_data).then(response => {
|
|
|
- console.log('response', response)
|
|
|
-
|
|
|
- if (response.msg !== 'fail') {
|
|
|
- that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
|
|
|
- that.selectList = []
|
|
|
- that.get_table_data()
|
|
|
-
|
|
|
- } else {
|
|
|
- that.$notify({ title: '失败', message: '上传失败' , type: 'error', duration: 2000 })
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
+ if (that.isSap == 1) {
|
|
|
+ that.isSap = 0
|
|
|
+ SapUse(send_data).then(response => {
|
|
|
+ console.log('response', response)
|
|
|
|
|
|
+ if (response.msg !== 'fail') {
|
|
|
+ that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
|
|
|
+ that.selectList = []
|
|
|
+ that.get_table_data()
|
|
|
+ } else {
|
|
|
+ that.$notify({ title: '失败', message: '上传失败', type: 'error', duration: 2000 })
|
|
|
+ }
|
|
|
+ })
|
|
|
} else {
|
|
|
-
|
|
|
- that.$notify({ title: '失败', message: '正在请求中,请稍等几秒钟后再点击' , type: 'error', duration: 2000 })
|
|
|
+ that.$notify({ title: '失败', message: '正在请求中,请稍等几秒钟后再点击', type: 'error', duration: 2000 })
|
|
|
}
|
|
|
|
|
|
setTimeout(() => {
|
|
|
- that.isSap = 1
|
|
|
- }, 3000)
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ that.isSap = 1
|
|
|
+ }, 3000)
|
|
|
|
|
|
// if(this.currentRow.ProofCode){
|
|
|
// console.log("currentRow ProofCode 这个值说明已经上传了,不用上传")
|
|
@@ -1531,12 +1512,9 @@ export default {
|
|
|
// })
|
|
|
|
|
|
// }
|
|
|
-
|
|
|
},
|
|
|
|
|
|
-
|
|
|
get_auto_buttons() {
|
|
|
-
|
|
|
const Outsap = 'customs:outStock:sap'
|
|
|
const isOutsap = checkButtons(this.$store.state.user.buttons, OutStockAdd)
|
|
|
this.isOutsap = isOutsap
|
|
@@ -1911,7 +1889,7 @@ export default {
|
|
|
// 调拨数量/出库数量显示
|
|
|
this.allo = true
|
|
|
this.No4 = false
|
|
|
- }else if(val === 5){
|
|
|
+ } else if (val === 5) {
|
|
|
// 报废出库
|
|
|
this.No1 = false
|
|
|
this.No2 = true
|
|
@@ -1924,7 +1902,7 @@ export default {
|
|
|
this.No4 = true
|
|
|
// 调拨数量/出库数量
|
|
|
this.allo = false
|
|
|
- }else if(val === 6){
|
|
|
+ } else if (val === 6) {
|
|
|
// 报废出库
|
|
|
this.No1 = false
|
|
|
this.No2 = true
|
|
@@ -1953,9 +1931,8 @@ export default {
|
|
|
this.getParmCreateAdd.parammaps.id = item.id
|
|
|
this.getParmCreateAdd.parammaps.pastureId = Cookies.get('pastureid')
|
|
|
|
|
|
-
|
|
|
// this.createTemp.departmentId = item.departmentId
|
|
|
- this.$set(this.createTemp, "departmentId", item.departmentId)
|
|
|
+ this.$set(this.createTemp, 'departmentId', item.departmentId)
|
|
|
|
|
|
this.createTemp.bid = item.id
|
|
|
this.createTemp.applicatId = item.empId
|
|
@@ -2301,13 +2278,13 @@ export default {
|
|
|
note: this.createTemp.note
|
|
|
}}
|
|
|
|
|
|
- if(this.createTemp.oddCode == ""){
|
|
|
+ if (this.createTemp.oddCode == '') {
|
|
|
this.$notify({
|
|
|
- title: '保存失败',
|
|
|
- message: '领用单号不得为空',
|
|
|
- type: 'warning',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
+ title: '保存失败',
|
|
|
+ message: '领用单号不得为空',
|
|
|
+ type: 'warning',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
return false
|
|
|
}
|
|
|
this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listAdd }}
|
|
@@ -2499,13 +2476,13 @@ export default {
|
|
|
note: this.createTemp.note
|
|
|
}}
|
|
|
|
|
|
- if(this.createTemp.oddCode == ""){
|
|
|
+ if (this.createTemp.oddCode == '') {
|
|
|
this.$notify({
|
|
|
- title: '保存失败',
|
|
|
- message: '领用单号不得为空',
|
|
|
- type: 'warning',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
+ title: '保存失败',
|
|
|
+ message: '领用单号不得为空',
|
|
|
+ type: 'warning',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
return false
|
|
|
}
|
|
|
this.postDataPramas.data[1] = { 'name': 'insertSpotList', 'resultmaps': { 'list': this.listAdd }}
|
|
@@ -2561,8 +2538,8 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
return true
|
|
|
- }else if(this.createTemp.useType === 5){
|
|
|
- console.log('baofei',this.createTemp.oddCode)
|
|
|
+ } else if (this.createTemp.useType === 5) {
|
|
|
+ console.log('baofei', this.createTemp.oddCode)
|
|
|
// 报废出库
|
|
|
this.postDataPramas.common = { 'returnmap': '0' }
|
|
|
this.postDataPramas.data = []
|
|
@@ -2610,13 +2587,13 @@ export default {
|
|
|
note: this.createTemp.note
|
|
|
}}
|
|
|
|
|
|
- if(this.createTemp.oddCode == ""){
|
|
|
+ if (this.createTemp.oddCode == '') {
|
|
|
this.$notify({
|
|
|
- title: '保存失败',
|
|
|
- message: '领用单号不得为空',
|
|
|
- type: 'warning',
|
|
|
- duration: 2000
|
|
|
- })
|
|
|
+ title: '保存失败',
|
|
|
+ message: '领用单号不得为空',
|
|
|
+ type: 'warning',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
return false
|
|
|
}
|
|
|
|
|
@@ -2672,7 +2649,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
return true
|
|
|
- }else if(this.createTemp.useType === 6){
|
|
|
+ } else if (this.createTemp.useType === 6) {
|
|
|
// 青贮出库
|
|
|
this.postDataPramas.common = { 'returnmap': '0' }
|
|
|
this.postDataPramas.data = []
|
|
@@ -2718,7 +2695,7 @@ export default {
|
|
|
receiveTime: this.createTemp.receiveTime,
|
|
|
empId: this.createTemp.empId,
|
|
|
note: this.createTemp.note,
|
|
|
- greenFodderNumber:this.createTemp.greenFodderNumber
|
|
|
+ greenFodderNumber: this.createTemp.greenFodderNumber
|
|
|
}}
|
|
|
|
|
|
// if(this.createTemp.oddCode == ""){
|
|
@@ -2890,21 +2867,16 @@ export default {
|
|
|
GetAccount(this.requestParam).then(response => {
|
|
|
this.$nextTick(() => {
|
|
|
import('@/vendor/Export2Excel').then(excel => {
|
|
|
-
|
|
|
-
|
|
|
if (response.data.list !== null) {
|
|
|
for (let i = 0; i < response.data.list.length; i++) {
|
|
|
-
|
|
|
- if(response.data.list[i].sterilisation == 1){
|
|
|
- this.$set(response.data.list[i], 'sterilisation', "已冲销")
|
|
|
+ if (response.data.list[i].sterilisation == 1) {
|
|
|
+ this.$set(response.data.list[i], 'sterilisation', '已冲销')
|
|
|
} else {
|
|
|
- this.$set(response.data.list[i], 'sterilisation', "未冲销")
|
|
|
+ this.$set(response.data.list[i], 'sterilisation', '未冲销')
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
const list1 = response.data.list
|
|
|
if (response.data.list !== '') {
|
|
|
this.percentage = 99
|
|
@@ -2913,13 +2885,10 @@ export default {
|
|
|
}, 2000)
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
const tHeader = [
|
|
|
- '牧场', '领用单编号', '领用日期', '物料编码', '品名', '规格型号', '品牌', '计量单位', '实发数量', '单价', '总价', '库位', '供应商', '名称', '牧场设备编号','资产品牌', '费用类型', '领用部门', '领用人', '备注', '冲销状态']
|
|
|
+ '牧场', '领用单编号', '领用日期', '物料编码', '品名', '规格型号', '品牌', '计量单位', '实发数量', '单价', '总价', '库位', '供应商', '名称', '牧场设备编号', '资产品牌', '费用类型', '领用部门', '领用人', '备注', '冲销状态']
|
|
|
const filterVal = [
|
|
|
- 'pastureName', 'useForm', 'creatTime', 'partCode', 'partName', 'specification', 'brandName', 'unit', 'checkoutNumber', 'price', 'sumPrice', 'warehoseCode', 'providerName', 'eqName', 'eqCode', 'eqBrand','useTypeV', 'departmentName', 'appliname', 'note', 'sterilisation'
|
|
|
+ 'pastureName', 'useForm', 'creatTime', 'partCode', 'partName', 'specification', 'brandName', 'unit', 'checkoutNumber', 'price', 'sumPrice', 'warehoseCode', 'providerName', 'eqName', 'eqCode', 'eqBrand', 'useTypeV', 'departmentName', 'appliname', 'note', 'sterilisation'
|
|
|
]
|
|
|
const data1 = this.formatJson(filterVal, list1)
|
|
|
excel.export_json_to_excel({ header: tHeader, data: data1, filename: this.requestParam.parammaps.formType, autoWidth: true, bookType: 'xlsx' })
|