Commit 4bb290c8 by wangweidong

合同管理

parent f31fb380
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</div> </div>
</template> </template>
<script> <script>
import { meterSample } from '../../../api' import { meterSampleQuote } from '../../api'
export default { export default {
components: { components: {
// FoodSampleGovernDetail, // FoodSampleGovernDetail,
...@@ -232,7 +232,7 @@ export default { ...@@ -232,7 +232,7 @@ export default {
_page: async function() { _page: async function() {
Object.assign(this.formObj, this.$refs.pageTable._searchParams()) Object.assign(this.formObj, this.$refs.pageTable._searchParams())
console.log('this.formObj', this.formObj) console.log('this.formObj', this.formObj)
const result = await meterSample.page(this.formObj) const result = await meterSampleQuote.page(this.formObj)
if (result) { if (result) {
this.getPage = result this.getPage = result
this.$refs.pageTable._hideLoading() this.$refs.pageTable._hideLoading()
...@@ -270,21 +270,6 @@ export default { ...@@ -270,21 +270,6 @@ export default {
}) })
}) })
}, },
_editModal(edit, id) {
this.currentComponent = 'FoodSampleGovernEdit'
this.$nextTick(function() {
if (edit) {
this.$store.dispatch('FoodSample/getByGovernId', id).then(() => {
this.$refs.refModal._open(
this.$store.state.FoodSample.governModel,
this.contractId
)
})
} else {
this.$refs.refModal._open('', this.contractId)
}
})
},
_editLY(id) { _editLY(id) {
// 粮油的编辑 // 粮油的编辑
this.currentComponent = 'FoodSampleGovernLYEdit' this.currentComponent = 'FoodSampleGovernLYEdit'
...@@ -310,62 +295,6 @@ export default { ...@@ -310,62 +295,6 @@ export default {
this.$Message.success(msg) this.$Message.success(msg)
} }
}, },
_copy(sampleId, type) {
this.$refs.refModal._open(sampleId, type)
},
// 复制样品
_copySample(data) {
if (data.type === 2) {
// 粮油的编辑页
this.currentComponent = 'FoodSampleGovernLYEdit'
this.$store
.dispatch('FoodSample/getByGovernId', data.sampleId)
.then(() => {
this.$nextTick(function() {
this.$refs.refModal._openCopySample(
this.$store.state.FoodSample.governModel
)
})
})
} else {
this.currentComponent = 'FoodSampleGovernEdit'
this.$store
.dispatch('FoodSample/getByGovernId', data.sampleId)
.then(() => {
this.$nextTick(function() {
this.$refs.refModal._openCopySample(
this.$store.state.FoodSample.governModel
)
})
})
}
},
_copyAll(data) {
if (data.type === 2) {
// 粮油的编辑页
this.currentComponent = 'FoodSampleGovernLYEdit'
this.$store
.dispatch('FoodSample/getByGovernId', data.sampleId)
.then(() => {
this.$nextTick(function() {
this.$refs.refModal._openCopyAll(
this.$store.state.FoodSample.governModel
)
})
})
} else {
this.currentComponent = 'FoodSampleGovernEdit'
this.$store
.dispatch('FoodSample/getByGovernId', data.sampleId)
.then(() => {
this.$nextTick(function() {
this.$refs.refModal._openCopyAll(
this.$store.state.FoodSample.governModel
)
})
})
}
},
// 导入样品 // 导入样品
_importSample() { _importSample() {
const data = { const data = {
...@@ -401,13 +330,6 @@ export default { ...@@ -401,13 +330,6 @@ export default {
this._subpackage(this.selectIds) this._subpackage(this.selectIds)
} }
}, },
_subpackage: async function(ids) {
const result = await meterSample.subpackageSample(ids)
if (result) {
this.$Message.success('分包成功!')
await this._page()
}
},
_importItemPackage() { _importItemPackage() {
if (this.selectIds.length === 0) { if (this.selectIds.length === 0) {
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
import { meterContract, meterEntrust, meterSubcontractor } from '../../../api' import { meterContract, meterEntrust, meterSubcontractor } from '../../../api'
import Operation from '../../../components/operation/Operation' import Operation from '../../../components/operation/Operation'
import Reason from '../../../components/base/Reason' import Reason from '../../../components/base/Reason'
import MeterSampleManage from './MeterSampleManage' import MeterSampleManage from '../MeterSampleQuoteManage'
import MeterEntrustDetail from './MeterContractAcceptedDetail' import MeterEntrustDetail from './MeterContractAcceptedDetail'
export default { export default {
components: { MeterSampleManage, MeterEntrustDetail, Operation }, components: { MeterSampleManage, MeterEntrustDetail, Operation },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment