Merge branch 'material-ui' of http://192.168.0.56:3000/bonus/bonus-ui into material-ui
This commit is contained in:
commit
9263107c7c
|
|
@ -46,7 +46,7 @@ export function updateProject(data) {
|
||||||
export function delProject(proId) {
|
export function delProject(proId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/bm_project/' + proId,
|
url: '/material/bm_project/' + proId,
|
||||||
method: 'post'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -90,7 +90,7 @@ export function updateProjectLot(data) {
|
||||||
export function delProjectLot(lotId) {
|
export function delProjectLot(lotId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/base/bmProjectLot/' + lotId,
|
url: '/material/base/bmProjectLot/' + lotId,
|
||||||
method: 'post'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
//工程项目下拉数据
|
//工程项目下拉数据
|
||||||
|
|
@ -131,7 +131,7 @@ export function updateUnit(data) {
|
||||||
export function delUnit(unitId) {
|
export function delUnit(unitId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/bm_unit/' + unitId,
|
url: '/material/bm_unit/' + unitId,
|
||||||
method: 'post'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -266,7 +266,7 @@ export function statusUnitType(data) {
|
||||||
export function delUnitType(typeIds) {
|
export function delUnitType(typeIds) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/bm_unit_type/' + typeIds,
|
url: '/material/bm_unit_type/' + typeIds,
|
||||||
method: 'post'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -301,7 +301,7 @@ export function updatePropInfo(data) {
|
||||||
export function delPropInfo(id) {
|
export function delPropInfo(id) {
|
||||||
return request({
|
return request({
|
||||||
url: `/material/bm_asset_attributes/${id}`,
|
url: `/material/bm_asset_attributes/${id}`,
|
||||||
method: 'post'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ export function queryKeeperNameApi(query) {
|
||||||
export function delMaType(typeId) {
|
export function delMaType(typeId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/ma_type/' + typeId,
|
url: '/material/ma_type/' + typeId,
|
||||||
method: 'post',
|
method: 'delete',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ export function getZichanType(query) {
|
||||||
export function delDevice(id) {
|
export function delDevice(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/ma_machine/' + id,
|
url: '/material/ma_machine/' + id,
|
||||||
method: 'post',
|
method: 'delete',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,6 @@ export function updateMaType(data) {
|
||||||
export function delMaType(id) {
|
export function delMaType(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/ma_part_type/' + id,
|
url: '/material/ma_part_type/' + id,
|
||||||
method: 'post',
|
method: 'delete',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -32,7 +32,7 @@ export function getFacturerDetail(id) {
|
||||||
export function delFacturer(id) {
|
export function delFacturer(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/ma_supplier_info/' + id,
|
url: '/material/ma_supplier_info/' + id,
|
||||||
method: 'post',
|
method: 'delete',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ export function queryKeeperNameApi(query) {
|
||||||
export function delHouse(id) {
|
export function delHouse(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/material/wh_house_info/' + id,
|
url: '/material/wh_house_info/' + id,
|
||||||
method: 'post',
|
method: 'delete',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -390,7 +390,7 @@
|
||||||
list-type="picture-card"
|
list-type="picture-card"
|
||||||
accept=".png, .jpg, .jpeg, .pdf"
|
accept=".png, .jpg, .jpeg, .pdf"
|
||||||
:on-change="handleChangeBusinessList"
|
:on-change="handleChangeBusinessList"
|
||||||
:class="{ disabled: uploadDisabled }"
|
:class="{ disabled: true }"
|
||||||
:on-preview="picturePreview"
|
:on-preview="picturePreview"
|
||||||
:on-remove="handleRemoveElectricianImgList"
|
:on-remove="handleRemoveElectricianImgList"
|
||||||
:disabled="isEdits"
|
:disabled="isEdits"
|
||||||
|
|
@ -425,7 +425,7 @@
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
<!-- 查看全部图片的弹窗 -->
|
<!-- 查看全部图片的弹窗 -->
|
||||||
<el-dialog :title="title" :visible.sync="showAllImg" width="600px" append-to-body>
|
<el-dialog :title="title" :visible.sync="showAllImg" width="800px" append-to-body>
|
||||||
<el-form ref="form" label-width="120px">
|
<el-form ref="form" label-width="120px">
|
||||||
<el-form-item label="营业执照">
|
<el-form-item label="营业执照">
|
||||||
<el-upload
|
<el-upload
|
||||||
|
|
@ -438,7 +438,7 @@
|
||||||
list-type="picture-card"
|
list-type="picture-card"
|
||||||
accept=".png, .jpg, .jpeg, .pdf"
|
accept=".png, .jpg, .jpeg, .pdf"
|
||||||
:on-change="handleChangeBusinessList"
|
:on-change="handleChangeBusinessList"
|
||||||
:class="{ disabled: uploadDisabled }"
|
:class="{ disabled: true }"
|
||||||
:on-preview="picturePreview"
|
:on-preview="picturePreview"
|
||||||
:on-remove="handleRemoveElectricianImgList"
|
:on-remove="handleRemoveElectricianImgList"
|
||||||
:disabled="isEdits"
|
:disabled="isEdits"
|
||||||
|
|
@ -460,7 +460,6 @@
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<i class="el-icon-plus avatar-uploader-icon"></i>
|
<i class="el-icon-plus avatar-uploader-icon"></i>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
v-hasPermi="['machinery:type:add']"
|
v-hasPermi="['ma:info:add']"
|
||||||
>新增</el-button
|
>新增</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -67,7 +67,7 @@
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['machinery:type:edit']"
|
v-hasPermi="['ma:info:edit']"
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
@ -76,7 +76,7 @@
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['machinery:type:del']"
|
v-hasPermi="['ma:info:remove']"
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
|
||||||
|
|
@ -185,7 +185,7 @@
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleView(scope.row)"
|
@click="handleView(scope.row)"
|
||||||
v-hasPermi="['machinery:type:config']"
|
v-hasPermi="['ma:type:query']"
|
||||||
>
|
>
|
||||||
查看
|
查看
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
@ -806,15 +806,20 @@ export default {
|
||||||
getTreeData() {
|
getTreeData() {
|
||||||
getMaTypeList().then((response) => {
|
getMaTypeList().then((response) => {
|
||||||
this.treeOptions = response.data;
|
this.treeOptions = response.data;
|
||||||
if (
|
console.log(this.treeOptions)
|
||||||
this.treeOptions.length > 0 &&
|
if (this.treeOptions.length > 0 ){
|
||||||
this.treeOptions[0].children.length > 0
|
if(this.treeOptions[0].children&&this.treeOptions[0].children.length > 0) {
|
||||||
) {
|
const firstNode = this.treeOptions[0].children[0];
|
||||||
const firstNode = this.treeOptions[0].children[0];
|
this.queryParams.typeId = firstNode.id;
|
||||||
this.queryParams.typeId = firstNode.id;
|
this.queryParams.level = 1;
|
||||||
this.queryParams.level = 1;
|
this.queryParams.houseId = firstNode.houseId;
|
||||||
this.queryParams.houseId = firstNode.houseId;
|
this.getList();
|
||||||
this.getList();
|
}else{
|
||||||
|
this.queryParams.typeId = this.treeOptions[0].id;
|
||||||
|
this.queryParams.level = 0;
|
||||||
|
this.queryParams.houseId = this.treeOptions[0].id;
|
||||||
|
this.getList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleBind"
|
@click="handleBind"
|
||||||
v-hasPermi="['machinery:type:add']"
|
v-hasPermi="['ma:keeper:add']"
|
||||||
>绑定</el-button
|
>绑定</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -116,7 +116,7 @@
|
||||||
icon="el-icon-minus"
|
icon="el-icon-minus"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleNoBind"
|
@click="handleNoBind"
|
||||||
v-hasPermi="['machinery:type:add']"
|
v-hasPermi="['ma:keeper:remove']"
|
||||||
>解绑</el-button
|
>解绑</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleBind"
|
@click="handleBind"
|
||||||
v-hasPermi="['machinery:type:add']"
|
v-hasPermi="['ma:repair:add']"
|
||||||
>绑定</el-button
|
>绑定</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -116,7 +116,7 @@
|
||||||
icon="el-icon-minus"
|
icon="el-icon-minus"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleNoBind"
|
@click="handleNoBind"
|
||||||
v-hasPermi="['machinery:type:add']"
|
v-hasPermi="['ma:repair:remove']"
|
||||||
>解绑</el-button
|
>解绑</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="handleAdd"
|
@click="handleAdd"
|
||||||
v-hasPermi="['machinery:type:add']"
|
v-hasPermi="['warehouse:info:add']"
|
||||||
>新增</el-button
|
>新增</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
@ -118,7 +118,7 @@
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-hasPermi="['machinery:type:edit']"
|
v-hasPermi="['warehouse:info:edit']"
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
@ -127,7 +127,7 @@
|
||||||
type="text"
|
type="text"
|
||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-hasPermi="['machinery:type:del']"
|
v-hasPermi="['warehouse:info:remove']"
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
|
||||||
|
|
@ -428,12 +428,12 @@
|
||||||
print() {
|
print() {
|
||||||
this.$refs.remarksPrintRef.print()
|
this.$refs.remarksPrintRef.print()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
handleExport() {
|
handleExport() {
|
||||||
// this.download('/material/ma_machine/export', {
|
this.download(
|
||||||
// ...this.queryParams
|
"/material/purchase_check_info/export",
|
||||||
// }, `仓库管理_${new Date().getTime()}.xlsx`)
|
{ ...this.queryParams },
|
||||||
|
`新购到货验收_${new Date().getTime()}.xlsx`
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,6 @@
|
||||||
v-model="maForm.productionTime"
|
v-model="maForm.productionTime"
|
||||||
style="width: 240px"
|
style="width: 240px"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
:picker-options="pickerOptions"
|
|
||||||
type="date"
|
type="date"
|
||||||
placeholder="请选择出厂日期"
|
placeholder="请选择出厂日期"
|
||||||
@change="productionTimeChange"
|
@change="productionTimeChange"
|
||||||
|
|
@ -261,7 +260,7 @@
|
||||||
<el-table-column label="操作" align="center" width="100">
|
<el-table-column label="操作" align="center" width="100">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div style="display: flex;align-items: center;justify-content: space-between;">
|
<div style="display: flex;align-items: center;justify-content: space-between;">
|
||||||
<el-upload ref="upload" :limit="1" :headers="upload.headers"
|
<el-upload ref="upload" :limit="3" :headers="upload.headers"
|
||||||
:action="upload.url" :show-file-list="false" accept=".png, .jpg, .jpeg, .pdf, .doc, .docx"
|
:action="upload.url" :show-file-list="false" accept=".png, .jpg, .jpeg, .pdf, .doc, .docx"
|
||||||
:on-success="handleFileSuccess" :auto-upload="true"
|
:on-success="handleFileSuccess" :auto-upload="true"
|
||||||
>
|
>
|
||||||
|
|
@ -459,12 +458,12 @@ export default {
|
||||||
// 含税单价
|
// 含税单价
|
||||||
purchaseTaxPriceChange(row,val){
|
purchaseTaxPriceChange(row,val){
|
||||||
// this.equipmentList[val].purchasePrice = (row.purchaseTaxPrice/(1 + this.maForm.taxRate/100)).toFixed(2)
|
// this.equipmentList[val].purchasePrice = (row.purchaseTaxPrice/(1 + this.maForm.taxRate/100)).toFixed(2)
|
||||||
row.purchasePrice = (row.purchaseTaxPrice/(1 + this.maForm.taxRate/100)).toFixed(2)
|
row.purchasePrice = (row.purchaseTaxPrice/(1 + this.maForm.taxRate/100)).toFixed(3)
|
||||||
},
|
},
|
||||||
// 不含税单价
|
// 不含税单价
|
||||||
purchasePriceChange(row,val){
|
purchasePriceChange(row,val){
|
||||||
// this.equipmentList[val].purchaseTaxPrice = (row.purchasePrice*(1 + this.maForm.taxRate/100)).toFixed(2)
|
// this.equipmentList[val].purchaseTaxPrice = (row.purchasePrice*(1 + this.maForm.taxRate/100)).toFixed(2)
|
||||||
row.purchaseTaxPrice = (row.purchasePrice*(1 + this.maForm.taxRate/100)).toFixed(2)
|
row.purchaseTaxPrice = (row.purchasePrice*(1 + this.maForm.taxRate/100)).toFixed(3)
|
||||||
},
|
},
|
||||||
/** 物资厂家-下拉选 */
|
/** 物资厂家-下拉选 */
|
||||||
supplierInfoList() {
|
supplierInfoList() {
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,16 @@
|
||||||
>新购到货入库</el-button
|
>新购到货入库</el-button
|
||||||
>
|
>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="1.5">
|
||||||
|
<el-button
|
||||||
|
type="warning"
|
||||||
|
plain
|
||||||
|
icon="el-icon-download"
|
||||||
|
size="mini"
|
||||||
|
@click="handleExport"
|
||||||
|
>导出</el-button
|
||||||
|
>
|
||||||
|
</el-col>
|
||||||
<!-- <el-col :span="1.5">
|
<!-- <el-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="success"
|
type="success"
|
||||||
|
|
@ -482,7 +491,14 @@ export default {
|
||||||
this.dialogVisible = true
|
this.dialogVisible = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/** 导出按钮操作 */
|
||||||
|
handleExport() {
|
||||||
|
this.download(
|
||||||
|
"/material/purchase_check_info/exportDetails",
|
||||||
|
{ taskId: this.taskId },
|
||||||
|
`新购到货详情_${new Date().getTime()}.xlsx`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1843,7 +1843,7 @@ export default {
|
||||||
|
|
||||||
//数量管理左侧
|
//数量管理左侧
|
||||||
addPartItem() {
|
addPartItem() {
|
||||||
this.partItems.push({ partType: "", num: "", isCharge: "" });
|
this.partItems.push({ partType: "", partNum: "", isCharge: "" });
|
||||||
this.dividerHeight += 200; // 每次增加配件时,竖线高度增加
|
this.dividerHeight += 200; // 每次增加配件时,竖线高度增加
|
||||||
},
|
},
|
||||||
removePartItem(index) {
|
removePartItem(index) {
|
||||||
|
|
@ -1855,7 +1855,7 @@ export default {
|
||||||
|
|
||||||
//数量管理中间
|
//数量管理中间
|
||||||
addPartItemMiddle() {
|
addPartItemMiddle() {
|
||||||
this.partItemsMiddle.push({ partTypeName: "", num: "", isCharge: "" });
|
this.partItemsMiddle.push({ partTypeName: "", partNum: "", isCharge: "" });
|
||||||
this.dividerHeight += 200; // 每次增加配件时,竖线高度增加
|
this.dividerHeight += 200; // 每次增加配件时,竖线高度增加
|
||||||
},
|
},
|
||||||
removePartItemMiddle(index) {
|
removePartItemMiddle(index) {
|
||||||
|
|
|
||||||
|
|
@ -116,47 +116,8 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<el-table
|
|
||||||
:key="tableKey"
|
|
||||||
v-loading="listLoading"
|
|
||||||
:data="list"
|
|
||||||
border
|
|
||||||
fit
|
|
||||||
highlight-current-row
|
|
||||||
style="width: 100%"
|
|
||||||
:max-height="tableHeight"
|
|
||||||
>
|
|
||||||
<el-table-column label="序号" align="center" width="80" type="index">
|
|
||||||
<template slot-scope="scope">
|
|
||||||
<span>{{
|
|
||||||
(listQuery.pageNum - 1) * listQuery.pageSize + scope.$index + 1
|
|
||||||
}}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="操作人" align="center" prop="operaUserName" />
|
|
||||||
<el-table-column label="操作时间" align="center" prop="operTime" />
|
|
||||||
<el-table-column label="IP地址" align="center" prop="ip" />
|
|
||||||
<el-table-column label="操作模块" align="center" prop="model" />
|
|
||||||
<el-table-column label="操作类型" align="center" prop="operType" />
|
|
||||||
<el-table-column label="操作详情" align="center" prop="operateDetail" />
|
|
||||||
<el-table-column label="操作结果" align="center" prop="result">
|
|
||||||
<template slot-scope="{ row }">
|
|
||||||
{{ row.result }}
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="操作参数" align="center" prop="params" />
|
|
||||||
<el-table-column label="操作方法" align="center" prop="method" />
|
|
||||||
<el-table-column label="操作路径" align="center" prop="operUri" />
|
|
||||||
<el-table-column label="执行时间(ms)" align="center" prop="times" />
|
|
||||||
</el-table>
|
|
||||||
|
|
||||||
<pagination
|
|
||||||
v-show="total > 0"
|
|
||||||
:total="total"
|
|
||||||
:page.sync="listQuery.pageNum"
|
|
||||||
:limit.sync="listQuery.pageSize"
|
|
||||||
@pagination="getList"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue