|
@@ -3,10 +3,13 @@
|
|
|
<basic-container v-show="!detailsOpen">
|
|
|
<avue-crud :option="option" :search.sync="search" v-model="form" :table-loading="loading" :data="dataList"
|
|
|
ref="crud" :key="key" @selection-change="selectionChange" @on-load="onLoad" @search-change="searchChange"
|
|
|
- @row-del="rowDel" @refresh-change="refreshChange" @resetColumn="resetColumnTwo('crud', 'option', 'optionList', 271)"
|
|
|
+ @row-del="rowDel" @refresh-change="refreshChange"
|
|
|
+ @resetColumn="resetColumnTwo('crud', 'option', 'optionList', 271)"
|
|
|
@saveColumn="saveColumnTwo('crud', 'option', 'optionList', 271)" :page.sync="page">
|
|
|
- <template slot-scope="{type,size,row,index}" slot="menu">
|
|
|
+ <template slot-scope="{type,size,row,index}" slot="menu" >
|
|
|
<!--<el-button icon="el-icon-view" :size="size" :type="type" @click="check(row)">查看</el-button>-->
|
|
|
+ <el-button type="text" size="small" @click="rowCell(row, index)">{{ row.$cellEdit ? '保存' : '修改' }}
|
|
|
+ </el-button>
|
|
|
<el-button icon="el-icon-delete" :disabled="row.statusName === '已派工'" :size="size" :type="type"
|
|
|
@click="$refs.crud.rowDel(row, index)">删除
|
|
|
</el-button>
|
|
@@ -58,6 +61,7 @@ export default {
|
|
|
selection: true,
|
|
|
viewBtn: false,
|
|
|
editBtn: false,
|
|
|
+ celBtn: true,
|
|
|
delBtn: false,
|
|
|
addBtn: false,
|
|
|
menu: true,
|
|
@@ -88,7 +92,13 @@ export default {
|
|
|
prop: "customerName",
|
|
|
search: true,
|
|
|
width: 140,
|
|
|
+ type: 'select',
|
|
|
overHidden: true,
|
|
|
+ props: {
|
|
|
+ label: 'cname',
|
|
|
+ value: 'id'
|
|
|
+ },
|
|
|
+ dicUrl: '/api/blade-sales-part/corpsDesc/listAll?corpType=KH',
|
|
|
}
|
|
|
// , {
|
|
|
// label: "商品种类",
|
|
@@ -105,14 +115,30 @@ export default {
|
|
|
{
|
|
|
label: '来源公司',
|
|
|
prop: "sourceCompanyId",
|
|
|
+ search: true,
|
|
|
width: 100,
|
|
|
overHidden: true,
|
|
|
+ type: 'select',
|
|
|
+ type: 'select',
|
|
|
+ props: {
|
|
|
+ label: 'fullName',
|
|
|
+ value: 'id'
|
|
|
+ },
|
|
|
+ dicUrl: '/api/blade-system/dept/top-list'
|
|
|
},
|
|
|
{
|
|
|
label: '发货仓库',
|
|
|
prop: "storageName",
|
|
|
width: 100,
|
|
|
+ search: true,
|
|
|
overHidden: true,
|
|
|
+ cell:false,
|
|
|
+ type: 'select',
|
|
|
+ props: {
|
|
|
+ label: 'cname',
|
|
|
+ value: 'id'
|
|
|
+ },
|
|
|
+ dicUrl: '/api/blade-sales-part/storageDesc/listAll',
|
|
|
},
|
|
|
// {
|
|
|
// label: '发货库管',
|
|
@@ -126,18 +152,18 @@ export default {
|
|
|
width: 200,
|
|
|
overHidden: true,
|
|
|
},
|
|
|
- {
|
|
|
+ {
|
|
|
label: '销售数量',
|
|
|
prop: "goodsTotalNum",
|
|
|
width: 100,
|
|
|
overHidden: true,
|
|
|
- },
|
|
|
- {
|
|
|
+ },
|
|
|
+ {
|
|
|
label: '发货数量',
|
|
|
prop: "goodsTotalShipNum",
|
|
|
width: 100,
|
|
|
overHidden: true,
|
|
|
- },
|
|
|
+ },
|
|
|
{
|
|
|
label: '联系人',
|
|
|
prop: "contacts",
|
|
@@ -152,7 +178,16 @@ export default {
|
|
|
label: '状态',
|
|
|
prop: "statusName",
|
|
|
width: 100,
|
|
|
+ search: true,
|
|
|
+ type: 'select',
|
|
|
overHidden: true,
|
|
|
+ dicData: [{
|
|
|
+ label: '待处理',
|
|
|
+ value: '待处理'
|
|
|
+ }, {
|
|
|
+ label: '已派工',
|
|
|
+ value: '已派工'
|
|
|
+ }]
|
|
|
}, {
|
|
|
label: '备注',
|
|
|
prop: "remarks",
|
|
@@ -232,6 +267,10 @@ export default {
|
|
|
refreshChange() {
|
|
|
this.onLoad(this.page, this.search)
|
|
|
},
|
|
|
+ rowCell(row,index){
|
|
|
+ this.findObject(this.optionList.column, "storageName").cell = true
|
|
|
+ this.$refs.crud.rowCell(row, index)
|
|
|
+ },
|
|
|
rowDel(form, index) {
|
|
|
this.$confirm('此操作将永久删除该行, 是否继续?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
@@ -250,6 +289,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
searchChange(params, done) {
|
|
|
+ console.log(params);
|
|
|
done();
|
|
|
this.onLoad(this.page, params)
|
|
|
},
|
|
@@ -286,7 +326,9 @@ export default {
|
|
|
},
|
|
|
//自定义列重置
|
|
|
async resetColumnTwo(ref, option, optionBack, code) {
|
|
|
- this[option] = this[optionBack];
|
|
|
+ console.log(this[option]);
|
|
|
+ console.log(this[optionBack]);
|
|
|
+ // this[option] = this[optionBack];
|
|
|
const inSave = await this.delColumnData(this.getColumnName(code), this[optionBack]);
|
|
|
if (inSave) {
|
|
|
this.$message.success("重置成功");
|