|
@@ -2,10 +2,10 @@
|
|
<template>
|
|
<template>
|
|
<div class="container">
|
|
<div class="container">
|
|
<!-- <div> -->
|
|
<!-- <div> -->
|
|
- <div>
|
|
|
|
|
|
+ <!-- <div>
|
|
<ws-input
|
|
<ws-input
|
|
v-model="searchKeyWord"
|
|
v-model="searchKeyWord"
|
|
- placeholder="可按照合同编号和任务编号进行查找"
|
|
|
|
|
|
+ placeholder="可按采购计划编号和标题查找"
|
|
clearable
|
|
clearable
|
|
maxlength="500"
|
|
maxlength="500"
|
|
type="input"
|
|
type="input"
|
|
@@ -16,17 +16,44 @@
|
|
width="16"
|
|
width="16"
|
|
height="16"
|
|
height="16"
|
|
style="
|
|
style="
|
|
|
|
+ vertical-align: text-top;
|
|
|
|
+ position: relative;
|
|
|
|
+ top: 0px;
|
|
|
|
+ left: -8px;
|
|
|
|
+ "
|
|
|
|
+ src="../../../public/img/sousuo.png"
|
|
|
|
+ alt
|
|
|
|
+ />
|
|
|
|
+ </ws-button>
|
|
|
|
+ </div> -->
|
|
|
|
+
|
|
|
|
+ <BaseHeaderLayout :leftSpan="10">
|
|
|
|
+ <template slot="left"> <ws-button type="primary" @click="handleAdd()">添加</ws-button> </template>
|
|
|
|
+ <!-- 接单开始 -->
|
|
|
|
+ <template slot="right">
|
|
|
|
+ <ws-input
|
|
|
|
+ v-model="searchKeyWord"
|
|
|
|
+ placeholder="可按采购计划编号和标题查找"
|
|
|
|
+ clearable
|
|
|
|
+ maxlength="500"
|
|
|
|
+ type="input"
|
|
|
|
+ class="findValue"
|
|
|
|
+ ></ws-input>
|
|
|
|
+ <ws-button class="find" type="primary" @click="find()"
|
|
|
|
+ ><img
|
|
|
|
+ width="16"
|
|
|
|
+ height="16"
|
|
|
|
+ style="
|
|
vertical-align: text-top;
|
|
vertical-align: text-top;
|
|
position: relative;
|
|
position: relative;
|
|
top: 0px;
|
|
top: 0px;
|
|
left: -8px;
|
|
left: -8px;
|
|
"
|
|
"
|
|
- src="../../../public/img/sousuo.png"
|
|
|
|
- alt
|
|
|
|
- />
|
|
|
|
- </ws-button>
|
|
|
|
- </div>
|
|
|
|
- <ws-button type="primary" @click="handleAdd()">添加</ws-button>
|
|
|
|
|
|
+ src="../../../public/img/sousuo.png"
|
|
|
|
+ alt=""
|
|
|
|
+ /></ws-button>
|
|
|
|
+ </template>
|
|
|
|
+ </BaseHeaderLayout>
|
|
<el-table
|
|
<el-table
|
|
class="wenzi"
|
|
class="wenzi"
|
|
:data="warehouseList.records"
|
|
:data="warehouseList.records"
|
|
@@ -34,13 +61,76 @@
|
|
height="780"
|
|
height="780"
|
|
>
|
|
>
|
|
<el-table-column type="index" label="序号" width="80"></el-table-column>
|
|
<el-table-column type="index" label="序号" width="80"></el-table-column>
|
|
- <el-table-column class="table_td" prop="procurementPlanNo" label="采购计划编号"></el-table-column>
|
|
|
|
- <el-table-column class="table_td" prop="title" label="标题"></el-table-column>
|
|
|
|
- <el-table-column class="table_td" prop="goodsName" label="货名"></el-table-column>
|
|
|
|
- <el-table-column class="table_td" prop="plannedPurchaseVolume" label="重量(吨)"></el-table-column>
|
|
|
|
- <el-table-column class="table_td" prop="basisPrice" label="基差(元/吨)"></el-table-column>
|
|
|
|
- <el-table-column class="table_td" prop="unitPrice" label="单价(元/吨)"></el-table-column>
|
|
|
|
- <el-table-column class="table_td" prop="receiveWarehouse" label="收货库"></el-table-column>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ class="table_td"
|
|
|
|
+ prop="procurementPlanNo"
|
|
|
|
+ label="采购计划编号"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ class="table_td"
|
|
|
|
+ prop="title"
|
|
|
|
+ label="标题"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ class="table_td"
|
|
|
|
+ prop="goodsName"
|
|
|
|
+ label="货名"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ class="table_td"
|
|
|
|
+ prop="plannedPurchaseVolume"
|
|
|
|
+ label="重量(吨)"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column class="table_td" prop="basisPrice" label="基差(元/吨)">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-if="scope.row.procurementPlanType == '期货'">
|
|
|
|
+ <div class="inputChenge">
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="scope.row.basisPrice"
|
|
|
|
+ @change="varietyClick(scope.row)"
|
|
|
|
+ class="inputs"
|
|
|
|
+ ></el-input>
|
|
|
|
+ </div>
|
|
|
|
+ <img
|
|
|
|
+ width="17"
|
|
|
|
+ height="18"
|
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
|
+ src="../../../public/img/edit.png"
|
|
|
|
+ @click="varietyClick(scope.row)"
|
|
|
|
+ alt=""
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else>—</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column class="table_td" prop="unitPrice" label="单价(元/吨)">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-if="scope.row.procurementPlanType == '现货'">
|
|
|
|
+ <div class="inputChenge">
|
|
|
|
+ <!-- readonly -->
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="scope.row.unitPrice"
|
|
|
|
+ v-bind:class="inputs"
|
|
|
|
+ @change="varietyClick(scope.row)"
|
|
|
|
+ ></el-input>
|
|
|
|
+ </div>
|
|
|
|
+ <img
|
|
|
|
+ width="17"
|
|
|
|
+ height="18"
|
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
|
+ src="../../../public/img/edit.png"
|
|
|
|
+ @click="varietyClick(scope.row)"
|
|
|
|
+ alt=""
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
|
|
+ <div v-else>—</div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ class="table_td"
|
|
|
|
+ prop="receiveWarehouse"
|
|
|
|
+ label="收货库"
|
|
|
|
+ ></el-table-column>
|
|
<el-table-column prop="status" label="状态">
|
|
<el-table-column prop="status" label="状态">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-popover
|
|
<el-popover
|
|
@@ -52,17 +142,30 @@
|
|
>
|
|
>
|
|
<template>
|
|
<template>
|
|
<span slot="reference">
|
|
<span slot="reference">
|
|
- <span v-if="scope.row.showFlag == 1"> <span class="executory"></span>展示中</span>
|
|
|
|
- <span v-if="scope.row.showFlag == 0"> <span class="inExecution"></span>已隐藏</span>
|
|
|
|
|
|
+ <span v-if="scope.row.showFlag == 1">
|
|
|
|
+ <span class="executory"></span>展示中</span
|
|
|
|
+ >
|
|
|
|
+ <span v-if="scope.row.showFlag == 0">
|
|
|
|
+ <span class="inExecution"></span>已隐藏</span
|
|
|
|
+ >
|
|
</span>
|
|
</span>
|
|
</template>
|
|
</template>
|
|
<div>
|
|
<div>
|
|
<!-- <p style="margin-top: 0; padding-left: 10px">历史记录</p> -->
|
|
<!-- <p style="margin-top: 0; padding-left: 10px">历史记录</p> -->
|
|
- <div v-for="(item, index) in historyList" class="flex" :key="index">
|
|
|
|
- <div class="vertical-text vertical-text-left">{{ item.updateDate }}</div>
|
|
|
|
|
|
+ <div
|
|
|
|
+ v-for="(item, index) in historyList"
|
|
|
|
+ class="flex"
|
|
|
|
+ :key="index"
|
|
|
|
+ >
|
|
|
|
+ <div class="vertical-text vertical-text-left">
|
|
|
|
+ {{ item.updateDate }}
|
|
|
|
+ </div>
|
|
<div>
|
|
<div>
|
|
<div class="vertical-circle"></div>
|
|
<div class="vertical-circle"></div>
|
|
- <div v-if="index != historyList.length - 1" class="vertical-line"></div>
|
|
|
|
|
|
+ <div
|
|
|
|
+ v-if="index != historyList.length - 1"
|
|
|
|
+ class="vertical-line"
|
|
|
|
+ ></div>
|
|
</div>
|
|
</div>
|
|
<div class="vertical-text">
|
|
<div class="vertical-text">
|
|
{{ item.operateUser }}
|
|
{{ item.operateUser }}
|
|
@@ -72,9 +175,21 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-popover>
|
|
</el-popover>
|
|
|
|
+ <img
|
|
|
|
+ width="17"
|
|
|
|
+ height="18"
|
|
|
|
+ style="vertical-align: text-top; position: relative; top: -1px"
|
|
|
|
+ src="../../../public/img/edit.png"
|
|
|
|
+ @click="editClick(scope.row)"
|
|
|
|
+ alt=""
|
|
|
|
+ />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column class="table_td" label="更新时间" prop="updateDate"></el-table-column>
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ class="table_td"
|
|
|
|
+ label="更新时间"
|
|
|
|
+ prop="updateDate"
|
|
|
|
+ ></el-table-column>
|
|
<el-table-column prop="seller" label="操作" width="300">
|
|
<el-table-column prop="seller" label="操作" width="300">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div class="record" @click="handleLook(scope.row)">查看</div>
|
|
<div class="record" @click="handleLook(scope.row)">查看</div>
|
|
@@ -97,7 +212,11 @@
|
|
<!-- </div> -->
|
|
<!-- </div> -->
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { procurementPlan , procurementDel } from '@/model/purchasingManagement/index'
|
|
|
|
|
|
+import {
|
|
|
|
+ procurementPlan,
|
|
|
|
+ procurementDel,
|
|
|
|
+ procurementEditOther,
|
|
|
|
+} from '@/model/purchasingManagement/index'
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
import WsUpload from '@/components/WsUpload'
|
|
import WsUpload from '@/components/WsUpload'
|
|
@@ -106,7 +225,7 @@ export default {
|
|
name: 'viewSpareMoney',
|
|
name: 'viewSpareMoney',
|
|
components: {
|
|
components: {
|
|
WsUpload,
|
|
WsUpload,
|
|
- Pagination
|
|
|
|
|
|
+ Pagination,
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
vesselId(val) {
|
|
vesselId(val) {
|
|
@@ -114,7 +233,7 @@ export default {
|
|
},
|
|
},
|
|
isShow(val) {
|
|
isShow(val) {
|
|
this.showType = val
|
|
this.showType = val
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -132,7 +251,7 @@ export default {
|
|
year: '',
|
|
year: '',
|
|
pickerOptions: {},
|
|
pickerOptions: {},
|
|
value2: '',
|
|
value2: '',
|
|
- handleSizeChange:'',
|
|
|
|
|
|
+ handleSizeChange: '',
|
|
deptBudgetTotal: 0,
|
|
deptBudgetTotal: 0,
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
// tranTypeKey: 1,
|
|
// tranTypeKey: 1,
|
|
@@ -141,7 +260,7 @@ export default {
|
|
searchTypeText: '未完成',
|
|
searchTypeText: '未完成',
|
|
searchKeyWord: '',
|
|
searchKeyWord: '',
|
|
contractType: 2,
|
|
contractType: 2,
|
|
- pcFlag:1,
|
|
|
|
|
|
+ pcFlag: 1,
|
|
// 提交类型
|
|
// 提交类型
|
|
submitType: true,
|
|
submitType: true,
|
|
size: 10,
|
|
size: 10,
|
|
@@ -152,14 +271,15 @@ export default {
|
|
deptCircularPage: {},
|
|
deptCircularPage: {},
|
|
warehouseList: [],
|
|
warehouseList: [],
|
|
deptBudgetList: {},
|
|
deptBudgetList: {},
|
|
- pcFlag:1,
|
|
|
|
|
|
+ pcFlag: 1,
|
|
historyList: [],
|
|
historyList: [],
|
|
pickerBeginDateBefore: {
|
|
pickerBeginDateBefore: {
|
|
- disabledDate: time => {
|
|
|
|
|
|
+ disabledDate: (time) => {
|
|
return time.getTime() > Date.now()
|
|
return time.getTime() > Date.now()
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
- accessoryTFs: false
|
|
|
|
|
|
+ accessoryTFs: false,
|
|
|
|
+ inputs: 'inputs1',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
@@ -168,7 +288,6 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getList() {
|
|
getList() {
|
|
- console.log(123456)
|
|
|
|
procurementPlan({
|
|
procurementPlan({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
@@ -177,9 +296,10 @@ export default {
|
|
tranTypeKey: this.tranTypeKey,
|
|
tranTypeKey: this.tranTypeKey,
|
|
contractNo: this.contractNo,
|
|
contractNo: this.contractNo,
|
|
pcFlag: this.pcFlag,
|
|
pcFlag: this.pcFlag,
|
|
|
|
+ searchKeyWord:this.searchKeyWord
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
this.warehouseList = response
|
|
this.warehouseList = response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -187,23 +307,11 @@ export default {
|
|
this.searchType = state
|
|
this.searchType = state
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
- // delivery(item) {
|
|
|
|
- // this.$router.push({
|
|
|
|
- // path: 'warehouseManagementDelivery',
|
|
|
|
- // query: {
|
|
|
|
- // baseId: item.warehouseId,
|
|
|
|
- // positionId: item.binNumberId,
|
|
|
|
- // warehouseName: item.warehouseName,
|
|
|
|
- // binNumber: item.binNumber,
|
|
|
|
- // capacity: item.capacity
|
|
|
|
- // }
|
|
|
|
- // })
|
|
|
|
- // },
|
|
|
|
//编辑
|
|
//编辑
|
|
handleEdit(row) {
|
|
handleEdit(row) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: 'procurementPlanEdit',
|
|
name: 'procurementPlanEdit',
|
|
- query: { id: row.id },
|
|
|
|
|
|
+ query: { id: row.id },
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getSpanArr(data) {
|
|
getSpanArr(data) {
|
|
@@ -238,7 +346,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//添加
|
|
//添加
|
|
- handleAdd(){
|
|
|
|
|
|
+ handleAdd() {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: 'procurementPlanAdd',
|
|
name: 'procurementPlanAdd',
|
|
})
|
|
})
|
|
@@ -248,23 +356,20 @@ export default {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: 'procurementPlanLook',
|
|
name: 'procurementPlanLook',
|
|
query: {
|
|
query: {
|
|
- id: row.id
|
|
|
|
- }
|
|
|
|
|
|
+ id: row.id,
|
|
|
|
+ },
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleDelete(row) {
|
|
handleDelete(row) {
|
|
- var handleDelete = ' '
|
|
|
|
- if(row.handleDelete == ''){
|
|
|
|
- }
|
|
|
|
- this.$confirm(
|
|
|
|
- `采购计划删除后不可恢复,是否确定删除?`,
|
|
|
|
- {
|
|
|
|
- cancelButtonText: '取消',
|
|
|
|
- confirmButtonText: '确定',
|
|
|
|
- type:'warning'
|
|
|
|
- }
|
|
|
|
- )
|
|
|
|
- .then(() => {
|
|
|
|
|
|
+ var handleDelete = ' '
|
|
|
|
+ if (row.handleDelete == '') {
|
|
|
|
+ }
|
|
|
|
+ this.$confirm(`采购计划删除后不可恢复,是否确定删除?`, {
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
procurementDel({ id: row.id })
|
|
procurementDel({ id: row.id })
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
@@ -282,9 +387,6 @@ export default {
|
|
return false
|
|
return false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- },
|
|
|
|
-
|
|
|
|
-
|
|
|
|
//返回
|
|
//返回
|
|
revert() {
|
|
revert() {
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
@@ -295,7 +397,7 @@ export default {
|
|
'Y+': date.getFullYear().toString(), // 年
|
|
'Y+': date.getFullYear().toString(), // 年
|
|
'm+': (date.getMonth() + 1).toString(), // 月
|
|
'm+': (date.getMonth() + 1).toString(), // 月
|
|
'd+': date.getDate().toString(), // 日
|
|
'd+': date.getDate().toString(), // 日
|
|
- 'H+': date.getHours().toString() // 时
|
|
|
|
|
|
+ 'H+': date.getHours().toString(), // 时
|
|
// "M+": date.getMinutes().toString(), // 分
|
|
// "M+": date.getMinutes().toString(), // 分
|
|
// "S+": date.getSeconds().toString() // 秒
|
|
// "S+": date.getSeconds().toString() // 秒
|
|
// 有其他格式化字符需求可以继续添加,必须转化成字符串
|
|
// 有其他格式化字符需求可以继续添加,必须转化成字符串
|
|
@@ -326,34 +428,67 @@ export default {
|
|
},
|
|
},
|
|
editClick(row) {
|
|
editClick(row) {
|
|
var status = ''
|
|
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(() => {
|
|
|
|
- alsostate({ id: row.id })
|
|
|
|
- .toPromise()
|
|
|
|
- .then(response => {
|
|
|
|
- this.$notify.success({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '状态修改成功'
|
|
|
|
- })
|
|
|
|
- this.getList()
|
|
|
|
- })
|
|
|
|
- .catch(response => {
|
|
|
|
- // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
|
|
|
|
- })
|
|
|
|
|
|
+ var num = 1
|
|
|
|
+ if (row.showFlag == 1) {
|
|
|
|
+ status = '已隐藏'
|
|
|
|
+ num = 0
|
|
|
|
+ this.$confirm(`隐藏后交易信息不 再展示给客户,是否确定隐藏?`, {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
})
|
|
})
|
|
- .catch(() => {
|
|
|
|
- return false
|
|
|
|
|
|
+ .then(() => {
|
|
|
|
+ procurementEditOther({
|
|
|
|
+ flag: 0,
|
|
|
|
+ showFlag: num,
|
|
|
|
+ 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
|
|
|
|
+ })
|
|
|
|
+ } else if (row.showFlag == 0) {
|
|
|
|
+ status = '展示中'
|
|
|
|
+ num = 1
|
|
|
|
+ this.$confirm(`确定展示交易信息?`, {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
})
|
|
})
|
|
|
|
+ .then(() => {
|
|
|
|
+ procurementEditOther({
|
|
|
|
+ flag: 0,
|
|
|
|
+ showFlag: num,
|
|
|
|
+ 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
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ //cancelButtonClass: "btn-custom-cancel"
|
|
},
|
|
},
|
|
selecttaskType(e) {
|
|
selecttaskType(e) {
|
|
for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
@@ -379,7 +514,7 @@ export default {
|
|
handleExamine(row) {
|
|
handleExamine(row) {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
name: 'salesContractExamine',
|
|
name: 'salesContractExamine',
|
|
- query: { id: row.id }
|
|
|
|
|
|
+ query: { id: row.id },
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 关闭 dialog时 处理文件url 初始化upload组件
|
|
// 关闭 dialog时 处理文件url 初始化upload组件
|
|
@@ -389,13 +524,13 @@ export default {
|
|
history(row) {
|
|
history(row) {
|
|
billoperatehis({ id: row.id })
|
|
billoperatehis({ id: row.id })
|
|
.toPromise()
|
|
.toPromise()
|
|
- .then(response => {
|
|
|
|
|
|
+ .then((response) => {
|
|
this.historyList = response
|
|
this.historyList = response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//查找
|
|
//查找
|
|
find() {
|
|
find() {
|
|
- this.currentPage = 1
|
|
|
|
|
|
+ // this.searchKeyWord = 1
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
async exportlist() {
|
|
async exportlist() {
|
|
@@ -408,21 +543,78 @@ export default {
|
|
searchType: this.searchType,
|
|
searchType: this.searchType,
|
|
searchKeyWord: this.searchKeyWord,
|
|
searchKeyWord: this.searchKeyWord,
|
|
startDate: this.startDate,
|
|
startDate: this.startDate,
|
|
- endDate: this.endDate
|
|
|
|
|
|
+ endDate: this.endDate,
|
|
},
|
|
},
|
|
{},
|
|
{},
|
|
{ responseType: 'blob' }
|
|
{ responseType: 'blob' }
|
|
).toPromise()
|
|
).toPromise()
|
|
downloadFile({
|
|
downloadFile({
|
|
res: data,
|
|
res: data,
|
|
- fileName: `${this.date.year +
|
|
|
|
- (this.date.month ? `-${this.date.month}` : '')}_采购合同`,
|
|
|
|
- type: 'xls'
|
|
|
|
|
|
+ fileName: `${
|
|
|
|
+ this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
|
|
+ }_采购合同`,
|
|
|
|
+ type: 'xls',
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- total() {}
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ varietyClick(row) {
|
|
|
|
+ if (row.procurementPlanType == '期货') {
|
|
|
|
+ this.$confirm(`确定要修改基差?`, {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ procurementEditOther({
|
|
|
|
+ flag: 1,
|
|
|
|
+ basisPrice: row.basisPrice,
|
|
|
|
+ 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
|
|
|
|
+ })
|
|
|
|
+ } else if (row.procurementPlanType == '现货') {
|
|
|
|
+ this.$confirm(`确定要修改单价?`, {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
|
|
+ procurementEditOther({
|
|
|
|
+ flag: 2,
|
|
|
|
+ unitPrice: row.unitPrice,
|
|
|
|
+ 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
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+}
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.connert {
|
|
.connert {
|
|
@@ -503,9 +695,6 @@ export default {
|
|
height: 12px;
|
|
height: 12px;
|
|
background: #e9ecf7;
|
|
background: #e9ecf7;
|
|
}
|
|
}
|
|
-// .el-row{
|
|
|
|
-// height: 150px;
|
|
|
|
-// }
|
|
|
|
.base_header_layout .grid-content {
|
|
.base_header_layout .grid-content {
|
|
margin-top: 80px;
|
|
margin-top: 80px;
|
|
}
|
|
}
|
|
@@ -530,12 +719,15 @@ export default {
|
|
}
|
|
}
|
|
.executory {
|
|
.executory {
|
|
background: #ff9f24;
|
|
background: #ff9f24;
|
|
|
|
+ margin-right: 3px;
|
|
}
|
|
}
|
|
.inExecution {
|
|
.inExecution {
|
|
background: #5878e8;
|
|
background: #5878e8;
|
|
|
|
+ margin-right: 3px;
|
|
}
|
|
}
|
|
.done {
|
|
.done {
|
|
background: #50cad4;
|
|
background: #50cad4;
|
|
|
|
+ margin-right: 3px;
|
|
}
|
|
}
|
|
.record,
|
|
.record,
|
|
.adjustment {
|
|
.adjustment {
|
|
@@ -598,7 +790,6 @@ export default {
|
|
.el-button--primary {
|
|
.el-button--primary {
|
|
background-color: #5878e8;
|
|
background-color: #5878e8;
|
|
border-color: #5878e8;
|
|
border-color: #5878e8;
|
|
- // margin-left: 85%;
|
|
|
|
margin-top: 20px;
|
|
margin-top: 20px;
|
|
}
|
|
}
|
|
//导航条样式
|
|
//导航条样式
|
|
@@ -619,19 +810,25 @@ export default {
|
|
}
|
|
}
|
|
.but {
|
|
.but {
|
|
margin-left: 30%;
|
|
margin-left: 30%;
|
|
- /* margin-top: -32px; */
|
|
|
|
overflow: auto;
|
|
overflow: auto;
|
|
- /* float: left; */
|
|
|
|
- /* margin-left: 1px; */
|
|
|
|
margin-left: -10px;
|
|
margin-left: -10px;
|
|
}
|
|
}
|
|
.el-input--small {
|
|
.el-input--small {
|
|
font-size: 13px;
|
|
font-size: 13px;
|
|
width: 390px;
|
|
width: 390px;
|
|
- margin-left: 74%;
|
|
|
|
}
|
|
}
|
|
/deep/.el-table .el-table__header .cell,
|
|
/deep/.el-table .el-table__header .cell,
|
|
.el-table .el-table__body .cell {
|
|
.el-table .el-table__body .cell {
|
|
text-align: center;
|
|
text-align: center;
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+.inputChenge {
|
|
|
|
+ width: 50%;
|
|
|
|
+ display: inline-flex;
|
|
|
|
+}
|
|
|
|
+.inputs1 {
|
|
|
|
+ border: none;
|
|
|
|
+}
|
|
|
|
+// .inputChenge>>>.el-input__inner{
|
|
|
|
+// border: none;
|
|
|
|
+// }
|
|
|
|
+</style>
|