|
@@ -50,7 +50,7 @@ import { getList, remove, getWarehouseKeeper, getGoodsInfo } from "@/api/tirePar
|
|
|
import detailsPage from "./detailsPage.vue"
|
|
|
import { dateFormat } from '@/util/date'
|
|
|
import { getDetails } from "@/api/tirePartsMall/purchasingManagement/warehouseEntryOrder";
|
|
|
-import {corpsDescListAll} from "@/api/tirePartsMall/salesManagement/saleOrder";
|
|
|
+import { corpsDescListAll } from "@/api/tirePartsMall/salesManagement/saleOrder";
|
|
|
export default {
|
|
|
name: "index",
|
|
|
components: {
|
|
@@ -64,7 +64,7 @@ export default {
|
|
|
stockClerkNameList: [],
|
|
|
loading: false,
|
|
|
search: {
|
|
|
- statusName:'待入库'
|
|
|
+ statusName: '待入库'
|
|
|
},
|
|
|
form: {},
|
|
|
dataList: [],
|
|
@@ -221,12 +221,14 @@ export default {
|
|
|
search: true,
|
|
|
overHidden: true,
|
|
|
type: 'select',
|
|
|
+ filterable:true,
|
|
|
+ remote:true,
|
|
|
props: {
|
|
|
label: 'cname',
|
|
|
- value: 'cname'
|
|
|
+ value: 'cname',
|
|
|
+ res: 'data.records'
|
|
|
},
|
|
|
- dicData: [],
|
|
|
- // dicUrl: '/api/blade-sales-part/corpsDesc/listAll?corpType=GYS',
|
|
|
+ dicUrl: '/api/blade-sales-part/corpsDesc/list?current=1&size=20&corpType=GYS&cname={{key}}',
|
|
|
}, {
|
|
|
label: "仓库",
|
|
|
prop: "storageName",
|
|
@@ -250,7 +252,7 @@ export default {
|
|
|
search: false,
|
|
|
overHidden: true,
|
|
|
// width: 120,
|
|
|
- },{
|
|
|
+ }, {
|
|
|
label: "状态",
|
|
|
prop: "statusName",
|
|
|
search: true,
|
|
@@ -378,9 +380,9 @@ export default {
|
|
|
};
|
|
|
this.detailsOpen = true;
|
|
|
}
|
|
|
- this.corpsDescListAllfun()
|
|
|
+ // this.corpsDescListAllfun()
|
|
|
},
|
|
|
- activated(){
|
|
|
+ activated() {
|
|
|
// if (this.$route.query.id) {
|
|
|
// this.detailData = {
|
|
|
// id: this.$route.query.id
|
|
@@ -427,29 +429,27 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
searchChange(params, done) {
|
|
|
- this.page.currentPage = 1
|
|
|
+ this.page.currentPage = 1
|
|
|
done();
|
|
|
this.onLoad(this.page, params)
|
|
|
},
|
|
|
- // 获取业务对象
|
|
|
- corpsDescListAllfun(){
|
|
|
- corpsDescListAll({corpType:'KH'}).then(res=>{
|
|
|
- this.findObject(this.option.column, "customerName").dicData = res.data.data
|
|
|
- })
|
|
|
- },
|
|
|
+ // 获取业务对象
|
|
|
+ // corpsDescListAllfun(){
|
|
|
+ // corpsDescListAll({corpType:'KH'}).then(res=>{
|
|
|
+ // this.findObject(this.option.column, "customerName").dicData = res.data.data
|
|
|
+ // })
|
|
|
+ // },
|
|
|
onLoad(page, params = {}) {
|
|
|
-
|
|
|
let storageId = this.search.storageName;
|
|
|
let searchWithoutStorageName = { ...this.search };
|
|
|
delete searchWithoutStorageName.storageName;
|
|
|
var obj2 = this.deepClone(this.search)
|
|
|
-
|
|
|
params = {
|
|
|
...params,
|
|
|
current: page.currentPage,
|
|
|
size: page.pageSize,
|
|
|
bizTypeName: "THSHGD",
|
|
|
- ...Object.assign(params,this.search),
|
|
|
+ ...Object.assign(params, this.search),
|
|
|
storageId: storageId,
|
|
|
// statusName: this.search.$statusName,
|
|
|
stockClerkName: this.search.$stockClerkName
|
|
@@ -470,11 +470,12 @@ export default {
|
|
|
this.page.total = res.data.data.total
|
|
|
this.$nextTick(() => {
|
|
|
this.$refs.crud.doLayout()
|
|
|
+ this.$refs.crud.dicInit()
|
|
|
})
|
|
|
this.loading = false
|
|
|
}).finally(() => {
|
|
|
// console.log(this.search)
|
|
|
- this.search=obj2
|
|
|
+ this.search = obj2
|
|
|
// if(this.search.statusName==''){
|
|
|
// this.search.statusName='待入库'
|
|
|
// }
|