|
@@ -70,8 +70,8 @@
|
|
<ws-option
|
|
<ws-option
|
|
v-for="item in goodnameList"
|
|
v-for="item in goodnameList"
|
|
:key="item.constKey"
|
|
:key="item.constKey"
|
|
- :label="item.constValue"
|
|
|
|
- :value="item.constValue"
|
|
|
|
|
|
+ :label="item.goodsName"
|
|
|
|
+ :value="item.goodsName"
|
|
/>
|
|
/>
|
|
</ws-select>
|
|
</ws-select>
|
|
<!-- v-hasPermission="'procurement.sparepart.directShip'" -->
|
|
<!-- v-hasPermission="'procurement.sparepart.directShip'" -->
|
|
@@ -98,31 +98,29 @@
|
|
>
|
|
>
|
|
<el-table-column label="序号" type="index" show-overflow-tooltip width="50">
|
|
<el-table-column label="序号" type="index" show-overflow-tooltip width="50">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="expenseName" label="费用名称" >
|
|
|
|
|
|
+ <el-table-column prop="goodsName" label="货名" >
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="amount" label="金额(元)" >
|
|
|
|
|
|
+ <el-table-column prop="grainType" label="粮食类型" >
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="storage" label="附件">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <img
|
|
|
|
- width="18"
|
|
|
|
- height="20"
|
|
|
|
- style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
|
- src="../../../public/img/fujian.png"
|
|
|
|
- @click="fujian(scope.row)"
|
|
|
|
- alt=""
|
|
|
|
- />
|
|
|
|
- </template>
|
|
|
|
|
|
+ <el-table-column prop="inType" label="入库类型" >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="netWeight" label="净重(吨)" >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="pureWeight" label="纯重(吨)" >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="unitPrice" label="价格(元/吨)" >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="deductionAmount" label="扣款(元/吨)" >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="freight" label="运费(元/吨)" >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="originalStock" label="原库存量(吨)" >
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column prop="costBefore" label="入库前加权成本" >
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="costDate" label="日期">
|
|
|
|
|
|
+ <el-table-column prop="costAfter" label="入库后加权成本" >
|
|
</el-table-column>
|
|
</el-table-column>
|
|
-
|
|
|
|
- <el-table-column prop="address" label="操作" width="200">
|
|
|
|
- <template slot-scope="scope">
|
|
|
|
- <div class="adjustment" v-hasPermission="
|
|
|
|
- `warehouseManagement.warehouse.warehouseInfo.view`
|
|
|
|
- " @click="editlist(scope.row)">编辑</div>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <el-table-column prop="createDate" label="更新日期">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<el-pagination
|
|
<el-pagination
|
|
@@ -180,8 +178,8 @@ export default {
|
|
// 表格显示数据
|
|
// 表格显示数据
|
|
tableDate: [],
|
|
tableDate: [],
|
|
goodnameList:[],
|
|
goodnameList:[],
|
|
- goodName:'玉米',
|
|
|
|
- ooodNameKey:1,
|
|
|
|
|
|
+ goodsName:'玉米',
|
|
|
|
+ goodsNameKey:1,
|
|
expenseName:'',
|
|
expenseName:'',
|
|
yearList:[],
|
|
yearList:[],
|
|
dialogtitle:'',
|
|
dialogtitle:'',
|
|
@@ -211,6 +209,7 @@ export default {
|
|
warehouseId:'',
|
|
warehouseId:'',
|
|
forbidden:false,
|
|
forbidden:false,
|
|
forbidden1:false,
|
|
forbidden1:false,
|
|
|
|
+ start:2021,
|
|
addvisible:false,
|
|
addvisible:false,
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
deptCircularPage: {},
|
|
deptCircularPage: {},
|
|
@@ -229,20 +228,21 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
|
|
+ this.cangid=this.$route.query.cangId
|
|
// 货名
|
|
// 货名
|
|
- packList({ constId: 'CON2' })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.goodnameList = response
|
|
|
|
- })
|
|
|
|
|
|
+ // packList({ constId: 'CON2' })
|
|
|
|
+ // .toPromise()
|
|
|
|
+ // .then((response) => {
|
|
|
|
+ // this.goodnameList = response
|
|
|
|
+ // })
|
|
this.year=new Date().getFullYear()
|
|
this.year=new Date().getFullYear()
|
|
- for(var i=2021;i<=this.year;i++){
|
|
|
|
|
|
+ for(var i=this.start;i<=this.year;i++){
|
|
this.yearList.push({value:i})
|
|
this.yearList.push({value:i})
|
|
}
|
|
}
|
|
if(this.year>=new Date().getFullYear()){
|
|
if(this.year>=new Date().getFullYear()){
|
|
this.forbidden1=true
|
|
this.forbidden1=true
|
|
}
|
|
}
|
|
- if(this.year<=2021){
|
|
|
|
|
|
+ if(this.year<=this.start){
|
|
this.forbidden=true
|
|
this.forbidden=true
|
|
}
|
|
}
|
|
this.selectWarehouse()
|
|
this.selectWarehouse()
|
|
@@ -253,46 +253,22 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
selectgoodsName(e) {
|
|
selectgoodsName(e) {
|
|
for (var i = 0; i < this.goodnameList.length; i++) {
|
|
for (var i = 0; i < this.goodnameList.length; i++) {
|
|
- if (this.goodnameList[i].constValue == e) {
|
|
|
|
- this.goodsNameKey = this.goodnameList[i].constKey
|
|
|
|
|
|
+ if (this.goodnameList[i].goodsName == e) {
|
|
|
|
+ this.goodsNameKey = this.goodnameList[i].goodsNameKey
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
returnsales(){
|
|
returnsales(){
|
|
this.$router.go(-1)
|
|
this.$router.go(-1)
|
|
},
|
|
},
|
|
- fujian(row) {
|
|
|
|
- if (row.applUrl === null || row.applUrl === '') {
|
|
|
|
- EventBus.$emit(
|
|
|
|
- 'warning',
|
|
|
|
- this.$t('system.noticeCircular.NoInformation')
|
|
|
|
- )
|
|
|
|
- }
|
|
|
|
- this.appendixIdss = row.applUrl
|
|
|
|
- this.accessoryTFs = true
|
|
|
|
- },
|
|
|
|
- uploadSuccessHandle(e){
|
|
|
|
- this.applUrl=e.url
|
|
|
|
- },
|
|
|
|
counttotal(){
|
|
counttotal(){
|
|
for (let i = 0; i < this.warehouseList.records.length; i++) {
|
|
for (let i = 0; i < this.warehouseList.records.length; i++) {
|
|
this.count+=this.warehouseList.records[i].amount
|
|
this.count+=this.warehouseList.records[i].amount
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- onChange() {
|
|
|
|
- this.$refs.upload
|
|
|
|
- .handleSaveBill()
|
|
|
|
- .then(async response => {
|
|
|
|
- this.applUrl = response
|
|
|
|
- })
|
|
|
|
- .catch(res => {
|
|
|
|
- EventBus.$emit('error', (JSON.parse(res) || {}).message)
|
|
|
|
- this.$refs.upload.clearFiles()
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
minus(){
|
|
minus(){
|
|
|
|
|
|
- if(this.year<=2021){
|
|
|
|
|
|
+ if(this.year<=this.start){
|
|
this.forbidden=true
|
|
this.forbidden=true
|
|
}else{
|
|
}else{
|
|
this.year--
|
|
this.year--
|
|
@@ -327,25 +303,6 @@ export default {
|
|
this.editvisible=true
|
|
this.editvisible=true
|
|
this.id=item.id
|
|
this.id=item.id
|
|
},
|
|
},
|
|
- editprice(){
|
|
|
|
- this.$confirm(`加权成本价格修改后不可恢复,确认提交`, {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- .then(() => {
|
|
|
|
- editcost({id:this.id,cost:this.price}).toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.$notify.success({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '价格修改成功',
|
|
|
|
- })
|
|
|
|
- this.editvisible=false
|
|
|
|
- this.getList()
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
//查看
|
|
//查看
|
|
handleClose() {
|
|
handleClose() {
|
|
this.accessoryTFs = false
|
|
this.accessoryTFs = false
|
|
@@ -373,13 +330,19 @@ export default {
|
|
id: response[i].id,
|
|
id: response[i].id,
|
|
count: response[i].count,
|
|
count: response[i].count,
|
|
purchasePriceList: response[i].purchasePriceList,
|
|
purchasePriceList: response[i].purchasePriceList,
|
|
- No:response[i].commonWarehouseNo
|
|
|
|
|
|
+ No:response[i].commonWarehouseNo,
|
|
|
|
+ goodsNameInfos:response[i].goodsNameInfos
|
|
})
|
|
})
|
|
if (this.cangid&&this.cangid == response[i].id) {
|
|
if (this.cangid&&this.cangid == response[i].id) {
|
|
this.warehouseName = response[i].warehouseName
|
|
this.warehouseName = response[i].warehouseName
|
|
this.warehouseCount = response[i].count
|
|
this.warehouseCount = response[i].count
|
|
this.warehouseNo = response[i].commonWarehouseNo
|
|
this.warehouseNo = response[i].commonWarehouseNo
|
|
this.purchasePriceList = response[i].purchasePriceList
|
|
this.purchasePriceList = response[i].purchasePriceList
|
|
|
|
+ this.goodnameList=response[i].goodsNameInfos
|
|
|
|
+ if(this.goodnameList){
|
|
|
|
+ this.goodsName=this.goodnameList[0].goodsName
|
|
|
|
+ this.goodsNameKey=this.goodnameList[0].goodsNameKey
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(this.warehouseList1.length > 0 && !this.cangid){
|
|
if(this.warehouseList1.length > 0 && !this.cangid){
|
|
@@ -389,6 +352,11 @@ export default {
|
|
this.cangid = this.warehouseList1[0].id
|
|
this.cangid = this.warehouseList1[0].id
|
|
this.purchasePriceList = this.warehouseList1[0].purchasePriceList
|
|
this.purchasePriceList = this.warehouseList1[0].purchasePriceList
|
|
this.WAREHOUSE[1].payname = this.warehouseList1[0].value
|
|
this.WAREHOUSE[1].payname = this.warehouseList1[0].value
|
|
|
|
+ this.goodnameList=this.warehouseList1[0].goodsNameInfos
|
|
|
|
+ if(this.goodnameList){
|
|
|
|
+ this.goodsName=this.goodnameList[0].goodsName
|
|
|
|
+ this.goodsNameKey=this.goodnameList[0].goodsNameKey
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.getList()
|
|
this.getList()
|
|
})
|
|
})
|
|
@@ -397,6 +365,7 @@ export default {
|
|
weighteddetails({
|
|
weighteddetails({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
warehouseId: this.cangid,
|
|
warehouseId: this.cangid,
|
|
|
|
+ goodsNameKey:this.goodsNameKey,
|
|
year: this.year,
|
|
year: this.year,
|
|
currectPage:this.currectPage,
|
|
currectPage:this.currectPage,
|
|
pageSize:this.pageSize
|
|
pageSize:this.pageSize
|
|
@@ -404,40 +373,10 @@ export default {
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
this.warehouseList = response
|
|
this.warehouseList = response
|
|
|
|
+ this.deptBudgetTotal=response.total
|
|
this.counttotal()
|
|
this.counttotal()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- editClick(row) {
|
|
|
|
- var status = ''
|
|
|
|
- if (row.status == '待执行' || row.status == '已完成') {
|
|
|
|
- status = '执行中'
|
|
|
|
- } else if (row.status == '执行中') {
|
|
|
|
- status = '已完成'
|
|
|
|
- }
|
|
|
|
- //cancelButtonClass: "btn-custom-cancel"
|
|
|
|
- this.$confirm(`是否将状态改为${status}`, {
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- .then(() => {
|
|
|
|
- editstatus({ id: row.id })
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.$notify.success({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '状态修改成功',
|
|
|
|
- })
|
|
|
|
- this.getList()
|
|
|
|
- })
|
|
|
|
- .catch((response) => {
|
|
|
|
- // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- .catch(() => {
|
|
|
|
- return false
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
selecttaskType(e) {
|
|
selecttaskType(e) {
|
|
for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
if (this.taskTypeList[i].value == e) {
|
|
if (this.taskTypeList[i].value == e) {
|