opt:物料基础功能wql改成mybatis plus

This commit is contained in:
zds
2024-10-15 15:19:05 +08:00
parent 60422a9884
commit f69678e3ae
22 changed files with 466 additions and 986 deletions

View File

@@ -156,23 +156,14 @@
</el-table>
<AddDtl :dialog-show.sync="dtlShow" :open-param="opendtlParam" @tableChanged="tableChanged" />
<MaterDtl
:dialog-show.sync="materShow"
:is-single="true"
:mater-opt-code="materType"
@tableChanged2="tableChanged2"
/>
</el-dialog>
</template>
<script>
import crudOperation from '@crud/CRUD.operation'
import CRUD, { crud, form } from '@crud/crud'
import AddDtl from '@/views/wms/st/inbill/AddDtl'
import crudStorattr from '@/views/wms/basedata/st/stor/storattr'
import crudRawAssist from '@/views/wms/st/inbill/rawassist'
import MaterDtl from '@/views/wms/pub/MaterDialog'
import checkoutbill from '@/views/wms/st/outbill/checkoutbill'
import crudUserStor from '@/views/wms/basedata/st/userStor/userStor'
@@ -191,7 +182,7 @@ const defaultForm = {
export default {
name: 'AddDialog',
components: { AddDtl, MaterDtl },
components: { AddDtl },
mixins: [crud(), form(defaultForm)],
dicts: ['io_bill_status', 'ST_QUALITY_SCODE', 'ST_INV_IN_TYPE'],
props: {
@@ -308,14 +299,6 @@ export default {
fun(val) {
return Number(val).toFixed(3)
},
async queryMater(index, row) {
checkoutbill.paramByCodeType({ 'bill_type': this.form.bill_type, 'io_flag': '00' }).then(res => {
this.materType = res.materType
this.materShow = true
this.nowindex = index
this.nowrow = row
})
},
async insertdtl() {
if (this.form.bill_type == '') {
this.crud.notify('请选择业务类型!', CRUD.NOTIFICATION_TYPE.INFO)