Browse Source

完善维修单、销售单、工时提成抵顶配件费用

master
yunuo970428 6 months ago
parent
commit
05e1c6c9b1
  1. 18
      yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue
  2. 18
      yxt-as-ui/src/views/operation/salesticket/salesticketAdd.vue
  3. 22
      yxt-as-ui/src/views/operation/topFitting/topFittingAdd.vue
  4. 21
      yxt-as-ui/src/views/workFlow/didingpeijianFlow/topFittingEdit.vue

18
yxt-as-ui/src/views/operation/repairbill/repairbillAdd.vue

@ -344,7 +344,7 @@
<el-table-column prop="hours" label="工时数" align="center" />
<el-table-column prop="price" label="销售价" align="center" />
</el-table>
<pagination v-show="serviceData.length > 0" :total="serviceQuery.total" :page.sync="serviceQuery.current" :limit.sync="serviceQuery.size" class="pagination" @pagination="serviceInput(scope.row.serviceItem)" />
<el-pagination @current-change="currentChangeService($event, scope.row.serviceItem)" :current-page.sync="serviceQuery.current" :page-size="serviceQuery.size" layout="total, prev, pager, next" :total="serviceQuery.total" />
</div>
<el-input slot="reference" v-model="scope.row.serviceItem" @input="serviceInput(scope.row.serviceItem)" clearable placeholder="项目名称、拼音"/>
</el-popover>
@ -502,7 +502,7 @@
<el-table-column prop="aitemCode" label="项目编码" align="center" min-width="150" />
<el-table-column prop="price" label="销售金额" align="center" min-width="150" />
</el-table>
<pagination v-show="subjoinData.length > 0" :total="subjoinQuery.total" :page.sync="subjoinQuery.current" :limit.sync="subjoinQuery.size" class="pagination" @pagination="subjoinInput(scope.row.aitemName)" />
<el-pagination @current-change="currentChangeSubjoin($event, scope.row.aitemName)" :current-page.sync="subjoinQuery.current" :page-size="subjoinQuery.size" layout="total, prev, pager, next" :total="subjoinQuery.total" />
</div>
<el-input slot="reference" v-model="scope.row.aitemName" @input="subjoinInput(scope.row.aitemName)" clearable placeholder="项目名称、拼音"/>
</el-popover>
@ -624,7 +624,6 @@
</template>
<script>
import Pagination from '@/components/pagination'
import req from '@/api/operation/repairbill'
import additionitem from '@/api/basicinformation/additionitem'
import { selAllByOrgSidPath, selSubjectInfo, getGroupList, typeValues, getListByUseOrgSid, getServiceItemListPage, getInvoicingList } from '@/api/Common/dictcommons'
@ -634,7 +633,6 @@ import { getStorage } from '@/utils/auth'
export default {
name: 'RepairBillAdd',
components: {
Pagination,
selectCustomer
},
data() {
@ -681,7 +679,7 @@ export default {
serviceLoading: false,
serviceQuery: {
current: 1,
size: 5,
size: 10,
total: 0,
params: {
sitemName: '',
@ -695,7 +693,7 @@ export default {
subjoinLoading: false,
subjoinQuery: {
current: 1,
size: 5,
size: 10,
total: 0,
params: {
aitemName: '',
@ -1322,6 +1320,10 @@ export default {
staffNameList: []
})
},
currentChangeService(val, value) {
this.serviceQuery.current = val
this.serviceInput(value)
},
serviceInput(value) {
this.serviceQuery.params.useOrgSid = this.formobj.deptSid
this.serviceQuery.params.sitemName = value
@ -1474,6 +1476,10 @@ export default {
}
})
},
currentChangeSubjoin(val, value) {
this.subjoinQuery.current = val
this.subjoinInput(value)
},
subjoinDelete(index) {
this.formobj.aitemVos.splice(index, 1)
},

18
yxt-as-ui/src/views/operation/salesticket/salesticketAdd.vue

@ -119,7 +119,7 @@
<el-table-column prop="goodsSkuOwnSpec" label="规格" align="center" />
<el-table-column prop="unit" label="单位" align="center" />
</el-table>
<pagination v-show="commodityData.length > 0" :total="commodityQuery.total" :page.sync="commodityQuery.current" :limit.sync="commodityQuery.size" class="pagination" @pagination="commodityInput(scope.row.goodsSpuName)" />
<el-pagination @current-change="currentChangeCommodity($event, scope.row.goodsSpuName)" :current-page.sync="commodityQuery.current" :page-size="commodityQuery.size" layout="total, prev, pager, next" :total="commodityQuery.total" />
</div>
<el-input slot="reference" v-model="scope.row.goodsSpuName" @input="commodityInput(scope.row.goodsSpuName)" clearable placeholder="商品名称"/>
</el-popover>
@ -172,7 +172,7 @@
<el-table-column prop="aitemCode" label="项目编码" align="center" />
<el-table-column prop="price" label="销售金额" align="center" />
</el-table>
<pagination v-show="subjoinData.length > 0" :total="subjoinQuery.total" :page.sync="subjoinQuery.current" :limit.sync="subjoinQuery.size" class="pagination" @pagination="subjoinInput(scope.row.aitemName)" />
<el-pagination @current-change="currentChangeSubjoin($event, scope.row.aitemName)" :current-page.sync="subjoinQuery.current" :page-size="subjoinQuery.size" layout="total, prev, pager, next" :total="subjoinQuery.total" />
</div>
<el-input slot="reference" v-model="scope.row.aitemName" @input="subjoinInput(scope.row.aitemName)" clearable placeholder="项目名称、拼音"/>
</el-popover>
@ -271,7 +271,6 @@
</template>
<script>
import Pagination from '@/components/pagination'
import req from '@/api/operation/salesticket'
import additionitem from '@/api/basicinformation/additionitem'
import { selAllByOrgSidPath, selSubjectInfo, typeValues, listPageSales, getOrgSidByPath, getInvoicingList } from '@/api/Common/dictcommons'
@ -281,7 +280,6 @@ import { getStorage } from '@/utils/auth'
export default {
name: 'SalesTicketAdd',
components: {
Pagination,
selectCustomer
},
data() {
@ -303,7 +301,7 @@ export default {
commodityLoading: false,
commodityQuery: {
current: 1,
size: 5,
size: 10,
total: 0,
params: {
goodsName: '',
@ -316,7 +314,7 @@ export default {
subjoinLoading: false,
subjoinQuery: {
current: 1,
size: 5,
size: 10,
total: 0,
params: {
aitemName: '',
@ -638,6 +636,10 @@ export default {
goodsID: '' // ID
})
},
currentChangeCommodity(val, value) {
this.commodityQuery.current = val
this.commodityInput(value)
},
commodityInput(value) {
this.commodityQuery.params.useOrgSid = this.formobj.deptSid
this.commodityQuery.params.goodsName = value
@ -719,6 +721,10 @@ export default {
price: ''
})
},
currentChangeSubjoin(val, value) {
this.subjoinQuery.current = val
this.subjoinInput(value)
},
subjoinInput(value) {
this.subjoinQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.subjoinQuery.params.aitemName = value

22
yxt-as-ui/src/views/operation/topFitting/topFittingAdd.vue

@ -59,10 +59,8 @@
<el-table-column prop="goodsSkuCode" label="图号" align="center" min-width="120" />
<el-table-column prop="goodsSkuOwnSpec" label="规格" align="center" min-width="100" />
<el-table-column prop="unit" label="单位" align="center" min-width="80" />
<el-table-column prop="cost" label="入库单价" align="center" min-width="130" />
<el-table-column prop="count" label="库存数量" align="center" min-width="120" />
</el-table>
<pagination v-show="commodityData.length > 0" :total="commodityQuery.total" :page.sync="commodityQuery.current" :limit.sync="commodityQuery.size" class="pagination" @pagination="commodityInput(scope.row.goodsSpuName)" />
<el-pagination @current-change="currentChangeCommodity($event, scope.row.goodsSpuName)" :current-page.sync="commodityQuery.current" :page-size="commodityQuery.size" layout="total, prev, pager, next" :total="commodityQuery.total" />
</div>
<el-input slot="reference" v-model="scope.row.goodsSpuName" @input="commodityInput(scope.row.goodsSpuName)" clearable placeholder="商品名称"/>
</el-popover>
@ -100,7 +98,7 @@
<el-table-column prop="examineHourPrice" label="工时提成" align="center" />
<el-table-column prop="salePrice" label="销售价" align="center" />
</el-table>
<pagination v-show="serviceData.length > 0" :total="serviceQuery.total" :page.sync="serviceQuery.current" :limit.sync="serviceQuery.size" class="pagination" @pagination="serviceInput(scope.row.sitem)" />
<el-pagination @current-change="currentChangeService($event, scope.row.sitem)" :current-page.sync="serviceQuery.current" :page-size="serviceQuery.size" layout="total, prev, pager, next" :total="serviceQuery.total" />
</div>
<el-input slot="reference" v-model="scope.row.sitem" @input="serviceInput(scope.row.sitem)" clearable placeholder="项目名称、维修单号"/>
</el-popover>
@ -137,15 +135,11 @@
</template>
<script>
import Pagination from '@/components/pagination'
import { selInvenGoodsByUseOrgSid, tranFive } from '@/api/Common/dictcommons'
import req from '@/api/operation/topFitting'
export default {
name: 'TopFittingAdd',
components: {
Pagination
},
computed: {
spTotal() {
let sp = '0'
@ -178,7 +172,7 @@ export default {
commodityLoading: false,
commodityQuery: {
current: 1,
size: 5,
size: 10,
total: 0,
params: {
goodsName: '',
@ -191,7 +185,7 @@ export default {
serviceLoading: false,
serviceQuery: {
current: 1,
size: 5,
size: 10,
total: 0,
params: {
name: '',
@ -313,6 +307,10 @@ export default {
count: '' //
})
},
currentChangeCommodity(val, value) {
this.commodityQuery.current = val
this.commodityInput(value)
},
commodityInput(value) {
this.commodityQuery.params.useOrgSid = this.formobj.deptSid
this.commodityQuery.params.goodsName = value
@ -364,6 +362,10 @@ export default {
suppAmout: ''
})
},
currentChangeService(val, value) {
this.serviceQuery.current = val
this.serviceInput(value)
},
serviceInput(value) {
this.serviceQuery.params.useOrgSid = this.formobj.deptSid
this.serviceQuery.params.name = value

21
yxt-as-ui/src/views/workFlow/didingpeijianFlow/topFittingEdit.vue

@ -61,7 +61,7 @@
<el-table-column prop="cost" label="入库单价" align="center" min-width="130" />
<el-table-column prop="count" label="库存数量" align="center" min-width="120" />
</el-table>
<pagination v-show="commodityData.length > 0" :total="commodityQuery.total" :page.sync="commodityQuery.current" :limit.sync="commodityQuery.size" class="pagination" @pagination="commodityInput(scope.row.goodsSpuName)" />
<el-pagination @current-change="currentChangeCommodity($event, scope.row.goodsSpuName)" :current-page.sync="commodityQuery.current" :page-size="commodityQuery.size" layout="total, prev, pager, next" :total="commodityQuery.total" />
</div>
<el-input slot="reference" v-model="scope.row.goodsSpuName" @input="commodityInput(scope.row.goodsSpuName)" clearable placeholder="商品名称"/>
</el-popover>
@ -99,8 +99,7 @@
<el-table-column prop="examineHourPrice" label="工时提成" align="center" />
<el-table-column prop="salePrice" label="销售价" align="center" />
</el-table>
<pagination v-show="serviceData.length > 0" :total="serviceQuery.total" :page.sync="serviceQuery.current" :limit.sync="serviceQuery.size" class="pagination" @pagination="serviceInput(scope.row.sitem)" />
</div>
<el-pagination @current-change="currentChangeService($event, scope.row.sitem)" :current-page.sync="serviceQuery.current" :page-size="serviceQuery.size" layout="total, prev, pager, next" :total="serviceQuery.total" /></div>
<el-input slot="reference" v-model="scope.row.sitem" @input="serviceInput(scope.row.sitem)" clearable placeholder="项目名称、维修单号"/>
</el-popover>
</template>
@ -136,15 +135,11 @@
</template>
<script>
import Pagination from '@/components/pagination'
import { selInvenGoodsByUseOrgSid, tranFive } from '@/api/Common/dictcommons'
import req from '@/api/operation/topFitting'
export default {
name: 'TopFittingEdit',
components: {
Pagination
},
computed: {
spTotal() {
let sp = '0'
@ -177,7 +172,7 @@ export default {
commodityLoading: false,
commodityQuery: {
current: 1,
size: 2,
size: 10,
total: 0,
params: {
goodsName: '',
@ -190,7 +185,7 @@ export default {
serviceLoading: false,
serviceQuery: {
current: 1,
size: 2,
size: 10,
total: 0,
params: {
name: '',
@ -305,6 +300,10 @@ export default {
count: '' //
})
},
currentChangeCommodity(val, value) {
this.commodityQuery.current = val
this.commodityInput(value)
},
commodityInput(value) {
this.commodityQuery.params.useOrgSid = this.formobj.deptSid
this.commodityQuery.params.goodsName = value
@ -356,6 +355,10 @@ export default {
suppAmout: ''
})
},
currentChangeService(val, value) {
this.serviceQuery.current = val
this.serviceInput(value)
},
serviceInput(value) {
this.serviceQuery.params.useOrgSid = this.formobj.deptSid
this.serviceQuery.params.name = value

Loading…
Cancel
Save