|
@@ -269,7 +269,7 @@
|
|
<el-button
|
|
<el-button
|
|
v-if="scope.row.status == '已通过' || scope.row.status == '已成交'"
|
|
v-if="scope.row.status == '已通过' || scope.row.status == '已成交'"
|
|
class="record"
|
|
class="record"
|
|
- @click="dialogFormVisible1 = true"
|
|
|
|
|
|
+ @click="makeabargain(scope.row)"
|
|
>成交</el-button
|
|
>成交</el-button
|
|
>
|
|
>
|
|
<!-- 补充定金 -->
|
|
<!-- 补充定金 -->
|
|
@@ -325,20 +325,21 @@
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="deptBudgetTotal"
|
|
:total="deptBudgetTotal"
|
|
></el-pagination>
|
|
></el-pagination>
|
|
|
|
+ <!--成交-->
|
|
<el-dialog
|
|
<el-dialog
|
|
width="30%"
|
|
width="30%"
|
|
title="成交"
|
|
title="成交"
|
|
:visible.sync="dialogFormVisible1"
|
|
:visible.sync="dialogFormVisible1"
|
|
:append-to-body="true"
|
|
:append-to-body="true"
|
|
>
|
|
>
|
|
- <el-form ref="warehouseList" :model="warehouseList">
|
|
|
|
|
|
+ <el-form ref="warehouseList">
|
|
<el-form-item
|
|
<el-form-item
|
|
label="成交价(元/吨)"
|
|
label="成交价(元/吨)"
|
|
prop="transactionPrice"
|
|
prop="transactionPrice"
|
|
:label-width="formLabelWidth"
|
|
:label-width="formLabelWidth"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
- v-model="warehouseList.transactionPrice"
|
|
|
|
|
|
+ v-model="clinchdeal1.transactionPrice"
|
|
autocomplete="off"
|
|
autocomplete="off"
|
|
placeholder="请输入成交价"
|
|
placeholder="请输入成交价"
|
|
class="deal"
|
|
class="deal"
|
|
@@ -350,7 +351,7 @@
|
|
:label-width="formLabelWidth"
|
|
:label-width="formLabelWidth"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
- v-model="warehouseList.transactionsNumber"
|
|
|
|
|
|
+ v-model="clinchdeal1.turnover"
|
|
autocomplete="off"
|
|
autocomplete="off"
|
|
placeholder="请输入成交量"
|
|
placeholder="请输入成交量"
|
|
class="deal"
|
|
class="deal"
|
|
@@ -362,7 +363,7 @@
|
|
:label-width="formLabelWidth"
|
|
:label-width="formLabelWidth"
|
|
>
|
|
>
|
|
<el-input
|
|
<el-input
|
|
- v-model="warehouseList.basis"
|
|
|
|
|
|
+ v-model="clinchdeal1.basis"
|
|
autocomplete="off"
|
|
autocomplete="off"
|
|
placeholder="请输入基差"
|
|
placeholder="请输入基差"
|
|
class="deal"
|
|
class="deal"
|
|
@@ -375,7 +376,7 @@
|
|
class="deal"
|
|
class="deal"
|
|
>
|
|
>
|
|
<ws-date-picker
|
|
<ws-date-picker
|
|
- v-model="deptBudgetList.submissionDate"
|
|
|
|
|
|
+ v-model="clinchdeal1.dealDate"
|
|
type="date"
|
|
type="date"
|
|
placeholder="请选择成交日期"
|
|
placeholder="请选择成交日期"
|
|
value-format="yyyy-MM-dd"
|
|
value-format="yyyy-MM-dd"
|
|
@@ -385,9 +386,10 @@
|
|
</el-form>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button @click="dialogFormVisible1 = false">取 消</el-button>
|
|
<el-button @click="dialogFormVisible1 = false">取 消</el-button>
|
|
- <el-button type="primary" @click="submit()">确 定</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="chengjiao()">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <!-- 补充定金 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
width="40%"
|
|
width="40%"
|
|
title="补充定金"
|
|
title="补充定金"
|
|
@@ -416,6 +418,7 @@
|
|
<el-button type="primary" @click="replenish">确 定</el-button>
|
|
<el-button type="primary" @click="replenish">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <!-- 平仓 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
width="40%"
|
|
width="40%"
|
|
title="平仓"
|
|
title="平仓"
|
|
@@ -424,12 +427,19 @@
|
|
>
|
|
>
|
|
<el-form class="closeposition">
|
|
<el-form class="closeposition">
|
|
<el-form-item label="成交价格(元/吨)" prop="transactionPrice">
|
|
<el-form-item label="成交价格(元/吨)" prop="transactionPrice">
|
|
- <el-select
|
|
|
|
- v-model="closePositionList1.transactionPrice"
|
|
|
|
- autocomplete="off"
|
|
|
|
- placeholder="请输入成交价"
|
|
|
|
- class="deal"
|
|
|
|
- ></el-select>
|
|
|
|
|
|
+ <ws-select
|
|
|
|
+ v-model="closePositionList1.transactionPrice"
|
|
|
|
+ placeholder
|
|
|
|
+ class="deal"
|
|
|
|
+ placeholder="请输入成交价"
|
|
|
|
+ >
|
|
|
|
+ <ws-option
|
|
|
|
+ v-for="item in transactionRecordList"
|
|
|
|
+ :key="item.constKey"
|
|
|
|
+ :label="item.transactionPrice"
|
|
|
|
+ :value="item.transactionPrice"
|
|
|
|
+ />
|
|
|
|
+ </ws-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="可平仓数量(吨)" prop="openPosition">
|
|
<el-form-item label="可平仓数量(吨)" prop="openPosition">
|
|
<el-input
|
|
<el-input
|
|
@@ -456,7 +466,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="平仓基差(元/吨)" prop="closingBasis">
|
|
<el-form-item label="平仓基差(元/吨)" prop="closingBasis">
|
|
<el-input
|
|
<el-input
|
|
- v-model="closePositionList1.closingBasis"
|
|
|
|
|
|
+ v-model="closePositionList1.basis"
|
|
autocomplete="off"
|
|
autocomplete="off"
|
|
placeholder="请输入平仓基差"
|
|
placeholder="请输入平仓基差"
|
|
class="deal"
|
|
class="deal"
|
|
@@ -487,7 +497,7 @@
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
-
|
|
|
|
|
|
+ <!-- 审核 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
width="40%"
|
|
width="40%"
|
|
title="审核"
|
|
title="审核"
|
|
@@ -600,6 +610,7 @@
|
|
<el-button type="primary" @click="aduitconfirm">通过</el-button>
|
|
<el-button type="primary" @click="aduitconfirm">通过</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <!-- 客户信息 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
width="30%"
|
|
width="30%"
|
|
title="客户信息"
|
|
title="客户信息"
|
|
@@ -674,6 +685,7 @@
|
|
<el-button @click="dialogFormVisible8 = false">取 消</el-button>
|
|
<el-button @click="dialogFormVisible8 = false">取 消</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <!-- 成交记录 -->
|
|
<el-dialog
|
|
<el-dialog
|
|
width="40%"
|
|
width="40%"
|
|
title="成交记录"
|
|
title="成交记录"
|
|
@@ -706,6 +718,7 @@
|
|
<el-table-column prop="dealDate" label="成交日期"> </el-table-column>
|
|
<el-table-column prop="dealDate" label="成交日期"> </el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <!--改价记录-->
|
|
<el-dialog
|
|
<el-dialog
|
|
width="30%"
|
|
width="30%"
|
|
title="改价记录"
|
|
title="改价记录"
|
|
@@ -775,6 +788,8 @@ export default {
|
|
},
|
|
},
|
|
formLabelWidth: '120px',
|
|
formLabelWidth: '120px',
|
|
basischange: false,
|
|
basischange: false,
|
|
|
|
+ clinchdeal:{},
|
|
|
|
+ clinchdeal1:{},
|
|
barWidth: 0,
|
|
barWidth: 0,
|
|
barHeight: 0,
|
|
barHeight: 0,
|
|
retioX: 1,
|
|
retioX: 1,
|
|
@@ -819,7 +834,7 @@ export default {
|
|
submitType: true,
|
|
submitType: true,
|
|
size: 10,
|
|
size: 10,
|
|
spanArr: [],
|
|
spanArr: [],
|
|
- contractNo: '',
|
|
|
|
|
|
+ // contractNo: '',
|
|
customerlist: {},
|
|
customerlist: {},
|
|
packingTypeList: [],
|
|
packingTypeList: [],
|
|
inOutTaskNo: '',
|
|
inOutTaskNo: '',
|
|
@@ -827,6 +842,7 @@ export default {
|
|
deptCircularPage: {},
|
|
deptCircularPage: {},
|
|
warehouseList: [],
|
|
warehouseList: [],
|
|
deptBudgetList: {},
|
|
deptBudgetList: {},
|
|
|
|
+ transactionRecordList:{},
|
|
pcFlag: 1,
|
|
pcFlag: 1,
|
|
invoiceList: [],
|
|
invoiceList: [],
|
|
contractNolist: [],
|
|
contractNolist: [],
|
|
@@ -859,6 +875,31 @@ export default {
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ handle(item){
|
|
|
|
+ this.$confirm(`状态修改为已完成后不可再进行交易操作,是否确定修改?`, {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ editStatus({id:item.id,flag:2}).toPromise()
|
|
|
|
+ .then(response => {
|
|
|
|
+ this.$message.success('修改成功')
|
|
|
|
+ this.getList()
|
|
|
|
+ }).catch(req => {
|
|
|
|
+ this.$message.success('修改失败')
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ makeabargain(item){
|
|
|
|
+ this.dialogFormVisible1 = true
|
|
|
|
+ this.clinchdeal.id=item.id
|
|
|
|
+ this.clinchdeal.contractNo=item.contractNo
|
|
|
|
+ this.clinchdeal.goodsName=item.goodsName
|
|
|
|
+ this.clinchdeal.planId=item.planId
|
|
|
|
+ this.clinchdeal.buyer=item.buyer
|
|
|
|
+ this.clinchdeal.commonId=item.commonId
|
|
|
|
+ },
|
|
deletehandle(item) {
|
|
deletehandle(item) {
|
|
this.$confirm(`销售订单删除后不可恢复,是否确定删除?`, {
|
|
this.$confirm(`销售订单删除后不可恢复,是否确定删除?`, {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
@@ -876,21 +917,27 @@ export default {
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- closepositionconfirm() {
|
|
|
|
- closePositionList(this.closePositionList1)
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.$message.success('修改基差成功')
|
|
|
|
|
|
+ closepositionconfirm(){
|
|
|
|
+ this.closePositionList1.compId=sessionStorage.getItem('ws-pf_compId')
|
|
|
|
+ closePositionList(this.closePositionList1).toPromise()
|
|
|
|
+ .then(response => {
|
|
|
|
+ this.$message.success('平仓成功')
|
|
this.getList()
|
|
this.getList()
|
|
- })
|
|
|
|
- .catch((req) => {
|
|
|
|
- this.$message.success('修改基差失败')
|
|
|
|
|
|
+ }).catch(req => {
|
|
|
|
+ this.$message.warning('平仓失败')
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- cloaeposition1(item) {
|
|
|
|
|
|
+ cloaeposition1(item){
|
|
this.dialogFormVisible2 = true
|
|
this.dialogFormVisible2 = true
|
|
- this.$set(this.closePositionList1, 'id', item.id)
|
|
|
|
- this.$set(this.closePositionList1, 'openPosition', item.openPosition)
|
|
|
|
|
|
+ this.$set(this.closePositionList1,'id',item.id)
|
|
|
|
+ this.transactionRecordList=item.transactionRecordList
|
|
|
|
+ this.$set(this.closePositionList1,'openPosition',item.openPosition)
|
|
|
|
+ this.$set(this.closePositionList1,'transactionsNumber',item.transactionsNumber)
|
|
|
|
+ this.$set(this.closePositionList1,'contractNo',item.contractNo)
|
|
|
|
+ this.$set(this.closePositionList1,'planId',item.planId)
|
|
|
|
+ this.$set(this.closePositionList1,'closeRate',item.closeRate)
|
|
|
|
+ this.$set(this.closePositionList1,'seller',item.seller)
|
|
|
|
+ this.$set(this.closePositionList1,'commonId',item.commonId)
|
|
},
|
|
},
|
|
changebasis(item) {
|
|
changebasis(item) {
|
|
editStatus({ basis: this.basis, id: item.id, flag: 3 })
|
|
editStatus({ basis: this.basis, id: item.id, flag: 3 })
|
|
@@ -1073,18 +1120,13 @@ export default {
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- console.log(this.aduitlist)
|
|
|
|
aduitsale(this.aduitlist)
|
|
aduitsale(this.aduitlist)
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- console.log(response)
|
|
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then((response) => {
|
|
|
|
- this.$message.success('审核成功')
|
|
|
|
- this.$router.push({ path: 'tranManagementWarehouseInOuttask' })
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
- })
|
|
|
|
|
|
+ .then(response => {
|
|
|
|
+ this.$message.success('审核成功')
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
|
|
+ })
|
|
},
|
|
},
|
|
Changepricerecord(item) {
|
|
Changepricerecord(item) {
|
|
this.dialogFormVisible5 = true
|
|
this.dialogFormVisible5 = true
|
|
@@ -1115,8 +1157,8 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
//成交
|
|
//成交
|
|
- submit() {
|
|
|
|
- if (!this.warehouseList.transactionPrice) {
|
|
|
|
|
|
+ chengjiao() {
|
|
|
|
+ if (!this.clinchdeal1.transactionPrice) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '成交价不能为空',
|
|
message: '成交价不能为空',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
@@ -1128,19 +1170,19 @@ export default {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- console.log(23456678790)
|
|
|
|
- chengList(this.warehouseList)
|
|
|
|
- .toPromise()
|
|
|
|
- .then((response) => {
|
|
|
|
- this.$message.success('添加成功')
|
|
|
|
-
|
|
|
|
- // this.$router.go(-1)
|
|
|
|
- })
|
|
|
|
- .catch(() => {
|
|
|
|
- console.log(1111111111)
|
|
|
|
- return false
|
|
|
|
- })
|
|
|
|
|
|
+ chengList({transactionRecord:this.clinchdeal1,id:this.clinchdeal.id,compId:sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ contractNo:this.clinchdeal.contractNo,planId:this.clinchdeal.planId,goodsName:this.clinchdeal.goodsName,buyer:this.clinchdeal.buyer,commonId:this.clinchdeal.commonId})
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$message.success('成交成功')
|
|
|
|
+ this.dialogFormVisible1 = false
|
|
|
|
+ // this.$router.go(-1)
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ return false
|
|
|
|
+ })
|
|
})
|
|
})
|
|
|
|
+
|
|
},
|
|
},
|
|
selectpackingType(e) {
|
|
selectpackingType(e) {
|
|
for (var i = 0; i < this.packingTypeList.length; i++) {
|
|
for (var i = 0; i < this.packingTypeList.length; i++) {
|
|
@@ -1157,7 +1199,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getList() {
|
|
getList() {
|
|
- console.log(123456)
|
|
|
|
detailsList({
|
|
detailsList({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
@@ -1170,6 +1211,7 @@ export default {
|
|
.then((response) => {
|
|
.then((response) => {
|
|
for (var i = 0; i < response.records.length; i++) {
|
|
for (var i = 0; i < response.records.length; i++) {
|
|
response.records[i].basischange = false
|
|
response.records[i].basischange = false
|
|
|
|
+ response.records[i].openPosition=response.records[i].cumulativeTurnover-response.records[i].closedPosition-response.records[i].stockInQuantity
|
|
}
|
|
}
|
|
this.warehouseList = response
|
|
this.warehouseList = response
|
|
this.deptCircularPage.currentPage = response.current
|
|
this.deptCircularPage.currentPage = response.current
|
|
@@ -1191,7 +1233,7 @@ export default {
|
|
// 合同编号
|
|
// 合同编号
|
|
aduitcontractno({
|
|
aduitcontractno({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
- flag: 0,
|
|
|
|
|
|
+ flag: 1,
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|