|
|
@ -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 |
|
|
|