|
@@ -12,7 +12,7 @@
|
|
<el-select v-model="getdataListParm1.parammaps.departmentId" style="width: 140px;" placeholder="部门" class="filter-item" @change = "change_dept">
|
|
<el-select v-model="getdataListParm1.parammaps.departmentId" style="width: 140px;" placeholder="部门" class="filter-item" @change = "change_dept">
|
|
<el-option v-for="item in deptNameList" :key="item.id" :label="item.name" :value="item.id" />
|
|
<el-option v-for="item in deptNameList" :key="item.id" :label="item.name" :value="item.id" />
|
|
</el-select>
|
|
</el-select>
|
|
-
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<el-table
|
|
<el-table
|
|
@@ -88,7 +88,7 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-form :model="scope.row" :rules="rules">
|
|
<el-form :model="scope.row" :rules="rules">
|
|
<el-form-item prop="amount">
|
|
<el-form-item prop="amount">
|
|
- <el-input v-model="scope.row.amount" style="width:80px;margin-top:25px;height:10px" />
|
|
|
|
|
|
+ <el-input v-model="scope.row.amount" style="width:80px;margin-top:25px;height:10px" />
|
|
<!-- 白少让先注释了 -->
|
|
<!-- 白少让先注释了 -->
|
|
<!-- <el-input v-if ="scope.row.amount == 0" v-model="scope.row.amount" style="width:80px;margin-top:25px;height:10px" disabled/>
|
|
<!-- <el-input v-if ="scope.row.amount == 0" v-model="scope.row.amount" style="width:80px;margin-top:25px;height:10px" disabled/>
|
|
<el-input v-else v-model="scope.row.amount" style="width:80px;margin-top:25px;height:10px" /> -->
|
|
<el-input v-else v-model="scope.row.amount" style="width:80px;margin-top:25px;height:10px" /> -->
|
|
@@ -244,8 +244,8 @@
|
|
<el-date-picker ref="inputDatetime4" v-model="getdataListParm4.parammaps.inputDatetime" class="inputDatetime" type="datetimerange" style="width: 270px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始提交日期" end-placeholder="结束提交日期" />
|
|
<el-date-picker ref="inputDatetime4" v-model="getdataListParm4.parammaps.inputDatetime" class="inputDatetime" type="datetimerange" style="width: 270px;top:-3px;" format="yyyy-MM-dd" value-format="yyyy-MM-dd" range-separator="至" start-placeholder="开始提交日期" end-placeholder="结束提交日期" />
|
|
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search4">搜索</el-button>
|
|
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search4">搜索</el-button>
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
<el-table
|
|
<el-table
|
|
:key="tableKey4"
|
|
:key="tableKey4"
|
|
@@ -258,12 +258,12 @@
|
|
style="width: 100%;"
|
|
style="width: 100%;"
|
|
:row-style="rowStyle"
|
|
:row-style="rowStyle"
|
|
:cell-style="cellStyle"
|
|
:cell-style="cellStyle"
|
|
- class="elTable table-fixed"
|
|
|
|
|
|
+ class="elTable table-fixed"
|
|
@sort-change="tableSort"
|
|
@sort-change="tableSort"
|
|
@current-change="handleCurrentChange"
|
|
@current-change="handleCurrentChange"
|
|
:max-height="myHeight"
|
|
:max-height="myHeight"
|
|
>
|
|
>
|
|
-
|
|
|
|
|
|
+
|
|
<el-table-column label="序号" align="center" type="index" width="50px">
|
|
<el-table-column label="序号" align="center" type="index" width="50px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.$index + (pageNum2-1) * pageSize2 + 1 }}</span>
|
|
<span>{{ scope.$index + (pageNum2-1) * pageSize2 + 1 }}</span>
|
|
@@ -291,7 +291,7 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="审核状态" min-width="80px" align="center" :formatter="statue" />
|
|
<el-table-column label="审核状态" min-width="80px" align="center" :formatter="statue" />
|
|
-
|
|
|
|
|
|
+
|
|
<el-table-column label="操作" align="center" width="250px" class-name="small-padding fixed-width" fixed="right">
|
|
<el-table-column label="操作" align="center" width="250px" class-name="small-padding fixed-width" fixed="right">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<el-button v-if="isPurchaseSee" type="primary" size="mini" @click="form_see4(row)">查看</el-button>
|
|
<el-button v-if="isPurchaseSee" type="primary" size="mini" @click="form_see4(row)">查看</el-button>
|
|
@@ -337,7 +337,7 @@
|
|
:cell-style="cellStyle"
|
|
:cell-style="cellStyle"
|
|
class="elTable table-fixed"
|
|
class="elTable table-fixed"
|
|
>
|
|
>
|
|
-
|
|
|
|
|
|
+
|
|
<el-table-column label="序号" align="center" type="index" width="50px" />
|
|
<el-table-column label="序号" align="center" type="index" width="50px" />
|
|
<el-table-column label="采购单号" min-width="110px" align="center">
|
|
<el-table-column label="采购单号" min-width="110px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -622,8 +622,8 @@
|
|
@selection-change="change_table_selection"
|
|
@selection-change="change_table_selection"
|
|
:max-height="myHeight"
|
|
:max-height="myHeight"
|
|
>
|
|
>
|
|
- <el-table-column type="selection" :selectable="checkboxInit" align="center" width="50" />
|
|
|
|
- <el-table-column label="序号" align="center" type="index" width="50px">
|
|
|
|
|
|
+ <el-table-column type="selection" :selectable="checkboxInit" align="center" width="50" disabled />
|
|
|
|
+ <el-table-column label="序号1" align="center" type="index" width="50px">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.$index + (pageNum2-1) * pageSize2 + 1 }}</span>
|
|
<span>{{ scope.$index + (pageNum2-1) * pageSize2 + 1 }}</span>
|
|
</template>
|
|
</template>
|
|
@@ -656,7 +656,7 @@
|
|
<span>{{scope.row.sapNumber}}</span>
|
|
<span>{{scope.row.sapNumber}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
-
|
|
|
|
|
|
+
|
|
<el-table-column prop="sapstatus" label="sap上传状态" min-width="80px" align="center">
|
|
<el-table-column prop="sapstatus" label="sap上传状态" min-width="80px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span v-show="scope.row.sapstatus == 1">上传失败</span>
|
|
<span v-show="scope.row.sapstatus == 1">上传失败</span>
|
|
@@ -980,7 +980,7 @@
|
|
<el-autocomplete v-model="getdataListParm5.parammaps.providerName" value-key="providerName" class="inline-input" :fetch-suggestions="providerSearch" placeholder="供应商" style="width:150px;top:-3px;" @select="handleSelectProvider" />
|
|
<el-autocomplete v-model="getdataListParm5.parammaps.providerName" value-key="providerName" class="inline-input" :fetch-suggestions="providerSearch" placeholder="供应商" style="width:150px;top:-3px;" @select="handleSelectProvider" />
|
|
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search5">搜索</el-button>
|
|
<el-button v-waves class="filter-item" type="primary" icon="el-icon-search" @click="form_search5">搜索</el-button>
|
|
<el-button class="filter-item" type="primary" icon="el-icon-edit" @click="form_add5">新增</el-button>
|
|
<el-button class="filter-item" type="primary" icon="el-icon-edit" @click="form_add5">新增</el-button>
|
|
-
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
<el-table
|
|
<el-table
|
|
:key="tableKey5"
|
|
:key="tableKey5"
|
|
@@ -1011,7 +1011,7 @@
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.providerName }}</span>
|
|
<span>{{ scope.row.providerName }}</span>
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="牧场" min-width="110px" align="center">
|
|
<el-table-column label="牧场" min-width="110px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.pastureName }}</span>
|
|
<span>{{ scope.row.pastureName }}</span>
|
|
@@ -1028,14 +1028,14 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="提交日期" sortable prop="buyerDate" min-width="110px" align="center" />
|
|
<el-table-column label="提交日期" sortable prop="buyerDate" min-width="110px" align="center" />
|
|
-
|
|
|
|
|
|
+
|
|
<el-table-column label="单据状态" min-width="80px" align="center" :formatter="statu" />
|
|
<el-table-column label="单据状态" min-width="80px" align="center" :formatter="statu" />
|
|
<el-table-column prop="sapNumber" label="sap编码" min-width="80px" align="center">
|
|
<el-table-column prop="sapNumber" label="sap编码" min-width="80px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{scope.row.sapNumber}}</span>
|
|
<span>{{scope.row.sapNumber}}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
-
|
|
|
|
|
|
+
|
|
<el-table-column prop="sapstatus" label="sap上传状态" min-width="80px" align="center">
|
|
<el-table-column prop="sapstatus" label="sap上传状态" min-width="80px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span v-show="scope.row.sapstatus == 1">上传失败</span>
|
|
<span v-show="scope.row.sapstatus == 1">上传失败</span>
|
|
@@ -1054,16 +1054,16 @@
|
|
<el-table-column label="操作" align="center" width="250px" class-name="small-padding fixed-width" fixed="right">
|
|
<el-table-column label="操作" align="center" width="250px" class-name="small-padding fixed-width" fixed="right">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<el-button type="primary" size="mini" @click="form_see5(row)">查看</el-button>
|
|
<el-button type="primary" size="mini" @click="form_see5(row)">查看</el-button>
|
|
- <el-button v-if="row.statu === 0" type="danger" size="mini" @click="handleClose5(row)">关闭</el-button>
|
|
|
|
-
|
|
|
|
|
|
+ <el-button v-if="row.statu === 0" type="danger" size="mini" @click="handleClose5(row)">关闭</el-button>
|
|
|
|
+
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
</el-table>
|
|
</el-table>
|
|
<pagination v-show="total5>=0" :total="total5" :page.sync="getdataListParm5.offset" :limit.sync="getdataListParm5.pagecount" @pagination="get_table_data5" />
|
|
<pagination v-show="total5>=0" :total="total5" :page.sync="getdataListParm5.offset" :limit.sync="getdataListParm5.pagecount" @pagination="get_table_data5" />
|
|
</div>
|
|
</div>
|
|
- </el-tab-pane>
|
|
|
|
|
|
+ </el-tab-pane>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1151,7 +1151,7 @@
|
|
<span>{{ scope.row.price }}</span>
|
|
<span>{{ scope.row.price }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
-
|
|
|
|
|
|
+
|
|
<el-table-column sortable prop="amount" label="采购数量" min-width="130px" align="center">
|
|
<el-table-column sortable prop="amount" label="采购数量" min-width="130px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.amount }}</span>
|
|
<span>{{ scope.row.amount }}</span>
|
|
@@ -1162,7 +1162,7 @@
|
|
<span>{{ scope.row.sumPrice }}</span>
|
|
<span>{{ scope.row.sumPrice }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
-
|
|
|
|
|
|
+
|
|
<el-table-column prop="SGremark" label="备注" min-width="110px" align="center">
|
|
<el-table-column prop="SGremark" label="备注" min-width="110px" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.SGremark }}</span>
|
|
<span>{{ scope.row.SGremark }}</span>
|
|
@@ -1267,7 +1267,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
-
|
|
|
|
|
|
+
|
|
</el-row>
|
|
</el-row>
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="15">
|
|
<el-col :span="15">
|
|
@@ -1289,10 +1289,10 @@
|
|
</el-autocomplete>
|
|
</el-autocomplete>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
-
|
|
|
|
|
|
+
|
|
</el-row>
|
|
</el-row>
|
|
</el-form>
|
|
</el-form>
|
|
-
|
|
|
|
|
|
+
|
|
<el-table
|
|
<el-table
|
|
element-loading-text="给我一点时间"
|
|
element-loading-text="给我一点时间"
|
|
:data="listAdd5"
|
|
:data="listAdd5"
|
|
@@ -1304,7 +1304,7 @@
|
|
:cell-style="cellStyle"
|
|
:cell-style="cellStyle"
|
|
class="elTable table-fixed"
|
|
class="elTable table-fixed"
|
|
>
|
|
>
|
|
-
|
|
|
|
|
|
+
|
|
<el-table-column label="序号" align="center" type="index" width="50px" />
|
|
<el-table-column label="序号" align="center" type="index" width="50px" />
|
|
<el-table-column label="备件编号" prop="partCode" align="center" min-width="90">
|
|
<el-table-column label="备件编号" prop="partCode" align="center" min-width="90">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -1368,7 +1368,7 @@
|
|
<a class="del" @click="partDelete5(row)">删除</a>
|
|
<a class="del" @click="partDelete5(row)">删除</a>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- </el-table>
|
|
|
|
|
|
+ </el-table>
|
|
<div slot="footer" class="dialog-footer" style="bottom:10px">
|
|
<div slot="footer" class="dialog-footer" style="bottom:10px">
|
|
<el-button type="primary" :disabled="isokDisable" @click="add_dialog_save5()">保存并关闭</el-button>
|
|
<el-button type="primary" :disabled="isokDisable" @click="add_dialog_save5()">保存并关闭</el-button>
|
|
<el-button @click="dialogFormVisible5 = false;get_table_data5()">取消并关闭</el-button>
|
|
<el-button @click="dialogFormVisible5 = false;get_table_data5()">取消并关闭</el-button>
|
|
@@ -1487,7 +1487,7 @@ export default {
|
|
{ name: 'getDepartmentNY', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }},
|
|
{ name: 'getDepartmentNY', offset: 0, pagecount: 0, parammaps: { 'pastureId': Cookies.get('pastureid') }},
|
|
{ name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
|
|
{ name: 'findAllPasture', offset: 0, pagecount: 0, returntype: 'Map', parammaps: { 'id': Cookies.get('pastureid') }},
|
|
{ name: 'findAllProvider', offset: 0, pagecount: 0, params: [] },
|
|
{ name: 'findAllProvider', offset: 0, pagecount: 0, params: [] },
|
|
-
|
|
|
|
|
|
+
|
|
],
|
|
],
|
|
getdataListParm1: {
|
|
getdataListParm1: {
|
|
name: 'getbuydetailParts',
|
|
name: 'getbuydetailParts',
|
|
@@ -1653,10 +1653,10 @@ export default {
|
|
inputDatetime: ''
|
|
inputDatetime: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
dialogFormVisible5: false,
|
|
dialogFormVisible5: false,
|
|
-
|
|
|
|
|
|
+
|
|
createTemp5: {
|
|
createTemp5: {
|
|
providerId: '',
|
|
providerId: '',
|
|
buyeCode: '',
|
|
buyeCode: '',
|
|
@@ -1671,7 +1671,7 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
rules55: {
|
|
rules55: {
|
|
-
|
|
|
|
|
|
+
|
|
note: [{ required: true, message: '必填', trigger: 'blur' }]
|
|
note: [{ required: true, message: '必填', trigger: 'blur' }]
|
|
},
|
|
},
|
|
|
|
|
|
@@ -1682,7 +1682,7 @@ export default {
|
|
parammaps: {}
|
|
parammaps: {}
|
|
},
|
|
},
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
getParmCreateNumber5: {
|
|
getParmCreateNumber5: {
|
|
name: 'autoCreatCode',
|
|
name: 'autoCreatCode',
|
|
@@ -1721,7 +1721,7 @@ export default {
|
|
findAllProvider5: [],
|
|
findAllProvider5: [],
|
|
temp5: {
|
|
temp5: {
|
|
note: ''
|
|
note: ''
|
|
- },
|
|
|
|
|
|
+ },
|
|
|
|
|
|
dialogFormVisibleSee5: false,
|
|
dialogFormVisibleSee5: false,
|
|
dialogStatusSee5: '',
|
|
dialogStatusSee5: '',
|
|
@@ -1752,7 +1752,7 @@ export default {
|
|
},
|
|
},
|
|
statueReason: false,
|
|
statueReason: false,
|
|
dialogFormVisibleClose: false,
|
|
dialogFormVisibleClose: false,
|
|
-
|
|
|
|
|
|
+
|
|
dialogFormVisibleClose5: false,
|
|
dialogFormVisibleClose5: false,
|
|
dialogStatusClose: '',
|
|
dialogStatusClose: '',
|
|
textMap: {
|
|
textMap: {
|
|
@@ -1860,7 +1860,7 @@ export default {
|
|
handleSelectSparePart5(item) {
|
|
handleSelectSparePart5(item) {
|
|
console.log('备件模糊查询选中值', item)
|
|
console.log('备件模糊查询选中值', item)
|
|
console.log('备件模糊查询选中值', item.id)
|
|
console.log('备件模糊查询选中值', item.id)
|
|
-
|
|
|
|
|
|
+
|
|
if (this.listAdd5.length > 0) {
|
|
if (this.listAdd5.length > 0) {
|
|
// eslint-disable-next-line no-redeclare
|
|
// eslint-disable-next-line no-redeclare
|
|
if (this.listAdd5.find(obj => obj.id === item.id)) {
|
|
if (this.listAdd5.find(obj => obj.id === item.id)) {
|
|
@@ -1870,9 +1870,9 @@ export default {
|
|
})
|
|
})
|
|
console.log(this.listAdd5)
|
|
console.log(this.listAdd5)
|
|
console.log(this.listAdd5.length)
|
|
console.log(this.listAdd5.length)
|
|
-
|
|
|
|
|
|
+
|
|
return false
|
|
return false
|
|
-
|
|
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
this.listAdd5.unshift(item)
|
|
this.listAdd5.unshift(item)
|
|
this.$set(item, 'amount', item.reportery)
|
|
this.$set(item, 'amount', item.reportery)
|
|
@@ -1897,16 +1897,16 @@ export default {
|
|
}
|
|
}
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
console.log(this.listAdd5)
|
|
console.log(this.listAdd5)
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
changeProvider5(val) {
|
|
changeProvider5(val) {
|
|
console.log(val, '供应商change')
|
|
console.log(val, '供应商change')
|
|
this.listAdd5 = []
|
|
this.listAdd5 = []
|
|
this.getParmBatchOperation5.parammaps.providerId = val
|
|
this.getParmBatchOperation5.parammaps.providerId = val
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
// 新增删除
|
|
// 新增删除
|
|
@@ -1985,7 +1985,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
//保存发的参数!!!!
|
|
//保存发的参数!!!!
|
|
var send_data = {
|
|
var send_data = {
|
|
@@ -2049,7 +2049,7 @@ export default {
|
|
this.getdataListParm5.parammaps.inputDatetime = ''
|
|
this.getdataListParm5.parammaps.inputDatetime = ''
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.get_table_data5()
|
|
this.get_table_data5()
|
|
-
|
|
|
|
|
|
+
|
|
}, 1000)
|
|
}, 1000)
|
|
this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
|
|
this.$notify({ title: '', message: '保存成功', type: 'success', duration: 2000 })
|
|
}
|
|
}
|
|
@@ -2066,7 +2066,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -2398,7 +2398,7 @@ export default {
|
|
var providerNameDest = []
|
|
var providerNameDest = []
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
// eslint-disable-next-line no-redeclare
|
|
// eslint-disable-next-line no-redeclare
|
|
for (var i = 0; i < this.list1.length; i++) {
|
|
for (var i = 0; i < this.list1.length; i++) {
|
|
@@ -2746,7 +2746,7 @@ export default {
|
|
handleClose5(row) {
|
|
handleClose5(row) {
|
|
this.resetCloseTemp5()
|
|
this.resetCloseTemp5()
|
|
this.temp5 = Object.assign({}, row)
|
|
this.temp5 = Object.assign({}, row)
|
|
-
|
|
|
|
|
|
+
|
|
this.dialogFormVisibleClose5 = true
|
|
this.dialogFormVisibleClose5 = true
|
|
},
|
|
},
|
|
|
|
|
|
@@ -2788,31 +2788,31 @@ export default {
|
|
if (this.temp5.statu === 0) {
|
|
if (this.temp5.statu === 0) {
|
|
this.isStatu = false
|
|
this.isStatu = false
|
|
this.temp5.statu = '未到货'
|
|
this.temp5.statu = '未到货'
|
|
-
|
|
|
|
|
|
+
|
|
} else if (this.temp2.statu === 1) {
|
|
} else if (this.temp2.statu === 1) {
|
|
this.isStatu = false
|
|
this.isStatu = false
|
|
this.temp5.statu = '部分到货'
|
|
this.temp5.statu = '部分到货'
|
|
-
|
|
|
|
|
|
+
|
|
} else if (this.temp2.statu === 2) {
|
|
} else if (this.temp2.statu === 2) {
|
|
this.isStatu = false
|
|
this.isStatu = false
|
|
this.temp5.statu = '按时到货'
|
|
this.temp5.statu = '按时到货'
|
|
-
|
|
|
|
|
|
+
|
|
} else if (this.temp2.statu === 3) {
|
|
} else if (this.temp2.statu === 3) {
|
|
this.isStatu = false
|
|
this.isStatu = false
|
|
this.temp5.statu = '已延期'
|
|
this.temp5.statu = '已延期'
|
|
-
|
|
|
|
|
|
+
|
|
} else if (this.temp2.statu === 4) {
|
|
} else if (this.temp2.statu === 4) {
|
|
this.temp5.statu = '已关闭'
|
|
this.temp5.statu = '已关闭'
|
|
this.isStatu = true
|
|
this.isStatu = true
|
|
-
|
|
|
|
|
|
+
|
|
} else if (this.temp2.statu === 5) {
|
|
} else if (this.temp2.statu === 5) {
|
|
this.isStatu = false
|
|
this.isStatu = false
|
|
this.temp5.statu = '部分到货-延期'
|
|
this.temp5.statu = '部分到货-延期'
|
|
-
|
|
|
|
|
|
+
|
|
} else if (this.temp2.statu === 6) {
|
|
} else if (this.temp2.statu === 6) {
|
|
this.isStatu = false
|
|
this.isStatu = false
|
|
this.temp5.statu = '全部到货-延期'
|
|
this.temp5.statu = '全部到货-延期'
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
this.dialogStatusSee5 = 'see'
|
|
this.dialogStatusSee5 = 'see'
|
|
this.dialogFormVisibleSee5 = true
|
|
this.dialogFormVisibleSee5 = true
|
|
@@ -2864,7 +2864,7 @@ export default {
|
|
sapUpload(){
|
|
sapUpload(){
|
|
|
|
|
|
|
|
|
|
- const that = this
|
|
|
|
|
|
+ const that = this
|
|
console.log("currentRow",this.currentRow.sapstatus)
|
|
console.log("currentRow",this.currentRow.sapstatus)
|
|
|
|
|
|
var send_data = this.selectList
|
|
var send_data = this.selectList
|
|
@@ -2882,19 +2882,19 @@ export default {
|
|
that.isSap = 0
|
|
that.isSap = 0
|
|
SapOrder(send_data).then(response => {
|
|
SapOrder(send_data).then(response => {
|
|
console.log('response', response)
|
|
console.log('response', response)
|
|
-
|
|
|
|
|
|
+
|
|
if (response.msg !== 'fail') {
|
|
if (response.msg !== 'fail') {
|
|
that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
|
|
that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
|
|
that.selectList = []
|
|
that.selectList = []
|
|
that.get_table_data2()
|
|
that.get_table_data2()
|
|
-
|
|
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
that.$notify({ title: '失败', message: '上传失败' , type: 'error', duration: 2000 })
|
|
that.$notify({ title: '失败', message: '上传失败' , type: 'error', duration: 2000 })
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
|
|
|
|
that.$notify({ title: '失败', message: '正在请求中,请稍等几秒钟后再点击' , type: 'error', duration: 2000 })
|
|
that.$notify({ title: '失败', message: '正在请求中,请稍等几秒钟后再点击' , type: 'error', duration: 2000 })
|
|
@@ -2906,37 +2906,37 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
// if(this.currentRow.sapstatus){
|
|
// if(this.currentRow.sapstatus){
|
|
-
|
|
|
|
|
|
+
|
|
// if(this.currentRow.sapstatus != 0){
|
|
// if(this.currentRow.sapstatus != 0){
|
|
// const sapArr = this.currentRow.sapbuyeCode.split(",")
|
|
// const sapArr = this.currentRow.sapbuyeCode.split(",")
|
|
// console.log("sapArr",sapArr)
|
|
// console.log("sapArr",sapArr)
|
|
// sapArr.forEach(function(item){
|
|
// sapArr.forEach(function(item){
|
|
// console.log("sapArr item",item)
|
|
// console.log("sapArr item",item)
|
|
// var send_data = {
|
|
// var send_data = {
|
|
-
|
|
|
|
|
|
+
|
|
// "code":item,
|
|
// "code":item,
|
|
// "pastureid":Cookies.get('pastureid')
|
|
// "pastureid":Cookies.get('pastureid')
|
|
-
|
|
|
|
|
|
+
|
|
// }
|
|
// }
|
|
|
|
|
|
// SapOrder(send_data).then(response => {
|
|
// SapOrder(send_data).then(response => {
|
|
// console.log('response', response)
|
|
// console.log('response', response)
|
|
-
|
|
|
|
|
|
+
|
|
// if (response.msg !== 'fail') {
|
|
// if (response.msg !== 'fail') {
|
|
// that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
|
|
// that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
|
|
// that.get_table_data()
|
|
// that.get_table_data()
|
|
-
|
|
|
|
|
|
+
|
|
// } else {
|
|
// } else {
|
|
// that.$notify({ title: '失败', message: '上传失败' , type: 'error', duration: 2000 })
|
|
// that.$notify({ title: '失败', message: '上传失败' , type: 'error', duration: 2000 })
|
|
// }
|
|
// }
|
|
-
|
|
|
|
|
|
+
|
|
// })
|
|
// })
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
// })
|
|
// })
|
|
@@ -2950,7 +2950,16 @@ export default {
|
|
console.log(row)
|
|
console.log(row)
|
|
var data1 = new Date(row.buyerDate)
|
|
var data1 = new Date(row.buyerDate)
|
|
var data2 = new Date('2022-10-25')
|
|
var data2 = new Date('2022-10-25')
|
|
- if(data1 > data2){ return 1 } else {return 0}
|
|
|
|
|
|
+ if(data1 > data2){
|
|
|
|
+ if(row.srmstatus !== 0){
|
|
|
|
+ return 1
|
|
|
|
+ }else{
|
|
|
|
+ return 0
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ return 0
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
|
|
//监听 - 表格 - 勾选
|
|
//监听 - 表格 - 勾选
|
|
@@ -2961,9 +2970,9 @@ export default {
|
|
|
|
|
|
srmUpload(){
|
|
srmUpload(){
|
|
|
|
|
|
- const that = this
|
|
|
|
|
|
+ const that = this
|
|
console.log("currentRow",this.currentRow.srmstatus)
|
|
console.log("currentRow",this.currentRow.srmstatus)
|
|
-
|
|
|
|
|
|
+
|
|
console.log('勾选数据selectList', this.selectList)
|
|
console.log('勾选数据selectList', this.selectList)
|
|
|
|
|
|
var send_data = this.selectList
|
|
var send_data = this.selectList
|
|
@@ -2982,21 +2991,21 @@ export default {
|
|
that.isSrm = 0
|
|
that.isSrm = 0
|
|
SrmOrder(send_data).then(response => {
|
|
SrmOrder(send_data).then(response => {
|
|
console.log('response', response)
|
|
console.log('response', response)
|
|
-
|
|
|
|
|
|
+
|
|
if (response.msg !== 'fail') {
|
|
if (response.msg !== 'fail') {
|
|
that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
|
|
that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
|
|
that.selectList = []
|
|
that.selectList = []
|
|
that.get_table_data2()
|
|
that.get_table_data2()
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
that.$notify({ title: '失败', message: '上传失败' , type: 'error', duration: 2000 })
|
|
that.$notify({ title: '失败', message: '上传失败' , type: 'error', duration: 2000 })
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
|
|
|
|
that.$notify({ title: '失败', message: '正在请求中,请稍等几秒钟后再点击' , type: 'error', duration: 2000 })
|
|
that.$notify({ title: '失败', message: '正在请求中,请稍等几秒钟后再点击' , type: 'error', duration: 2000 })
|
|
@@ -3009,7 +3018,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
// if(this.currentRow.srmstatus){
|
|
// if(this.currentRow.srmstatus){
|
|
// if(this.currentRow.srmstatus != 0){
|
|
// if(this.currentRow.srmstatus != 0){
|
|
// const srmArr = this.currentRow.srmbuyeCode.split(",")
|
|
// const srmArr = this.currentRow.srmbuyeCode.split(",")
|
|
@@ -3017,24 +3026,24 @@ export default {
|
|
// srmArr.forEach(function(item){
|
|
// srmArr.forEach(function(item){
|
|
// console.log("srmArr item",item)
|
|
// console.log("srmArr item",item)
|
|
// var send_data = {
|
|
// var send_data = {
|
|
-
|
|
|
|
|
|
+
|
|
// "code":item,
|
|
// "code":item,
|
|
// "pastureid":Cookies.get('pastureid')
|
|
// "pastureid":Cookies.get('pastureid')
|
|
// }
|
|
// }
|
|
// SrmOrder(send_data).then(response => {
|
|
// SrmOrder(send_data).then(response => {
|
|
// console.log('response', response)
|
|
// console.log('response', response)
|
|
-
|
|
|
|
|
|
+
|
|
// if (response.msg !== 'fail') {
|
|
// if (response.msg !== 'fail') {
|
|
// that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
|
|
// that.$notify({ title: '成功', message: '上传成功', type: 'success', duration: 2000 })
|
|
// that.get_table_data()
|
|
// that.get_table_data()
|
|
-
|
|
|
|
|
|
+
|
|
// } else {
|
|
// } else {
|
|
// that.$notify({ title: '失败', message: '上传失败' , type: 'error', duration: 2000 })
|
|
// that.$notify({ title: '失败', message: '上传失败' , type: 'error', duration: 2000 })
|
|
// }
|
|
// }
|
|
-
|
|
|
|
|
|
+
|
|
// })
|
|
// })
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
// })
|
|
// })
|
|
@@ -3044,7 +3053,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
closeData() {
|
|
closeData() {
|
|
this.isokDisable = true
|
|
this.isokDisable = true
|
|
@@ -3143,7 +3152,7 @@ export default {
|
|
|
|
|
|
get_table_data5() {
|
|
get_table_data5() {
|
|
this.listLoading5 = true
|
|
this.listLoading5 = true
|
|
-
|
|
|
|
|
|
+
|
|
GetDataByName(this.getdataListParm5).then(response => {
|
|
GetDataByName(this.getdataListParm5).then(response => {
|
|
this.list5 = response.data.list
|
|
this.list5 = response.data.list
|
|
this.pageNum5 = response.data.pageNum
|
|
this.pageNum5 = response.data.pageNum
|
|
@@ -3159,7 +3168,7 @@ export default {
|
|
},
|
|
},
|
|
form_search5() {
|
|
form_search5() {
|
|
this.listLoading = true
|
|
this.listLoading = true
|
|
-
|
|
|
|
|
|
+
|
|
this.getdataListParm5.offset = 1
|
|
this.getdataListParm5.offset = 1
|
|
this.get_table_data5()
|
|
this.get_table_data5()
|
|
},
|
|
},
|