Commit ba0f5d43 by huangqy

昨天把已完成变成完成

parent 36128af3
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
- [ ] 未完成任务 - [ ] 未完成任务
- [x] 完成任务 - [x] 完成任务
``` java ``` java
......
...@@ -62,7 +62,7 @@ const military_depot_dict = [{ ...@@ -62,7 +62,7 @@ const military_depot_dict = [{
}, },
{ {
id: 2, id: 2,
text: '完成', text: '完成',
value: 1 value: 1
}, },
{ {
......
...@@ -103,7 +103,7 @@ struct WzConversionPage{ ...@@ -103,7 +103,7 @@ struct WzConversionPage{
onSubmit() { onSubmit() {
try{ try{
this.checkedList.forEach(async (element)=>{ this.checkedList.forEach(async (element)=>{
let num = await wzcrkModel.updateWzcrkWczt(element, (this.radioChecked == undefined || this.radioChecked ? '完成' : '未完成')) let num = await wzcrkModel.updateWzcrkWczt(element, (this.radioChecked == undefined || this.radioChecked ? '完成' : '未完成'))
if(num) { if(num) {
this.dataSource.splice(this.dataSource.findIndex(i => i.guid == element), 1) this.dataSource.splice(this.dataSource.findIndex(i => i.guid == element), 1)
} }
...@@ -133,7 +133,7 @@ struct WzConversionPage{ ...@@ -133,7 +133,7 @@ struct WzConversionPage{
} }
onExportSubmit() { onExportSubmit() {
this.checkedList.forEach(async element => { this.checkedList.forEach(async element => {
let res = await ViewdrdcModel.queryExport({guid: element, wczt: '完成', pzlx: '17'}) let res = await ViewdrdcModel.queryExport({guid: element, wczt: '完成', pzlx: '17'})
const jhguidArr = res.map((item) => item.guid) const jhguidArr = res.map((item) => item.guid)
if (jhguidArr && jhguidArr.length > 0) { if (jhguidArr && jhguidArr.length > 0) {
const date = dateUtils.formatDateTime(new Date(), 'before') const date = dateUtils.formatDateTime(new Date(), 'before')
......
...@@ -102,7 +102,7 @@ struct WzExchangePage{ ...@@ -102,7 +102,7 @@ struct WzExchangePage{
onSubmit() { onSubmit() {
try{ try{
this.checkedList.forEach(async (element)=>{ this.checkedList.forEach(async (element)=>{
let num = await wzcrkModel.updateWzcrkWczt(element, (this.radioChecked == undefined || this.radioChecked ? '完成' : '未完成')) let num = await wzcrkModel.updateWzcrkWczt(element, (this.radioChecked == undefined || this.radioChecked ? '完成' : '未完成'))
if(num) { if(num) {
this.dataSource.splice(this.dataSource.findIndex(i => i.guid == element), 1) this.dataSource.splice(this.dataSource.findIndex(i => i.guid == element), 1)
} }
...@@ -132,7 +132,7 @@ struct WzExchangePage{ ...@@ -132,7 +132,7 @@ struct WzExchangePage{
} }
onExportSubmit() { onExportSubmit() {
this.checkedList.forEach(async element => { this.checkedList.forEach(async element => {
let res = await ViewdrdcModel.queryExport({guid: element, wczt: '完成', pzlx: '17'}) let res = await ViewdrdcModel.queryExport({guid: element, wczt: '完成', pzlx: '17'})
const jhguidArr = res.map((item) => item.guid) const jhguidArr = res.map((item) => item.guid)
if (jhguidArr && jhguidArr.length > 0) { if (jhguidArr && jhguidArr.length > 0) {
const date = dateUtils.formatDateTime(new Date(), 'before') const date = dateUtils.formatDateTime(new Date(), 'before')
...@@ -252,7 +252,7 @@ struct WzExchangePage{ ...@@ -252,7 +252,7 @@ struct WzExchangePage{
}) })
} else if (this.dataSource.filter(i => i.wczt == '未完成').length > 0) { } else if (this.dataSource.filter(i => i.wczt == '未完成').length > 0) {
promptAction.showToast({ promptAction.showToast({
message: '请选择完成的单据' message: '请选择完成的单据'
}) })
} else { } else {
if (this.exportDialogController != undefined) { if (this.exportDialogController != undefined) {
......
...@@ -45,8 +45,8 @@ export struct WzInPage { ...@@ -45,8 +45,8 @@ export struct WzInPage {
} }
private controller: TabsController = new TabsController() private controller: TabsController = new TabsController()
private searchcontroller: SearchController = new SearchController() private searchcontroller: SearchController = new SearchController()
@State defaultSelectValue: Array<SelectOption> = [{ value: "未完成" }, { value: "完成" }] @State defaultSelectValue: Array<SelectOption> = [{ value: "未完成" }, { value: "完成" }]
@State selectValue: Array<SelectOption> = [{ value: "未完成" }, { value: "完成" }, { value: "完成已绑定" }] @State selectValue: Array<SelectOption> = [{ value: "未完成" }, { value: "完成" }, { value: "完成已绑定" }]
@State page: number = 1 @State page: number = 1
@State rows: number = 10 @State rows: number = 10
@State sjlx: string = "0" @State sjlx: string = "0"
...@@ -131,7 +131,7 @@ export struct WzInPage { ...@@ -131,7 +131,7 @@ export struct WzInPage {
onSubmit() { onSubmit() {
try{ try{
this.checkedList.forEach(async (element)=>{ this.checkedList.forEach(async (element)=>{
let num = await wzcrkModel.updateWzcrkWczt(element, (this.radioChecked == undefined || this.radioChecked ? '完成' : '未完成')) let num = await wzcrkModel.updateWzcrkWczt(element, (this.radioChecked == undefined || this.radioChecked ? '完成' : '未完成'))
if(num) { if(num) {
this.dataSource.splice(this.dataSource.findIndex(i => i.guid == element), 1) this.dataSource.splice(this.dataSource.findIndex(i => i.guid == element), 1)
} }
...@@ -162,7 +162,7 @@ export struct WzInPage { ...@@ -162,7 +162,7 @@ export struct WzInPage {
onExportSubmit() { onExportSubmit() {
this.checkedList.forEach(async element => { this.checkedList.forEach(async element => {
let res = await ViewdrdcModel.queryExport({guid: element, wczt: '完成', pzlx: '14'}) let res = await ViewdrdcModel.queryExport({guid: element, wczt: '完成', pzlx: '14'})
const jhguidArr = res.map((item) => item.guid) const jhguidArr = res.map((item) => item.guid)
if (jhguidArr && jhguidArr.length > 0) { if (jhguidArr && jhguidArr.length > 0) {
const date = dateUtils.formatDateTime(new Date(), 'before') const date = dateUtils.formatDateTime(new Date(), 'before')
...@@ -469,7 +469,7 @@ export struct WzInPage { ...@@ -469,7 +469,7 @@ export struct WzInPage {
}) })
} else if (this.dataSource.filter(i => i.wczt == '未完成').length > 0) { } else if (this.dataSource.filter(i => i.wczt == '未完成').length > 0) {
promptAction.showToast({ promptAction.showToast({
message: '请选择完成的单据' message: '请选择完成的单据'
}) })
} else { } else {
if (this.exportDialogController != undefined) { if (this.exportDialogController != undefined) {
...@@ -580,7 +580,7 @@ export struct WzInPage { ...@@ -580,7 +580,7 @@ export struct WzInPage {
}}) }})
}) })
}) })
}.padding(18) }.padding(15)
} }
......
...@@ -93,7 +93,7 @@ struct WzInvPage{ ...@@ -93,7 +93,7 @@ struct WzInvPage{
TabContent() { TabContent() {
// Column().width('100%').height('100%').backgroundColor('#007DFF') // Column().width('100%').height('100%').backgroundColor('#007DFF')
}.tabBar(this.TabBuilder(1, '完成')) }.tabBar(this.TabBuilder(1, '完成'))
} }
.height(80) .height(80)
.margin({top:-15}) .margin({top:-15})
......
...@@ -48,7 +48,7 @@ struct WzInvPage{ ...@@ -48,7 +48,7 @@ struct WzInvPage{
pzh: this.pzh, pzh: this.pzh,
page: this.page, page: this.page,
rows: this.rows, rows: this.rows,
sjlx: this.currentIndex === 0 ? "未完成" : "完成", sjlx: this.currentIndex === 0 ? "未完成" : "完成",
wczt: "未完成" wczt: "未完成"
} }
itemClick() { itemClick() {
...@@ -62,7 +62,7 @@ struct WzInvPage{ ...@@ -62,7 +62,7 @@ struct WzInvPage{
const res = await wzcrkModel.query({ const res = await wzcrkModel.query({
pzlx: "42", pzlx: "42",
pzh: this.searchData.pzh, pzh: this.searchData.pzh,
wczt: this.currentIndex === 0 ? "未完成" : "完成" }) wczt: this.currentIndex === 0 ? "未完成" : "完成" })
res.forEach(element => { res.forEach(element => {
this.dataSource.push(new WzClass(element)) this.dataSource.push(new WzClass(element))
}); });
...@@ -114,7 +114,7 @@ struct WzInvPage{ ...@@ -114,7 +114,7 @@ struct WzInvPage{
onSubmit() { onSubmit() {
try{ try{
this.checkedList.forEach(async (element)=>{ this.checkedList.forEach(async (element)=>{
let num = await wzcrkModel.updateWzcrkWczt(element, (this.radioChecked == undefined || this.radioChecked ? '完成' : '未完成')) let num = await wzcrkModel.updateWzcrkWczt(element, (this.radioChecked == undefined || this.radioChecked ? '完成' : '未完成'))
if(num) { if(num) {
this.dataSource.splice(this.dataSource.findIndex(i => i.guid == element), 1) this.dataSource.splice(this.dataSource.findIndex(i => i.guid == element), 1)
} }
...@@ -143,7 +143,7 @@ struct WzInvPage{ ...@@ -143,7 +143,7 @@ struct WzInvPage{
} }
onExportSubmit() { onExportSubmit() {
this.checkedList.forEach(async element => { this.checkedList.forEach(async element => {
let res = await ViewdrdcModel.queryExport({guid: element, wczt: '完成', pzlx: '17'}) let res = await ViewdrdcModel.queryExport({guid: element, wczt: '完成', pzlx: '17'})
const jhguidArr = res.map((item) => item.guid) const jhguidArr = res.map((item) => item.guid)
if (jhguidArr && jhguidArr.length > 0) { if (jhguidArr && jhguidArr.length > 0) {
const date = dateUtils.formatDateTime(new Date(), 'before') const date = dateUtils.formatDateTime(new Date(), 'before')
...@@ -252,7 +252,7 @@ struct WzInvPage{ ...@@ -252,7 +252,7 @@ struct WzInvPage{
}) })
} else if (this.dataSource.filter(i => i.wczt == '未完成').length > 0) { } else if (this.dataSource.filter(i => i.wczt == '未完成').length > 0) {
promptAction.showToast({ promptAction.showToast({
message: '请选择完成的单据' message: '请选择完成的单据'
}) })
} else { } else {
if (this.exportDialogController != undefined) { if (this.exportDialogController != undefined) {
...@@ -304,7 +304,7 @@ struct WzInvPage{ ...@@ -304,7 +304,7 @@ struct WzInvPage{
TabContent() { TabContent() {
// Column().width('100%').height('100%').backgroundColor('#007DFF') // Column().width('100%').height('100%').backgroundColor('#007DFF')
}.tabBar(this.TabBuilder(1, '完成')) }.tabBar(this.TabBuilder(1, '完成'))
} }
.height(80) .height(80)
.margin({top:-15}) .margin({top:-15})
......
...@@ -41,8 +41,8 @@ export struct WzOutPage { ...@@ -41,8 +41,8 @@ export struct WzOutPage {
} }
private controller: TabsController = new TabsController() private controller: TabsController = new TabsController()
private searchcontroller: SearchController = new SearchController() private searchcontroller: SearchController = new SearchController()
@State defaultSelectValue: Array<SelectOption> = [{ value: "未完成" }, { value: "完成" }] @State defaultSelectValue: Array<SelectOption> = [{ value: "未完成" }, { value: "完成" }]
@State selectValue: Array<SelectOption> = [{ value: "未完成" }, { value: "完成" }, { value: "完成已绑定" }] @State selectValue: Array<SelectOption> = [{ value: "未完成" }, { value: "完成" }, { value: "完成已绑定" }]
itemClick() { itemClick() {
router.pushUrl({url:'pages/order_detail/PzInOutDetailPage'}) router.pushUrl({url:'pages/order_detail/PzInOutDetailPage'})
...@@ -114,7 +114,7 @@ export struct WzOutPage { ...@@ -114,7 +114,7 @@ export struct WzOutPage {
onSubmit() { onSubmit() {
try{ try{
this.checkedList.forEach(async (element)=>{ this.checkedList.forEach(async (element)=>{
let num = await wzcrkModel.updateWzcrkWczt(element, (this.radioChecked == undefined || this.radioChecked ? '完成' : '未完成')) let num = await wzcrkModel.updateWzcrkWczt(element, (this.radioChecked == undefined || this.radioChecked ? '完成' : '未完成'))
if(num) { if(num) {
this.dataSource.splice(this.dataSource.findIndex(i => i.guid == element), 1) this.dataSource.splice(this.dataSource.findIndex(i => i.guid == element), 1)
} }
...@@ -145,7 +145,7 @@ export struct WzOutPage { ...@@ -145,7 +145,7 @@ export struct WzOutPage {
onExportSubmit() { onExportSubmit() {
this.checkedList.forEach(async element => { this.checkedList.forEach(async element => {
let res = await ViewdrdcModel.queryExport({guid: element, wczt: '完成', pzlx: '17'}) let res = await ViewdrdcModel.queryExport({guid: element, wczt: '完成', pzlx: '17'})
const jhguidArr = res.map((item) => item.guid) const jhguidArr = res.map((item) => item.guid)
if (jhguidArr && jhguidArr.length > 0) { if (jhguidArr && jhguidArr.length > 0) {
const date = dateUtils.formatDateTime(new Date(), 'before') const date = dateUtils.formatDateTime(new Date(), 'before')
...@@ -277,7 +277,7 @@ export struct WzOutPage { ...@@ -277,7 +277,7 @@ export struct WzOutPage {
}) })
} else if (this.dataSource.filter(i => i.wczt == '未完成').length > 0) { } else if (this.dataSource.filter(i => i.wczt == '未完成').length > 0) {
promptAction.showToast({ promptAction.showToast({
message: '请选择完成的单据' message: '请选择完成的单据'
}) })
} else { } else {
if (this.exportDialogController != undefined) { if (this.exportDialogController != undefined) {
......
...@@ -19,7 +19,7 @@ struct WzPositionPage{ ...@@ -19,7 +19,7 @@ struct WzPositionPage{
@State selectedFontColor: string = '#fff' @State selectedFontColor: string = '#fff'
@State currentIndex: number = 0 @State currentIndex: number = 0
@State titleBarPadding:number=0 @State titleBarPadding:number=0
@State selectValue: Array<SelectOption> = [{ value: "未完成" }, { value: "完成" }, { value: "完成已绑定" }] @State selectValue: Array<SelectOption> = [{ value: "未完成" }, { value: "完成" }, { value: "完成已绑定" }]
itemClick() { itemClick() {
router.pushUrl({url:'pages/order_detail/PzPourStoragePage'}) router.pushUrl({url:'pages/order_detail/PzPourStoragePage'})
} }
......
...@@ -88,7 +88,7 @@ struct WzReversePage{ ...@@ -88,7 +88,7 @@ struct WzReversePage{
TabContent() { TabContent() {
// Column().width('100%').height('100%').backgroundColor('#007DFF') // Column().width('100%').height('100%').backgroundColor('#007DFF')
}.tabBar(this.TabBuilder(1, '完成')) }.tabBar(this.TabBuilder(1, '完成'))
} }
.height(60) .height(60)
.margin({top:-15}) .margin({top:-15})
......
...@@ -55,7 +55,7 @@ struct WzReversePage{ ...@@ -55,7 +55,7 @@ struct WzReversePage{
const res = await wzcrkModel.query({ const res = await wzcrkModel.query({
pzlx: "19", pzlx: "19",
pzh: this.searchData.pzh, pzh: this.searchData.pzh,
wczt: this.currentIndex === 0 ? "未完成" : "完成" }) wczt: this.currentIndex === 0 ? "未完成" : "完成" })
res.forEach(element => { res.forEach(element => {
this.dataSource.push(new WzClass(element)) this.dataSource.push(new WzClass(element))
}); });
...@@ -107,7 +107,7 @@ struct WzReversePage{ ...@@ -107,7 +107,7 @@ struct WzReversePage{
onSubmit() { onSubmit() {
try{ try{
this.checkedList.forEach(async (element)=>{ this.checkedList.forEach(async (element)=>{
let num = await wzcrkModel.updateWzcrkWczt(element, (this.radioChecked == undefined || this.radioChecked ? '完成' : '未完成')) let num = await wzcrkModel.updateWzcrkWczt(element, (this.radioChecked == undefined || this.radioChecked ? '完成' : '未完成'))
if(num) { if(num) {
this.dataSource.splice(this.dataSource.findIndex(i => i.guid == element), 1) this.dataSource.splice(this.dataSource.findIndex(i => i.guid == element), 1)
} }
...@@ -136,7 +136,7 @@ struct WzReversePage{ ...@@ -136,7 +136,7 @@ struct WzReversePage{
} }
onExportSubmit() { onExportSubmit() {
this.checkedList.forEach(async element => { this.checkedList.forEach(async element => {
let res = await ViewdrdcModel.queryExport({guid: element, wczt: '完成', pzlx: '17'}) let res = await ViewdrdcModel.queryExport({guid: element, wczt: '完成', pzlx: '17'})
const jhguidArr = res.map((item) => item.guid) const jhguidArr = res.map((item) => item.guid)
if (jhguidArr && jhguidArr.length > 0) { if (jhguidArr && jhguidArr.length > 0) {
const date = dateUtils.formatDateTime(new Date(), 'before') const date = dateUtils.formatDateTime(new Date(), 'before')
...@@ -245,7 +245,7 @@ struct WzReversePage{ ...@@ -245,7 +245,7 @@ struct WzReversePage{
}) })
} else if (this.dataSource.filter(i => i.wczt == '未完成').length > 0) { } else if (this.dataSource.filter(i => i.wczt == '未完成').length > 0) {
promptAction.showToast({ promptAction.showToast({
message: '请选择完成的单据' message: '请选择完成的单据'
}) })
} else { } else {
if (this.exportDialogController != undefined) { if (this.exportDialogController != undefined) {
...@@ -297,7 +297,7 @@ struct WzReversePage{ ...@@ -297,7 +297,7 @@ struct WzReversePage{
TabContent() { TabContent() {
// Column().width('100%').height('100%').backgroundColor('#007DFF') // Column().width('100%').height('100%').backgroundColor('#007DFF')
}.tabBar(this.TabBuilder(1, '完成')) }.tabBar(this.TabBuilder(1, '完成'))
} }
.height(80) .height(80)
.margin({top:-15}) .margin({top:-15})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论