|
@@ -22,11 +22,11 @@
|
|
<ws-form-item
|
|
<ws-form-item
|
|
label="仓库名称"
|
|
label="仓库名称"
|
|
span="1"
|
|
span="1"
|
|
- prop="contractNo"
|
|
|
|
|
|
+ prop="warehouseName"
|
|
class="readonly"
|
|
class="readonly"
|
|
>
|
|
>
|
|
<ws-select
|
|
<ws-select
|
|
- v-model="deptBudgetList.packingMethod"
|
|
|
|
|
|
+ v-model="deptBudgetList.warehouseName"
|
|
placeholder=""
|
|
placeholder=""
|
|
class="typeselect"
|
|
class="typeselect"
|
|
@change="selectpackingMethod"
|
|
@change="selectpackingMethod"
|
|
@@ -40,9 +40,9 @@
|
|
</ws-select>
|
|
</ws-select>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--负责人-->
|
|
<!--负责人-->
|
|
- <ws-form-item label="负责人" span="1" prop="shippingType">
|
|
|
|
|
|
+ <ws-form-item label="负责人" span="1" prop="personCharge">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.shippingType"
|
|
|
|
|
|
+ v-model="deptBudgetList.personCharge"
|
|
placeholder="负责人"
|
|
placeholder="负责人"
|
|
maxlength="20"
|
|
maxlength="20"
|
|
size="small"
|
|
size="small"
|
|
@@ -52,20 +52,20 @@
|
|
<ws-form-item
|
|
<ws-form-item
|
|
label="负责人电话"
|
|
label="负责人电话"
|
|
span="1"
|
|
span="1"
|
|
- prop="buyer"
|
|
|
|
|
|
+ prop="personPhone"
|
|
class="readonly"
|
|
class="readonly"
|
|
>
|
|
>
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.buyer"
|
|
|
|
|
|
+ v-model="deptBudgetList.personPhone"
|
|
placeholder="负责人电话"
|
|
placeholder="负责人电话"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--仓库所在地-->
|
|
<!--仓库所在地-->
|
|
- <ws-form-item label="仓库所在地" span="1" prop="settlementMethod">
|
|
|
|
|
|
+ <ws-form-item label="仓库所在地" span="1" prop="warehouseLocation">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.settlementMethod"
|
|
|
|
|
|
+ v-model="deptBudgetList.warehouseLocation"
|
|
placeholder="请输入仓库所在地"
|
|
placeholder="请输入仓库所在地"
|
|
maxlength="120"
|
|
maxlength="120"
|
|
size="small"
|
|
size="small"
|
|
@@ -75,65 +75,65 @@
|
|
<ws-form-item
|
|
<ws-form-item
|
|
label="详细地址"
|
|
label="详细地址"
|
|
span="1"
|
|
span="1"
|
|
- prop="seller"
|
|
|
|
|
|
+ prop="detailedAddress"
|
|
class="readonly"
|
|
class="readonly"
|
|
>
|
|
>
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.seller"
|
|
|
|
|
|
+ v-model="deptBudgetList.detailedAddress"
|
|
placeholder="请输入详细地址"
|
|
placeholder="请输入详细地址"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--总储量(吨)-->
|
|
<!--总储量(吨)-->
|
|
- <ws-form-item label="总储量(吨)" span="1" prop="sourceGoods">
|
|
|
|
|
|
+ <ws-form-item label="总储量(吨)" span="1" prop="totalStorage">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.sourceGoods"
|
|
|
|
|
|
+ v-model="deptBudgetList.totalStorage"
|
|
placeholder="请输入总储量(吨)"
|
|
placeholder="请输入总储量(吨)"
|
|
maxlength="20"
|
|
maxlength="20"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--仓位编号-->
|
|
<!--仓位编号-->
|
|
- <ws-form-item label="仓位编号" span="1" prop="contractNo">
|
|
|
|
|
|
+ <ws-form-item label="仓位编号" span="1" prop="binNumber">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model.number="deptBudgetList.buyerPhone"
|
|
|
|
|
|
+ v-model.number="deptBudgetList.binNumber"
|
|
placeholder="请输入仓位编号"
|
|
placeholder="请输入仓位编号"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--最大储量(吨)-->
|
|
<!--最大储量(吨)-->
|
|
- <ws-form-item label="最大储量(吨)" span="1" prop="placeDelivery">
|
|
|
|
|
|
+ <ws-form-item label="最大储量(吨)" span="1" prop="maxStorage">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.placeDelivery"
|
|
|
|
|
|
+ v-model="deptBudgetList.maxStorage"
|
|
placeholder="请输入最大储量(吨)"
|
|
placeholder="请输入最大储量(吨)"
|
|
maxlength="20"
|
|
maxlength="20"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--现有储量-->
|
|
<!--现有储量-->
|
|
- <ws-form-item label="现有储量" span="1" prop="sellerPhone">
|
|
|
|
|
|
+ <ws-form-item label="现有储量" span="1" prop="nowStorage">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.sellerPhone"
|
|
|
|
|
|
+ v-model="deptBudgetList.nowStorage"
|
|
placeholder="请输入现有储量"
|
|
placeholder="请输入现有储量"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--备注(选项)-->
|
|
<!--备注(选项)-->
|
|
- <ws-form-item label="备注(选项)" span="1" prop="sellerPhone">
|
|
|
|
|
|
+ <ws-form-item label="备注(选项)" span="1" prop="remark">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.sellerPhone"
|
|
|
|
|
|
+ v-model="deptBudgetList.remark"
|
|
placeholder="请输入备注(选项)"
|
|
placeholder="请输入备注(选项)"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--仓位编号-->
|
|
<!--仓位编号-->
|
|
- <ws-form-item label="仓位编号" span="1" prop="contractNo" >
|
|
|
|
|
|
+ <ws-form-item label="仓位编号" span="1" prop="binNumber">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model.number="deptBudgetList.buyerPhone"
|
|
|
|
|
|
+ v-model.number="deptBudgetList.binNumber"
|
|
placeholder="请输入仓位编号"
|
|
placeholder="请输入仓位编号"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
@@ -141,27 +141,27 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<!--最大储量(吨)-->
|
|
<!--最大储量(吨)-->
|
|
- <ws-form-item label="最大储量(吨)" span="1" prop="placeDelivery">
|
|
|
|
|
|
+ <ws-form-item label="最大储量(吨)" span="1" prop="maxStorage">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.placeDelivery"
|
|
|
|
|
|
+ v-model="deptBudgetList.maxStorage"
|
|
placeholder="请输入最大储量(吨)"
|
|
placeholder="请输入最大储量(吨)"
|
|
maxlength="20"
|
|
maxlength="20"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--现有储量-->
|
|
<!--现有储量-->
|
|
- <ws-form-item label="现有储量" span="1" prop="sellerPhone">
|
|
|
|
|
|
+ <ws-form-item label="现有储量" span="1" prop="nowStorage">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.sellerPhone"
|
|
|
|
|
|
+ v-model="deptBudgetList.nowStorage"
|
|
placeholder="请输入现有储量"
|
|
placeholder="请输入现有储量"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--备注(选项)-->
|
|
<!--备注(选项)-->
|
|
- <ws-form-item label="备注(选项)" span="1" prop="sellerPhone">
|
|
|
|
|
|
+ <ws-form-item label="备注(选项)" span="1" prop="remark">
|
|
<ws-input
|
|
<ws-input
|
|
- v-model="deptBudgetList.sellerPhone"
|
|
|
|
|
|
+ v-model="deptBudgetList.remark"
|
|
placeholder="请输入备注(选项)"
|
|
placeholder="请输入备注(选项)"
|
|
maxlength="100"
|
|
maxlength="100"
|
|
size="small"
|
|
size="small"
|
|
@@ -183,12 +183,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import {
|
|
|
|
- getList,
|
|
|
|
- export1,
|
|
|
|
- editstatus,
|
|
|
|
- billoperatehis,
|
|
|
|
-} from '@/model/contarct/index'
|
|
|
|
|
|
+import { xiala, billoperatehis, getLook } from '@/model/warehouse/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'
|
|
@@ -230,11 +225,11 @@ export default {
|
|
endDate: null,
|
|
endDate: null,
|
|
// 提交类型
|
|
// 提交类型
|
|
submitType: true,
|
|
submitType: true,
|
|
- selectpackingMethod:{},
|
|
|
|
|
|
+ selectpackingMethod: {},
|
|
size: 10,
|
|
size: 10,
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
deptCircularPage: {},
|
|
deptCircularPage: {},
|
|
- packtypeList:{},
|
|
|
|
|
|
+ packtypeList: [],
|
|
date: {
|
|
date: {
|
|
year: dayjs().format('YYYY'),
|
|
year: dayjs().format('YYYY'),
|
|
month: dayjs().format('MM'),
|
|
month: dayjs().format('MM'),
|
|
@@ -255,11 +250,12 @@ export default {
|
|
//cg.viewBudget
|
|
//cg.viewBudget
|
|
//cg.viewSpareMoney
|
|
//cg.viewSpareMoney
|
|
// this.getVesselData();
|
|
// this.getVesselData();
|
|
- this.getList()
|
|
|
|
|
|
+ // this.getList()
|
|
|
|
+ this.loaddata()
|
|
|
|
+ this.getLook()
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
//返回按钮
|
|
//返回按钮
|
|
returnWarehouse() {
|
|
returnWarehouse() {
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
this.$router.push({ path: 'warehouseManagementList' })
|
|
@@ -299,8 +295,39 @@ export default {
|
|
console.log(`当前页: ${val}`)
|
|
console.log(`当前页: ${val}`)
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
- getList() {
|
|
|
|
- getList({
|
|
|
|
|
|
+ loaddata() {
|
|
|
|
+ // 仓库名称
|
|
|
|
+ xiala({ compId: 'CON1' })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.packtypeList = response
|
|
|
|
+ })
|
|
|
|
+ this.getUnitList()
|
|
|
|
+ },
|
|
|
|
+ getUnitList() {
|
|
|
|
+ xiala({
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ constCode: 'TYPEYAN',
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.unitList = response
|
|
|
|
+ let currItem
|
|
|
|
+ this.unitList.forEach((item, index, arr) => {
|
|
|
|
+ item.flag = 'delete'
|
|
|
|
+ if (this.vModel == item.constKey) {
|
|
|
|
+ currItem = item
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ //
|
|
|
|
+ if (currItem) {
|
|
|
|
+ this.selectContract(currItem.constValue)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ getLook() {
|
|
|
|
+ getLook({
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
contractType: this.contractType,
|
|
contractType: this.contractType,
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
@@ -328,33 +355,33 @@ export default {
|
|
this.contractList = response
|
|
this.contractList = response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- selecttaskType(e) {
|
|
|
|
- for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
|
|
- if (this.taskTypeList[i].value == e) {
|
|
|
|
- this.searchType = this.taskTypeList[i].type
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- fujian(row) {
|
|
|
|
- if (
|
|
|
|
- row.receiveAttachmentPath === null ||
|
|
|
|
- row.receiveAttachmentPath === ''
|
|
|
|
- ) {
|
|
|
|
- EventBus.$emit(
|
|
|
|
- 'warning',
|
|
|
|
- this.$t('system.noticeCircular.NoInformation')
|
|
|
|
- )
|
|
|
|
- } else {
|
|
|
|
- this.accessoryTFs = true
|
|
|
|
- }
|
|
|
|
- this.appendixIdss = row.receiveAttachmentPath
|
|
|
|
- },
|
|
|
|
- handleExamine(row) {
|
|
|
|
- this.$router.push({
|
|
|
|
- name: 'salesContractExamine',
|
|
|
|
- query: { id: row.id },
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
|
|
+ // selecttaskType(e) {
|
|
|
|
+ // for (var i = 0; i < this.taskTypeList.length; i++) {
|
|
|
|
+ // if (this.taskTypeList[i].value == e) {
|
|
|
|
+ // this.searchType = this.taskTypeList[i].type
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ // fujian(row) {
|
|
|
|
+ // if (
|
|
|
|
+ // row.receiveAttachmentPath === null ||
|
|
|
|
+ // row.receiveAttachmentPath === ''
|
|
|
|
+ // ) {
|
|
|
|
+ // EventBus.$emit(
|
|
|
|
+ // 'warning',
|
|
|
|
+ // this.$t('system.noticeCircular.NoInformation')
|
|
|
|
+ // )
|
|
|
|
+ // } else {
|
|
|
|
+ // this.accessoryTFs = true
|
|
|
|
+ // }
|
|
|
|
+ // this.appendixIdss = row.receiveAttachmentPath
|
|
|
|
+ // },
|
|
|
|
+ // handleExamine(row) {
|
|
|
|
+ // this.$router.push({
|
|
|
|
+ // name: 'salesContractExamine',
|
|
|
|
+ // query: { id: row.id },
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
|
|
|
|
// 关闭 dialog时 处理文件url 初始化upload组件
|
|
// 关闭 dialog时 处理文件url 初始化upload组件
|
|
handleCloe() {
|
|
handleCloe() {
|
|
@@ -368,36 +395,6 @@ export default {
|
|
this.historyList = response
|
|
this.historyList = response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- find() {
|
|
|
|
- this.startDate = this.dateFormat('YYYY-mm-dd', this.value2[0])
|
|
|
|
- this.endDate = this.dateFormat('YYYY-mm-dd', this.value2[1])
|
|
|
|
- this.currentPage = 1
|
|
|
|
- this.getList()
|
|
|
|
- },
|
|
|
|
- async exportlist() {
|
|
|
|
- const { data } = await export1(
|
|
|
|
- {
|
|
|
|
- compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
- contractType: this.contractType,
|
|
|
|
- currentPage: this.currentPage,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- searchType: this.searchType,
|
|
|
|
- searchKeyWord: this.searchKeyWord,
|
|
|
|
- startDate: this.startDate,
|
|
|
|
- endDate: this.endDate,
|
|
|
|
- },
|
|
|
|
- {},
|
|
|
|
- { responseType: 'blob' }
|
|
|
|
- ).toPromise()
|
|
|
|
- downloadFile({
|
|
|
|
- res: data,
|
|
|
|
- fileName: `${
|
|
|
|
- this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
|
|
- }_采购合同`,
|
|
|
|
- type: 'xls',
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
- // deletecontract(){},
|
|
|
|
//删除
|
|
//删除
|
|
|
|
|
|
approve() {},
|
|
approve() {},
|
|
@@ -431,6 +428,6 @@ export default {
|
|
text-align: right;
|
|
text-align: right;
|
|
}
|
|
}
|
|
/deep/.el-form-item {
|
|
/deep/.el-form-item {
|
|
- width: 33%;
|
|
|
|
|
|
+ width: 33.33%;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|