Merge branch 'master' of http://192.168.0.112:10010/r/高精2.0
This commit is contained in:
@@ -197,3 +197,15 @@ export function searchHoursePurchasePart(pageCurrent, pageSize, project_check, p
|
||||
}
|
||||
})
|
||||
}
|
||||
// 车间采购外购件查询
|
||||
export function CheckAlter(receive, project, machinenumber, partnumber, oldnumber, reason, number, people, locate, contractdetail, alterdate, craftnumber, materialType, materiallocate) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '库存管理_库存盘点_修改数量',
|
||||
param: '收件信息ID=' + receive + '&项目流水号=' + project + '&机床流水号=' + machinenumber + '&组件流水号=' + partnumber + '&原数量=' + oldnumber + '&修改原因=' + reason + '&数量=' + number + '&人员编号=' + people + '&货位流水号=' + locate + '&采购合同明细流水号=' + contractdetail + '&工艺计划流水号=' + craftnumber + '&零件类型代码=' + materialType + '&物料与货位对照流水号=' + materiallocate
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -72,3 +72,15 @@ export function WorkShopPart(data1, data2, data3, data4, data5) {
|
||||
}
|
||||
})
|
||||
}
|
||||
// 车间采购件零件出库
|
||||
export function ErrorOut(data1, data2, data3, data4, data5, data6, data7, data8) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '零件出库_零件出库_异常出库',
|
||||
param: '项目流水号=' + data1 + '&机床流水号=' + data2 + '&组件流水号=' + data3 + '&采购合同明细流水号=' + data4 + '&工艺计划流水号=' + data5 + '&货位流水号=' + data6 + '&异常数量=' + data7 + '&异常原因=' + data8
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
63
src/api/Inventory/PartsReplacement.js
Normal file
63
src/api/Inventory/PartsReplacement.js
Normal file
@@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request'
|
||||
// 初始化项目
|
||||
export function initProject() {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: 'PDM_项目名称_查询数据'
|
||||
}
|
||||
})
|
||||
}
|
||||
// 机床查询
|
||||
export function searchmachine(check, num) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: 'PDM_机床名称_查询数据',
|
||||
param: '项目流水号_check=' + check + '=int&项目流水号=' + num
|
||||
}
|
||||
})
|
||||
}
|
||||
// 分组查询
|
||||
export function searchTeam(machineNumber) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: 'PDM_组件名称_查询数据',
|
||||
param: '机床流水号=' + machineNumber
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 修改记录查询
|
||||
export function searchAlterRecord(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: '库存管理_库存盘点_修改记录查询',
|
||||
param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group,
|
||||
Pagination: pageCurrent + '&' + pageSize
|
||||
}
|
||||
})
|
||||
}
|
||||
// 修改记录查询
|
||||
export function searchErrorRecord(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: '库存管理_零件出库_异常记录查询',
|
||||
param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group,
|
||||
Pagination: pageCurrent + '&' + pageSize
|
||||
}
|
||||
})
|
||||
}
|
||||
120
src/api/WorkshopProcurement/OfflineContract1.js
Normal file
120
src/api/WorkshopProcurement/OfflineContract1.js
Normal file
@@ -0,0 +1,120 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询库存数
|
||||
export function searchInventoryNum(pageCurrent, pageSize, check1, name, check2, state1) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: '车间采购管理_离线合同_物料余量_查询数据',
|
||||
param: `物料名称_check=${check1}&物料名称=${name}&库存状态_check=${check2}&库存状态=${state1}`,
|
||||
Pagination: pageCurrent + '&' + pageSize
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询离线合同
|
||||
export function searchOfflineContract(pageCurrent, pageSize, check1, num) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: '车间采购管理_离线合同_查询数据',
|
||||
param: `请购单编号_check=${check1}&请购单编号=${num}`,
|
||||
Pagination: pageCurrent + '&' + pageSize
|
||||
}
|
||||
})
|
||||
}
|
||||
export function addData(num, num2, time) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '车间采购管理_离线合同_增加数据',
|
||||
param: '请购单编号=' + num + '&请购人=' + num2 + '&请购时间=' + time
|
||||
}
|
||||
})
|
||||
}
|
||||
export function editData(RequisitionList, num, time) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '车间采购管理_离线合同_编辑数据',
|
||||
param: '请购单流水号=' + RequisitionList + '&请购单编号=' + num + '&请购时间=' + time
|
||||
}
|
||||
})
|
||||
}
|
||||
export function deleteData(RequisitionList) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '车间采购管理_离线合同_删除数据',
|
||||
param: '请购单流水号=' + RequisitionList
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询离线合同明细
|
||||
export function searchMateriel(num) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: '车间采购管理_离线合同明细_查询数据',
|
||||
param: `请购单流水号=${num}`
|
||||
}
|
||||
})
|
||||
}
|
||||
// 增加离线合同明细
|
||||
export function addMateriel(num1, num2) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '车间采购管理_离线合同明细_增加数据',
|
||||
param: `请购单流水号=${num1}&物料流水号组=${num2}`
|
||||
}
|
||||
})
|
||||
}
|
||||
// 删除离线合同明细
|
||||
export function deleteMateriel(num) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '车间采购管理_离线合同明细_删除数据',
|
||||
param: `请购单明细流水号=${num}`
|
||||
}
|
||||
})
|
||||
}
|
||||
export function update(num, num1, num2) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '车间采购管理_离线合同明细_编辑数据',
|
||||
param: `请购单明细流水号=${num}&数量=${num1}&用途=${num2}`
|
||||
}
|
||||
})
|
||||
}
|
||||
// 设置安全库存
|
||||
export function setSafeValue(...params) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '采购管理_离线合同_物料安全库存_修改数据',
|
||||
param: `物料流水号=${params[0]}&安全库存量=${params[1]}`
|
||||
}
|
||||
})
|
||||
}
|
||||
1
src/icons/svg/PartsReplacement.svg
Normal file
1
src/icons/svg/PartsReplacement.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1544601249624" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2102" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M919.767054 896.702756 110.214171 896.702756c0 0 0.204661 28.606525 16.84362 39.822984 12.613272 8.510838 29.591969 7.247054 51.789527 7.247054 32.969902 0 65.945945 0 98.910731 0 154.980747 0 310.004473 0 464.980103 0 36.187177 0 72.379471 0 108.566648 0 23.677259 0 42.015929 1.505283 55.30356-7.759731C922.368298 925.028894 919.767054 896.702756 919.767054 896.702756z" p-id="2103"></path><path d="M112.286366 839.494823l39.815821 0L875.971595 839.494823l41.066301 0L916.903843 798.428521c-0.002047-0.754177-0.245593-75.725682-0.245593-104.385419 0-12.782118-2.329045-24.581861-6.921643-35.07382-4.986571-11.391445-12.468986-21.008476-22.239514-28.584012-15.449877-11.979846-35.622312-18.054191-59.957557-18.054191L702.741205 612.33108c-2.156106-2.907213-4.004197-5.26491-5.855358-7.356548-3.849678-4.611018-7.711636-8.524141-11.140735-11.999288-3.087315-3.12927-6.003737-6.085602-7.716752-8.394181-5.733585-7.730055-9.945513-15.128559-12.878309-22.618137-3.88754-9.924024-1.74269-24.198122 6.372128-42.435485 7.43125-16.703427 17.715477-31.896454 28.603455-47.980781 13.546527-20.011776 28.900214-42.692335 39.859823-70.671573 5.40101-13.782911 8.092305-27.481911 10.694573-40.729633l0.542352-2.75474c1.38351-7.015787 5.603625-31.789007 1.90028-56.443523-0.434905-2.894933-0.716314-6.061043-1.014096-9.41237-0.601704-6.765077-1.283226-14.432711-3.403516-23.025413-10.615779-43.113937-29.339212-78.540797-58.919924-111.471814-24.590048-27.366278-56.880475-48.78817-95.978958-63.677275-23.64042-9.005095-51.955302-13.763468-81.883939-13.763468-31.858592 0-63.298652 5.508457-88.527243 15.512299-35.545564 14.098089-65.837474 33.964556-90.038666 59.049884-25.252127 26.174126-43.923372 58.0583-55.494918 94.767364-5.15644 16.35755-16.349363 59.049884-8.91402 102.069677 2.509147 14.516622 4.932336 27.626197 9.188266 41.080627 12.812817 40.49325 35.761482 71.2743 56.009641 98.431823 9.315156 12.493545 18.113543 24.295336 25.681916 36.516682 4.804423 7.753591 7.906064 15.044648 9.224082 21.678742 1.27197 6.40385 0.807389 11.824303-1.464351 17.057491-4.668323 10.750855-14.32117 22.447245-26.479071 32.080649l-0.441045 0.348947-0.430812 0.361227c-4.415566 3.701299-9.089006 8.567119-14.018272 13.763468-25.700335-0.039909-58.513672-0.153496-85.914742-0.24764-20.866237-0.071631-37.34863-0.128937-43.8763-0.128937-10.335393 0-31.084972 2.988054-53.925167 23.0029-8.92016 7.817036-24.679076 24.133653-29.994128 45.581128-1.655709 6.698562-2.969635 16.47523-2.321882 68.718081 0.318248 25.64303 0.972141 49.452295 0.99977 50.453089L112.286366 839.494823zM152.23931 690.369434c3.894703-15.715937 27.351951-37.498032 44.188408-37.498032s103.273085 0.390903 146.775878 0.390903c5.860475-4.915963 17.460674-18.424628 23.325241-23.340591 15.421224-12.220323 30.329772-28.808116 38.606273-47.867194 12.302187-28.347628 2.034333-56.337099-10.510378-76.583213-25.771967-41.61377-61.4567-75.153654-77.464279-125.742842-3.545756-11.208273-5.690606-23.039739-7.880481-35.7052-4.959965-28.696576 0.750083-61.006446 7.618515-82.791611 19.712971-62.532195 62.198597-104.519472 121.583103-128.072911 20.871353-8.274454 47.174416-12.629645 73.440639-12.629645 23.831778 0 47.63388 3.585665 67.317175 11.081383 32.16456 12.248975 59.161425 29.481452 80.094176 52.77804 23.171746 25.795503 39.904849 54.42454 49.630351 93.922113 2.270716 9.206686 2.125407 18.361183 3.680832 28.716019 2.010797 13.381775 0.800225 30.371728-1.578961 42.432415-2.52859 12.801561-4.813632 25.311479-9.19236 36.484959-17.498536 44.670385-48.753377 74.242911-67.74901 116.942409-9.119705 20.496823-17.295921 47.944965-7.090489 73.997318 4.683672 11.963473 10.994402 22.477944 18.11866 32.082696 6.179746 8.330736 14.287401 14.889105 20.748556 22.768563 3.758604 4.049223 12.573363 17.475 16.337083 21.528316 41.662889 0 103.638405 0 145.30027 0 28.749788 0 48.186466 11.657504 48.186466 40.779775 0 29.059849 0.246617 104.519472 0.246617 104.519472L152.10321 798.562575C152.10321 798.562575 149.426241 701.750645 152.23931 690.369434z" p-id="2104"></path></svg>
|
||||
|
After Width: | Height: | Size: 4.3 KiB |
@@ -40,6 +40,7 @@
|
||||
<el-table
|
||||
v-loading="listLoading"
|
||||
:data="tableDataBasic"
|
||||
size="mini"
|
||||
border
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
@@ -68,7 +69,7 @@
|
||||
{{ scope.row.零件名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="零件数量" align="center" min-width="80">
|
||||
<el-table-column label="零件数量" min-width="120" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.可出库数量 }}
|
||||
</template>
|
||||
@@ -78,9 +79,13 @@
|
||||
{{ scope.row.零件类型名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" min-width="120">
|
||||
<template slot-scope="scope" align="center">
|
||||
<el-button size="small" type="warning" icon="el-icon-tickets" style="margin: 0 0 0 0px" @click="searchBasicPartRecord(scope.row)">选择</el-button>
|
||||
<el-table-column label="设置" min-width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="mini"
|
||||
icon="el-icon-edit"
|
||||
@click="AlterNumber(scope.row)">设置</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -100,6 +105,7 @@
|
||||
v-loading="listLoading1"
|
||||
:data="BasicPartIn"
|
||||
border
|
||||
size="mini"
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
<el-table-column
|
||||
@@ -128,6 +134,7 @@
|
||||
v-show="basicshow"
|
||||
:data="BasicPartOut"
|
||||
border
|
||||
size="mini"
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
<el-table-column
|
||||
@@ -160,7 +167,7 @@
|
||||
<el-card v-show="genneralshow">
|
||||
<el-radio-group
|
||||
v-model="radio"
|
||||
size="small"
|
||||
size="mini"
|
||||
style="margin: 10px;"
|
||||
@change="BasicShow()">
|
||||
<el-radio v-model="radio" :label="1" >基本件</el-radio>
|
||||
@@ -197,6 +204,7 @@
|
||||
v-loading="listLoading3"
|
||||
:data="tableDataGeneral"
|
||||
:row-style="tableRowClassName2"
|
||||
size="mini"
|
||||
border
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
@@ -237,7 +245,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" min-width="120">
|
||||
<template slot-scope="scope" align="center">
|
||||
<el-button size="small" type="warning" icon="el-icon-tickets" style="margin: 0 0 0 0px" @click="searchGeneralPartRecord(scope.row)">选择</el-button>
|
||||
<el-button size="small" type="warning" icon="el-icon-tickets" style="margin: 0 0 0 0px" @row-click="searchGeneralPartRecord(scope.row)">选择</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -257,6 +265,7 @@
|
||||
v-loading="listLoading4"
|
||||
:data="PurchasePartIn"
|
||||
border
|
||||
size="mini"
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
<el-table-column
|
||||
@@ -284,6 +293,7 @@
|
||||
v-loading="listLoading5"
|
||||
v-show="genneralshow"
|
||||
:data="PurchasePartOut"
|
||||
size="mini"
|
||||
border
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
@@ -310,11 +320,26 @@
|
||||
</el-table>
|
||||
</el-card>
|
||||
</el-tab-pane>
|
||||
<!--编辑零件数量对话框-->
|
||||
<el-dialog :visible.sync="dialogFormVisible" title="盘点修改" center width="380px">
|
||||
<el-form ref="form2" :model="form2" :rules="rules2" label-position="left" class="demo-ruleForm">
|
||||
<el-form-item label="零件数量" prop="Number" label-width="100px" size="small">
|
||||
<el-input v-model="form2.Number" size="small" placeholder="出库数量" style="width: 200px"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="修改原因" prop="AlterReason" label-width="100px">
|
||||
<el-input v-model="form2.AlterReason" size="small" placeholder="请输入备注" style="width: 200px"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="callOff2('form2')">取消</el-button>
|
||||
<el-button type="primary" @click="submitChannge()">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-tab-pane label="采购" name="second">
|
||||
<el-card v-show="purchaseshow">
|
||||
<el-radio-group
|
||||
v-model="radio"
|
||||
size="small"
|
||||
size="mini"
|
||||
style="margin: 10px;"
|
||||
@change="GeneralShow()">
|
||||
<el-radio v-model="radio2" :label="3">外购件</el-radio>
|
||||
@@ -351,6 +376,7 @@
|
||||
v-loading="listLoading6"
|
||||
:data="tableDataPurchase"
|
||||
border
|
||||
size="mini"
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
<el-table-column
|
||||
@@ -409,11 +435,13 @@
|
||||
<el-table
|
||||
v-loading="listLoading7"
|
||||
:data="PurchasePartIn"
|
||||
size="mini"
|
||||
border
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
<el-table-column
|
||||
label="序号"
|
||||
size="mini"
|
||||
align="center"
|
||||
type="index"
|
||||
width="50"/>
|
||||
@@ -437,6 +465,7 @@
|
||||
v-loading="listLoading8"
|
||||
:data="PurchasePartOut"
|
||||
border
|
||||
size="mini"
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
<el-table-column
|
||||
@@ -464,7 +493,7 @@
|
||||
<el-card v-show="standardshow">
|
||||
<el-radio-group
|
||||
v-model="radio"
|
||||
size="small"
|
||||
size="mini"
|
||||
style="margin: 10px;"
|
||||
@change="GeneralShow()">
|
||||
<el-radio v-model="radio2" :label="3">外购件</el-radio>
|
||||
@@ -501,6 +530,7 @@
|
||||
v-loading="listLoading9"
|
||||
:data="tableDataStandard"
|
||||
:row-style="tableRowClassName1"
|
||||
size="mini"
|
||||
border
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
@@ -579,6 +609,7 @@
|
||||
v-loading="listLoading10"
|
||||
:data="StandardPartIn"
|
||||
border
|
||||
size="mini"
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
<el-table-column
|
||||
@@ -605,6 +636,7 @@
|
||||
<el-table
|
||||
v-loading="listLoading11"
|
||||
:data="StandardPartOut"
|
||||
size="mini"
|
||||
border
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
@@ -672,6 +704,7 @@
|
||||
v-loading="listLoadingx1"
|
||||
:data="HouseDataBasic"
|
||||
border
|
||||
size="mini"
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
<el-table-column
|
||||
@@ -735,6 +768,7 @@
|
||||
<el-table
|
||||
v-loading="listLoading10"
|
||||
:data="HouseDataBasicIn"
|
||||
size="mini"
|
||||
border
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
@@ -763,6 +797,7 @@
|
||||
v-loading="listLoading11"
|
||||
:data="HouseDataBasicOut"
|
||||
border
|
||||
size="mini"
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
<el-table-column
|
||||
@@ -827,6 +862,7 @@
|
||||
v-loading="listLoadingx2"
|
||||
:data="HouseDataPurchase"
|
||||
border
|
||||
size="mini"
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
<el-table-column
|
||||
@@ -896,6 +932,7 @@
|
||||
v-loading="listLoading10"
|
||||
:data="HouseDataPurchaseIn"
|
||||
border
|
||||
size="mini"
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
<el-table-column
|
||||
@@ -923,6 +960,7 @@
|
||||
v-loading="listLoading11"
|
||||
:data="HouseDataPurchaseOut"
|
||||
border
|
||||
size="mini"
|
||||
style="width: 100%;"
|
||||
height="200">
|
||||
<el-table-column
|
||||
@@ -953,7 +991,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { initProject, searchmachine, searchTeam, searchPurchasePart, searchBasicPart, searchStandardPart, searchGeneralPart, searchPurchasePartIn, searchPurchasePartOut, searchBasicPartIn, searchBasicPartOut, safeAmount, searchStandardPartIn, searchStandardPartOut, searchHourseBasicPart, searchHoursePurchasePart } from '@/api/Inventory/InventoryCheck'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { initProject, searchmachine, searchTeam, searchPurchasePart, searchBasicPart, searchStandardPart, searchGeneralPart, searchPurchasePartIn, searchPurchasePartOut, searchBasicPartIn, searchBasicPartOut, safeAmount, searchStandardPartIn, searchStandardPartOut, searchHourseBasicPart, searchHoursePurchasePart, CheckAlter } from '@/api/Inventory/InventoryCheck'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -1036,9 +1075,31 @@ export default {
|
||||
HouseDataBasicIn: [],
|
||||
HouseDataPurchase: [],
|
||||
HouseDataPurchaseOut: [],
|
||||
HouseDataPurchaseIn: []
|
||||
HouseDataPurchaseIn: [],
|
||||
rules2: { // 表单验证规则
|
||||
Number: [{ required: true, message: '请输入安全库存量', trigger: 'blur' }],
|
||||
AlterReason: [{ required: true, message: '请输入安全库存量', trigger: 'blur' }]
|
||||
},
|
||||
dialogFormVisible: false,
|
||||
form2: {
|
||||
AlterReason: '',
|
||||
Number: ''
|
||||
},
|
||||
project: '',
|
||||
machinenumber: '',
|
||||
partnumber: '',
|
||||
oldnumber: '',
|
||||
locate: '',
|
||||
contractdetail: '',
|
||||
craftnumber: '',
|
||||
receive: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters([
|
||||
'id' // 人员编号
|
||||
])
|
||||
},
|
||||
created() {
|
||||
this.fetchData()
|
||||
},
|
||||
@@ -1239,6 +1300,11 @@ export default {
|
||||
searchBasicPart(this.PageCurrent, this.PageSize, this.ProjectValue_check, this.ProjectValue, this.MachineValue_check, this.MachineValue, this.GroupNumValue_check, this.GroupNumValue).then(response => {
|
||||
this.tableDataBasic = response.data.rows
|
||||
this.listLoading = false
|
||||
this.tableDataBasic.map(v => {
|
||||
this.$set(v, 'changeSafeValue', false)
|
||||
v.可出库数量 = v.可出库数量
|
||||
return v
|
||||
})
|
||||
this.total = response.data.total
|
||||
})
|
||||
},
|
||||
@@ -1438,6 +1504,35 @@ export default {
|
||||
this.HouseDataPurchaseOut = response.data
|
||||
this.listLoading8 = false
|
||||
})
|
||||
},
|
||||
AlterNumber(row) {
|
||||
this.project = row.项目流水号
|
||||
this.machinenumber = row.机床流水号
|
||||
this.partnumber = row.组件流水号
|
||||
this.oldnumber = row.可出库数量
|
||||
this.locate = row.货位流水号
|
||||
this.contractdetail = row.采购合同明细流水号
|
||||
this.craftnumber = row.工艺计划流水号
|
||||
this.receive = row.收件信息ID
|
||||
this.materiallocate = row.物料与货位对照流水号
|
||||
this.materialType = row.零件类型代码
|
||||
this.dialogFormVisible = true
|
||||
},
|
||||
submitChannge() {
|
||||
console.log(this.receive, this.project, this.machinenumber, this.partnumber, this.oldnumber, this.form2.AlterReason, this.form2.Number, this.id, this.locate, this.contractdetail, this.craftnumber, this.materialType, this.materiallocate)
|
||||
CheckAlter(this.receive, this.project, this.machinenumber, this.partnumber, this.oldnumber, this.form2.AlterReason, this.form2.Number, this.id, this.locate, this.contractdetail, this.craftnumber, this.materialType, this.materiallocate).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('修改成功')
|
||||
this.dialogFormVisible = false
|
||||
this.searchBasciPartinfo()
|
||||
} else {
|
||||
this.$message.error('修改失败')
|
||||
}
|
||||
})
|
||||
},
|
||||
callOff2() {
|
||||
this.dialogFormVisible = false
|
||||
this.form2 = {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,25 +97,28 @@
|
||||
</el-table>
|
||||
</el-card>
|
||||
<!--异常出库对话框-->
|
||||
<el-dialog :visible.sync="dialogFormVisible1" title="编辑直达件" center width="380px">
|
||||
<el-dialog :visible.sync="dialogFormVisible" title="异常出库" center width="380px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-position="left">
|
||||
<el-form-item label="出库数量" prop="ContractNumberValue" label-width="100px" size="small">
|
||||
<el-input v-model="form.ErrorNumber" size="small" placeholder="出库数量" style="width: 200px"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="异常数量" prop="ContractNumberValue" label-width="100px" size="small">
|
||||
<el-input v-model="form.ErrorNumber" size="small" placeholder="到货数量" style="width: 200px"/>
|
||||
<el-input v-model="form.ErrorNumber" size="small" placeholder="异常数量" style="width: 200px"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="异常原因" prop="TotalContractAmount" label-width="100px">
|
||||
<el-input v-model="form.Reason" size="small" placeholder="请输入备注" style="width: 200px"/>
|
||||
<el-input v-model="form.Reason" size="small" placeholder="异常原因" style="width: 200px"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="callOff('form')">取消</el-button>
|
||||
<el-button type="primary" @click="editDirectPartm()">确 定</el-button>
|
||||
<el-button type="primary" @click="submitEdit()">确 定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { searchList, searchListDetail, PurchasePart, BasicPart, WorkShopPart, ListDetailOut } from '@/api/Inventory/PartOut'
|
||||
import { searchList, searchListDetail, PurchasePart, BasicPart, WorkShopPart, ListDetailOut, ErrorOut } from '@/api/Inventory/PartOut'
|
||||
import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
data() {
|
||||
@@ -150,13 +153,22 @@ export default {
|
||||
listLoading: '',
|
||||
listLoading1: '',
|
||||
rules: { // 表单验证规则
|
||||
ErrorNumber: [{ required: true, message: '请输入直达件数量', trigger: 'blur' }],
|
||||
Normalnumber: [{ required: true, message: '请输入正常数量', trigger: 'blur' }],
|
||||
ErrorNumber: [{ required: true, message: '请输入异常数量', trigger: 'blur' }],
|
||||
Reason: [{ required: true, message: '请选择领用人', trigger: 'blur' }]
|
||||
},
|
||||
form: {
|
||||
Normalnumber: '',
|
||||
ErrorNumber: '',
|
||||
Reason: ''
|
||||
}
|
||||
},
|
||||
dialogFormVisible: false,
|
||||
projectnumber: '',
|
||||
machinenumber: '',
|
||||
teamnumber: '',
|
||||
teanmpartnumber: '',
|
||||
craftnumber: '',
|
||||
locatenumber: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -235,8 +247,29 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
ErrorpartOut() {
|
||||
console.log(21231)
|
||||
ErrorpartOut(row) {
|
||||
this.dialogFormVisible = true
|
||||
this.projectnumber = row.项目流水号
|
||||
this.machinenumber = row.机床流水号
|
||||
this.teamnumber = row.组件流水号
|
||||
this.teanmpartnumber = row.采购合同明细流水号
|
||||
this.craftnumber = row.工艺计划流水号
|
||||
this.locatenumber = row.货位流水号
|
||||
},
|
||||
callOff(form) {
|
||||
this.form = []
|
||||
this.dialogFormVisible = false
|
||||
},
|
||||
submitEdit() {
|
||||
ErrorOut(this.projectnumber, this.machinenumber, this.teamnumber, this.teanmpartnumber, this.craftnumber, this.locatenumber, this.form.ErrorNumber, this.form.Reason).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('添加成功')
|
||||
this.dialogFormVisible = false
|
||||
this.form = []
|
||||
} else {
|
||||
this.$message.error('添加失败')
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
296
src/views/Inventory/PartsReplacement/index.vue
Normal file
296
src/views/Inventory/PartsReplacement/index.vue
Normal file
@@ -0,0 +1,296 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-card>
|
||||
<span style="margin-left: 20px">项目名称:</span>
|
||||
<el-select v-model="ProjectValue" filterable clearable size="small" placeholder="请选择项目名称" style="width: 200px;margin-right:10px" @change="searchMachine()">
|
||||
<el-option
|
||||
v-for="item in Project"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<span>机床图号:</span>
|
||||
<el-select v-model="MachineValue" filterable clearable size="small" placeholder="机床图号" style="width: 200px;margin-right:10px" @change="searchGroupList()">
|
||||
<el-option
|
||||
v-for="item in Machine"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<span>组号:</span>
|
||||
<el-select v-model="GroupNumValue" filterable clearable size="small" placeholder="组号" style="width: 200px">
|
||||
<el-option
|
||||
v-for="item in GroupNum"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<span>仓库:</span>
|
||||
<el-select v-model="purchaseStateValue" placeholder="仓库" size="small">
|
||||
<el-option
|
||||
v-for="item in purchaseState"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
icon="el-icon-search"
|
||||
style="margin-left: 10px"
|
||||
@click="pageCurrent1=1;pageSize1=10;total1=0;searchTable1()">查询</el-button>
|
||||
</el-card>
|
||||
<el-card>
|
||||
<el-table
|
||||
v-loading="loading1"
|
||||
:data="tableData1"
|
||||
border
|
||||
style="width: 100%;max-height: 300px;"
|
||||
height="300px"
|
||||
size="mini"
|
||||
@selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" align="center" width="55"/>
|
||||
<el-table-column label="物料名称" min-width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="物料型号" min-width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料型号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="物料规格" min-width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料规格 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="供货商" min-width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.供货商 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="当前库存量" min-width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.当前库存量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="安全库存量" min-width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<template v-if="scope.row.changeSafeValue">
|
||||
<el-input v-model="scope.row.安全库存量" class="edit-input" size="mini"/>
|
||||
<el-button class="cancel-btn" size="mini" icon="el-icon-refresh" type="warning" @click="cancelEdit(scope.row)">取消</el-button>
|
||||
</template>
|
||||
<span v-else>{{ scope.row.安全库存量 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="设置" min-width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="scope.row.changeSafeValue" type="mini" size="mini" icon="el-icon-circle-check-outline" @click="confirmEdit(scope.row)">确定</el-button>
|
||||
<el-button
|
||||
v-else
|
||||
type="primary"
|
||||
size="mini"
|
||||
icon="el-icon-edit"
|
||||
@click="scope.row.changeSafeValue=!scope.row.changeSafeValue">设置</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block" style="margin-top: 10px;">
|
||||
<el-pagination
|
||||
:current-page="pageCurrent1"
|
||||
:page-sizes="[10, 20, 30, 40]"
|
||||
:page-size="pageSize1"
|
||||
:total="total1"
|
||||
style="display:inline-block;width:50%"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange1"
|
||||
@current-change="handleCurrentChange1"/>
|
||||
</div>
|
||||
<el-table
|
||||
v-loading="loading1"
|
||||
:data="tableData1"
|
||||
border
|
||||
style="width: 100%;max-height: 300px;"
|
||||
height="300px"
|
||||
size="mini"
|
||||
@selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" align="center" width="55"/>
|
||||
<el-table-column label="物料名称" min-width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="物料型号" min-width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料型号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="物料规格" min-width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料规格 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="供货商" min-width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.供货商 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="当前库存量" min-width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.当前库存量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="安全库存量" min-width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<template v-if="scope.row.changeSafeValue">
|
||||
<el-input v-model="scope.row.安全库存量" class="edit-input" size="mini"/>
|
||||
<el-button class="cancel-btn" size="mini" icon="el-icon-refresh" type="warning" @click="cancelEdit(scope.row)">取消</el-button>
|
||||
</template>
|
||||
<span v-else>{{ scope.row.安全库存量 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="设置" min-width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="scope.row.changeSafeValue" type="mini" size="mini" icon="el-icon-circle-check-outline" @click="confirmEdit(scope.row)">确定</el-button>
|
||||
<el-button
|
||||
v-else
|
||||
type="primary"
|
||||
size="mini"
|
||||
icon="el-icon-edit"
|
||||
@click="scope.row.changeSafeValue=!scope.row.changeSafeValue">设置</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block" style="margin-top: 10px;">
|
||||
<el-pagination
|
||||
:current-page="pageCurrent1"
|
||||
:page-sizes="[10, 20, 30, 40]"
|
||||
:page-size="pageSize1"
|
||||
:total="total1"
|
||||
style="display:inline-block;width:50%"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange1"
|
||||
@current-change="handleCurrentChange1"/>
|
||||
</div>
|
||||
</el-card>
|
||||
<el-card>
|
||||
<span>请购单号:</span>
|
||||
<el-input v-model="purchasecard" placeholder="请购单号" size="small" clearable style="width: 150px"/>
|
||||
<span>仓库:</span>
|
||||
<el-select v-model="HouseNumber" placeholder="请选择仓库" size="small" @change="searchDemo();payMethodChange()">
|
||||
<el-option
|
||||
v-for="item in House"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
icon="el-icon-search"
|
||||
style="margin-left: 10px"
|
||||
@click="pageCurrent2=1;pageSize2=10;total2=0;searchTable2()">查询</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
icon="el-icon-plus"
|
||||
style="margin-left: 10px"
|
||||
@click="addTableData">创建离线请购单</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
icon="el-icon-download"
|
||||
style="margin-left: 10px"
|
||||
@click="addMateriel">选入物料</el-button>
|
||||
</el-card>
|
||||
<el-card>
|
||||
<el-table v-loading="" :data="tableData2" border style="max-height: 300px;" height="300px" size="mini" highlight-current-row @row-click="searchTable3">
|
||||
<el-table-column label="请购单状态" align="center" width="80" fixed="left">
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="parseInt(scope.row.是否传递)===0" type="warning" size="small">未传递</el-tag>
|
||||
<el-tag v-if="parseInt(scope.row.是否传递)===1" type="primary" size="small">已传递</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="请购单编号" align="center" min-width="150">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.请购单编号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="请购人" align="center" min-width="150">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.姓名 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="仓库" align="center" min-width="250">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.仓库名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="请购时间" align="center" width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.请购时间.split(' ')[0] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="280" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button :disabled="parseInt(scope.row.离线合同状态) === 1" type="danger" size="mini" icon="el-icon-delete" @click="deleteOfflineContract(scope.row)">作废</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block" style="margin: 10px 0;">
|
||||
<el-pagination
|
||||
:current-page="pageCurrent2"
|
||||
:page-sizes="[10, 20, 30, 40]"
|
||||
:page-size="pageSize2"
|
||||
:total="total2"
|
||||
style="display:inline-block;width:50%"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange2"
|
||||
@current-change="handleCurrentChange2"/>
|
||||
<el-button style="margin-left:500px;" type="warning" size="mini" icon="el-icon-download" @click="doneRequestCard()">传递</el-button>
|
||||
</div>
|
||||
<el-table v-loading="" :data="tableData3" border style="max-height: 300px;" height="300px" size="mini">
|
||||
<el-table-column label="离线请购单编号" align="center" min-width="150">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.请购单编号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="物料名称" align="center" min-width="150">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="物料规格" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料规格 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="物料型号" align="center" min-width="200">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料型号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="数量" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.数量" :disabled="disable" size="mini" style="width:70px"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
<el-button :disabled="disable" type="danger" size="mini" icon="el-icon-delete" @click="deleteMateriel(scope.row)">移除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
@@ -59,8 +59,7 @@
|
||||
type="date"
|
||||
format="yyyy-MM-dd"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择日期"
|
||||
@change="contractChange"/>
|
||||
placeholder="选择日期"/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
@@ -215,21 +214,6 @@
|
||||
<el-input v-model="contractSum" size="small"/>
|
||||
</el-card>
|
||||
<el-card>
|
||||
<el-table
|
||||
:data="tableData2"
|
||||
:show-header="false"
|
||||
highlight-current-row
|
||||
border
|
||||
height="280px"
|
||||
style="width: 250px;display:inline-block;max-height: 280px;"
|
||||
size="mini"
|
||||
@row-click="searchDemo">
|
||||
<el-table-column align="center" label="合同模板名称">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.合同模板名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-input :rows="20" v-model="textArea" type="textarea" style="width:calc(99% - 250px);float:right;margin-bottom: 20px" resize="none"/>
|
||||
<el-button
|
||||
type="primary"
|
||||
@@ -546,67 +530,10 @@ export default {
|
||||
this.riseFallPoint = this.riseFallPoint.toFixed(2)
|
||||
}
|
||||
},
|
||||
searchDemo(row = this.paramRow) {
|
||||
// for (let i = 0; i < this.payMethod.length; i++) {
|
||||
// if (this.payMethod[i].value === this.payMethodValue) {
|
||||
// this.payMethodName = this.payMethod[i].label
|
||||
// }
|
||||
// }
|
||||
this.paramRow = row
|
||||
searchContractDemo(this.paramRow.合同模板流水号).then(response => {
|
||||
this.textArea = response.data[0].合同模板内容.replace('stipulateArrivalTime', this.stipulateArrivalTime).replace('AdvanceCharge', this.AdvanceCharge)
|
||||
})
|
||||
},
|
||||
contractChange() {
|
||||
this.searchDemo(this.paramRow)
|
||||
},
|
||||
fetchData() {
|
||||
searchContractDemo().then(response => { // 初始化合同模板
|
||||
this.tableData2 = response.data
|
||||
searchContractDemo(1).then(response => {
|
||||
this.textArea = response.data[0].合同模板内容
|
||||
})
|
||||
// this.payMethod = []
|
||||
// initPayMethod().then(response => {
|
||||
// for (let i = 0; i < response.data.length; i++) {
|
||||
// this.payMethod.push({
|
||||
// label: response.data[i].付款方式内容,
|
||||
// value: response.data[i].付款方式流水号
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// this.payTime1 = []
|
||||
// this.payTime2 = []
|
||||
// this.payTime3 = []
|
||||
// this.payTime4 = []
|
||||
// this.payTime5 = []
|
||||
// this.payTime6 = []
|
||||
// initPayTimeNode().then(response => {
|
||||
// for (let i = 0; i < response.data.length; i++) {
|
||||
// this.payTime1.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime2.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime3.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime4.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime5.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// this.payTime6.push({
|
||||
// label: response.data[i].付款时间节点名称,
|
||||
// value: response.data[i].付款时间节点流水号
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
this.getSelect(initPurchaseOrder, ['请购单编号', '请购单流水号'], 'contractNum')
|
||||
},
|
||||
searchSupplier() { // 查询创立日期和注册资本大于符合条件的数据
|
||||
|
||||
@@ -98,13 +98,13 @@
|
||||
<el-input v-model="scope.row.本次应请款" size="mini" style="width:70px"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="请款付款情况" width="900" align="center">
|
||||
<el-table-column label="请款付款情况" width="710" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-table :id="scope.$index" :data="tableData11[scope.$index]" size="mini" border style="width: 100%;">
|
||||
<el-table-column label="取消请款" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
:disabled="scope.row.审核情况流水号!==3"
|
||||
:disabled="scope.row.审批情况流水号!==3"
|
||||
type="danger"
|
||||
size="mini"
|
||||
@click="cancelRequestFund(scope.row)">取消请款</el-button>
|
||||
@@ -121,16 +121,6 @@
|
||||
{{ scope.row.请款时间 ? scope.row.请款时间.split(' ')[0] : '' }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审核情况" width="80" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.审核情况内容 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="未通过审核原因" width="110" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.未通过审核原因 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审批情况" width="80" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.审批情况内容 }}
|
||||
|
||||
525
src/views/WorkshopProcurement/OfflineContract1/index.vue
Normal file
525
src/views/WorkshopProcurement/OfflineContract1/index.vue
Normal file
@@ -0,0 +1,525 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-card>
|
||||
<span>物料名称:</span>
|
||||
<el-input v-model="materialName" placeholder="物料名称" size="small" clearable/>
|
||||
<span>库存状态:</span>
|
||||
<el-select v-model="inventoryStateValue" placeholder="库存状态" size="small" clearable>
|
||||
<el-option
|
||||
v-for="item in inventoryState"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
icon="el-icon-search"
|
||||
style="margin-left: 10px"
|
||||
@click="pageCurrent1=1;pageSize1=10;total1=0;searchTable1()">查询</el-button>
|
||||
</el-card>
|
||||
|
||||
<el-card>
|
||||
<el-table
|
||||
v-loading="loading1"
|
||||
:data="tableData1"
|
||||
border
|
||||
style="width: 100%;max-height: 300px;"
|
||||
height="300px"
|
||||
size="mini"
|
||||
@selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" align="center" width="55"/>
|
||||
<el-table-column label="库存状态" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="parseInt(scope.row.库存是否不足)===1" type="danger" size="small">不足</el-tag>
|
||||
<el-tag v-else type="success" size="small">充足</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="物料名称" min-width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="物料型号" min-width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料型号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="物料规格" min-width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料规格 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="供货商" min-width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.供货商 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="当前库存量" min-width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.当前库存量 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="安全库存量" min-width="200" align="center">
|
||||
<template slot-scope="scope">
|
||||
<template v-if="scope.row.changeSafeValue">
|
||||
<el-input v-model="scope.row.安全库存量" class="edit-input" size="mini"/>
|
||||
<el-button class="cancel-btn" size="mini" icon="el-icon-refresh" type="warning" @click="cancelEdit(scope.row)">取消</el-button>
|
||||
</template>
|
||||
<span v-else>{{ scope.row.安全库存量 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="设置" min-width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-button v-if="scope.row.changeSafeValue" type="mini" size="mini" icon="el-icon-circle-check-outline" @click="confirmEdit(scope.row)">确定</el-button>
|
||||
<el-button
|
||||
v-else
|
||||
type="primary"
|
||||
size="mini"
|
||||
icon="el-icon-edit"
|
||||
@click="scope.row.changeSafeValue=!scope.row.changeSafeValue">设置</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block" style="margin-top: 10px;">
|
||||
<el-pagination
|
||||
:current-page="pageCurrent1"
|
||||
:page-sizes="[10, 20, 30, 40]"
|
||||
:page-size="pageSize1"
|
||||
:total="total1"
|
||||
style="display:inline-block;width:50%"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange1"
|
||||
@current-change="handleCurrentChange1"/>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<el-card>
|
||||
<el-row>
|
||||
<span>请购单号:</span>
|
||||
<el-input v-model="PurchaseOrder" size="small" style="width: 200px" placeholder="请购单号" clearable/>
|
||||
<el-button type="success" size="small" icon="el-icon-search" style="margin-left: 15px" @click="pageCurrent2=1;pageSize2=10;total2=0;searchTable2()">查询</el-button>
|
||||
<el-button type="primary" size="small" icon="el-icon-circle-plus-outline" style="margin-left: 15px" @click="handleAdd()">创建</el-button>
|
||||
<el-button
|
||||
type="warning"
|
||||
size="small"
|
||||
icon="el-icon-download"
|
||||
style="margin-left: 10px"
|
||||
@click="addMateriel">选入物料</el-button>
|
||||
</el-row>
|
||||
</el-card>
|
||||
|
||||
<el-card>
|
||||
<el-table :data="tableData2" border style="max-height: 300px;" height="300px" size="mini" highlight-current-row @row-click="searchTable3">
|
||||
<el-table-column label="请购单状态" align="center" width="150">
|
||||
<template slot-scope="scope">
|
||||
<el-tag v-if="parseInt(scope.row.请购单状态)===1" type="warning" size="small">编辑中</el-tag>
|
||||
<el-tag v-if="parseInt(scope.row.请购单状态)===2" type="primary" size="small">已导出</el-tag>
|
||||
<el-tag v-if="parseInt(scope.row.请购单状态)===3" type="primary" size="small">已禁用</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="请购单号" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.请购单编号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="请购人" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.姓名 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="请购时间" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.请购时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="350px" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="primary" size="mini" icon="el-icon-edit" @click="handleEdit(scope.row)">编辑</el-button>
|
||||
<el-button type="warning" size="mini" icon="el-icon-download" @click="exportTable('QG')">导出</el-button>
|
||||
<el-button type="danger" size="mini" icon="el-icon-delete" style="margin-left: 15px" @click="handleDelete(scope.row)">作废</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block" style="margin: 10px 0;">
|
||||
<el-pagination
|
||||
:current-page="pageCurrent2"
|
||||
:page-sizes="[10, 20, 30, 40]"
|
||||
:page-size="pageSize2"
|
||||
:total="total2"
|
||||
style="display:inline-block;width:50%"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange2"
|
||||
@current-change="handleCurrentChange2"/>
|
||||
</div>
|
||||
<el-table :data="tableData3" border style="max-height: 300px;" height="300px" size="mini">
|
||||
<el-table-column label="请购单编号" align="center" min-width="150">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.请购单编号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="物料名称" align="center" min-width="150">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="物料规格" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料规格 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="物料型号" align="center" min-width="200">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.物料型号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="数量" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.数量" size="mini" style="width:70px" @change="update(scope.row)"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="用途" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
<el-input v-model="scope.row.用途" size="mini" style="width:150px" @change="update(scope.row)"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
<el-button type="danger" size="mini" icon="el-icon-delete" @click="deleteMateriel(scope.row)">移除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
<el-dialog :title="title" :visible.sync="dialogFormVisible" center style="min-height: 300px" width="400px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-position="left" label-width="110px" class="demo-ruleForm">
|
||||
<el-form-item label="请购单编号" prop="请购单编号">
|
||||
<el-input
|
||||
v-model="form.请购单编号"
|
||||
size="small"
|
||||
style="width:200px"/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="请购人">
|
||||
<el-input
|
||||
v-model="name"
|
||||
size="small"
|
||||
readonly
|
||||
style="width:200px"/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="请购时间" prop="请购时间">
|
||||
<el-date-picker
|
||||
v-model="form.请购时间"
|
||||
size="small"
|
||||
type="date"
|
||||
format="yyyy-MM-dd"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择日期"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button @click="cancel('form')">取消</el-button>
|
||||
<el-button v-show="title==='增加'" type="primary" @click="submitAdd('form')">确定</el-button>
|
||||
<el-button v-show="title==='编辑'" type="primary" @click="submitEdit('form')">确定</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<table id="QG" cellspacing="0px" border align="center" style="display: none">
|
||||
<thead>
|
||||
<tr id="tableHead">
|
||||
<th>请购单编号</th>
|
||||
<th>物料名称</th>
|
||||
<th>物料规格</th>
|
||||
<th>物料型号</th>
|
||||
<th>数量</th>
|
||||
<th>用途</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(list, index) in tableData3" :key="index">
|
||||
<td align="center"> {{ list.请购单编号 }}</td>
|
||||
<td>{{ list.物料名称 }}</td>
|
||||
<td>{{ list.物料规格 }}</td>
|
||||
<td align="center">{{ list.物料型号 }}</td>
|
||||
<td>{{ list.数量 }}</td>
|
||||
<td>{{ list.用途 }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { searchInventoryNum, searchOfflineContract, addData, editData, deleteData, searchMateriel, update,
|
||||
addMateriel, deleteMateriel, setSafeValue } from '@/api/WorkshopProcurement/OfflineContract1'
|
||||
import { mapGetters } from 'vuex'
|
||||
import { getExplorer, method5, Cleanup } from '@/vendor/exportExcel'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
loading1: false,
|
||||
title: '',
|
||||
check1: 0,
|
||||
check2: 0,
|
||||
check3: 0,
|
||||
materialName: '',
|
||||
inventoryStateValue: '', // 库存状态
|
||||
inventoryState: [
|
||||
{
|
||||
label: '充足',
|
||||
value: 2
|
||||
},
|
||||
{
|
||||
label: '不足',
|
||||
value: 1
|
||||
}
|
||||
],
|
||||
tableData1: [],
|
||||
pageCurrent1: 1,
|
||||
pageSize1: 10,
|
||||
total1: 0,
|
||||
PurchaseOrder: '', // 请购单编号
|
||||
PurchaseNumber: '',
|
||||
tableData2: [],
|
||||
total2: 0,
|
||||
pageCurrent2: 1,
|
||||
pageSize2: 10,
|
||||
dialogFormVisible: false,
|
||||
RequisitionList: '',
|
||||
form: {
|
||||
请购单编号: '',
|
||||
请购时间: ''
|
||||
},
|
||||
rules: {
|
||||
请购单编号: [{ required: true, message: '请输入请购单编号', trigger: 'blur' }],
|
||||
请购时间: [{ required: true, message: '请选择请购时间', trigger: 'change' }]
|
||||
},
|
||||
tableData3: [],
|
||||
materielGroup: [], // 物料流水号组
|
||||
partGroup: [] // 离线合同明细流水号组
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters([
|
||||
'sidebar',
|
||||
'avatar',
|
||||
'name',
|
||||
'id' // 人员编号
|
||||
])
|
||||
},
|
||||
methods: {
|
||||
searchTable1() { // 查询物料库物料
|
||||
this.loading1 = true
|
||||
this.materialName ? this.check1 = 1 : this.check1 = 0
|
||||
this.inventoryStateValue ? this.check2 = 1 : this.check2 = 0
|
||||
searchInventoryNum(this.pageCurrent1, this.pageSize1, this.check1, this.materialName, this.check2, this.inventoryStateValue).then(response => {
|
||||
this.tableData1 = response.data.rows
|
||||
this.tableData1.map(v => {
|
||||
this.$set(v, 'changeSafeValue', false)
|
||||
v.原安全库存量 = v.安全库存量
|
||||
return v
|
||||
})
|
||||
this.total1 = response.data.total
|
||||
this.loading1 = false
|
||||
})
|
||||
},
|
||||
handleSizeChange1(val) {
|
||||
this.pageSize1 = val
|
||||
this.pageCurrent1 = 1
|
||||
this.searchTable1()
|
||||
},
|
||||
handleCurrentChange1(val) {
|
||||
this.pageCurrent1 = val
|
||||
this.searchTable1()
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.materielGroup = []
|
||||
for (let i = 0; i < val.length; i++) {
|
||||
this.materielGroup.push(val[i].物料流水号)
|
||||
}
|
||||
},
|
||||
cancelEdit(row) { // 取消设置
|
||||
row.安全库存量 = row.原安全库存量
|
||||
row.changeSafeValue = false
|
||||
this.$message('取消修改')
|
||||
},
|
||||
confirmEdit(row) { // 确认设置
|
||||
Number(row.安全库存量) ? row.安全库存量 = Number(row.安全库存量) : row.安全库存量 = 0
|
||||
setSafeValue(row.物料流水号, parseInt(row.安全库存量)).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
row.changeSafeValue = false
|
||||
this.$message.success('设置成功')
|
||||
this.searchTable1()
|
||||
} else {
|
||||
this.$message.error('设置失败')
|
||||
}
|
||||
})
|
||||
},
|
||||
searchTable2() { // 查询请购单列表
|
||||
this.PurchaseOrder ? this.check3 = 1 : this.check3 = 0
|
||||
searchOfflineContract(this.pageCurrent2, this.pageSize2, this.check3, this.PurchaseOrder).then(response => {
|
||||
this.tableData2 = response.data.rows
|
||||
this.total2 = response.data.total
|
||||
})
|
||||
},
|
||||
handleSizeChange2(val) { // 请购单列表分页
|
||||
this.pageSize2 = val
|
||||
this.searchTable2()
|
||||
},
|
||||
handleCurrentChange2(val) { // 请购单列表分页
|
||||
this.pageCurrent2 = val
|
||||
this.searchTable2()
|
||||
},
|
||||
exportTable(tableid) {
|
||||
if (this.tableData3.length === 0) {
|
||||
this.$message.warning('暂无数据')
|
||||
} else {
|
||||
getExplorer()
|
||||
method5(tableid)
|
||||
Cleanup()
|
||||
}
|
||||
},
|
||||
update(row) {
|
||||
update(row.请购单明细流水号, row.数量, row.用途).then(response => {})
|
||||
},
|
||||
handleAdd() {
|
||||
this.addForm('form', [this.dialogFormVisible = true, this.title = '增加'])
|
||||
},
|
||||
submitAdd(formName) {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
addData(this.form.请购单编号, this.id, this.form.请购时间).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('增加成功')
|
||||
this.dialogFormVisible = false
|
||||
this.searchTable2()
|
||||
} else { this.$message.error('增加失败') }
|
||||
})
|
||||
} else {
|
||||
console.log('error submit!!')
|
||||
return false
|
||||
}
|
||||
})
|
||||
},
|
||||
handleEdit(row) { // 弹出单据编辑
|
||||
if (this.$refs['form'] !== undefined) {
|
||||
this.$refs['form'].resetFields()
|
||||
}
|
||||
this.title = '编辑'
|
||||
this.dialogFormVisible = true
|
||||
this.RequisitionList = row.请购单流水号
|
||||
this.form.请购单编号 = row.请购单编号
|
||||
this.form.请购时间 = row.请购时间
|
||||
},
|
||||
submitEdit(formName) { // 提交单据编辑
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
editData(this.RequisitionList, this.form.请购单编号, this.form.请购时间).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('编辑成功')
|
||||
this.dialogFormVisible = false
|
||||
this.searchTable2()
|
||||
} else { this.$message.error('编辑失败') }
|
||||
})
|
||||
} else {
|
||||
console.log('error submit!!')
|
||||
return false
|
||||
}
|
||||
})
|
||||
},
|
||||
handleDelete(row) { // 作废单据
|
||||
this.$confirm('此操作将永久删除该行, 是否继续?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
deleteData(row.请购单流水号).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('作废成功')
|
||||
this.searchTable2()
|
||||
} else { this.$message.error('作废失败') }
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
message: '已取消删除'
|
||||
})
|
||||
})
|
||||
},
|
||||
cancel(formName) {
|
||||
this.form = {}
|
||||
this.dialogFormVisible = false
|
||||
this.$refs[formName].resetFields()
|
||||
},
|
||||
searchTable3(row) { // 查询请购单明细
|
||||
this.PurchaseNumber = row.请购单流水号
|
||||
searchMateriel(this.PurchaseNumber).then(response => {
|
||||
this.tableData3 = response.data
|
||||
})
|
||||
},
|
||||
addMateriel() { // 将物料选入请购单
|
||||
addMateriel(this.PurchaseNumber, this.materielGroup).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('选入成功')
|
||||
searchMateriel(this.PurchaseNumber).then(response => {
|
||||
this.tableData3 = response.data
|
||||
})
|
||||
} else { this.$message.error('选入失败') }
|
||||
})
|
||||
},
|
||||
deleteMateriel(row) { // 移除物料
|
||||
this.$confirm('确定移除该物料?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
deleteMateriel(row.请购单明细流水号).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('移除成功')
|
||||
searchMateriel(this.PurchaseNumber).then(response => {
|
||||
this.tableData3 = response.data
|
||||
})
|
||||
} else { this.$message.error('移除失败') }
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
message: '已取消移除'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.el-card{
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.el-date-editor{
|
||||
width:150px;
|
||||
}
|
||||
.el-select{
|
||||
width:200px
|
||||
}
|
||||
.el-input{
|
||||
width:200px
|
||||
}
|
||||
span{
|
||||
margin: 10px 0 10px 10px;
|
||||
}
|
||||
.el-tag{
|
||||
margin: 0
|
||||
}
|
||||
.searchForm .el-form-item{
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.edit-input {
|
||||
padding-right: 100px;
|
||||
}
|
||||
.cancel-btn {
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
top: 5px;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,357 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-card>
|
||||
<span>请款时间段:</span>
|
||||
<el-date-picker
|
||||
v-model="dateRange"
|
||||
:picker-options="pickerOptions"
|
||||
size="small"
|
||||
type="daterange"
|
||||
align="center"
|
||||
style="width: 300px"
|
||||
value-format="yyyy-MM-dd"
|
||||
format="yyyy-MM-dd"
|
||||
range-separator="~"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"/>
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
icon="el-icon-search"
|
||||
style="margin-left: 10px"
|
||||
@click="pageCurrent1=1;pageSize1=10;total1=0;searchTable1()">查询</el-button>
|
||||
<el-button type="primary" size="small" icon="el-icon-goods" style="" @click="requestFund">请款</el-button>
|
||||
</el-card>
|
||||
|
||||
<el-card>
|
||||
<el-table v-loading="" :data="tableData1" border style="max-height: 500px;" height="500px" size="mini" show-summary>
|
||||
<el-table-column label="供应商" align="center" min-width="250">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.供应商名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="请款时间" align="center" min-width="150">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.请款时间 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="请款人" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.姓名 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="请款金额" align="center" min-width="100" prop="请款金额">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.请款金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="请款付款情况" align="center">
|
||||
<el-table-column label="审核情况内容" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.审核情况内容 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="未通过审核原因" width="110" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.未通过审核原因 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审批情况内容" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.审批情况内容 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="未通过审批原因" width="110" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.未通过审批原因 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="付款情况" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.付款情况内容 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="未付款原因" width="100" align="center">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.未付款原因 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="250">
|
||||
<template slot-scope="scope">
|
||||
<el-popover placement="right" width="400" trigger="click">
|
||||
<el-table :data="gridData" stripe size="mini" show-summary>
|
||||
<el-table-column width="50" align="center" type="index" label="序号"/>
|
||||
<el-table-column min-width="150" align="center" label="离线合同编号">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.离线合同编号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column min-width="100" align="center" label="合同总额" prop="请款金额">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.请款金额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-button slot="reference" type="success" size="mini" icon="el-icon-search" style="margin-left: 10px" @click="searchTable02(scope.row)">查看详情</el-button>
|
||||
</el-popover>
|
||||
<el-button :disabled="parseInt(scope.row.审核情况流水号)===1" type="danger" size="mini" icon="el-icon-delete" style="margin-left: 10px" @click="cancelRequestFund(scope.row)">取消请款</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div class="block" style="margin-top: 10px;">
|
||||
<el-pagination
|
||||
:current-page="pageCurrent1"
|
||||
:page-sizes="[10, 20, 30, 40]"
|
||||
:page-size="pageSize1"
|
||||
:total="total1"
|
||||
style="display:inline-block;width:50%"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange1"
|
||||
@current-change="handleCurrentChange1"/>
|
||||
</div>
|
||||
</el-card>
|
||||
|
||||
<el-dialog :visible.sync="dialogVisible2" title="离线合同请款" center style="min-height: 300px" width="1000px">
|
||||
<span>供应商:</span>
|
||||
<el-select v-model="supplierValue" placeholder="供应商" filterable size="small">
|
||||
<el-option
|
||||
v-for="item in supplier"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"/>
|
||||
</el-select>
|
||||
<el-button
|
||||
type="success"
|
||||
size="small"
|
||||
icon="el-icon-search"
|
||||
style="margin: 0 10px 10px 10px"
|
||||
@click="pageCurrent1=1;pageSize1=10;total1=0;searchTable01()">查询</el-button>
|
||||
<el-table v-loading="" :data="tableData01" border style="max-height: 300px;" height="300px" size="mini" @selection-change="handleSelectionChange">
|
||||
<el-table-column :selectable="selectable" type="selection" align="center" width="50"/>
|
||||
<el-table-column label="离线合同编号" align="center" min-width="120">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.离线合同编号 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="离线合同名称" align="center" min-width="120">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.离线合同名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="供应商" align="center" min-width="250">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.供应商名称 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="采购员" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.采购员 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="付款方式" align="center" min-width="100">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.付款方式内容 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="合同总额" align="center" min-width="100" prop="合同总额" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.合同总额 }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<span>合计:<el-input v-model="SUM" size="mini" style="width: 80px; margin: 10px 10px 0 10px"/>元</span>
|
||||
<el-button type="primary" size="small" style="float:right;margin: 10px 10px 0 10px" icon="el-icon-check" @click="submitRequestFund">确定请款</el-button>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { searchRequestFund, searchOfflineContract, submitRequestFund, searchRequsetFundDetail, cancelRequestFund } from '@/api/PurchasingCenter/OfflineContractRequestFund'
|
||||
import { mapGetters } from 'vuex'
|
||||
|
||||
export default {
|
||||
name: '', // 离线合同
|
||||
data() {
|
||||
return {
|
||||
check1: 0,
|
||||
check2: 0,
|
||||
dateRange: '',
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '上季度',
|
||||
onClick(picker) {
|
||||
const end = new Date()
|
||||
const start = new Date()
|
||||
start.setTime(end.getTime() - 3600 * 1000 * 24 * 30 * 3)
|
||||
picker.$emit('pick', [start, end])
|
||||
}
|
||||
}, {
|
||||
text: '过去半年',
|
||||
onClick(picker) {
|
||||
const end = new Date()
|
||||
const start = new Date()
|
||||
start.setTime(end.getTime() - 3600 * 1000 * 24 * 366 / 2)
|
||||
picker.$emit('pick', [start, end])
|
||||
}
|
||||
}, {
|
||||
text: '过去一年',
|
||||
onClick(picker) {
|
||||
const end = new Date()
|
||||
const start = new Date()
|
||||
start.setTime(end.getTime() - 3600 * 1000 * 24 * 365)
|
||||
picker.$emit('pick', [start, end])
|
||||
}
|
||||
}]
|
||||
},
|
||||
offlineContract: '',
|
||||
supplierName0: '',
|
||||
supplierValue: '',
|
||||
supplier: [],
|
||||
pageCurrent1: 1,
|
||||
pageSize1: 10,
|
||||
total1: 0,
|
||||
tableData1: [],
|
||||
pageCurrent2: 1,
|
||||
pageSize2: 10,
|
||||
total2: 0,
|
||||
tableData01: [],
|
||||
dialogVisible2: false,
|
||||
SUM: 0,
|
||||
contractGroup: [],
|
||||
sumGroup: [],
|
||||
gridData: []
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters([
|
||||
'sidebar',
|
||||
'avatar',
|
||||
'name',
|
||||
'id' // 人员编号
|
||||
])
|
||||
},
|
||||
created() {
|
||||
this.fetchData()
|
||||
},
|
||||
methods: {
|
||||
fetchData() {
|
||||
this.supplier = []
|
||||
searchOfflineContract().then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.supplier.push({
|
||||
label: response.data[i].供应商名称,
|
||||
value: response.data[i].供应商流水号
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
searchTable1() { // 查询请款表
|
||||
this.dateRange ? this.check1 = 1 : (this.check1 = 0, this.dateRange = '')
|
||||
searchRequestFund(this.pageCurrent1, this.pageSize1, this.check1, this.dateRange[0], this.dateRange[1]).then(response => {
|
||||
this.tableData1 = response.data.rows
|
||||
this.total1 = response.data.total
|
||||
})
|
||||
},
|
||||
handleSizeChange1(val) {
|
||||
this.pageSize1 = val
|
||||
this.pageCurrent1 = 1
|
||||
this.searchTable1()
|
||||
},
|
||||
handleCurrentChange1(val) {
|
||||
this.pageCurrent1 = val
|
||||
this.searchTable1()
|
||||
},
|
||||
requestFund() { // 请款
|
||||
this.dialogVisible2 = true
|
||||
this.supplierValue = ''
|
||||
this.fetchData() // 重新获取供应商
|
||||
this.tableData01 = []
|
||||
},
|
||||
searchTable01() { // 查询待请款
|
||||
if (this.supplierValue) {
|
||||
this.contractGroup = []
|
||||
searchOfflineContract(this.supplierValue).then(response => {
|
||||
this.tableData01 = response.data
|
||||
})
|
||||
} else {
|
||||
this.$message.error('请选择供应商')
|
||||
}
|
||||
},
|
||||
handleSelectionChange(val) {
|
||||
this.SUM = 0
|
||||
this.contractGroup = []
|
||||
this.sumGroup = []
|
||||
for (let i = 0; i < val.length; i++) {
|
||||
this.SUM += parseFloat(val[i].合同总额)
|
||||
this.contractGroup.push(val[i].离线合同流水号)
|
||||
this.sumGroup.push(val[i].合同总额)
|
||||
}
|
||||
},
|
||||
selectable(row, index) { // 控制某行是否可选
|
||||
return parseInt(row.已请款) !== 1 // 已经请款
|
||||
},
|
||||
submitRequestFund() { // 确认请款
|
||||
if (this.supplierValue && this.contractGroup.length !== 0) {
|
||||
submitRequestFund(this.contractGroup, this.sumGroup, this.supplierValue, this.SUM, this.id).then(response => { // 离线合同流水号组=${contractGroup}&合同总额组=${sumGroup}&供应商流水号=${supplier}&请款金额=${money}&请款人=${person
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('请款成功')
|
||||
this.searchTable1()
|
||||
this.dialogVisible2 = false
|
||||
} else { this.$message.error('请款失败') }
|
||||
})
|
||||
} else {
|
||||
this.$message.error('请选择需要请款的合同')
|
||||
}
|
||||
},
|
||||
searchTable02(row) { // 查看详情(请款信息包含的合同)
|
||||
searchRequsetFundDetail(row.离线合同请款流水号).then(response => {
|
||||
this.gridData = response.data
|
||||
})
|
||||
},
|
||||
cancelRequestFund(row) { // 取消请款
|
||||
this.$confirm('确定取消请款?', '提示', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
cancelRequestFund(row.离线合同请款流水号).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('取消成功')
|
||||
this.searchTable1()
|
||||
} else { this.$message.error('取消失败') }
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$message({
|
||||
type: 'info',
|
||||
message: '已取消操作'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.el-card{
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
.el-date-editor{
|
||||
width:150px;
|
||||
}
|
||||
.el-select{
|
||||
width:200px
|
||||
}
|
||||
.el-input{
|
||||
width:200px
|
||||
}
|
||||
span{
|
||||
margin: 10px 0 10px 10px;
|
||||
}
|
||||
.el-tag{
|
||||
margin: 0
|
||||
}
|
||||
.searchForm .el-form-item{
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
</style>
|
||||
@@ -109,7 +109,8 @@
|
||||
<td colspan="1" align="center">江苏盐城</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div>一、 产品名称、型号、数量、单价、品牌:</div>
|
||||
<div style="margin-top: 20px;line-height: 25px">根据《中华人民共和国合同法》的有关规定,经供需双方友好协商,在平等自愿的基础上定立本合同,以便供需双方共同遵守。</div>
|
||||
<div style="line-height: 25px">一、 产品名称、规格型号、材质、数量、单价和交货期:</div>
|
||||
<table id="50" cellspacing="0px" align="center" border width="100%" style="">
|
||||
<tbody id="51">
|
||||
<tr id="tableHead1" style="height: 40px">
|
||||
@@ -139,10 +140,6 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="8">运费:</td>
|
||||
<td colspan="1" align="center">{{ freight }}</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="8">总价: (人民币){{ RMB }}(未税) </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount }}</td>
|
||||
@@ -153,12 +150,72 @@
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div id="23"/>
|
||||
<!--<el-input-->
|
||||
<!--type="textarea"-->
|
||||
<!--:rows="40" style="width:900px;margin:20px auto;display: block"-->
|
||||
<!--v-model="textarea">-->
|
||||
<!--</el-input>-->
|
||||
<div style="line-height: 25px">以上价格为含税增值税价格,供方开具真实有效的16%增值税发票</div>
|
||||
<div id="23" style="line-height: 25px"/>
|
||||
<table id="66" cellspacing="0px" align="center" border width="100%" style="margin-top: 30px">
|
||||
<tbody id="67">
|
||||
<tr style="height: 35px">
|
||||
<td colspan="4" align="center">供 方</td>
|
||||
<td colspan="4" align="center">需 方</td>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">单位名称(章)</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">单位名称(章)</th>
|
||||
<td style="width: 35%" colspan="3" align="center">江苏高精</td>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">法定代表人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">法定代表人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">委托代理人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">委托代理人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">电话</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">电话</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">传真</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">传真</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">开户银行</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">开户银行</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">账号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">账号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">税号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">税号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">邮政编码</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">邮政编码</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="line-height: 25px;margin-top: 10px">签订时间:____年__月__日</div>
|
||||
<div style="line-height: 25px">有效期限:____年__月__日至____年__月__日</div>
|
||||
</el-card>
|
||||
</div>
|
||||
</el-card>
|
||||
@@ -234,7 +291,6 @@ export default {
|
||||
check4: 0,
|
||||
startEndDate: '',
|
||||
contract: '',
|
||||
freight: '',
|
||||
contractNumValue: '',
|
||||
contractNum: [],
|
||||
ProcurementContractNum: '',
|
||||
@@ -381,7 +437,6 @@ export default {
|
||||
this.supplier = row.供应商名称
|
||||
this.contract = row.采购合同编号
|
||||
this.taxRate = row.税率
|
||||
this.freight = parseInt(row.总金额) - parseInt(row.总金额_小计)
|
||||
this.RMB = row.总金额_文本
|
||||
this.TotalAmount = row.总金额
|
||||
this.TotalAmount1 = parseInt((row.含税总金额) * 100) / 100
|
||||
|
||||
@@ -128,7 +128,8 @@
|
||||
<td colspan="1" align="center">江苏盐城</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div>一、 产品名称、型号、数量、单价、品牌:</div>
|
||||
<div style="margin-top: 20px;line-height: 25px">根据《中华人民共和国合同法》的有关规定,经供需双方友好协商,在平等自愿的基础上定立本合同,以便供需双方共同遵守。</div>
|
||||
<div style="line-height: 25px">一、 产品名称、规格型号、材质、数量、单价和交货期:</div>
|
||||
<table id="50" cellspacing="0px" align="center" border width="100%" style="">
|
||||
<tbody id="51">
|
||||
<tr id="tableHead1" style="height: 40px">
|
||||
@@ -158,10 +159,6 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="8">运费:</td>
|
||||
<td colspan="1" align="center">{{ freight }}</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="8">总价: (人民币){{ RMB }}(未税) </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount }}</td>
|
||||
@@ -172,12 +169,72 @@
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div id="23"/>
|
||||
<!--<el-input-->
|
||||
<!--type="textarea"-->
|
||||
<!--:rows="40" style="width:900px;margin:20px auto;display: block"-->
|
||||
<!--v-model="textarea">-->
|
||||
<!--</el-input>-->
|
||||
<div style="line-height: 25px">以上价格为含税增值税价格,供方开具真实有效的16%增值税发票</div>
|
||||
<div id="23" style="line-height: 25px"/>
|
||||
<table id="66" cellspacing="0px" align="center" border width="100%" style="margin-top: 30px">
|
||||
<tbody id="67">
|
||||
<tr style="height: 35px">
|
||||
<td colspan="4" align="center">供 方</td>
|
||||
<td colspan="4" align="center">需 方</td>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">单位名称(章)</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">单位名称(章)</th>
|
||||
<td style="width: 35%" colspan="3" align="center">江苏高精</td>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">法定代表人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">法定代表人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">委托代理人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">委托代理人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">电话</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">电话</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">传真</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">传真</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">开户银行</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">开户银行</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">账号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">账号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">税号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">税号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">邮政编码</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">邮政编码</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="line-height: 25px;margin-top: 10px">签订时间:____年__月__日</div>
|
||||
<div style="line-height: 25px">有效期限:____年__月__日至____年__月__日</div>
|
||||
</el-card>
|
||||
</div>
|
||||
</el-card>
|
||||
@@ -249,7 +306,6 @@ export default {
|
||||
check5: 0,
|
||||
startEndDate: '',
|
||||
contract: '',
|
||||
freight: '',
|
||||
taxRate: '',
|
||||
TotalAmount1: '',
|
||||
RMB1: '',
|
||||
@@ -377,7 +433,6 @@ export default {
|
||||
this.supplier = row.供应商名称
|
||||
this.contract = row.采购合同编号
|
||||
this.taxRate = row.税率
|
||||
this.freight = parseInt(row.总金额) - parseInt(row.总金额_小计)
|
||||
this.RMB = row.总金额_文本
|
||||
this.TotalAmount = row.总金额
|
||||
this.TotalAmount1 = parseInt((row.含税总金额) * 100) / 100
|
||||
|
||||
@@ -103,7 +103,8 @@
|
||||
<td colspan="1" align="center">江苏盐城</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div>一、 产品名称、型号、数量、单价、品牌:</div>
|
||||
<div style="margin-top: 20px;line-height: 25px">根据《中华人民共和国合同法》的有关规定,经供需双方友好协商,在平等自愿的基础上定立本合同,以便供需双方共同遵守。</div>
|
||||
<div style="line-height: 25px">一、 产品名称、规格型号、材质、数量、单价和交货期:</div>
|
||||
<table id="50" cellspacing="0px" align="center" border width="100%" style="">
|
||||
<tbody id="51">
|
||||
<tr id="tableHead2" style="height: 40px">
|
||||
@@ -133,10 +134,6 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="8">运费:</td>
|
||||
<td colspan="1" align="center">{{ freight }}</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="8">总价: (人民币){{ RMB }} </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount }}</td>
|
||||
@@ -147,12 +144,72 @@
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div id="23"/>
|
||||
<!--<el-input-->
|
||||
<!--type="textarea"-->
|
||||
<!--:rows="40" style="width:900px;margin:20px auto;display: block"-->
|
||||
<!--v-model="textarea">-->
|
||||
<!--</el-input>-->
|
||||
<div style="line-height: 25px">以上价格为含税增值税价格,供方开具真实有效的16%增值税发票</div>
|
||||
<div id="23" style="line-height: 25px"/>
|
||||
<table id="66" cellspacing="0px" align="center" border width="100%" style="margin-top: 30px">
|
||||
<tbody id="67">
|
||||
<tr style="height: 35px">
|
||||
<td colspan="4" align="center">供 方</td>
|
||||
<td colspan="4" align="center">需 方</td>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">单位名称(章)</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">单位名称(章)</th>
|
||||
<td style="width: 35%" colspan="3" align="center">江苏高精</td>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">法定代表人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">法定代表人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">委托代理人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">委托代理人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">电话</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">电话</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">传真</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">传真</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">开户银行</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">开户银行</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">账号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">账号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">税号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">税号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">邮政编码</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">邮政编码</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="line-height: 25px;margin-top: 10px">签订时间:____年__月__日</div>
|
||||
<div style="line-height: 25px">有效期限:____年__月__日至____年__月__日</div>
|
||||
</el-card>
|
||||
</div>
|
||||
</el-card>
|
||||
@@ -266,7 +323,8 @@
|
||||
<td colspan="1" align="center">江苏盐城</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div>一、 产品名称、型号、数量、单价、品牌:</div>
|
||||
<div style="margin-top: 20px;line-height: 25px">根据《中华人民共和国合同法》的有关规定,经供需双方友好协商,在平等自愿的基础上定立本合同,以便供需双方共同遵守。</div>
|
||||
<div style="line-height: 25px">一、 产品名称、规格型号、材质、数量、单价和交货期:</div>
|
||||
<table id="52" cellspacing="0px" align="center" border width="100%" style="">
|
||||
<tbody id="53">
|
||||
<tr id="tableHead3" style="height: 40px">
|
||||
@@ -296,10 +354,6 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="8">运费:</td>
|
||||
<td colspan="1" align="center">{{ freight1 }}</td>
|
||||
</tr>
|
||||
<tr style="height: 40px">
|
||||
<td colspan="8">总价: (人民币){{ RMB1 }} </td>
|
||||
<td colspan="1" align="center">{{ TotalAmount1 }}</td>
|
||||
@@ -310,12 +364,72 @@
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div id="24"/>
|
||||
<!--<el-input-->
|
||||
<!--type="textarea"-->
|
||||
<!--:rows="40" style="width:900px;margin:20px auto;display: block"-->
|
||||
<!--v-model="textarea">-->
|
||||
<!--</el-input>-->
|
||||
<div style="line-height: 25px">以上价格为含税增值税价格,供方开具真实有效的16%增值税发票</div>
|
||||
<div id="24" style="line-height: 25px"/>
|
||||
<table id="68" cellspacing="0px" align="center" border width="100%" style="margin-top: 30px">
|
||||
<tbody id="69">
|
||||
<tr style="height: 35px">
|
||||
<td colspan="4" align="center">供 方</td>
|
||||
<td colspan="4" align="center">需 方</td>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">单位名称(章)</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">单位名称(章)</th>
|
||||
<td style="width: 35%" colspan="3" align="center">江苏高精</td>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">法定代表人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">法定代表人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">委托代理人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">委托代理人</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">电话</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">电话</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">传真</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">传真</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">开户银行</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">开户银行</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">账号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">账号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">税号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">税号</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
<tr style="height: 35px">
|
||||
<th style="width: 15%">邮政编码</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
<th style="width: 15%">邮政编码</th>
|
||||
<td style="width: 35%" colspan="3" align="center"/>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div style="line-height: 25px;margin-top: 10px">签订时间:____年__月__日</div>
|
||||
<div style="line-height: 25px">有效期限:____年__月__日至____年__月__日</div>
|
||||
</el-card>
|
||||
</div>
|
||||
</el-card>
|
||||
@@ -393,8 +507,6 @@ export default {
|
||||
startEndDate1: '',
|
||||
contract: '',
|
||||
contract1: '',
|
||||
freight: '',
|
||||
freight1: '',
|
||||
taxRate: '',
|
||||
taxRate1: '',
|
||||
contractNumValue: '',
|
||||
@@ -585,7 +697,6 @@ export default {
|
||||
this.supplier = row.供应商名称
|
||||
this.contract = row.采购合同编号
|
||||
this.taxRate = row.税率
|
||||
this.freight = parseInt(row.总金额) - parseInt(row.总金额_小计)
|
||||
this.RMB = row.总金额_文本
|
||||
this.TotalAmount = row.总金额
|
||||
this.TotalAmount3 = parseInt((row.含税总金额) * 100) / 100
|
||||
@@ -655,7 +766,6 @@ export default {
|
||||
this.supplier1 = row.供应商名称
|
||||
this.contract1 = row.采购合同编号
|
||||
this.taxRate1 = row.税率
|
||||
this.freight1 = parseInt(row.总金额) - parseInt(row.总金额_小计)
|
||||
this.RMB1 = row.总金额_文本
|
||||
this.TotalAmount1 = row.总金额
|
||||
this.TotalAmount4 = parseInt((row.含税总金额) * 100) / 100
|
||||
|
||||
Reference in New Issue
Block a user